@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");
/* Survtech Construction — survtech.ca
   Layout concept: cinematic full-bleed photography framed by a quiet 12-column grid;
   ink and bone bands alternate like material samples on a site board. */
:root {
  --ink: #0b1530;      /* deep brand navy */
  --char: #111e42;
  --graphite: #1b316c;  /* SurvTech navy */
  --bone: #eceef2;
  --paper: #f7f7f5;
  --white: #ffffff;
  --stone: #a9b1c6;      /* muted text on ink */
  --stone-d: #545d72;    /* muted text on paper/bone */
  --oak: #ff6f00;        /* SurvTech orange, accent on navy */
  --oak-d: #b34a00;      /* orange darkened for text on light */
  --line-d: rgba(255, 255, 255, 0.14);
  --line-l: rgba(11, 21, 48, 0.14);

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xxl: clamp(3.4rem, 9.2vw, 9.5rem);
  --fs-xl: clamp(2.8rem, 6vw, 6rem);
  --fs-l: clamp(2.1rem, 4vw, 3.75rem);
  --fs-m: clamp(1.6rem, 2.4vw, 2.35rem);
  --fs-body: 1.0625rem;
  --fs-s: 0.9rem;
  --fs-label: 0.74rem;

  --maxw: 1360px;
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
::selection { background: var(--oak); color: var(--ink); }

.wrap { max-width: calc(var(--maxw) + 40px); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 16px; }

/* Type */
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; line-height: 0.98; }
.display em { font-style: italic; }
.label {
  font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.16em; line-height: 1.5; font-weight: 400;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 38ch; }
p { margin: 0; max-width: 65ch; }
.muted { color: var(--stone-d); }
.dark .muted, .on-dark .muted { color: var(--stone); }

/* Bands */
.band { padding-block: clamp(80px, 11vw, 168px); }
.band.tight { padding-block: clamp(56px, 7vw, 104px); }
.dark { background: var(--ink); color: var(--white); }
.char { background: var(--char); color: var(--white); }
.bone { background: var(--bone); color: var(--ink); }
.paper { background: var(--paper); color: var(--ink); }

/* Header */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  color: var(--white); transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid { background: rgba(11, 21, 48, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-d); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 6px; }
.brand b { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.32em; }
.brand span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.42em; color: var(--stone); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a { text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em; position: relative; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 26px;
  font: 500 0.92rem/1 var(--sans); letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.solid:hover { background: var(--oak); border-color: var(--oak); }
.btn.ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.paper .btn.solid, .bone .btn.solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.paper .btn.solid:hover, .bone .btn.solid:hover { background: var(--graphite); }
.paper .btn.ghost:hover, .bone .btn.ghost:hover { background: var(--ink); color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 20px; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px auto; transition: transform 0.35s var(--ease); }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; top: calc(84px + env(safe-area-inset-top, 0px)); background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px;
    padding: 32px var(--gut-r) 40px var(--gut-l); visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav a { font-family: var(--display); font-size: 2.6rem; line-height: 1.15; }
  .nav .btn { font-family: var(--sans); font-size: 1rem; margin-top: 24px; min-height: 52px; }
  .menu-open .nav { visibility: visible; opacity: 1; }
  .menu-open .site-header { background: var(--ink); }
}

/* Home hero */
.hero { position: relative; min-height: clamp(560px, 84svh, 920px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,48,0.55) 0%, rgba(11,21,48,0.15) 35%, rgba(11,21,48,0.82) 100%); }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); padding-top: 140px; display: grid; gap: 36px; }
.hero h1 { font-size: var(--fs-xxl); max-width: 11ch; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.hero .meta .lede { color: rgba(255,255,255,0.86); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: 0.12s; }
.line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.fade-up { animation: fadeup 1s 0.35s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scroll-cue { display: flex; align-items: center; gap: 12px; color: var(--stone); }
.scroll-cue i { display: block; width: 1px; height: 44px; background: var(--line-d); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--white); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 44px; } }

/* Sub-page hero */
.page-hero { background: var(--ink); color: var(--white); padding-top: calc(84px + clamp(72px, 10vw, 150px)); padding-bottom: clamp(56px, 7vw, 100px); }
.page-hero .wrap { display: grid; gap: 28px; }
.page-hero h1 { font-size: var(--fs-xl); max-width: 14ch; }
.page-hero .row { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; align-items: flex-end; }
.page-hero .lede { color: rgba(255,255,255,0.82); }
.crumbs { display: flex; gap: 10px; color: var(--stone); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* Section headers */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2 { font-size: var(--fs-l); }
.sec-head .label { padding-top: 0.9em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: minmax(0, 1fr); } .sec-head .label { padding-top: 0; } }

/* Statement */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px 64px; }
.statement .big { font-family: var(--display); font-size: var(--fs-m); line-height: 1.22; max-width: 30ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line-l); }
.facts div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line-l); }
.facts dt { margin-bottom: 6px; color: var(--stone-d); }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; }
@media (max-width: 760px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* Feature image */
.feature { position: relative; display: block; color: var(--white); text-decoration: none; overflow: hidden; background: var(--ink); }
.feature img { width: 100%; height: clamp(420px, 70vw, 860px); object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover img { transform: scale(1.035); }
.feature .cap { position: absolute; left: 0; right: 0; bottom: 0; padding-block: clamp(28px, 4vw, 56px); background: linear-gradient(0deg, rgba(11,21,48,0.85), rgba(11,21,48,0)); }
.feature .cap .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-end; }
.feature h3 { font-family: var(--display); font-size: var(--fs-l); line-height: 1; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.mosaic figure { margin: 0; overflow: hidden; background: var(--graphite); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic .a { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.mosaic .b { grid-column: 8 / span 5; aspect-ratio: 4 / 5; align-self: end; }
.mosaic .c { grid-column: 2 / span 5; aspect-ratio: 1 / 1; }
.mosaic .d { grid-column: 7 / span 6; aspect-ratio: 3 / 2; align-self: center; }
@media (max-width: 760px) { .mosaic figure { grid-column: 1 / -1 !important; aspect-ratio: 3 / 2 !important; } }
figcaption { padding-top: 10px; }

/* Services index */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.paper .svc-list, .bone .svc-list { border-top-color: var(--line-l); }
.svc-list li { border-bottom: 1px solid var(--line-d); }
.paper .svc-list li, .bone .svc-list li { border-bottom-color: var(--line-l); }
.svc-list a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 48px; gap: 16px 40px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; text-decoration: none; transition: padding 0.5s var(--ease), color 0.4s; }
.svc-list h3 { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1; }
.svc-list .arr { font-size: 1.5rem; justify-self: end; transition: transform 0.45s var(--ease); }
.svc-list a:hover { padding-left: 18px; }
.svc-list a:hover .arr { transform: translateX(6px); color: var(--oak); }
@media (max-width: 760px) { .svc-list a { grid-template-columns: minmax(0, 1fr) 32px; } .svc-list a p { grid-column: 1 / -1; grid-row: 2; } }

/* Split */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); align-items: center; }
.split .media { grid-column: 1 / span 7; overflow: hidden; }
.split .media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .text { grid-column: 9 / span 4; display: grid; gap: 24px; }
.split.rev .media { grid-column: 6 / span 7; grid-row: 1; }
.split.rev .text { grid-column: 1 / span 4; grid-row: 1; }
.split h2 { font-size: var(--fs-l); }
@media (max-width: 860px) { .split .media, .split .text, .split.rev .media, .split.rev .text { grid-column: 1 / -1; grid-row: auto; } .split .media img { aspect-ratio: 4 / 3; } }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.paper .steps, .bone .steps { border-top-color: var(--line-l); }
.steps li { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line-d); display: grid; gap: 14px; align-content: start; }
.paper .steps li, .bone .steps li { border-bottom-color: var(--line-l); }
.steps .n { font-family: var(--mono); font-size: 0.8rem; color: var(--oak); letter-spacing: 0.1em; }
.paper .steps .n, .bone .steps .n { color: var(--oak-d); }
.steps h3 { font-family: var(--display); font-size: 1.9rem; line-height: 1.05; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { padding-right: 0; } }

/* Timeline (process page) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr); gap: 20px 48px; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line-l); }
.timeline .n { font-family: var(--display); font-size: clamp(4rem, 9vw, 8rem); line-height: 0.8; color: var(--oak-d); }
.timeline h2 { font-family: var(--display); font-size: var(--fs-m); line-height: 1.05; }
.timeline ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.timeline ul li { display: block; padding: 0 0 10px; border-top: 0; border-bottom: 1px solid var(--line-l); }
@media (max-width: 860px) { .timeline li { grid-template-columns: minmax(0, 1fr); } }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-left: 1px solid var(--line-l); border-top: 1px solid var(--line-l); }
.clients li { border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); padding: 28px 22px; font-family: var(--display); font-size: 1.45rem; line-height: 1.1; min-height: 108px; display: flex; align-items: flex-end; transition: background 0.4s; }
.clients li:hover { background: var(--white); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding-block: clamp(96px, 13vw, 200px); }
.cta-band .wrap { display: grid; gap: 40px; }
.cta-band h2 { font-family: var(--display); font-size: var(--fs-xl); line-height: 0.98; max-width: 13ch; }
.cta-band .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-d); padding-top: 72px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { margin-bottom: 18px; color: var(--stone); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--oak); }
.foot-grid address { font-style: normal; display: grid; gap: 8px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-d); color: var(--stone); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Values / cards in a grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-l); }
.grid-3 > * { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line-l); display: grid; gap: 12px; align-content: start; }
.dark .grid-3, .dark .grid-3 > * { border-color: var(--line-d); }
.grid-3 h3 { font-family: var(--display); font-size: 1.85rem; line-height: 1.05; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-3 > * { padding-right: 0; } }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { background: var(--char); padding: 32px; display: grid; gap: 56px; min-height: 280px; align-content: space-between; }
.person .mono { font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--oak); }
.person h3 { font-family: var(--display); font-size: 1.9rem; line-height: 1.05; }
@media (max-width: 900px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* Service detail */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); padding-block: clamp(72px, 9vw, 140px); border-top: 1px solid var(--line-l); }
.svc:first-of-type { border-top: 0; }
.svc .intro { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.svc .intro h2 { font-family: var(--display); font-size: var(--fs-l); line-height: 1; }
.svc .detail { grid-column: 7 / span 6; display: grid; gap: 32px; align-content: start; }
.svc .detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc ul.inc { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.svc ul.inc li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line-l); }
.svc .for { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-l); }
.svc .panel { background: var(--bone); padding: clamp(28px, 4vw, 48px); font-family: var(--display); font-size: var(--fs-m); line-height: 1.2; }
@media (max-width: 860px) { .svc .intro, .svc .detail { grid-column: 1 / -1; } .svc ul.inc { columns: 1; } }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid var(--line-l); min-height: 44px; padding: 0 16px; cursor: pointer; transition: background 0.3s, color 0.3s; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.index { width: 100%; border-collapse: collapse; }
.index-wrap { overflow-x: auto; }
.index th { text-align: left; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--stone-d); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.index td { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line-l); vertical-align: baseline; }
.index td:first-child { font-family: var(--display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; }
.index tr[hidden] { display: none; }
.index a { text-decoration: none; }
.index a:hover { color: var(--oak-d); }
.status { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--oak-d); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 700px) { .index .hide-sm { display: none; } }

/* Case study */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.specs div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line-d); }
.specs dt { color: var(--stone); margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gallery button { padding: 0; border: 0; background: var(--graphite); cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .w2 { grid-column: span 2; aspect-ratio: 4 / 5; }
.gallery .w3 { grid-column: span 3; aspect-ratio: 3 / 2; }
.gallery .w4 { grid-column: span 4; aspect-ratio: 3 / 2; }
.gallery .w6 { grid-column: span 6; aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .gallery > * { grid-column: 1 / -1 !important; aspect-ratio: 3 / 2 !important; } }
.lightbox { border: 0; padding: 0; background: rgba(11,21,48,0.96); width: 100vw; height: 100dvh; max-width: none; max-height: none; color: var(--white); }
.lightbox::backdrop { background: rgba(11,21,48,0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 84dvh; object-fit: contain; }
.lightbox .lb-bar { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: var(--gut-l); right: var(--gut-r); display: flex; justify-content: space-between; align-items: center; }
.lightbox button { background: none; border: 1px solid var(--line-d); color: var(--white); min-width: 48px; min-height: 48px; cursor: pointer; font-size: 1.1rem; }
.lightbox .lb-nav { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px clamp(32px, 6vw, 112px); }
.contact-info { display: grid; gap: 36px; align-content: start; }
.contact-info dl { margin: 0; display: grid; gap: 28px; }
.contact-info dd { margin: 6px 0 0; font-size: 1.15rem; line-height: 1.5; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line-l); }
.contact-info dd a:hover { border-color: var(--ink); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-d); }
.field input, .field select, .field textarea {
  font: 400 1.05rem/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(11,21,48,0.35);
  padding: 10px 0 12px; border-radius: 0; min-height: 48px; width: 100%; transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field .err { color: #9a2b1e; font-size: 0.85rem; min-height: 1.2em; }
.form .submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.form-done { grid-column: 1 / -1; background: var(--ink); color: var(--white); padding: 36px; display: grid; gap: 12px; }
.form-done h3 { font-family: var(--display); font-size: 2.2rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* "View" cursor over projects */
.cursor-view { position: fixed; left: 0; top: 0; z-index: 70; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; transform: scale(0); transition: transform 0.35s var(--ease); }
.cursor-view.on { transform: scale(1); }
@media (hover: none) { .cursor-view { display: none; } }

/* Scroll-driven reveals: resting state is fully visible; only browsers with view timelines animate. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .reveal-img img { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .parallax img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(14% 0 0 0); transform: scale(1.12); } to { clip-path: inset(0); transform: scale(1); } }
@keyframes drift { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.foot-grid > *, .contact-info dd { min-width: 0; overflow-wrap: anywhere; }

/* Cinematic hero slideshow: slow cross-fades with a gentle push-in on each frame */
.slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2.8s var(--ease); }
.slides .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 11s linear; animation: none; }
.slides .slide.active { opacity: 1; }
.slides .slide.active img { transform: scale(1.0); }
.slides .slide.leaving { opacity: 0; }
.slides .slide.leaving img { transform: scale(0.98); }
.slides::after { z-index: 1; }
.slide-meta { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: rgba(255,255,255,0.7); pointer-events: none; }
.slide-cap { transition: opacity 1.2s var(--ease); }
.slide-bars { display: flex; gap: 6px; }
.slide-bars i { display: block; width: 36px; height: 1px; background: rgba(255,255,255,0.28); position: relative; overflow: hidden; }
.slide-bars i.on::after { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: left; animation: bar 7s linear both; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .hero-inner { z-index: 2; padding-bottom: clamp(72px, 9vw, 120px); }

/* Slower, calmer motion across the site */
.line > span { animation-duration: 1.9s; animation-delay: 0.5s; }
.line:nth-child(2) > span { animation-delay: 0.85s; }
.line:nth-child(3) > span { animation-delay: 1.2s; }
.fade-up { animation-duration: 1.8s; animation-delay: 1.4s; }
.hero .label.fade-up { animation-delay: 0.2s; }
.feature img, .mosaic img, .gallery img { transition-duration: 2.4s; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation-range: entry 0% cover 45%; }
    .reveal-img img { animation-range: entry 0% cover 60%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* Client logo wall */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.logos li { display: grid; place-items: center; padding: clamp(18px, 2.4vw, 32px); aspect-ratio: 3 / 2; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); background: var(--paper); transition: background 0.6s var(--ease); }
.logos img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: 0.78; transition: filter 0.8s var(--ease), opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.logos li:hover { background: var(--white); }
.logos li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (hover: none) { .logos img { filter: none; opacity: 1; } }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos img { max-height: 52px; } }
@media (max-width: 400px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Brand: logo lockup and orange primary actions */
.brand img { display: block; height: 40px; width: auto; }
.site-footer .brand img { height: 52px; }
.btn.solid { background: var(--oak); color: var(--ink); border-color: var(--oak); }
.btn.solid:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.paper .btn.solid, .bone .btn.solid { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.paper .btn.solid:hover, .bone .btn.solid:hover { background: var(--oak-d); border-color: var(--oak-d); }
.nav .btn.ghost:hover { background: var(--oak); border-color: var(--oak); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--oak-d); box-shadow: 0 1px 0 0 var(--oak-d); }
.slide-bars i.on::after { background: var(--oak); }
@media (max-width: 920px) { .brand img { height: 34px; } }
.brand { align-items: flex-start; }
.brand img { align-self: flex-start; flex: none; max-width: 100%; height: 44px; width: auto; object-fit: contain; }
.site-footer .brand img { height: 56px; }
.hero .label.fade-up { color: var(--white) !important; text-shadow: 0 1px 12px rgba(11, 21, 48, 0.6); }
.gallery .p3 { grid-column: span 3; aspect-ratio: 3 / 4; }
.svc .intro .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Typography refinement: calmer display sizes, larger readable body ---------- */
:root {
  --fs-xxl: clamp(3rem, 7.4vw, 7.75rem);
  --fs-xl: clamp(2.6rem, 5.2vw, 5.25rem);
  --fs-l: clamp(2rem, 3.5vw, 3.4rem);
  --fs-m: clamp(1.45rem, 2.1vw, 2.05rem);
  --fs-body: 1.125rem;      /* 18px */
  --fs-s: 0.95rem;
  --fs-label: 0.8rem;
}
body { line-height: 1.7; letter-spacing: 0.003em; font-feature-settings: "ss01", "cv11"; }
p { max-width: 62ch; }
.display { line-height: 1.02; letter-spacing: -0.012em; }
.hero h1 { line-height: 0.98; }
.label { letter-spacing: 0.13em; line-height: 1.6; font-weight: 500; }
.lede { font-size: clamp(1.15rem, 1.45vw, 1.35rem); line-height: 1.6; max-width: 40ch; }
.statement .big { font-size: var(--fs-m); line-height: 1.32; max-width: 32ch; }
.nav a { font-size: 1rem; letter-spacing: 0.01em; }
.btn { font-size: 0.98rem; letter-spacing: 0.02em; min-height: 52px; padding: 0 28px; }
.svc-list h3 { font-size: clamp(1.7rem, 2.9vw, 2.7rem); line-height: 1.05; }
.svc-list p { font-size: 1.05rem; line-height: 1.65; }
.steps h3, .grid-3 h3, .person h3 { font-size: clamp(1.55rem, 2vw, 1.85rem); line-height: 1.12; }
.steps p, .grid-3 p { font-size: 1.05rem; line-height: 1.65; }
.timeline h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.timeline ul li { font-size: 1.02rem; }
.svc .intro h2 { line-height: 1.04; }
.svc ul.inc li, .facts dt, .specs dd { font-size: 1.02rem; }
.facts dd { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.index td { font-size: 1.02rem; }
.index td:first-child { font-size: clamp(1.35rem, 2vw, 1.85rem); }
.field label { font-size: 0.8rem; }
.field input, .field select, .field textarea { font-size: 1.1rem; }
.foot-grid, .foot-grid a, .foot-grid address { font-size: 1.02rem; line-height: 1.7; }
.foot-base { font-size: 0.78rem; }
.muted { color: var(--stone-d); }
.dark .muted, .on-dark .muted, .char .muted, .site-footer .muted, .cta-band .muted, .page-hero .muted { color: var(--stone); }
@media (max-width: 640px) {
  :root { --fs-body: 1.0625rem; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .page-hero h1, .cta-band h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .label { font-size: 0.76rem; letter-spacing: 0.11em; }
}

/* Logos: full colour, always */
.logos img { filter: none; opacity: 1; }
.logos li:hover img { transform: scale(1.05); }
.bone .logos li { background: var(--bone); }
.bone .logos img { mix-blend-mode: multiply; }

/* Trusted-by strip under the hero */
.trusted { background: var(--white); border-bottom: 1px solid var(--line-l); padding-block: 28px 32px; overflow: hidden; }
.trusted-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; color: var(--stone-d); }
.trusted-head h2 { font-size: var(--fs-label); margin: 0; }
.trusted-head a { text-decoration: none; color: var(--oak-d); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: marquee 70s linear infinite; }
.marquee li { flex: none; height: 64px; display: grid; place-items: center; }
.marquee img { max-height: 60px; max-width: 170px; width: auto; height: auto; mix-blend-mode: multiply; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(20px, 2.5vw, 36px))); } }
@media (max-width: 640px) { .marquee li { height: 48px; } .marquee img { max-height: 44px; max-width: 120px; } }
@media (prefers-reduced-motion: reduce) { .marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee ul li:nth-child(n+25) { display: none; } }
.client-logo { display: block; height: 64px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
@media (min-width: 1001px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Intro loader (first visit per session; pure CSS so it always clears) ---------- */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: grid; place-items: center; align-content: center; gap: 22px; position: fixed; inset: 0; z-index: 200;
  background: var(--ink); pointer-events: none;
  animation: introOut 0.9s 1.35s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}
.intro-mark { width: 72px; height: 72px; clip-path: inset(100% 0 0 0); animation: markIn 0.8s 0.1s var(--ease) forwards; }
.intro-mark img { width: 100%; height: 100%; object-fit: contain; }
.intro-word { height: 34px; width: auto; opacity: 0; transform: translateY(8px); animation: wordIn 0.7s 0.55s var(--ease) forwards; }
.intro-line { display: block; width: 160px; height: 1px; background: var(--oak); transform: scaleX(0); animation: lineIn 1.1s 0.2s var(--ease) forwards; }
@keyframes markIn { to { clip-path: inset(0); } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }
html.intro .hero .line > span { animation-delay: 1.75s; }
html.intro .hero .line:nth-child(2) > span { animation-delay: 2.05s; }
html.intro .hero .fade-up { animation-delay: 2.3s; }
html.intro .hero .label.fade-up { animation-delay: 1.6s; }
html.intro .hero-media img { animation-delay: 1.3s; }

/* ---------- Map + review cards (contact) ---------- */
.map-card { display: grid; text-decoration: none; color: var(--white); background: var(--ink); overflow: hidden; }
.map-grid { position: relative; height: 180px; background-color: var(--char);
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px; }
.road { position: absolute; background: rgba(255,255,255,.16); }
.road.r1 { left: 0; right: 0; top: 58%; height: 6px; }
.road.r2 { top: 0; bottom: 0; left: 46%; width: 6px; transform: skewX(-14deg); }
.road.r3 { left: 0; right: 0; top: 22%; height: 3px; transform: rotate(-6deg); }
.pin { position: absolute; left: 46%; top: 58%; width: 54px; height: 54px; margin: -54px 0 0 -24px; display: grid; place-items: center; background: var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.pin img { width: 30px; height: 30px; transform: rotate(45deg); }
.pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--oak); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.map-meta { display: grid; gap: 4px; padding: 20px 22px 22px; }
.map-meta .label { color: var(--stone); }
.map-meta strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.map-cta { color: var(--oak); font-size: .95rem; margin-top: 6px; transition: transform .4s var(--ease); }
.map-card:hover .map-cta { transform: translateX(4px); }
.review-card { border-top: 1px solid var(--line-l); padding-top: 22px; display: grid; gap: 12px; }
.review-card .btn { min-height: 46px; }

/* ================= One typeface throughout: Inter Tight ================= */
:root {
  --display: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-xxl: clamp(2.6rem, 6.2vw, 6.4rem);
  --fs-xl: clamp(2.2rem, 4.4vw, 4.4rem);
  --fs-l: clamp(1.8rem, 3vw, 2.9rem);
  --fs-m: clamp(1.3rem, 1.8vw, 1.7rem);
}
.display, .hero h1, .page-hero h1, .cta-band h2, .feature h3, .svc-list h3, .steps h3, .grid-3 h3,
.timeline h2, .person h3, .svc .intro h2, .index td:first-child, .form-done h3, .map-meta strong,
.facts dd, .specs dd, .clients li, .svc .panel, .sec-head h2 {
  font-weight: 600; letter-spacing: -0.028em; line-height: 1.06;
}
.hero h1 { line-height: 1.0; letter-spacing: -0.035em; }
.display em, .hero h1 em, h1 em, h2 em { font-style: normal; font-weight: 300; }
.hero h1 em, .dark .display em, .page-hero h1 em, .cta-band h2 em { color: var(--oak); font-weight: 400; }
.statement .big { font-weight: 400; letter-spacing: -0.015em; line-height: 1.38; }
.timeline .n, .person .mono { font-weight: 300; letter-spacing: -0.04em; }
.facts dd, .specs dd { font-weight: 500; letter-spacing: -0.01em; }
.label, .steps .n, .chip, .filters button, .status, .field label, .index th, .cursor-view, .foot-base {
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.12em;
}
@media (max-width: 920px) { .nav a { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; } }

/* ===================================================================
   MOBILE LAYOUT (phones and small tablets, up to 760px wide)
   A dedicated layout: no scroll-triggered hiding, calmer type, larger
   tap targets, nothing layered over text.
   =================================================================== */
@media (max-width: 760px) {
  :root {
    --gut-l: max(20px, env(safe-area-inset-left, 0px));
    --gut-r: max(20px, env(safe-area-inset-right, 0px));
    --fs-xxl: clamp(2.35rem, 10.5vw, 3rem);
    --fs-xl: clamp(2rem, 9vw, 2.6rem);
    --fs-l: clamp(1.6rem, 7vw, 2rem);
    --fs-m: 1.25rem;
    --fs-body: 1.0625rem;
  }
  body { line-height: 1.65; }
  p { max-width: none; }

  /* Everything is visible immediately: no scroll-reveal, parallax or image unveil */
  .reveal, .reveal-img img, .parallax img { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .feature:hover img, .mosaic figure:hover img, .gallery button:hover img { transform: none; }
  .cursor-view { display: none; }

  /* Spacing rhythm */
  .band { padding-block: 64px; }
  .band.tight { padding-block: 48px; }
  .sec-head { margin-bottom: 32px; gap: 10px; }
  .sec-head h2 { font-size: var(--fs-l); }

  /* Header */
  .site-header .wrap { height: 68px; }
  .brand img { height: 32px; }
  .nav { top: calc(68px + env(safe-area-inset-top, 0px)); padding-top: 24px; gap: 2px; overflow-y: auto; }
  .nav a { font-size: 1.75rem; padding-block: 10px; }
  .nav a::after { display: none; }
  .nav .btn { font-size: 1rem; width: 100%; justify-content: center; }

  /* Home hero: text sits on a solid dark band below the photo, never on top of busy imagery */
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; height: 56vw; min-height: 230px; max-height: 360px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(11,21,48,.35), rgba(11,21,48,0) 30%, rgba(11,21,48,.9) 100%); }
  .slides .slide img { transform: none !important; transition: none; }
  .slide-meta { display: none; }
  .hero-inner { padding-top: 24px; padding-bottom: 44px; gap: 20px; background: var(--ink); }
  .hero h1 { font-size: var(--fs-xxl); max-width: none; }
  .hero .meta { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero .meta .lede { color: rgba(255,255,255,.85); }
  .hero .label.fade-up { text-shadow: none; }
  .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
  /* Case-study heroes use the same stacked pattern */
  .hero .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .crumbs { margin-bottom: 4px; }

  /* Sub-page heroes */
  .page-hero { padding-top: calc(68px + 44px); padding-bottom: 44px; }
  .page-hero h1 { font-size: var(--fs-xl); max-width: none; }
  .page-hero .row { gap: 16px; }
  .page-hero .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .page-hero .filters .btn { min-height: 44px; padding: 0 12px; font-size: .9rem; justify-content: center; text-align: center; }

  /* Trusted-by strip */
  .trusted { padding-block: 20px 22px; }
  .trusted-head { margin-bottom: 14px; }

  /* Statement + facts */
  .statement .big { font-size: 1.25rem; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; }
  .facts dd { font-size: 1.1rem; text-align: right; }

  /* Featured project banners: caption below the photo */
  .feature { display: block; }
  .feature img { height: 62vw; max-height: 380px; }
  .feature .cap { position: static; background: var(--ink); padding-block: 22px 26px; }
  .feature .cap .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .feature h3, .feature h2.display { font-size: 1.7rem !important; }
  .feature .btn { width: 100%; justify-content: center; }

  /* Image mosaics become a clean single column */
  .mosaic { gap: 12px; }
  .mosaic figure { aspect-ratio: 4 / 3 !important; }

  /* Services list */
  .svc-list a { padding: 22px 0; gap: 8px 16px; }
  .svc-list a:hover { padding-left: 0; }
  .svc-list h3 { font-size: 1.4rem; }
  .svc-list p { font-size: 1rem; }

  /* Service detail sections */
  .svc { padding-block: 48px; gap: 24px; }
  .svc .intro h2 { font-size: 1.8rem; }
  .svc .intro .lede { font-size: 1.05rem; }
  .svc .detail { gap: 22px; }
  .svc .detail img { aspect-ratio: 4 / 3; }
  .svc .panel { font-size: 1.2rem; padding: 24px; }
  .svc .intro .actions .btn { width: 100%; justify-content: center; }

  /* Split blocks */
  .split { gap: 24px; }
  .split .media img { aspect-ratio: 4 / 3; }

  /* Steps, values, highlights */
  .steps, .grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
  .steps li, .grid-3 > * { padding: 22px 0; gap: 8px; }
  .steps h3, .grid-3 h3 { font-size: 1.3rem; }

  /* Process timeline */
  .timeline li { gap: 12px; padding: 32px 0; }
  .timeline .n { font-size: 3.2rem; }
  .timeline h2 { font-size: 1.5rem; }

  /* Leadership */
  .person { min-height: 0; gap: 28px; padding: 24px; }
  .person .mono { font-size: 3rem; }

  /* Logos: 3 per row, compact */
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .logos li { padding: 12px; aspect-ratio: 1 / 1; }
  .logos img { max-height: 44px; }

  /* Projects index: readable stacked cards instead of a wide table */
  .filters { gap: 6px; }
  .filters button { min-height: 40px; padding: 0 12px; font-size: .7rem; }
  .index thead { display: none; }
  .index, .index tbody, .index tr { display: block; width: 100%; }
  .index tr { padding: 18px 0; border-bottom: 1px solid var(--line-l); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
  .index tr[hidden] { display: none; }
  .index td { padding: 0; border: 0; }
  .index td:first-child { grid-column: 1 / -1; font-size: 1.3rem; }
  .index .hide-sm { display: block; grid-column: 1 / -1; font-size: .95rem; }
  .index td.label { font-size: .72rem; }

  /* Case-study gallery */
  .gallery { gap: 10px; }
  .gallery > * { aspect-ratio: 4 / 3 !important; }
  .gallery .p3 { aspect-ratio: 3 / 4 !important; }
  .specs dd { font-size: .98rem; }

  /* Contact */
  .contact-grid { gap: 40px; }
  .contact-info dd { font-size: 1.05rem; }
  .form { gap: 22px; }
  .form .submit { flex-direction: column; align-items: stretch; }
  .form .submit .btn { width: 100%; justify-content: center; }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */
  .map-grid { height: 150px; }

  /* CTA band */
  .cta-band { padding-block: 64px; }
  .cta-band h2 { font-size: var(--fs-xl); max-width: none; }
  .cta-band .row { gap: 24px; }
  .cta-band .actions { width: 100%; }

  /* Footer */
  .site-footer { padding-top: 48px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 28px; }
  .foot-grid a, .foot-grid li { line-height: 1.6; }
  .foot-grid ul li a { display: inline-block; padding-block: 4px; }
  .foot-base { flex-direction: column; margin-top: 40px; gap: 10px; }
  .site-footer .brand img { height: 44px; }

  /* Intro loader: shorter on phones */
  html.intro .intro-screen { animation-delay: .9s; animation-duration: .7s; }
  html.intro .hero .line > span, html.intro .hero .fade-up, html.intro .hero .label.fade-up { animation-delay: 1.2s; }
}
@media (max-width: 380px) {
  :root { --fs-xxl: 2.2rem; --fs-xl: 1.9rem; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .page-hero .filters { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Phone fixes v2: full intro on phones, stacked hero up to 900px ===== */
@media (max-width: 760px) {
  html.intro .intro-screen { animation-delay: 1.6s; animation-duration: .8s; }
  html.intro .hero .line > span, html.intro .hero .fade-up, html.intro .hero .label.fade-up { animation-delay: 2s; }
  .intro-word { height: 28px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0 !important; display: block !important; }
  .hero-media { position: relative !important; inset: auto !important; height: 56vw; min-height: 230px; max-height: 420px; }
  .slide-meta { display: none !important; }
  .hero-inner { position: relative; padding-top: 24px !important; padding-bottom: 44px; background: var(--ink); }
  .hero h1 { max-width: none; }
  .hero .label.fade-up { text-shadow: none; }
}

/* ===== Longer intro (about 3 seconds on screen, all devices) ===== */
html.intro .intro-screen { animation: introOut 1s 3s cubic-bezier(0.7, 0, 0.2, 1) forwards !important; }
.intro-mark { animation: markIn 1.1s 0.2s var(--ease) forwards; }
.intro-word { animation: wordIn 1s 0.9s var(--ease) forwards; }
.intro-line { animation: lineIn 1.8s 0.4s var(--ease) forwards; }
html.intro .hero .line > span, html.intro .hero .fade-up, html.intro .hero .label.fade-up { animation-delay: 3.5s !important; }
html.intro .hero-media img { animation-delay: 3s; }

/* ===== Changes 11 Nov: bigger logo, decluttered intro statement ===== */
.brand img { height: 52px; }
.site-footer .brand img { height: 60px; }
.statement.solo { grid-template-columns: minmax(0, 1fr); }
.statement.solo .big { max-width: 62ch; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.5; }
.statement.solo .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 920px) { .brand img { height: 44px; } .statement.solo .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .brand img { height: 40px; } .statement.solo .big { font-size: 1.2rem; line-height: 1.55; } .statement.solo .facts { grid-template-columns: minmax(0, 1fr); } }
/* 24 client logos: 6 per row on desktop */
@media (min-width: 1001px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ===== Bigger, clearer client logos ===== */
.logos { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.logos li { aspect-ratio: 16 / 9; padding: clamp(14px, 1.8vw, 26px); background: var(--white); }
.bone .logos li { background: var(--white); }
.logos img { max-height: 104px; max-width: 86%; mix-blend-mode: normal !important; image-rendering: auto; }
.logos li:hover img { transform: scale(1.06); }
.marquee li { height: 84px; }
.marquee img { max-height: 76px; max-width: 200px; }
.client-logo { height: 80px; mix-blend-mode: normal; }
@media (max-width: 760px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .logos li { aspect-ratio: 3 / 2; padding: 14px; }
  .logos img { max-height: 70px; max-width: 88%; }
  .marquee li { height: 60px; }
  .marquee img { max-height: 54px; max-width: 140px; }
}
.logos img, .marquee img { filter: brightness(1.05) contrast(1.12) saturate(1.05) !important; }
/* Clinic photo in the homepage slideshow: frame the feature wall and reception desk */
.slides .slide img[src*="ac-reception"] { object-position: 50% 46% !important; }
/* Booster Juice banner: keep the header sign in frame */
.hero-media img[src*="bj-counter"] { object-position: 50% 12%; }
/* 25 client logos: 5 per row on desktop */
@media (min-width: 1001px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }

/* ===== Thank-you page ===== */
.ty-hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.ty-media { position: absolute; inset: 0; }
.ty-media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: scale(1.06); animation: settle 3s var(--ease) both; }
.ty-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,48,.55), rgba(11,21,48,.92)); }
.ty-inner { position: relative; display: grid; gap: 26px; justify-items: start; padding-top: calc(84px + clamp(64px, 9vw, 130px)); padding-bottom: clamp(72px, 10vw, 140px); }
.ty-mark { color: var(--oak); width: 72px; height: 72px; animation: fadeup 1s .2s var(--ease) both; }
.ty-mark svg { width: 100%; height: 100%; }
.ty-tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: tick 1s .7s var(--ease) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.ty-eyebrow { color: var(--oak); }
.ty-hero h1 { font-size: var(--fs-xl); max-width: 18ch; }
.ty-lede { color: rgba(255,255,255,.86); max-width: 52ch; }
.ty-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ty-contact-row { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; align-items: flex-end; }
.ty-contact-row h2 { font-size: var(--fs-l); max-width: 18ch; }
.ty-contact-links { display: grid; gap: 14px; justify-items: start; }
.ty-contact-links a:not(.btn) { color: var(--oak-d); }
@media (max-width: 760px) {
  .ty-inner { padding-top: calc(68px + 48px); padding-bottom: 56px; }
  .ty-mark { width: 60px; height: 60px; }
  .ty-steps { grid-template-columns: minmax(0, 1fr); }
  .ty-contact-links, .ty-contact-links .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ty-tick { stroke-dashoffset: 0; } }
.ty-hero h1 em { color: var(--oak); font-weight: 400; }
/* Spam trap field (hidden from people) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== Thank-you page: dedicated phone layout ===== */
.ty-callbar { display: none; }
@media (max-width: 760px) {
  .ty-hero { min-height: calc(100svh - 64px); display: flex; align-items: center; }
  .ty-media img { opacity: .18; }
  .ty-inner { justify-items: center; text-align: center; gap: 18px; padding-top: calc(68px + 28px); padding-bottom: 40px; }
  .ty-mark { width: 76px; height: 76px; }
  .ty-hero h1 { font-size: 2.35rem; line-height: 1.08; max-width: none; }
  .ty-hero h1 .line { display: block; }
  .ty-hero h1 em { font-size: 1.45rem; display: inline-block; margin-top: 6px; line-height: 1.25; }
  .ty-lede { font-size: 1.05rem; line-height: 1.6; }
  .ty-hero .actions { width: 100%; }
  /* Steps become a compact numbered list */
  .ty-hero + .band { padding-block: 44px 120px; }
  .ty-hero + .band .sec-head { margin-bottom: 18px; }
  .ty-hero + .band .sec-head h2 { font-size: 1.5rem; }
  .ty-steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px 0; }
  .ty-steps .n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--oak-d); display: grid; place-items: center; font-size: .75rem; letter-spacing: 0; }
  .ty-steps h3 { font-size: 1.15rem; }
  .ty-steps p { font-size: .98rem; }
  /* Contact block replaced by a sticky call bar */
  .ty-contact { display: none; }
  .ty-callbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: rgba(11, 21, 48, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-d); color: var(--white); }
  .ty-callbar .btn { width: 100%; justify-content: center; min-height: 50px; padding: 0 12px; }
  .ty-callbar .btn.solid { background: var(--oak); color: var(--ink); border-color: var(--oak); }
  .ty-callbar .btn.ghost { color: var(--white); }
  body:has(.ty-callbar) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Testimonials, review form and blog ===== */
@media (min-width: 921px) and (max-width: 1280px) { .nav { gap: clamp(14px, 1.5vw, 26px); } .nav a { font-size: 0.95rem; } .nav .btn { padding: 0 16px; } }
@media (max-width: 920px) { .nav { overflow-y: auto; } }
.stars { display: inline-flex; gap: 2px; color: #d3d8e2; font-size: 1.05rem; letter-spacing: 0; line-height: 1; }
.stars i { font-style: normal; }
.stars .on { color: var(--oak); }
.t-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 8px; }
.t-summary .t-avg { font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.t-summary .stars { font-size: 1.3rem; }
.page-hero .t-summary .muted { color: rgba(255,255,255,.75); }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t-grid { columns: 3 320px; column-gap: 28px; }
.t-card { break-inside: avoid; margin: 0 0 28px; background: var(--white); border: 1px solid var(--line-l); border-radius: 16px; padding: 28px; display: grid; gap: 16px; }
.t-card blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.t-card blockquote p { margin: 0; }
.t-card blockquote p::before { content: "“"; color: var(--oak); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-right: 2px; }
.t-card figcaption { display: grid; gap: 2px; border-top: 1px solid var(--line-l); padding-top: 14px; }
.t-card figcaption .muted { font-size: 0.9rem; }
.t-empty { text-align: center; max-width: 620px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.t-empty h2 { font-size: var(--fs-l); }
.t-empty .actions { justify-content: center; }
/* review form */
.rate { border: 0; padding: 0; margin: 0; }
.rate legend { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-d); margin-bottom: 8px; padding: 0; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { cursor: pointer; font-size: 2.4rem; line-height: 1; color: #cfd4de; transition: color .2s, transform .2s; padding: 2px; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--oak); }
.rate-stars label:hover { transform: scale(1.08); }
.rate-stars input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.consent .check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 0.98rem; color: var(--ink); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--oak); }
/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.post-card a { display: grid; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line-l); border-radius: 16px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,21,48,.12); }
.post-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media.blank { display: grid; place-items: center; }
.post-card-media.blank img { width: 64px; height: 64px; object-fit: contain; opacity: .9; }
.post-card-body { padding: 24px 26px 28px; display: grid; gap: 10px; align-content: start; }
.post-card-body h2 { font-size: 1.35rem; line-height: 1.25; margin: 0; }
.post-card-body .more { color: var(--oak-d); font-weight: 600; margin-top: 6px; }
.post-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 4.6vw, 4rem); }
.post-band { padding-top: clamp(40px, 6vw, 80px); }
.post-wrap { max-width: 780px; }
.post-cover { margin: 0 0 40px; border-radius: 16px; overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; }
.post-body { font-size: 1.12rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: 1.7rem; line-height: 1.2; margin-top: 1.8em; font-weight: 600; }
.post-body h3 { font-size: 1.3rem; margin-top: 1.5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .35em; }
.post-body a { color: var(--oak-d); }
.post-body blockquote { margin-left: 0; padding-left: 22px; border-left: 3px solid var(--oak); font-size: 1.25rem; }
.post-fig { margin: 2em 0; }
.post-fig img { width: 100%; height: auto; border-radius: 12px; display: block; }
.post-fig figcaption { font-size: .9rem; color: var(--stone-d); margin-top: 8px; }
.post-back { margin-top: 56px; }
.btn.ghost.dark { color: var(--ink); border-color: var(--line-l); }
.draft-note { background: #fff1e3; border: 1px solid #ffc999; border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .t-card { padding: 22px; } .post-body { font-size: 1.05rem; } .rate-stars label { font-size: 2.6rem; } }
