/* ==========================================================================
   GCAT / Gulf Coast Automotive Tuning
   Editorial monochrome system. White ground, black type, dark photography.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Approved palette */
  --black: #0A0A0A;
  --white: #FFFFFF;
  --paper: #EDEDEB;
  --gray: #777777;
  /* Derived (accessibility + structure) */
  --gray-ink: #5E5E5E;              /* #777 darkened for small text to pass WCAG AA on white */
  --line: rgba(10, 10, 10, .14);
  --line-strong: var(--black);
  --error: #8A1C1C;                 /* form errors only */

  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 8px rhythm */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;
  --section: clamp(88px, 11vw, 168px);
  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --nav-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--black); color: var(--white); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%; max-width: var(--max); 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));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--black); color: var(--white); padding: 12px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.label {
  font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gray-ink); font-weight: 400;
}
.label-strong { color: var(--black); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0; line-height: .86; letter-spacing: -.005em; text-wrap: balance; }
.h-display { font-size: clamp(56px, 19.6vw, 336px); line-height: .87; letter-spacing: -.012em; }
.h-section { font-size: clamp(56px, 8.4vw, 136px); }
.h-sub { font-size: clamp(30px, 3vw, 44px); font-weight: 800; line-height: .95; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34ch; margin: 0; }
.body-muted { color: var(--gray-ink); }
p { margin: 0; }

/* ---------- Buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px; border: 1px solid var(--black);
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: var(--white); color: var(--black); }
.btn-line { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; }
.on-dark .btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn-solid:hover { background: transparent; color: var(--white); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.arrow-link::after { content: "\2192"; font-family: var(--body); font-weight: 400; transition: transform .35s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gray-ink);
  padding-block: 6px; background: linear-gradient(var(--black), var(--black)) left bottom / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--black); background-size: 100% 1px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; height: 40px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; align-items: center; gap: 10px; }
.menu-btn i { display: block; width: 22px; height: 8px; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--black); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 6.5px; }
.menu-btn[aria-expanded="true"] i::before { top: 3.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 3.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--white);
  padding: var(--s4) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(var(--s4) + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); overflow-y: auto;
  border-top: 1px solid var(--line);
}
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line); }
.mobile-menu li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 14px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 11vw, 64px); text-transform: uppercase; line-height: 1; }
.mobile-menu li a::after { content: "0" counter(m); font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; color: var(--gray-ink); }
.mobile-menu .mm-foot { display: grid; gap: var(--s2); }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .brand-logo { height: 32px; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section-head { row-gap: var(--s3); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .label { grid-column: 1 / span 3; align-self: start; padding-top: .6em; }
.section-head h2 { grid-column: 4 / -1; }
.section-head .section-intro { grid-column: 4 / span 6; }
.num { color: var(--black); margin-right: 10px; }
@media (max-width: 860px) {
  .section-head .label, .section-head h2, .section-head .section-intro { grid-column: 1 / -1; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 4vw, 56px); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }
.hero-title { padding-block: clamp(24px, 3vw, 44px) clamp(28px, 3.4vw, 52px); }
.hero-title h1 span { display: block; }
.hero-title h1 .l2 { padding-left: clamp(0px, 13vw, 210px); }
.hero-foot { row-gap: var(--s4); align-items: end; padding-bottom: clamp(32px, 4vw, 56px); }
.hero-foot .lede { grid-column: 1 / span 5; }
.hero-foot .cta-row { grid-column: 8 / -1; justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-foot .lede, .hero-foot .cta-row { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .hero-meta .label:nth-child(2), .hero-meta .label:nth-child(3) { display: none; }
  .hero-foot .cta-row { justify-self: stretch; display: grid; grid-template-columns: 1fr; }
  .hero-foot .cta-row .btn { width: 100%; }
}

.hero-film { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-film video, .hero-film .poster { width: 100%; aspect-ratio: 16 / 7.2; object-fit: cover; max-height: 86vh; }
.hero-film-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(16px, 2vw, 28px) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, rgba(10, 10, 10, .55), transparent);
  padding-top: 64px;
}
.hero-film-bar .label { color: rgba(255, 255, 255, .86); }
.media-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255, 255, 255, .5); color: var(--white);
  height: 36px; padding: 0 14px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; flex: none;
  transition: border-color .2s, background-color .2s;
}
.media-toggle:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
@media (max-width: 720px) {
  .hero-film video, .hero-film .poster { aspect-ratio: 4 / 5; max-height: none; }
  .hero-film-bar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Services ---------- */
.services-body { align-items: start; row-gap: var(--s6); }
.service-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s3); row-gap: 12px;
  padding-block: clamp(24px, 2.6vw, 36px); border-bottom: 1px solid var(--line);
}
.service .label { padding-top: .5em; color: var(--black); }
.service h3 { font-size: clamp(34px, 3.6vw, 56px); font-weight: 900; }
.service p { grid-column: 2; color: var(--gray-ink); max-width: 52ch; }
.service .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.services-media { grid-column: 9 / -1; position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 12px; }
.services-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }
@media (max-width: 960px) {
  .service-list { grid-column: 1 / -1; }
  .services-media { grid-column: 1 / -1; position: static; }
  .services-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .service { grid-template-columns: 1fr; } .service p, .service .tags { grid-column: 1; } }

/* ---------- Finish families (home) ---------- */
.families { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.family a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s3);
  padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .25s var(--ease), padding .35s var(--ease);
}
.family a:hover { background: var(--paper); padding-inline: 16px; }
.family .fam-name { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 52px); text-transform: uppercase; line-height: .95; }
.family .chips { display: flex; gap: 6px; }
.family .chips i { width: clamp(28px, 3.2vw, 44px); aspect-ratio: 1; display: block; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .08); }
.family .count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--gray-ink); min-width: 9ch; text-align: right; font-variant-numeric: tabular-nums; }
.families-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: var(--s5); }
@media (max-width: 640px) {
  .family a { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 12px; }
  .family .chips { grid-column: 2 / -1; grid-row: 2; }
  .family .chips i { width: 32px; }
}

/* ---------- Studio + process ---------- */
.studio-intro { margin-top: calc(-1 * clamp(16px, 3vw, 48px)); margin-bottom: clamp(56px, 7vw, 112px); }
.studio-intro .copy { grid-column: 4 / span 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.facts { margin: 0; border-top: 1px solid var(--black); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.facts dt { color: var(--gray-ink); text-transform: uppercase; letter-spacing: .14em; }
.facts dd { margin: 0; text-align: right; }
@media (max-width: 960px) { .studio-intro .copy { grid-column: 1 / -1; grid-template-columns: 1fr; } }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.step { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.step figure { margin: 0; overflow: hidden; background: var(--paper); }
.step img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.step:hover img { transform: scale(1.025); }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--black); }
.step h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; }
.step p { color: var(--gray-ink); font-size: 15px; line-height: 1.55; }
.footage-note { margin-top: var(--s4); }
@media (max-width: 1040px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(12px, 1.6vw, 24px); }
.work-tile { margin: 0; min-width: 0; display: grid; gap: 14px; align-content: start; }
.work-tile .frame { aspect-ratio: 11 / 10; background: var(--paper); overflow: hidden; }
.work-tile picture, .work-tile img { display: block; width: 100%; height: 100%; }
.work-tile img { object-fit: cover; transition: transform .9s var(--ease); }
.work-tile:hover img { transform: scale(1.02); }
.work-tile figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; padding-top: 14px; border-top: 1px solid var(--black); }
.work-tile figcaption h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; }
.services-media picture { display: block; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-tile figcaption { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .work-tile figcaption .label-strong { grid-column: 2; }
}

/* ---------- Consult ---------- */
.consult { background: var(--black); color: var(--white); border-top: 0; }
.consult .label { color: rgba(255, 255, 255, .62); }
.consult .num { color: var(--white); }
.consult-body { row-gap: var(--s8); align-items: start; }
.consult-side { grid-column: 1 / span 4; display: grid; gap: var(--s4); align-content: start; }
.consult-side p { color: rgba(255, 255, 255, .72); max-width: 36ch; }
.contact-card { border-top: 1px solid rgba(255, 255, 255, .9); padding-top: var(--s2); display: grid; gap: 10px; }
.contact-email { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: .02em; text-transform: none; color: var(--white); text-decoration: none; word-break: break-all; user-select: all; }
.copy-btn { justify-self: start; background: none; border: 1px solid rgba(255, 255, 255, .4); color: var(--white); height: 34px; padding: 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { border-color: var(--white); }
.consult-facts { border-color: rgba(255, 255, 255, .9); }
.consult-facts div { border-color: rgba(255, 255, 255, .16); }
.consult-facts dt { color: rgba(255, 255, 255, .6); }

.consult-form { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.field { display: grid; gap: 10px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .flabel { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .68); }
.field .req { color: var(--white); margin-left: 4px; }
.field .opt { color: rgba(255, 255, 255, .45); margin-left: 6px; text-transform: none; letter-spacing: .04em; }
.consult-form input, .consult-form select, .consult-form textarea {
  font: inherit; font-size: 18px; color: var(--white); background: transparent; width: 100%; min-width: 0;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); border-radius: 0; padding: 8px 0 12px;
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.consult-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.consult-form input::placeholder, .consult-form textarea::placeholder { color: rgba(255, 255, 255, .34); }
.consult-form input:focus, .consult-form textarea:focus { outline: none; border-bottom-color: var(--white); }
.consult-form input:focus-visible, .consult-form textarea:focus-visible { box-shadow: 0 1px 0 0 var(--white); }
.consult-form [aria-invalid="true"] { border-bottom-color: #E8A0A0; }
.err { font-size: 13px; color: #F0B4B4; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .3);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--white); }
.chip input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.form-foot small { color: rgba(255, 255, 255, .55); font-size: 13px; max-width: 46ch; line-height: 1.5; }
.form-status { grid-column: 1 / -1; border-top: 1px solid var(--white); padding-top: var(--s3); display: grid; gap: 14px; }
.form-status h3 { font-size: clamp(36px, 4vw, 56px); }
.form-status p { color: rgba(255, 255, 255, .78); max-width: 56ch; }
.form-status pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); padding: 16px; max-height: 240px; overflow: auto; }
.form-status .row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 960px) { .consult-side, .consult-form { grid-column: 1 / -1; } }
@media (max-width: 560px) { .consult-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-block: 0 calc(var(--s4) + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: grid; gap: var(--s6); }
.footer-top { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: var(--s6); row-gap: var(--s4); }
.footer-top .col { grid-column: span 3; display: grid; gap: 10px; align-content: start; }
.footer-top .col:first-child { grid-column: span 6; }
.footer-top a { text-decoration: none; color: rgba(255, 255, 255, .78); font-size: 15px; width: fit-content; }
.footer-top a:hover { color: var(--white); }
.footer-top .label { color: rgba(255, 255, 255, .5); margin-bottom: 6px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-word { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 11.8vw, 184px); line-height: .8; letter-spacing: -.01em; color: var(--white); margin: 0; white-space: nowrap; overflow: hidden; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-top .col, .footer-top .col:first-child { grid-column: 1 / -1; } }

/* ---------- Finishes page ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px); }
.page-hero .grid { row-gap: var(--s4); align-items: end; }
.page-hero h1 { grid-column: 1 / span 8; font-size: clamp(72px, 12.4vw, 210px); }
.page-hero .side { grid-column: 9 / -1; display: grid; gap: var(--s3); }
.counts { display: flex; gap: var(--s5); flex-wrap: wrap; }
.counts b { display: block; font-family: var(--display); font-weight: 900; font-size: 56px; line-height: .9; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .page-hero h1, .page-hero .side { grid-column: 1 / -1; } }

.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.feature { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.feature .sw { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.feature .sw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .2) 48%, transparent 60%); background-size: 260% 100%; animation: sweep 9s var(--ease) infinite; }
.feature-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--black); }
.feature h3 { font-size: clamp(30px, 2.8vw, 44px); }
.feature p { color: var(--gray-ink); font-size: 15px; }
@keyframes sweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .feature .sw { aspect-ratio: 16 / 9; } }

.lib-controls { display: grid; gap: var(--s3); margin-bottom: var(--s5); position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--white); padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.lib-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.seg { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.seg button { background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-ink); border-bottom: 1px solid transparent; }
.seg button[aria-pressed="true"] { color: var(--black); border-bottom-color: var(--black); }
.seg button sup { font-size: 9px; margin-left: 3px; letter-spacing: 0; }
.seg.brands button { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .1em; }
.search { position: relative; width: min(320px, 100%); }
.search input { width: 100%; font: inherit; font-size: 15px; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: 8px 0; background: transparent; -webkit-appearance: none; }
.search input:focus { outline: none; }
.search input:focus-visible { box-shadow: 0 1px 0 0 var(--black); }

.lib { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.lib-preview { position: sticky; top: calc(var(--nav-h) + 150px); display: grid; gap: var(--s2); }
.lib-preview .sw { aspect-ratio: 4 / 5; position: relative; overflow: hidden; transition: background .4s var(--ease); }
.lib-preview .sw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%); background-size: 260% 100%; animation: sweep 8s var(--ease) infinite; }
.lib-preview h2 { font-size: clamp(40px, 4.4vw, 68px); margin-top: 8px; }
.lib-preview .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--black); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 12px; align-content: start; }
.swb { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: grid; gap: 8px; min-width: 0; }
.swb i { display: block; aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .08); transition: box-shadow .2s; }
.swb:hover i, .swb[aria-pressed="true"] i { box-shadow: 0 0 0 1px var(--white), 0 0 0 2px var(--black); }
.swb b { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .08em; color: var(--gray-ink); overflow-wrap: anywhere; }
.swb span { font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.lib-empty { grid-column: 1 / -1; padding: var(--s6) 0; color: var(--gray-ink); }
.lib-note { margin-top: var(--s5); max-width: 70ch; }
@media (max-width: 860px) {
  .lib { grid-template-columns: 1fr; }
  .lib-preview {
    position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 4; background: var(--white);
    grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line);
  }
  .lib-preview .sw { aspect-ratio: 1; width: 72px; }
  .lib-preview .sw::after { animation: none; }
  .lib-preview h2 { font-size: 26px; margin-top: 0; }
  .lib-preview .meta { padding-top: 6px; border-top: 0; }
  .lib-preview p { margin-top: 6px !important; }
  .lib-preview .arrow-link { font-size: 13px; }
  .lib-controls { position: static; }
}
@media (max-width: 520px) { .lib-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } }

.cta-band { background: var(--paper); }
.cta-band .wrap { padding-block: clamp(64px, 8vw, 120px); display: flex; justify-content: space-between; align-items: end; gap: var(--s4); flex-wrap: wrap; }

/* ---------- v4.3: service pages, work page, shared SEO parts ---------- */
.crumbs ol { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; row-gap: 6px; }
.crumbs li { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-ink); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--gray); }
.crumbs a { text-decoration: none; }
.crumbs a:hover, .crumbs [aria-current] { color: var(--black); }
.page-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .page-hero .cta-row { display: grid; grid-template-columns: 1fr; } .page-hero .cta-row .btn { width: 100%; } }

.service .arrow-link { grid-column: 2; justify-self: start; font-size: 14px; margin-top: 4px; }
@media (max-width: 520px) { .service .arrow-link { grid-column: 1; } }
.section-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: var(--s5); }
.section-foot > a:only-child { margin-left: auto; }

.page-figure { margin: 0; }
.page-hero .page-figure, .page-hero .featured { margin-top: clamp(40px, 5vw, 72px); }
.page-figure .frame { aspect-ratio: 16 / 8; overflow: hidden; background: var(--paper); }
.page-figure picture, .page-figure img { display: block; width: 100%; height: 100%; }
.page-figure img { object-fit: cover; }
.page-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--black); }
@media (max-width: 720px) { .page-figure .frame { aspect-ratio: 4 / 5; } }

.prose { grid-column: 4 / span 7; display: grid; gap: var(--s3); align-content: start; }
.prose p { max-width: 62ch; }
.prose .lede { max-width: 40ch; }
.prose p:not(.lede) { color: var(--gray-ink); }
.body-col { grid-column: 4 / -1; min-width: 0; }
@media (max-width: 860px) { .prose, .body-col { grid-column: 1 / -1; } }

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); border-top: 1px solid var(--black); }
.points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; align-content: start; padding-block: 22px 24px; border-bottom: 1px solid var(--line); }
.points .label { color: var(--black); padding-top: .45em; }
.points h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; }
.points p { grid-column: 2; color: var(--gray-ink); font-size: 16px; max-width: 52ch; }
.points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .points.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.note { margin-top: var(--s4); max-width: 64ch; color: var(--gray-ink); }

.compare { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--black); padding-top: 0; }
.compare tbody th { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-ink); width: 22%; padding-top: 22px; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare { border-top: 1px solid var(--black); }
  .compare tr { border-bottom: 1px solid var(--line); padding-block: 16px; }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare tbody th { color: var(--black); padding-top: 0; }
  .compare td::before { content: attr(data-label); display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-ink); }
}

.faq { border-top: 1px solid var(--black); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-block: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; line-height: 1; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .answer { padding-bottom: 28px; max-width: 64ch; color: var(--gray-ink); display: grid; gap: 12px; }
.faq .answer a { color: var(--black); }

.projects { display: grid; gap: clamp(72px, 9vw, 144px); }
.project { row-gap: var(--s3); align-items: end; margin: 0; }
.project .frame { grid-column: 1 / span 7; aspect-ratio: 11 / 10; overflow: hidden; background: var(--paper); }
.project picture, .project img { display: block; width: 100%; height: 100%; }
.project img { object-fit: cover; }
.project .info { grid-column: 9 / -1; display: grid; gap: var(--s3); align-content: end; }
.project:nth-child(even) .frame { grid-column: 6 / -1; grid-row: 1; }
.project:nth-child(even) .info { grid-column: 1 / span 4; grid-row: 1; }
.project h2 { font-size: clamp(40px, 4.4vw, 68px); }
.project .info p { color: var(--gray-ink); max-width: 44ch; }
.project .info .arrow-link, .prose .arrow-link { justify-self: start; }
@media (max-width: 860px) {
  .project .frame, .project .info, .project:nth-child(even) .frame, .project:nth-child(even) .info { grid-column: 1 / -1; grid-row: auto; }
}
.cta-band .wrap p { max-width: 40ch; color: var(--gray-ink); margin-top: var(--s2); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
