/* garethcrory.com – single stylesheet (built from src/assets/main.css)
   Layout: a monochrome editorial grid – big Inter Display headings, hairline
   dividers, generous white space, renders shown on soft grey panels. */

@font-face { font-family: "Inter"; src: url("/fonts/inter-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/interdisplay-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/fonts/interdisplay-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Light is the base theme. Dark is applied by the OS setting (unless the visitor picked light)
   or by the toggle (data-theme="dark"). Every colour below comes from these tokens. */
:root {
  --bg: #fff;
  --bg-elev: #fff;
  --ink: #000;
  --ink-2: rgba(0, 0, 0, 0.66);
  --ink-3: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --underline: rgba(0, 0, 0, 0.16);
  --rule: #1e1d1d;
  --panel: #f3f3f2;
  --panel-border: rgba(0, 0, 0, 0.06);
  --chip: rgba(0, 0, 0, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --field-bg: #fff;
  --field-border: rgba(0, 0, 0, 0.18);
  --focus-ring: rgba(0, 0, 0, 0.08);
  --shadow: rgba(0, 0, 0, 0.12);
  --error: #b3261e;
  --clock-second: #c8902a;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  --logo-filter: none;
  --client-filter: grayscale(1);
  --grain-blend: multiply;
  --grain-filter: none;
  --grain-opacity: 0.32;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Inter Display", "Inter", system-ui, Arial, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --nav-h: 4.75rem;
  --section: clamp(4rem, 9vw, 7rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --bg-elev: #161616; --ink: #f2f2f0; --ink-2: rgba(242, 242, 240, 0.72); --ink-3: rgba(242, 242, 240, 0.56);
    --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.28); --underline: rgba(255, 255, 255, 0.28);
    --rule: #e9e9e6; --panel: #181818; --panel-border: rgba(255, 255, 255, 0.07); --chip: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(13, 13, 13, 0.88); --field-bg: #141414; --field-border: rgba(255, 255, 255, 0.2); --focus-ring: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.5); --error: #ff8a80; --clock-second: #e0a845;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f2f0' stroke-width='1.5'/%3E%3C/svg%3E");
    --logo-filter: invert(1); --client-filter: grayscale(1) invert(1);
    --grain-blend: screen; --grain-filter: invert(1); --grain-opacity: 0.22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --bg-elev: #161616; --ink: #f2f2f0; --ink-2: rgba(242, 242, 240, 0.72); --ink-3: rgba(242, 242, 240, 0.56);
  --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.28); --underline: rgba(255, 255, 255, 0.28);
  --rule: #e9e9e6; --panel: #181818; --panel-border: rgba(255, 255, 255, 0.07); --chip: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(13, 13, 13, 0.88); --field-bg: #141414; --field-border: rgba(255, 255, 255, 0.2); --focus-ring: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.5); --error: #ff8a80; --clock-second: #e0a845;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f2f2f0' stroke-width='1.5'/%3E%3C/svg%3E");
  --logo-filter: invert(1); --client-filter: grayscale(1) invert(1);
  --grain-blend: screen; --grain-filter: invert(1); --grain-opacity: 0.22;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.5;
  letter-spacing: -0.025em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
h2 { font-family: var(--display); font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.15; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--bg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(80rem + 2 * var(--gutter)); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.rule { height: 2px; background: var(--rule); border: 0; margin: 0; }
.section-head { padding-top: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.lead { font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.3; max-width: 34ch; }
.body-l { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.link { box-shadow: inset 0 -2px 0 0 var(--underline); font-weight: 500; transition: box-shadow 0.2s ease, opacity 0.2s ease; }
.link:hover { box-shadow: inset 0 -2px 0 0 var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.arrow-link span { transition: transform 0.25s var(--ease-out); }
.arrow-link:hover span { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 0.375rem; padding: 1.05rem 1.9rem;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.82; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { opacity: 1; background: var(--chip); }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 0.95rem; font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill span { transition: transform 0.25s ease; }
.pill:hover span { transform: translateX(3px); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 0.875rem; line-height: 1.2; color: var(--ink-2); background: var(--chip); border-radius: 999px; padding: 0.4rem 0.8rem; }

/* Film-grain texture over the whole page (remove this block to switch it off) */
body { position: relative; }
body::after {
  content: ""; position: absolute; inset: 0; z-index: 1000; pointer-events: none; /* scrolls with the page */
  background: url("/images/grain.png") repeat; background-size: 180px 180px;
  mix-blend-mode: var(--grain-blend); filter: var(--grain-filter); opacity: var(--grain-opacity);
}

/* ---------- Skip link + nav ---------- */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; border-radius: 0.375rem; font-weight: 500; }
.skip:focus { top: 1rem; }

.nav { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav__logo { display: block; width: 3.25rem; height: 3.25rem; flex: none; }
.nav__logo img { width: 100%; height: 100%; filter: var(--logo-filter); transition: transform 0.4s var(--ease-out); }
.nav__logo:hover img { transform: rotate(-22.5deg); }
.nav__menu { display: flex; align-items: center; gap: 2.5rem; }
.nav__links { display: flex; align-items: center; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.nav__links a { font-size: 1.125rem; font-weight: 400; transition: opacity 0.2s ease; }
.nav__links a:hover { opacity: 0.6; }
.nav__links a[aria-current="page"] { font-weight: 500; }
.nav__ig svg { width: 1.5rem; height: 1.5rem; display: block; }
.theme-toggle { background: none; border: 0; padding: 0; width: 1.5rem; height: 1.5rem; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.theme-toggle svg { width: 1.35rem; height: 1.35rem; display: block; transition: transform 0.5s var(--ease-out); }
.theme-toggle:hover svg { transform: rotate(-30deg); }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; } :root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } :root:not([data-theme="light"]) .theme-toggle .sun { display: block; } }
.nav__end { display: flex; align-items: center; gap: 1.5rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 0; width: 3rem; height: 3rem; margin-right: -0.5rem; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 0.75rem; right: 0.75rem; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.nav__toggle span:nth-child(1) { top: calc(50% - 5px); }
.nav__toggle span:nth-child(2) { top: calc(50% + 3px); }
.nav-open .nav__toggle span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-open .nav__toggle span:nth-child(2) { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (max-width: 767px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); z-index: 99;
    padding: 2rem max(var(--gutter), env(safe-area-inset-left, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 2rem;
    opacity: 0; visibility: hidden; transform: translateY(-0.5rem);
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .nav-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.35s var(--ease-out); }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .nav__links a { font-family: var(--display); font-size: 2.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
  .nav__end { margin-top: 1rem; gap: 2rem; }
  .nav__end .theme-toggle, .nav__end .theme-toggle svg { width: 1.75rem; height: 1.75rem; }
  .nav__ig svg { width: 1.75rem; height: 1.75rem; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the nav the containing block for the fixed menu, trapping it in the bar */
  .nav-open .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}

/* ---------- Page entrance ---------- */
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }
main { animation: page-in 0.8s var(--ease-out) both; }

/* ---------- Reveal on scroll (blur + rise) ---------- */
.js [data-reveal] {
  opacity: 0; filter: blur(12px); transform: translate3d(0, 1.75rem, 0);
  transition: opacity 1s var(--ease-out) var(--d, 0ms), filter 1.1s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; filter: none; transform: none; }

/* ---------- Marquees ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; margin: 0; padding: 0; list-style: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Home hero ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(3rem, 12vh, 9rem); overflow: hidden; }
.hero__tag { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; line-height: 1.3; max-width: 22ch; margin-left: 25%; text-wrap: balance; }
.hero__name { margin: 0; font: inherit; letter-spacing: normal; }
.hero__name .marquee__group span {
  font-family: var(--display); font-weight: 400; font-size: 15vw; letter-spacing: -0.03em; line-height: 1.15;
  white-space: nowrap; padding-right: 4vw;
}
@media (min-width: 1440px) { .hero__name .marquee__group span { font-size: 13vw; } }
@media (max-width: 767px) {
  .hero { min-height: auto; padding-top: 4rem; gap: 4rem; }
  .hero__tag { margin-left: 0; font-size: 1.75rem; }
  .hero__name .marquee__group span { font-size: 24vw; }
}

.intro { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.intro p { margin-left: calc(100% / 6); max-width: 30ch; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; }
@media (max-width: 767px) { .intro p { margin-left: 0; } }

/* ---------- Work rows ---------- */
.work-list { display: flex; flex-direction: column; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.work-row:last-child { padding-bottom: 0; }
.work-row__info { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-width: 0; }
.work-row__title { font-family: var(--display); font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem; }
.work-row__outcome { font-size: 1.125rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 0.75rem; max-width: 30rem; }
.work-row__role { font-size: 1.125rem; font-weight: 500; margin-bottom: 1.25rem; }
.panel { position: relative; display: block; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 0.75rem; overflow: hidden; }
.work-row__media { padding: clamp(1rem, 5%, 3.5rem) clamp(1rem, 7%, 5rem) clamp(2rem, 7%, 4rem); }
.work-row__frame { display: block; aspect-ratio: 16 / 10; border-radius: 0.5rem; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.1); }
.work-row__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.work-row__frame.is-white img { object-fit: contain; padding: 4%; }
.work-row__media:hover .work-row__frame img { transform: scale(1.03); }
.work-row__year { position: absolute; right: 1.25rem; bottom: 0.9rem; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--ink-3); }
@media (max-width: 767px) {
  .work-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 2.5rem; }
  .work-row__media { order: -1; padding: 0.75rem 0.75rem 2.25rem; }
  .work-row__year { right: 0.9rem; bottom: 0.7rem; }
  .work-row__info { gap: 1.5rem; }
}

/* ---------- Generic split (label left, content right) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); }
.split > * { min-width: 0; }
.split__aside { align-self: start; }
.split__aside.is-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

.about-short .lead { max-width: 40ch; margin-bottom: 2.5rem; }

.list { margin: 0; padding: 0; list-style: none; }
.list li { border-bottom: 1px solid var(--line); padding: 0.95rem 0 1.1rem; font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.2; }
.list li:first-child { padding-top: 0.4rem; }

/* ---------- Clients ---------- */
.clients { padding-block: 5rem 4rem; }
.clients .eyebrow { margin-bottom: 2.5rem; }
.logo-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-marquee li { padding-right: clamp(3rem, 6vw, 6rem); display: flex; align-items: center; }
.logo-marquee img { width: auto; max-width: none; filter: var(--client-filter); opacity: 0.5; transition: opacity 0.3s ease, filter 0.3s ease; }
.logo-marquee img:hover { filter: var(--client-filter); opacity: 1; }
@media (max-width: 479px) { .logo-marquee img { transform: scale(0.8); } .logo-marquee li { padding-right: 2.25rem; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.25rem; counter-increment: step; display: flex; flex-direction: column; gap: 0.75rem; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 0.8125rem; letter-spacing: 0.18em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--display); font-size: 1.5rem; }
.steps p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services + industries (about) ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.service { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.service h3 { font-family: var(--display); font-size: clamp(1.75rem, 2.2vw, 2.125rem); }
.service > p { color: var(--ink-2); font-size: 1.0625rem; }
.svc-list { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.svc-list li { border-top: 1px solid var(--line); padding: 0.6rem 0; font-size: 1rem; letter-spacing: -0.015em; }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; } }
@media (max-width: 599px) { .services { grid-template-columns: 1fr; } }

.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  margin-top: 0.85rem; font-size: 0.9375rem; font-weight: 500; user-select: none;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.95rem;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more .more__less, .more[open] .more__label { display: none; }
.more[open] .more__less { display: inline; }
.more[open] summary { order: 2; }
.more { display: flex; flex-direction: column; }
.more[open] > :not(summary) { animation: more-in 0.5s var(--ease-out) both; }
.svc-list--more { margin-top: 0; }
.svc-list--more li:first-child { border-top: 0; }
.more--industries { margin-top: 2.5rem; }
.more--industries .industries { margin-bottom: 0.5rem; }
@keyframes more-in { from { opacity: 0; transform: translate3d(0, -0.5rem, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .more[open] > :not(summary) { animation: none; } }

.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.industry { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.industry h3 { font-family: var(--display); font-size: 1.5rem; }
.industry p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.industry .industry__work { color: var(--ink); font-size: 0.9375rem; margin-top: auto; padding-top: 0.25rem; }
@media (max-width: 1100px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .industries { grid-template-columns: 1fr; } }

.prose { display: flex; flex-direction: column; gap: 1.25rem; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; max-width: 56ch; }
.prose h3 { font-size: 1.25rem; margin-top: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose a { box-shadow: inset 0 -2px 0 0 var(--underline); font-weight: 500; }

/* ---------- Case study ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-weight: 500; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.crumbs li + li::before { content: "→"; opacity: 0.24; margin-right: 0.5rem; }
.crumbs a:hover { opacity: 0.6; }
.crumbs [aria-current] { color: var(--ink-3); }
.case-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.case-head h1 { font-family: var(--display); font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.case-head .lead { max-width: 30ch; color: var(--ink-2); }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.meta dt { font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.5rem; }
.meta dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.meta .meta__tags { grid-column: span 2; }
@media (max-width: 899px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .meta { grid-template-columns: 1fr; } .meta .meta__tags { grid-column: auto; } }

.case-hero { margin: 0; }
.case-hero img { width: 100%; max-height: 82svh; object-fit: cover; }
.case-hero.is-white { background: #fff; }
.case-hero.is-white img { object-fit: contain; max-height: 70svh; margin: 0 auto; }

.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.numbers li { border-top: 2px solid var(--rule); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.numbers strong { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--ink-2); font-size: 1.0625rem; max-width: 24ch; }
@media (max-width: 767px) { .numbers { grid-template-columns: 1fr; } }

.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.points li { border-top: 1px solid var(--line); padding: 1.25rem 0 1.4rem; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; }
.points li:first-child { border-top: 0; padding-top: 0.4rem; }
.points h3 { font-size: 1.25rem; }
.points p { color: var(--ink-2); font-size: 1.125rem; line-height: 1.5; }
@media (max-width: 559px) { .points li { grid-template-columns: 1fr; gap: 0.4rem; } }

.closing { margin-top: 2.5rem; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; max-width: 44ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.gallery .panel { padding: clamp(1rem, 4%, 2.5rem); background: #fff; }
.gallery figcaption { font-size: 0.9375rem; color: var(--ink-3); }

/* Scroll-driven assembly animation */
.assembly { position: relative; height: 260vh; }
.assembly__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.assembly__canvas { border-radius: 0.75rem; width: 100%; max-height: calc(100svh - var(--nav-h) - 6rem); object-fit: contain; aspect-ratio: var(--ar); margin: 0 auto; }
.assembly__foot { display: flex; align-items: center; gap: 1.25rem; }
.assembly__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.assembly__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.assembly__caption { font-size: 0.9375rem; color: var(--ink-3); }
.assembly.is-static { height: auto; }
.assembly.is-static .assembly__stage { position: static; height: auto; }
@media (max-width: 767px) { .assembly { height: 200vh; } .assembly__foot { flex-direction: column; align-items: stretch; gap: 0.75rem; } }

/* Interactive 3D model */
.model-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.seg { display: inline-flex; padding: 0.25rem; border-radius: 999px; background: var(--chip); }
.seg button { border: 0; background: none; cursor: pointer; border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: background-color 0.25s ease, color 0.25s ease; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.model { aspect-ratio: 16 / 10; max-height: 78svh; width: 100%; }
.model model-viewer, .model__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.model__poster { object-fit: contain; transition: opacity 0.5s ease; }
.model.is-live .model__poster { opacity: 0; pointer-events: none; }
.model model-viewer { --poster-color: transparent; background: transparent; outline: none; }
.model__hint { margin-top: 0.85rem; font-size: 0.9375rem; color: var(--ink-3); }
@media (max-width: 767px) { .model { aspect-ratio: 1 / 1; } }

.next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: end; }
.next__link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; font-family: var(--display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.next__link span { font-family: var(--font); transition: transform 0.3s var(--ease-out); }
.next__link:hover span { transform: translateX(8px); }
.next__all { margin-top: 1.5rem; }
@media (max-width: 767px) { .next { grid-template-columns: 1fr; } }

/* ---------- Simple pages (about / privacy / 404 / thanks) ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem); }
.page-head h1 { font-family: var(--display); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.message { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.message h1 { font-family: var(--display); font-size: clamp(3rem, 10vw, 8rem); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Footer / contact ---------- */
.contact { padding-block: var(--section) 3rem; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 1fr) minmax(0, 4fr); gap: 2rem; }
.contact__grid > :first-child { grid-column: 1; }
.contact__grid > :last-child { grid-column: 3; }
.contact__intro { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; max-width: 34ch; }
.contact__links { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; padding-top: 0.25rem; }
.contact__links .eyebrow { margin-bottom: 0.5rem; }
.contact__links a { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.contact__links a:hover { opacity: 0.6; }
.contact__links .small { font-size: 1rem; font-weight: 400; color: var(--ink-2); letter-spacing: -0.01em; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; gap: 3.5rem; } .contact__grid > :last-child { grid-column: 1; } }

/* Belfast clock (contact section) */
.clock { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.25rem; }
.clock svg { width: 6.25rem; height: 6.25rem; flex: none; overflow: visible; }
.clock circle.face { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.clock line { stroke: var(--ink); stroke-linecap: round; }
.clock .h { stroke-width: 1.8; } .clock .m { stroke-width: 1.4; }
.clock .s { stroke: var(--clock-second); stroke-width: 1.1; }
.clock .pin { fill: var(--ink); }
.clock p { font-size: 0.9375rem; line-height: 1.4; color: var(--ink-3); }
.clock p strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.form { margin-top: 2.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 0.875rem; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; letter-spacing: -0.01em; color: var(--ink); background: var(--field-bg); width: 100%;
  border: 1px solid var(--field-border); border-radius: 0.5rem; padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus-ring); }
.form__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form__actions .btn[disabled] { opacity: 0.5; cursor: progress; }
.form__status { font-size: 0.95rem; }
.form__status.is-error { color: var(--error); }
.form.is-sent .form__grid, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { font-size: 1.25rem; }
@media (max-width: 479px) { .form__grid { grid-template-columns: 1fr; } }

.foot { border-top: 1px solid var(--line); padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; color: var(--ink-3); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.foot__links a, .foot__links button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: inherit; letter-spacing: inherit; }
.foot__links a:hover, .foot__links button:hover { color: var(--ink); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 300; left: max(1rem, env(safe-area-inset-left, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(26rem, calc(100% - 2rem)); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: 0 18px 50px var(--shadow); padding: 1.25rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 1rem;
  font-size: 0.9375rem; line-height: 1.45; letter-spacing: -0.01em;
  transform: translateY(1rem); opacity: 0; transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.consent.is-shown { transform: none; opacity: 1; }
.consent p { color: var(--ink-2); }
.consent strong { color: var(--ink); font-weight: 500; }
.consent a { box-shadow: inset 0 -1px 0 0 currentColor; }
.consent__actions { display: flex; gap: 0.6rem; }
.consent__actions .btn { padding: 0.75rem 1.1rem; font-size: 0.8125rem; flex: 1; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .js [data-reveal] { filter: none; transform: none; transition: opacity 0.3s linear; }
  .marquee__track { animation: none; }
  .nav__logo:hover img { transform: none; }
}
