:root {
  color-scheme: light;
  --navy: #061d38;
  --blue: #082d56;
  --ocean: #075996;
  --cyan: #59c5e7;
  --paper: #f3f7fb;
  --ice: #e9f5fc;
  --white: #fff;
  --ink: #132b46;
  --muted: #455d74;
  --line: #cbdbea;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; }
button { color: inherit; cursor: pointer; font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #167aac; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(1200px, 100% - 96px); margin-inline: auto; }
.eyebrow { font-size: .69rem; font-weight: 760; text-transform: uppercase; letter-spacing: .14em; }
.section-kicker { color: var(--ocean); }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.skip-link { position: absolute; z-index: 10; top: 10px; left: 10px; padding: .6rem 1rem; background: var(--navy); color: white; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; white-space: nowrap; font-size: 1.24rem; font-weight: 830; line-height: 1.1; }
.brand img { flex: none; }
.brand-sub { display: block; margin-top: 3px; font-size: .6rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .22em; }
.nav-contact { padding: 0 .96rem; border: 1px solid #a4c5df; border-radius: 6px; color: var(--ocean); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(112deg, #061a31 8%, #092849 58%, #0a4980 100%); color: white; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 35%; background: #126aa8; clip-path: polygon(81% 0, 100% 0, 100% 23%, 38% 100%, 20% 100%); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0 0 0 35%; background: #52c4e8; clip-path: polygon(100% 12%, 100% 16%, 37% 100%, 34% 100%); opacity: .82; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 5vw, 66px); align-items: center; padding-block: 47px; }
.hero-kicker { display: flex; align-items: center; gap: 11px; color: #a2e5f8; }
.hero-kicker span { width: 25px; height: 2px; background: var(--cyan); }
h1 { margin-top: 12px; font-size: clamp(2.65rem, 6vw, 5.15rem); font-weight: 820; line-height: .98; letter-spacing: -.075em; }
h1 em { color: #91d9f1; font-style: normal; }
.hero-intro { max-width: 41ch; margin-block: 22px; color: #e0ebf7; font-size: clamp(.98rem, 1.55vw, 1.14rem); }
.hero-actions { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; }
.primary-button, .quiet-button { display: inline-flex; gap: .8rem; align-items: center; min-height: 48px; border: 0; text-decoration: none; font-size: .83rem; font-weight: 760; }
.primary-button { padding-inline: 1rem; border-radius: 5px; background: #a9e4f7; color: var(--navy); }
.primary-button:hover { background: #d1f2fb; }
.quiet-button { padding-inline: .15rem; background: transparent; color: white; }
.quiet-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.hero :focus-visible, .service-section :focus-visible { outline-color: #83dbf7; }
.hero-visual { position: relative; isolation: isolate; min-width: 0; border: 1px solid #7eb4d9; border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: 0 16px 48px #0215297a; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1.57; object-fit: cover; object-position: 50% 42%; }
.hero-visual figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 27px 17px 13px; background: linear-gradient(transparent, #061a32ef); font-size: .88rem; font-weight: 760; }
.hero-visual figcaption .eyebrow { color: #b5e9fa; }

.project-section { padding-block: 47px 54px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 22px; }
h2 { margin-top: 6px; font-size: clamp(1.9rem, 4.5vw, 3.35rem); font-weight: 800; line-height: 1.03; letter-spacing: -.063em; }
.section-heading > p, .contact-section p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.project-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.project-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; text-align: left; }
.project-card:hover, .project-card[aria-current="true"] { border-color: var(--ocean); }
.project-card[aria-current="true"] { box-shadow: 0 0 0 1px var(--ocean); }
.card-art { display: block; aspect-ratio: 1.52; background: var(--ice); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: block; padding: 11px 31px 12px 12px; }
.card-category { display: block; color: var(--ocean); }
.card-title { display: block; margin-top: 3px; font-size: .95rem; font-weight: 780; line-height: 1.24; }
.card-arrow { position: absolute; right: 11px; bottom: 10px; color: var(--ocean); font-weight: 760; }
.viewer { margin-top: 25px; padding: clamp(12px, 3vw, 27px); border: 1px solid var(--line); border-radius: 11px; background: white; }
.viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.viewer h3 { margin-top: 5px; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.047em; }
.project-summary { max-width: 68ch; margin-bottom: 16px; color: var(--muted); font-size: .95rem; }
.pager { display: flex; gap: 6px; flex: none; }
.pager button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--blue); font-weight: 760; }
.pager button:hover { background: var(--ice); border-color: var(--ocean); }
.project-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-media figure { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.project-media figure > :is(img, video) { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--navy); }
.project-media figure > figcaption { min-height: 42px; padding: .65rem .8rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.project-media.portrait { width: min(100%, 720px); margin-inline: auto; }
.project-media.portrait figure > :is(img, video) { aspect-ratio: 9 / 16; object-fit: contain; }
.project-media.single, .project-media.comparison { grid-template-columns: minmax(0, 1fr); margin-inline: auto; }
.project-media.single { width: min(100%, 830px); }
.project-media.comparison { width: min(100%, 500px); }

.picture { --split: 50%; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.picture img { position: absolute; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.after-image { clip-path: inset(0 0 0 var(--split)); }
.picture-badge { position: absolute; top: 10px; padding: .32rem .5rem; border-radius: 4px; font-size: .64rem; font-weight: 790; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.before-badge { left: 10px; background: #eaf5ff; color: var(--navy); }
.after-badge { right: 10px; background: var(--navy); color: white; }
.divider { position: absolute; top: 0; bottom: 0; left: clamp(1px, var(--split), calc(100% - 1px)); width: 2px; transform: translateX(-50%); background: #f8fcff; }
.handle { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%); border: 1px solid var(--ocean); border-radius: 50%; color: var(--navy); background: white; box-shadow: 0 2px 8px #061d3855; font-size: 1.26rem; font-weight: 750; white-space: nowrap; }
.split-control { position: absolute; inset: 0; appearance: none; width: 100%; height: 100%; margin: 0; border: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; opacity: 0; }
.split-control::-webkit-slider-thumb { appearance: none; width: 18px; height: 44px; }
.split-control::-moz-range-thumb { width: 18px; height: 44px; border: 0; }
.picture:has(.split-control:focus-visible) { outline: 3px solid var(--ocean); outline-offset: -3px; }
.picture:has(.split-control:focus-visible) .handle { background: var(--blue); color: white; }
.comparison[data-mode="before"] :is(.after-image, .after-badge, .divider),
.comparison[data-mode="after"] :is(.before-image, .before-badge, .divider) { visibility: hidden; }
.comparison[data-mode="after"] .after-image { clip-path: none; }
.comparison-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mode-buttons { display: flex; flex-wrap: wrap; gap: 3px; }
.mode-buttons button { min-height: 44px; padding: 0 .66rem; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--blue); font-size: .74rem; font-weight: 740; }
.mode-buttons button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }

.service-section { position: relative; background: linear-gradient(123deg, #071e38, #0a4376); color: white; }
.service-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 76px); align-items: start; padding-block: 50px; }
.service-section .eyebrow { color: #a6e0f4; }
.service-intro { max-width: 43ch; margin-block: 15px 20px; color: #d8e9f6; }
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #6494b5; }
.service-list li { padding: 12px 0; border-bottom: 1px solid #6494b5; }
.service-list h3 { font-size: 1rem; font-weight: 750; }
.service-list p { margin-top: 3px; color: #d8e9f6; font-size: .9rem; }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; padding-block: 48px; }
.contact-section h2 { margin-bottom: 10px; }
.contact-card { border: 1px solid var(--line); border-radius: 8px; padding: 17px; background: white; }
.contact-card a { display: inline-flex; align-items: center; min-height: 48px; gap: 12px; color: var(--blue); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 790; text-decoration-thickness: 1px; text-underline-offset: .13em; }
.contact-card a span { font-size: 1.05rem; }
.contact-email-label { margin-top: 8px; }
.contact-card .contact-email { font-size: 1rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { min-height: 60px; color: var(--muted); font-size: .76rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }

@media (max-width: 1030px) {
  .shell { width: min(1200px, 100% - 54px); }
  .project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { gap: 24px; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; }
  .brand { gap: 7px; font-size: 1.03rem; }
  .brand img { width: 36px; height: 36px; }
  .brand-sub { font-size: .51rem; letter-spacing: .07em; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: .73rem; }
  .nav-contact { padding: 0; border: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 28px; gap: 18px; }
  h1 { font-size: clamp(2.65rem, 9.7vw, 4.35rem); }
  .hero-intro { margin-block: 15px; }
  .hero::before, .hero::after { inset-inline-start: 7%; }
  .project-section { padding-block: 34px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 7px; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-media.portrait, .project-media.landscape { grid-template-columns: 1fr; }
  .project-media.portrait { width: min(100%, 360px); }
  .service-inner, .contact-section { grid-template-columns: 1fr; gap: 17px; padding-block: 32px; }
}
@media (max-width: 365px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { flex-wrap: wrap; }
  .header-inner, .site-header nav { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-sub { font-size: .48rem; letter-spacing: .04em; }
  .site-header nav a { font-size: .66rem; }
  .hero-actions { gap: 5px 12px; }
  .primary-button, .quiet-button { font-size: .76rem; }
}
