/* Self-hosted Google Fonts (Bowlby One, Inter): no requests to Google, so no visitor IPs leave the site. */
@font-face {
  font-family: 'Bowlby One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/BowlbyOne-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #0f4e6b;
  --blue-deep: #0a3a52;
  --coral: #ff6b4a;
  --ink: #10202b;
  --white: #ffffff;
  --text: #d7e6ee;
  --muted: #a9c6d4;
  --display: 'Bowlby One', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blue); color: var(--white); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--white); }
a:hover { color: #ffd9cf; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.section { padding-block: 96px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 10; }

.display { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; }
.display.l { font-size: clamp(32px, 5vw, 56px); }
.display.s { font-size: clamp(20px, 2.4vw, 26px); margin-top: 16px; }
.display.xl { font-size: clamp(40px, 7vw, 88px); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.kicker.dark { color: var(--blue); }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; color: var(--text); max-width: 760px; }
.lead.dark { color: var(--ink); }
.small { font-size: 14px; }
.muted { color: var(--muted); }

.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.pill-coral { background: var(--coral); color: var(--ink); }
.pill-coral:hover { background: var(--coral); color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.3); }
.pill-outline { border-color: var(--white); min-height: 40px; padding: 0 18px; }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-dark:hover { color: var(--white); background: #1d3442; }
.pill-outline-dark { border-color: var(--ink); color: var(--ink); }
.pill-outline-dark:hover { color: var(--ink); background: rgba(16, 32, 43, 0.08); }
.pill-link { font-weight: 700; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(15, 78, 107, 0.94); backdrop-filter: blur(8px); }
.header-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 14px; }
.logo img { width: 132px; }
.menu-toggle { display: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-weight: 500; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* hero */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(56px, 8vw, 96px); }
.hero-title { font-size: clamp(32px, 6.4vw, 92px); max-width: 1100px; }

/* Scroll reveal: app.js adds .reveal to sections, tiles and images, then .is-visible when they enter the screen. */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .tile.reveal .tile-img img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .tile.reveal.is-visible .tile-img img { transform: scale(1); }
.js .tile.reveal.is-visible:hover .tile-img img { transform: scale(1.04); transition-duration: 0.5s; }

/* work grid */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--white); background: transparent; color: var(--white); font: 600 15px var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--white); color: var(--blue); }
.chip:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.1); }
.chip .lock { width: 15px; height: 15px; }

/* Like the prototype: two wide featured tiles on top, then rows of three 4:3 tiles, title and discipline on one line. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.tile[hidden] { display: none; }
@media (min-width: 900px) {
  .grid.is-all { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid.is-all .tile { grid-column: span 2; }
  .grid.is-all .tile-featured { grid-column: span 3; }
  .grid.is-all .tile-featured .tile-img { aspect-ratio: 16 / 10; }
  .grid.is-all .tile-featured .tile-title { font-size: 28px; }
}
.tile-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--blue-deep); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.tile-title { font-family: var(--display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.tile-line { font-size: 15px; color: var(--muted); }
a.chip { text-decoration: none; }
.lock { width: 1em; height: 1em; vertical-align: -0.12em; }
.tile-lock { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(16, 32, 43, 0.85); color: var(--coral); }
.tile-lock .lock { width: 17px; height: 17px; vertical-align: 0; }
.chip .lock, .healthcare-note .lock { color: var(--coral); }
.chip[aria-pressed="true"] .lock { color: var(--coral); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.healthcare-note { margin-top: 8px; }
.show-all { align-self: center; background: transparent; color: var(--white); font: 700 16px var(--body); cursor: pointer; margin-top: 8px; }
.show-all:hover { background: rgba(255, 255, 255, 0.1); }
.show-all[hidden] { display: none; }

/* bands */
.band { padding-block: clamp(64px, 8vw, 96px); }
.band-white { background: var(--white); color: var(--ink); }
.band-coral { background: var(--coral); color: var(--ink); }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 44px; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); text-transform: uppercase; }
/* Desktop: the client list sits in the page column. Mobile: it runs as a ticker (second copy makes the loop seamless). */
.ticker { max-width: var(--wrap); margin: 24px auto 0; padding-inline: var(--gutter); }
.ticker .clients[aria-hidden] { display: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* services */
.services-wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.services-intro { flex: 1 1 320px; }
.services { flex: 2 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.service { border-top: 2px solid var(--coral); padding-top: 18px; }
.service summary { list-style: none; pointer-events: none; }
.service summary::-webkit-details-marker { display: none; }
.service p { margin-top: 8px; }
.service h3 { font-size: 19px; line-height: 1.3; }
.service p { color: var(--text); font-size: 16px; }

/* case pages */
.case-head { padding-block: clamp(48px, 7vw, 88px) 48px; }
.back { font-weight: 500; color: var(--muted); text-decoration: none; }
.case-title { font-size: clamp(44px, 8vw, 112px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--blue); font-size: 14px; font-weight: 600; }
.case-info { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 8px; }
.meta { margin: 0; display: grid; gap: 12px; flex: 1 1 260px; align-content: start; }
.meta div { border-top: 2px solid var(--coral); padding-top: 10px; }
.meta dt { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.meta dd { margin: 2px 0 0; font-size: 17px; }
.desc { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 18px; max-width: 760px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; }
.links a { font-weight: 600; }
.media { display: flex; flex-direction: column; gap: 24px; padding-bottom: 96px; }
.media img { width: 100%; border-radius: 8px; }
.shot { display: block; cursor: zoom-in; }
/* Overview is uniform: every image is cropped to the same shape; the lightbox shows the full, uncropped image. */
.hero-shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.gallery .shot { overflow: hidden; border-radius: 8px; }
.gallery .shot img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform 0.4s ease, opacity 0.2s ease; }
.gallery .shot:hover img { transform: scale(1.03); opacity: 0.92; }
.gallery .shot-cutout img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.gallery .shot-cutout.is-light { background: #ebe8e3; }
.gallery .shot-cutout:hover img { transform: scale(1.04); }
.lightbox:has(.lb-stage img[src*="/troiboy/"]) .lb-stage img { background: #ebe8e3; }
.shot-video { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--blue-deep); }
.shot-video img { position: absolute; inset: 0; width: 100%; height: 100%; }
.play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--coral); color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.shot-video:hover .play { transform: scale(1.08); }
.lb-stage { display: contents; }
.lb-video { position: relative; width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 100%; background: #000; }
.lb-video iframe, .lb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 899px) { .gallery { --cols: 2 !important; gap: 16px; } }
@media (max-width: 560px) { .hero-shot img { aspect-ratio: 4 / 3; } }

.lightbox { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 24, 33, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 24px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: contain; background: #000; }
.video-poster { display: block; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-poster:hover .play { transform: scale(1.08); }
.next { display: block; background: var(--coral); color: var(--ink); text-decoration: none; }
.next:hover { color: var(--ink); background: var(--coral); }
.next:hover .display { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.next-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 56px; }

/* about */
.about-text { display: flex; flex-direction: column; gap: 16px; max-width: 820px; color: var(--text); font-size: 18px; }
.jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.job h3 { font-size: 19px; margin-bottom: 6px; }
.job p { color: var(--text); }
.job-years { font-weight: 700; color: var(--coral); }

.cv-link { align-self: flex-start; margin-top: 16px; min-height: 48px; }

/* cv */
.cv { padding-block: clamp(48px, 7vw, 88px) 96px; display: flex; flex-direction: column; gap: 56px; }
.cv-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cv-top button { border: 0; font: 700 16px var(--body); cursor: pointer; }
.cv-cols { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.cv-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 32px; }
.cv-main { flex: 3 1 560px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.cv-block { display: flex; flex-direction: column; gap: 12px; }
.cv-block > p { color: var(--text); }
.cv-h { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); padding-bottom: 8px; border-bottom: 2px solid var(--coral); }
.cv-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.cv-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 32px; }
.cv-job { display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.cv-job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.cv-job h3 { font-size: 19px; }
.cv-years { font-weight: 700; color: var(--coral); white-space: nowrap; }
.cv-job > p, .cv-job ul { color: var(--text); }
.cv-job ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.cv-clients { font-size: 15px; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; color: #10202b; font-size: 10.5pt; }
  .site-header, .site-footer, #contact, .no-print, .skip { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .cv { padding: 0; gap: 18pt; }
  .cv-cols { gap: 18pt 28pt; flex-wrap: nowrap; }
  .cv-side { flex: 0 0 30%; }
  .cv-main { flex: 1 1 auto; }
  .case-title { font-size: 34pt; }
  .lead, .cv-block > p, .cv-list, .cv-job > p, .cv-job ul { color: #10202b; font-size: 10.5pt; }
  .kicker, .cv-h, .cv-years { color: #c4402a; }
  .cv-h { border-color: #c4402a; }
  a { color: #10202b; text-decoration: none; }
  .cv-job h3 { font-size: 11.5pt; }
  body { line-height: 1.4; }
  .cv-jobs { gap: 14pt; }
  .cv-job { break-inside: auto; gap: 5pt; }
  .cv-job-head { break-after: avoid; }
  .cv-job ul { gap: 1pt; }
  .cv-side, .cv-main, .cv-block { gap: 10pt; }
}

/* healthcare access (pop-up + /access/ page) */
.gate-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45); }
.gate-dialog::backdrop { background: rgba(6, 24, 33, 0.8); }
.gate-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 24px; cursor: pointer; }
.gate-close:hover { background: rgba(255, 255, 255, 0.24); }
.gate-page { padding-block: clamp(48px, 7vw, 88px); max-width: 720px; }
.gate-form { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 5vw, 40px); }
.gate-page .gate-form { padding: 0; }
.gate-head { display: flex; flex-direction: column; gap: 8px; padding-right: 40px; }
.gate-head .lock { color: var(--coral); }
.gate-head p:last-child { color: var(--text); }
.gate-title { font-size: clamp(32px, 6vw, 48px); }
.gate-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.gate-form legend { font-weight: 700; font-size: 17px; margin-bottom: 10px; padding: 0; }
.gate-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.gate-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 8px; cursor: pointer; font-size: 15px; }
.gate-option:hover { border-color: var(--white); }
.gate-option:has(input:checked) { border-color: var(--coral); background: rgba(255, 107, 74, 0.14); }
.gate-option input { accent-color: var(--coral); width: 18px; height: 18px; margin: 0; flex: none; }
.gate-label { font-size: 15px; font-weight: 600; color: var(--text); }
.gate-input { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--white); font: 400 16px var(--body); resize: vertical; }
input.gate-input { min-height: 48px; }
.gate-input:focus, .gate-option:focus-within { outline: 3px solid var(--coral); outline-offset: 2px; }
.gate-submit { align-self: flex-start; border: 0; font: 700 16px var(--body); cursor: pointer; }
.gate-submit:disabled { opacity: 0.6; cursor: wait; }
.gate-error { color: var(--coral); font-weight: 600; }
.gate-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.gate-form > [hidden] { display: none; }
.gate-status { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 48px; text-align: center; }
.gate-status-title { font-size: clamp(26px, 5vw, 36px); }
.gate-status-text { color: var(--text); }
.gate-spinner { width: 56px; height: 56px; border-radius: 999px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--coral); animation: gate-spin 0.8s linear infinite; }
.gate-progress { width: min(320px, 80%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.gate-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--coral); }
.gate-status.is-granted .gate-spinner { animation: none; border-color: var(--coral); }
.gate-status.is-granted .gate-progress span { width: 100%; transition: width 1.3s ease-in-out; }
@keyframes gate-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gate-spinner { animation: none; border-top-color: var(--coral); }
  .gate-status.is-granted .gate-progress span { transition: none; }
}

/* footer */
.site-footer { padding-block: 32px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 899px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .tile-title { font-size: 18px; }
}
@media (max-width: 760px) {
  .hero { padding-block: 40px 48px; }
  .hero .lead { font-size: 16px; }
  .hero .pill { padding: 0 18px; font-size: clamp(13px, 4vw, 15px); white-space: nowrap; }
  .ticker { overflow: hidden; margin-top: 20px; padding-inline: 0; }
  .ticker .marquee { display: flex; width: max-content; animation: ticker 40s linear infinite; }
  .ticker .clients, .ticker .clients[aria-hidden] { display: flex; flex-wrap: nowrap; gap: 0; font-size: 20px; white-space: nowrap; }
  .ticker .clients li::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-inline: 18px; vertical-align: middle; }
  .services { gap: 0; }
  .service { padding-block: 16px; border-top-width: 1px; }
  .service:last-child { border-bottom: 1px solid var(--coral); }
  .service summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .service summary::after { content: '+'; flex: none; color: var(--coral); font-size: 26px; line-height: 1; transition: transform 0.25s ease; }
  .service[open] summary::after { transform: rotate(45deg); }
  .service h3 { font-size: 17px; }

  /* Burger menu: logo + toggle on one slim row; the nav drops down as a panel when opened. */
  .header-row { flex-wrap: nowrap; padding-block: 10px; }
  .logo img { width: 120px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
  .menu-toggle svg { width: 30px; height: 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .menu-toggle .ketchup { stroke: var(--coral); }
  .menu-toggle .patty { stroke-width: 3.2; }
  .menu-toggle g { transform-origin: 14px 14px; transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .menu-toggle .close { opacity: 0; transform: rotate(-90deg) scale(0.6); stroke-width: 2.4; }
  .site-header.is-open .menu-toggle .burger { opacity: 0; transform: scale(0.6); }
  .site-header.is-open .menu-toggle .close { opacity: 1; transform: none; }
  .site-header nav { display: none; }
  .site-header.is-open nav { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 28px; background: var(--blue); border-bottom: 2px solid var(--coral); }
  .site-header.is-open nav a:not(.pill) { font-family: var(--display); font-size: 28px; text-transform: uppercase; }

  /* Tighter rhythm */
  .hero { padding-block: 32px 40px; }
  .hero-agencies { display: none; }
  .section { padding-block: 56px; }
  .band { padding-block: 44px; }
  #work { padding-top: 24px; }

  /* Filter chips: one swipeable row */
  .section-head { gap: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; }

  /* Only 4 selected projects before "See all" */
  .grid.is-all .tile[data-more] { display: none; }

  /* How I can help: smaller intro, "More about me" after the list */
  .services-wrap { gap: 20px; }
  .services-intro { display: contents; }
  .services-intro > * { flex: 1 1 100%; }
  .services-intro .lead { font-size: 16px; }
  .services { order: 1; flex-basis: 100%; }
  .services-intro .pill-link { order: 2; }
}
@media (max-width: 560px) {
  .grid { gap: 24px 12px; }
  .tile { gap: 8px; }
  .tile-title { font-size: 15px; }
  .tile-line { font-size: 12px; }
  .tile-lock { top: 8px; right: 8px; width: 28px; height: 28px; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .site-header nav { gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker .marquee { animation: none; }
  .ticker .clients[aria-hidden] { display: none; }
  .ticker .clients { flex-wrap: wrap; white-space: normal; }
  .tile-img img { transition: none; }
  .js .reveal, .js .tile.reveal .tile-img img { opacity: 1; transform: none; transition: none; }
}
