/* Biaka Works — site styles.
   Everything comes from the shield: charcoal enamel, gold lettering, off-white monogram, sage "KC MO".
   One typeface, Archivo (variable width + weight): condensed caps for display, normal width for reading. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-258a93fe.woff2") format("woff2-variations"), url("/fonts/archivo-258a93fe.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --char: #262828;
  --paper: #eeece8;
  --gold: #beae52;
  --sage: #748c7e;
  --ink-2: #5b5e5b;
  --gutter: clamp(16px, 3.4vw, 56px);
  --bar-h: clamp(76px, 8vw, 116px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--char);
  color: var(--char);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--char); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.light :focus-visible, .gold-band :focus-visible { outline-color: var(--char); }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--gold); color: var(--char); padding: 12px 16px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m, .display-s {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(54px, 11.2vw, 212px); line-height: 0.84; }
.display-l { font-size: clamp(44px, 7.2vw, 132px); line-height: 0.86; }
.display-m { font-size: clamp(30px, 3.7vw, 66px); line-height: 0.9; }
.display-s { font-size: clamp(24px, 2.3vw, 38px); line-height: 0.95; }

/* The shield's own device: small gold caps between two rules. Used sparingly. */
.rule-label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold);
  font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
}
.rule-label::before, .rule-label::after { content: ""; width: 56px; height: 2px; background: var(--paper); }

.section-lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; max-width: 34em; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--char); }
.btn-gold:hover { background: var(--paper); }
.light .btn-gold:hover { background: var(--char); color: var(--paper); }
.btn-ink { background: var(--char); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--char); }
.gold-band .btn-ink:hover { background: var(--paper); }
.link-gold {
  display: inline-block; padding: 6px 0; color: var(--gold); font-weight: 650;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-gold:hover { color: var(--paper); }
.link-under { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Themes ---------- */
.dark { background: var(--char); color: var(--paper); --line: rgba(238, 236, 232, 0.085); --muted: rgba(238, 236, 232, 0.68); }
.light { background: var(--paper); color: var(--char); --line: rgba(38, 40, 40, 0.1); --muted: var(--ink-2); }
.gold-band { background: var(--gold); color: var(--char); --line: rgba(38, 40, 40, 0.14); --muted: rgba(38, 40, 40, 0.8); }
/* Each section is its own layer, so pictures placed behind the text (negative z-index) stay above the section's background. */
main > section, .footer, .case-head, .case-body, .next, .notfound, .menu { position: relative; isolation: isolate; }

/* ---------- Top bar and menu ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: clamp(14px, 1.8vw, 26px) var(--gutter) 0;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar-logo { display: block; }
.bar-logo img { width: auto; height: clamp(54px, 5.2vw, 78px); filter: drop-shadow(0 0 0.5px rgba(238, 236, 232, 0.55)); }
.menu-button {
  position: relative;
  width: 50px; height: 60px; padding: 0; border: 0; cursor: pointer;
  background: var(--gold);
  border-radius: 0 0 25px 25px; /* the shield's outline */
  transition: background-color 0.2s ease;
}
.menu-button:hover { background: var(--paper); }
.menu-icon, .menu-icon::before { position: absolute; left: 50%; width: 18px; height: 2px; background: var(--char); transform: translateX(-50%); }
.menu-icon { top: 24px; }
.menu-icon::before { content: ""; top: 7px; }
.is-close .menu-icon { top: 27px; transform: translateX(-50%) rotate(45deg); }
.is-close .menu-icon::before { top: 0; left: 0; transform: rotate(90deg); }

.menu {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(14px, 1.8vw, 26px) var(--gutter) clamp(20px, 3vw, 40px);
  background: var(--char); color: var(--paper);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: flex-start; }
.menu-nav { align-self: center; padding: 4vh 0; }
.menu-nav ul { display: grid; gap: 0.06em; }
.menu-nav a {
  display: inline-block;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 9.4vh, 128px); line-height: 0.92;
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu-nav a:hover, .menu-nav a:focus-visible { color: var(--gold); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.menu-shield { display: none; }
@media (min-width: 900px) {
  .menu-shield {
    display: block; position: absolute; z-index: -1; right: calc(var(--gutter) + (100% - 2 * var(--gutter)) / 6 * 0.5); top: 50%;
    height: min(52vh, 520px); width: auto; transform: translateY(-50%);
  }
}
.menu-foot a { text-decoration: none; }
.menu-foot a:hover { color: var(--gold); }
@media (min-width: 900px) {
  .menu-nav { padding-left: calc((100% / 6)); }
}

/* ---------- Intro (first visit only; skipped for reduced motion) ---------- */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  animation: loader-fallback 0.5s ease 4.5s forwards; /* in case the script never runs */
}
.loader-bg { position: absolute; inset: 0; background: var(--paper); }
.loader-shield { position: relative; }
.loader-shield svg { width: auto; height: min(58vh, 560px); }
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr auto;
  padding: calc(var(--bar-h) + 20px) var(--gutter) clamp(28px, 5vh, 60px);
  overflow: hidden;
}
.hero-portrait { position: absolute; z-index: -2; bottom: 0; left: 15.5%; height: 95%; aspect-ratio: 760 / 1013; }
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 70%, transparent 99%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 70%, transparent 99%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}
/* The monogram sits beside the face, overlapping the shoulder, never the face itself. */
.hero-mark { position: absolute; left: 49.5%; top: 47%; width: clamp(180px, 21.5vw, 450px); color: var(--paper); transform: translateY(-50%); }
.hero-mark svg { width: 100%; height: auto; }
.hero-stats { grid-column: 1; grid-row: 1; align-self: center; display: grid; gap: clamp(18px, 3.4vh, 34px); }
.hero-stats li { display: grid; gap: 2px; }
.stat-num { font-stretch: 62%; font-weight: 800; font-size: clamp(40px, 3.5vw, 60px); line-height: 0.9; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; line-height: 1.35; color: var(--muted); max-width: 14em; }
.hero-side { grid-column: 5 / 7; grid-row: 1; align-self: center; justify-self: end; text-align: right; display: grid; gap: 22px; max-width: min(300px, 21vw); }
.hero-quote { font-size: 16px; line-height: 1.45; }
.hero-fact { display: grid; font-size: 14px; line-height: 1.35; color: var(--muted); }
.hero-fact strong { color: var(--paper); font-size: 16px; font-weight: 650; }
.hero-name { grid-column: 1 / 5; grid-row: 2; align-self: end; display: grid; gap: 16px; }
.hero-name h1 { font-size: clamp(56px, 9.6vw, 184px); }
.hero-tagline { max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }
.hero-cta { grid-column: 5 / 7; grid-row: 2; justify-self: end; align-self: end; display: grid; text-align: right; text-decoration: none; }
.hero-cta span { color: var(--muted); font-size: 14px; }
.hero-cta strong {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 3.4vw, 60px); line-height: 0.95; color: var(--gold);
  transition: color 0.2s ease;
}
.hero-cta:hover strong { color: var(--paper); }

@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr; grid-template-rows: none;
    padding-top: 0; min-height: 0; gap: 0;
  }
  .hero-portrait { position: relative; z-index: -2; left: auto; width: calc(100% + 2 * var(--gutter)); height: 74svh; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: auto; }
  .hero-portrait img { object-position: 50% 30%; }
  .hero-mark { left: auto; right: var(--gutter); top: 52svh; width: 42vw; transform: none; }
  .hero-portrait { order: 0; }
  .hero-name { order: 1; grid-column: 1; grid-row: auto; margin-top: -9svh; gap: 12px; }
  .hero-stats { order: 2; }
  .hero-side { order: 3; }
  .hero-cta { order: 4; }
  .hero-stats { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
  .stat-num { font-size: clamp(30px, 9vw, 44px); }
  .stat-label { font-size: 12.5px; }
  .hero-side { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; margin-top: 28px; max-width: none; }
  .hero-cta { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; margin-top: 32px; }
}

/* ---------- About ---------- */
.about { padding: clamp(110px, 17vw, 260px) var(--gutter) clamp(90px, 12vw, 180px); overflow: hidden; }
.statement {
  position: relative; z-index: 1;
  max-width: 17ch; margin: 0 auto;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; text-align: center;
  font-size: clamp(38px, 5.9vw, 112px); line-height: 0.94;
  text-wrap: balance;
}
.statement mark {
  color: inherit;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 62% / var(--mark, 100%) 0.74em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.05em;
}
.float { position: absolute; z-index: 0; overflow: hidden; background: var(--char); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.float-1 { left: calc(var(--gutter) + 1%); top: 9%; width: 13vw; aspect-ratio: 4 / 3; }
.float-2 { left: calc(var(--gutter) + 6%); top: 44%; width: 10vw; aspect-ratio: 4 / 5; }
.float-3 { right: calc(var(--gutter) + 1%); top: 14%; width: 15vw; aspect-ratio: 16 / 9; }
.float-4 { right: calc(var(--gutter) + 5%); top: 47%; width: 10vw; aspect-ratio: 1; }
.about-body {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin-top: clamp(70px, 10vw, 150px);
}
.about-body p { padding-right: clamp(16px, 3vw, 44px); }
.about-lead { grid-column: 2 / 4; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; font-weight: 600; }
.about-body p + p { grid-column: 4 / 6; color: var(--muted); }
@media (max-width: 899px) {
  .statement { max-width: none; text-align: left; }
  .float { display: none; }
  .about-body { grid-template-columns: 1fr; gap: 20px; }
  .about-lead, .about-body p + p { grid-column: 1; }
}

/* ---------- The 3D shield and the logos around it ---------- */
.marks { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); }
.marks-stage { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; min-height: 92svh; }
.mark-col { display: grid; grid-template-columns: 1fr 1fr; row-gap: clamp(22px, 4.6vh, 52px); align-items: center; }
.mark-col-left { grid-column: 1 / 3; }
.mark-col-right { grid-column: 5 / 7; }
.mark { display: flex; align-items: center; justify-content: center; height: clamp(40px, 7.4vh, 72px); padding: 0 22%; }
.mark img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; opacity: 0.82; }
.mark:nth-child(even) { transform: translateY(calc((clamp(40px, 7.4vh, 72px) + clamp(22px, 4.6vh, 52px)) / 2)); }
.shield-3d { grid-column: 3 / 5; position: relative; height: min(78svh, 760px); display: grid; place-items: center; touch-action: pan-y; }
.shield-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.shield-3d canvas:active { cursor: grabbing; }
.shield-flat { height: 70%; width: auto; transition: opacity 0.4s ease; }
.shield-3d.is-live .shield-flat { opacity: 0; }
.drag-hint { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink-2); opacity: 0; transition: opacity 0.4s ease; }
.shield-3d.is-live .drag-hint { opacity: 1; }
.marks-foot { display: grid; justify-items: center; gap: 22px; text-align: center; margin-top: clamp(20px, 3vw, 40px); }
.marks-title { font-size: 15px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 899px) {
  .marks-stage { grid-template-columns: repeat(4, 1fr); min-height: 0; row-gap: 26px; }
  .shield-3d { grid-column: 1 / -1; order: -1; height: 64svh; }
  .mark-col { display: contents; }
  .mark { height: 56px; padding: 0 10%; }
  .mark:nth-child(n) { transform: none; }
}

/* ---------- Brand work: one project at a time ---------- */
.work { padding: clamp(100px, 13vw, 200px) 0 0; }
.section-head { padding: 0 var(--gutter); display: grid; gap: 22px; }
.section-head .section-lead { color: var(--muted); }
.work .section-head { grid-template-columns: repeat(6, 1fr); align-items: end; }
.work .section-head h2 { grid-column: 1 / 5; }
.work .section-head .section-lead { grid-column: 5 / 7; font-size: 17px; }
.work-pin { position: relative; padding: clamp(50px, 8vw, 120px) var(--gutter) clamp(60px, 8vw, 120px); }
.chapters { display: grid; gap: clamp(70px, 10vw, 140px); }
.chapter { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; }
.chapter-title { grid-column: 1 / 3; display: grid; gap: 14px; padding-right: 20px; }
.chapter-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.chapter-meta span { color: var(--gold); font-weight: 650; }
.chapter-client { color: var(--muted); font-size: 15px; max-width: 22em; }
.chapter-media { grid-column: 3 / 5; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #1c1e1e; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.chapter-media:hover img { transform: scale(1.03); }
.chapter-text { grid-column: 5 / 7; display: grid; gap: 14px; justify-items: start; padding-left: clamp(16px, 2.6vw, 44px); }
.chapter-text p:first-child { font-size: 17px; }
.chapter-made { color: var(--muted); font-size: 15px; }
.work-ui, .work-skip { display: none; }

/* Pinned version (desktop, with the script, motion allowed). The script adds .is-pinned. */
@media (min-width: 900px) {
  .work.is-pinned .work-pin { height: 100svh; padding: 0 var(--gutter); }
  .work.is-pinned .chapters { position: absolute; inset: 0 var(--gutter); display: block; }
  .work.is-pinned .chapter { position: absolute; inset: 0; pointer-events: none; }
  .work.is-pinned .chapter.is-active { pointer-events: auto; }
  /* Hidden chapters stay focusable, so keyboard users can tab to every project; the script
     scrolls to a chapter when its link gets focus. */
  .work.is-pinned .chapter-title, .work.is-pinned .chapter-text { opacity: 0; }
  .work.is-pinned .chapter.is-active .chapter-title, .work.is-pinned .chapter.is-active .chapter-text { opacity: 1; }
  .work.is-pinned .chapter-media {
    grid-area: auto; /* so its box is measured against the whole chapter, not one grid cell */
    position: absolute; left: calc(100% / 3); width: calc(100% / 3); top: 50%;
    height: min(66svh, 640px); aspect-ratio: auto;
    margin-top: calc(min(66svh, 640px) / -2);
    will-change: transform, opacity;
  }
  .work.is-pinned .chapter-title, .work.is-pinned .chapter-text { position: relative; z-index: 2; }
  .work.is-pinned .chapter-title { grid-column: 1 / 3; }
  .work.is-pinned .chapter-text { grid-column: 5 / 7; }
  .work.is-pinned .work-ui { display: block; position: absolute; right: var(--gutter); bottom: clamp(24px, 4vh, 44px); z-index: 3; }
  .work.is-pinned .work-skip { display: inline-flex; position: absolute; left: 50%; bottom: clamp(24px, 4vh, 44px); transform: translateX(-50%); z-index: 3; }
  .work-count { display: flex; align-items: center; gap: 10px; font-stretch: 62%; font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; }
  .work-count-mark { width: 12px; height: 15px; background: var(--gold); border-radius: 0 0 6px 6px; }
}
@media (max-width: 899px) {
  .work .section-head { grid-template-columns: 1fr; }
  .work .section-head h2, .work .section-head .section-lead { grid-column: 1; }
  .chapter { grid-template-columns: 1fr; gap: 18px; }
  .chapter-title, .chapter-media, .chapter-text { grid-column: 1; padding: 0; }
  .chapter-media { order: -1; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }
}

/* ---------- Product design ---------- */
.product { padding: clamp(90px, 12vw, 180px) 0 clamp(80px, 10vw, 150px); overflow: hidden; }
.outline-title {
  position: absolute; z-index: -1; top: clamp(30px, 5vw, 70px); left: 0;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(120px, 24vw, 460px); line-height: 0.8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(38, 40, 40, 0.16);
  pointer-events: none; user-select: none;
}
.product-head { grid-template-columns: repeat(6, 1fr); align-items: end; margin-top: clamp(60px, 10vw, 170px); }
.product-head h2 { grid-column: 1 / 4; }
.product-intro { grid-column: 4 / 7; display: grid; gap: 14px; }
.product-intro p:last-child { color: var(--muted); }
.carousel { margin-top: clamp(40px, 6vw, 80px); }
.carousel-track {
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-track.is-dragging * { pointer-events: none; }
.card { flex: none; scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.card-media { height: clamp(240px, 40vh, 460px); aspect-ratio: var(--ratio); overflow: hidden; background: #dcd9d3; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-weight: 650; font-size: 17px; line-height: 1.3; margin-top: 4px; }
.card-for { color: var(--muted); font-size: 14px; }
.carousel-ui { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px var(--gutter) 0; }
.carousel-hint { margin-right: auto; color: var(--muted); font-size: 14px; }
.carousel-btn {
  width: 52px; height: 52px; border: 1px solid var(--char); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color 0.2s ease;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; background: transparent; border-color: var(--char); }
.chev { width: 10px; height: 10px; border: solid var(--char); border-width: 0 2px 2px 0; }
.chev-l { transform: rotate(135deg) translate(-1px, -1px); }
.chev-r { transform: rotate(-45deg) translate(-1px, -1px); }
.product-foot {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 30px 0;
  padding: clamp(60px, 8vw, 120px) var(--gutter) 0;
}
.product-quote { grid-column: 1 / 5; display: grid; gap: 18px; padding-right: 30px; }
.product-quote blockquote { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.product-quote figcaption { display: grid; color: var(--muted); font-size: 15px; }
.product-quote figcaption strong { color: var(--char); font-weight: 650; }
.product-links { grid-column: 5 / 7; display: grid; gap: 16px; justify-items: start; }
@media (max-width: 899px) {
  .product-head, .product-foot { grid-template-columns: 1fr; }
  .product-head h2, .product-intro, .product-quote, .product-links { grid-column: 1; }
  .card-media { height: 300px; max-width: 86vw; }
  .carousel-hint { display: none; }
}

/* ---------- Services ---------- */
.services { padding: clamp(100px, 13vw, 200px) 0 clamp(80px, 10vw, 150px); }
.services .section-head { grid-template-columns: repeat(6, 1fr); align-items: end; }
.services .section-head h2 { grid-column: 1 / 5; }
.services .section-head .section-lead { grid-column: 5 / 7; font-size: 17px; }
.service-list { position: relative; margin-top: clamp(50px, 7vw, 100px); padding: 0 var(--gutter); }
.service {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
  padding: clamp(22px, 3vw, 38px) 0;
  border-top: 1px solid rgba(238, 236, 232, 0.2);
  transition: color 0.25s ease;
}
.service:last-child { border-bottom: 1px solid rgba(238, 236, 232, 0.2); }
.service h3 { grid-column: 1 / 4; }
.service-text { grid-column: 4 / 7; display: grid; gap: 6px; padding-left: clamp(16px, 2.6vw, 44px); }
.service-includes { color: var(--muted); font-size: 15px; }
.service-img { display: none; }
.services-float {
  position: absolute; z-index: 3; top: 0; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) / 6 * 2.15);
  width: clamp(140px, 11.5vw, 220px); aspect-ratio: 5 / 7;
  border-radius: 0 0 50% 50% / 0 0 35.7% 35.7%; /* the shield's outline */
  overflow: hidden; pointer-events: none;
  opacity: 0; transform: translateY(-50%) scale(0.9);
}
.services-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.services-float img.is-on { opacity: 1; }
@media (hover: hover) and (min-width: 900px) {
  .service-list:hover .service:not(:hover) { color: rgba(238, 236, 232, 0.38); }
}
@media (max-width: 899px) {
  .services .section-head { grid-template-columns: 1fr; }
  .services .section-head h2, .services .section-head .section-lead { grid-column: 1; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service h3, .service-text { grid-column: 1; padding: 0; }
  .service-img { display: block; order: -1; width: 46%; aspect-ratio: 5 / 7; overflow: hidden; border-radius: 0 0 50% 50% / 0 0 35.7% 35.7%; }
  .service-img img { width: 100%; height: 100%; object-fit: cover; }
  .services-float { display: none; }
}

/* ---------- How it works, and quotes ---------- */
.process { padding: clamp(100px, 13vw, 200px) 0 clamp(60px, 8vw, 110px); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(50px, 7vw, 100px); padding: 0 var(--gutter);
}
.step { display: grid; align-content: start; gap: 12px; padding: 26px clamp(14px, 2vw, 32px) 0 0; border-top: 2px solid var(--char); }
.step-num { display: flex; align-items: center; gap: 12px; font-stretch: 62%; font-weight: 800; font-size: clamp(56px, 6vw, 104px); line-height: 0.85; }
.step-num::after { content: ""; width: 12px; height: 15px; background: var(--gold); border-radius: 0 0 6px 6px; }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); }
.quotes { padding: clamp(60px, 8vw, 110px) 0 clamp(100px, 12vw, 180px); }
.quote-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 56px);
  margin-top: clamp(40px, 6vw, 80px); padding: 0 var(--gutter);
}
.quote { display: grid; align-content: space-between; gap: 22px; padding-top: 22px; border-top: 2px solid var(--char); }
.quote blockquote { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }
.quote figcaption { display: grid; color: var(--muted); font-size: 15px; }
.quote figcaption strong { color: var(--char); font-weight: 650; }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Questionnaire band ---------- */
.ask {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 30px 0;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
}
.ask h2 { grid-column: 1 / 5; }
.ask-body { grid-column: 5 / 7; display: grid; gap: 22px; justify-items: start; font-size: 18px; }
@media (max-width: 899px) {
  .ask { grid-template-columns: 1fr; }
  .ask h2, .ask-body { grid-column: 1; }
}

/* ---------- Contact and footer ---------- */
.contact { padding: clamp(100px, 13vw, 200px) 0 clamp(80px, 10vw, 140px); }
.contact .section-head h2 { max-width: 9ch; }
.contact-email {
  display: inline-block; margin: clamp(40px, 6vw, 80px) var(--gutter) 0;
  font-stretch: 75%; font-weight: 750;
  font-size: clamp(30px, 6.6vw, 124px); line-height: 1; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 0.06em; text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--gold); }
.contact-more { margin: 28px var(--gutter) 0; font-size: 18px; }
.contact-more a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.footer { padding: clamp(60px, 7vw, 100px) var(--gutter) 28px; border-top: 1px solid rgba(238, 236, 232, 0.12); }
.footer-inner { display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; gap: 40px 0; }
.footer-shield { grid-column: 1 / 3; display: block; width: clamp(130px, 12vw, 200px); }
.footer-shield img { width: 100%; height: auto; filter: drop-shadow(0 0 0.5px rgba(238, 236, 232, 0.55)); }
.footer-nav { grid-column: 3 / 5; }
.footer-nav ul { display: grid; gap: 4px; }
.footer-nav a { font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.05; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { grid-column: 5 / 7; display: grid; gap: 8px; color: var(--muted); }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(50px, 6vw, 90px); padding-top: 22px; border-top: 1px solid rgba(238, 236, 232, 0.12); color: var(--muted); font-size: 14px; }
.footer-base .rule-label { justify-content: flex-start; }
@media (max-width: 899px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-shield { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1; }
  .footer-contact { grid-column: 2; font-size: 15px; }
}

/* ---------- Case study and product design pages ---------- */
.case-head { padding: calc(var(--bar-h) + clamp(40px, 7vw, 110px)) var(--gutter) clamp(50px, 7vw, 100px); display: grid; gap: clamp(20px, 2.4vw, 32px); }
.case-kicker a { color: var(--gold); font-weight: 650; text-decoration: none; }
.case-kicker a:hover { color: var(--paper); }
.case-title { max-width: 12ch; }
.case-summary { max-width: 30em; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; }
.case-facts {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 0;
  margin-top: clamp(14px, 2vw, 30px); padding-top: 22px; border-top: 1px solid rgba(238, 236, 232, 0.2);
}
.case-facts > div { grid-column: span 1; padding-right: clamp(12px, 2vw, 32px); }
.case-facts > div:nth-child(-n + 2) { grid-column: span 2; }
.case-facts dt { color: var(--muted); font-size: 14px; }
.case-facts dd { margin-top: 4px; font-size: 16px; line-height: 1.45; }
.case-facts a { color: var(--gold); }
/* The lead image sits half on the dark header and half on the light page. */
.case-hero { padding: 0 var(--gutter); background: linear-gradient(var(--char) 0 50%, var(--paper) 50% 100%); }
.case-hero figure { background: #1c1e1e; }
.case-hero img { width: 100%; }
.case-body { padding: clamp(70px, 9vw, 130px) var(--gutter) clamp(80px, 10vw, 150px); display: grid; gap: clamp(60px, 8vw, 110px); }
.case-section { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 0; }
.case-section h2 { grid-column: 1 / 3; padding-right: 20px; }
.case-text { grid-column: 3 / 6; display: grid; gap: 18px; font-size: clamp(17px, 1.3vw, 19px); max-width: 38em; }
.case-text a { text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.case-quote { grid-column: 3 / 7; display: grid; gap: 18px; }
.case-quote blockquote { display: grid; gap: 14px; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.case-quote figcaption { display: grid; color: var(--muted); font-size: 15px; }
.case-quote figcaption strong { color: var(--char); font-weight: 650; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); }
.gallery figure { background: #dcd9d3; }
.gallery .full { grid-column: 1 / -1; }
.gallery img { width: 100%; }
.gallery .fixed { aspect-ratio: var(--ratio); overflow: hidden; }
.gallery .fixed img { height: 100%; object-fit: cover; }
.gallery .contain { display: grid; place-items: center; padding: 8%; background: #fff; }
.gallery .contain img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.next {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 30px 0;
  padding: clamp(80px, 10vw, 150px) var(--gutter);
  text-decoration: none;
}
.next-text { grid-column: 1 / 4; display: grid; gap: 12px; }
.next-label { color: var(--gold); font-weight: 650; }
.next-name { transition: color 0.2s ease; }
.next:hover .next-name { color: var(--gold); }
.next-media { grid-column: 4 / 7; aspect-ratio: 16 / 10; overflow: hidden; background: #1c1e1e; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.next:hover .next-media img { transform: scale(1.03); }
.featured { display: grid; gap: clamp(50px, 7vw, 100px); }
.featured-item { display: grid; gap: 18px; }
.featured-media { aspect-ratio: var(--ratio); overflow: hidden; background: #dcd9d3; }
.featured-media video, .featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-item figcaption { display: grid; grid-template-columns: repeat(6, 1fr); align-items: baseline; gap: 8px 0; }
.featured-item figcaption .display-s { grid-column: 1 / 4; }
.featured-item figcaption span:last-child { grid-column: 4 / 7; color: var(--muted); }
.more-title { margin-top: clamp(20px, 3vw, 40px); }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px) clamp(12px, 1.6vw, 24px); }
.more-item { display: grid; gap: 12px; }
.more-media { aspect-ratio: 1; overflow: hidden; background: #dcd9d3; }
.more-media video, .more-media img { width: 100%; height: 100%; object-fit: cover; }
.more-item figcaption { display: grid; }
.more-item figcaption span { color: var(--muted); font-size: 15px; }
.notfound { min-height: 80svh; display: grid; align-content: center; justify-items: start; gap: 26px; padding: calc(var(--bar-h) + 40px) var(--gutter) 80px; }
@media (max-width: 899px) {
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-facts > div, .case-facts > div:nth-child(-n + 2) { grid-column: span 1; }
  .case-section { grid-template-columns: 1fr; }
  .case-section h2, .case-text, .case-quote { grid-column: 1; }
  .next { grid-template-columns: 1fr; }
  .next-text, .next-media { grid-column: 1; }
  .featured-item figcaption { grid-template-columns: 1fr; }
  .featured-item figcaption .display-s, .featured-item figcaption span:last-child { grid-column: 1; }
}
@media (max-width: 599px) {
  .gallery, .more-grid { grid-template-columns: 1fr; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
