/* ──────────────────────────────────────────────────────────────
   THE OFFICE OF BYRÅ — site stylesheet
   Editorial system. Warm white, warm black, warm grey.
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-Medium.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-MediumItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-Semibold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-SemiboldItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-Bold.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merlo";
  src: url("fonts/Merlo-BoldItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper:   #F4F4F2;
  --paper-2: #E9E9E6;
  --ink:     #232324;
  --ink-60:  rgba(35,35,36,.62);
  --ink-40:  rgba(35,35,36,.42);
  --ink-15:  rgba(35,35,36,.15);
  --rule:    rgba(35,35,36,.85);
  --sage:    #D8D8D5;
  --marine:  #2B2B2C;
  --bronze:  #5C5C5E;

  --display: "ivyora-display", "ivypresto-display", "Merlo", Georgia, "Times New Roman", serif;
  --display-italic: "ivyora-display", "ivypresto-display", "Merlo", Georgia, "Times New Roman", serif;
  --serif:   "ivyora-text", "ivyora-display", "ivypresto-display", "Merlo", Georgia, "Times New Roman", serif;
  --sans:    "ivyora-text", "ivyora-display", "ivypresto-display", "Merlo", Georgia, "Times New Roman", serif;

  --max:     1400px;
  --gutter:  clamp(20px, 4vw, 56px);

  --label:   .68rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "lnum" 1, "kern" 1, "liga" 1; font-weight: 400;
}

::selection { background: var(--marine); color: var(--paper); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ── Layout primitives ─────────────────────────────────────── */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.thin-rule {
  border: 0;
  border-top: 1px solid var(--ink-15);
  margin: 0;
}

/* ── Typography ────────────────────────────────────────────── */

.label {
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink); font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}

.label-muted { color: var(--ink-60); }

.serif {
  font-family: var(--serif); font-weight: 400;
}

.display {
  font-family: var(--display);
  letter-spacing: -0.02em;   /* tight kerning on display type */
  line-height: .98; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}

.h-xl   { font-family: var(--display); letter-spacing: -0.012em; line-height: 1.06; font-size: clamp(56px, 11vw, 196px); font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}
.h-lg   { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.06; font-size: clamp(44px, 7.5vw, 124px); font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}
.h-md   { font-family: var(--display); letter-spacing: -0.008em; line-height: 1.04; font-size: clamp(32px, 4.6vw, 72px); font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}
.h-sm   { font-family: var(--display); letter-spacing: -0.004em; line-height: 1.1;  font-size: clamp(24px, 2.4vw, 36px); font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}

/* Headlines are upright Pangaia throughout — no italic accent inside display type.
   <em> remains as semantic markup but renders identical to surrounding headline. */
.h-xl em, .h-lg em, .h-md em, .h-sm em, .display em {
  font-family: var(--display);
  font-style: normal;
  letter-spacing: inherit; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink); font-weight: 400;
}

.body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink); font-weight: 400;
}

.body-sm {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60); font-weight: 400;
}

em, .italic { font-style: italic; font-family: var(--serif); font-weight: 400;}

/* Inline (Bureau) parenthetical, like the wordmark */
.bureau-mark {
  font-family: var(--display);
  font-size: 1em;
  letter-spacing: -0.01em; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
.bureau-mark sup {
  font-family: var(--serif);
  font-size: .42em;
  font-style: italic;
  vertical-align: super;
  margin-left: .12em;
  letter-spacing: 0; font-weight: 400;
}

/* ── Header / Top nav ──────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.brand .brand-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand sup {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink-60);
  position: relative;
  top: 4px; font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--ink);
  position: relative;
}
.nav a .num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-40); font-weight: 500;
}
.nav a:hover { color: var(--marine); }
.nav a.is-current { color: var(--marine); }
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0.12em; bottom: 2px;
  border-bottom: 1px solid var(--marine);
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 9vw, 120px);
  padding-bottom: clamp(40px, 7vw, 96px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.hero-title {
  max-width: 18ch;
}

.hero-foot {
  margin-top: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}

.hero-foot .col { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
}

/* ── Marquee ───────────────────────────────────────────────── */

.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 18px 0;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.01em; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
.marquee-track span {
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.marquee-track .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section / band ────────────────────────────────────────── */

.band {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.band.sage { background: var(--sage); }
.band.ink  { background: var(--ink); color: var(--paper); }
.band.ink .label { color: var(--paper); }
.band.ink .label-muted { color: rgba(244,244,242,.6); }
.band.ink hr.thin-rule { border-color: rgba(244,244,242,.2); }
.band.ink a { color: var(--paper); }

/* Sticky-label layout: each .band's .wrap becomes a 2-column grid.
   The .section-head uses display:contents so its .meta and heading
   become first-class grid items of .wrap. The .meta then sticks to
   the top while the rest of the band scrolls past it. */

:root { --sticky-top: 124px; }

.band > .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.band > .wrap > .section-head { display: contents; }

.band > .wrap > .section-head > .meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1;
  position: sticky;
  top: var(--sticky-top);
  align-self: start;
}

.band > .wrap > .section-head > div:not(.meta) { grid-column: 2; }
.band > .wrap > :not(.section-head) { grid-column: 2; }

.section-head .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-60); font-weight: 400;
}

@media (max-width: 760px) {
  .band > .wrap {
    grid-template-columns: 1fr;
  }
  .band > .wrap > .section-head > .meta { position: static; grid-column: 1; }
  .band > .wrap > * { grid-column: 1; }
}

/* ── Service grid ──────────────────────────────────────────── */

.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-15);
}
.tri > .cell {
  padding: 32px 28px 36px 0;
  border-bottom: 1px solid var(--ink-15);
  position: relative;
}
.tri > .cell + .cell { padding-left: 28px; border-left: 1px solid var(--ink-15); }
.tri > .cell .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-60);
  font-size: 14px;
  margin-bottom: 12px;
  display: block; font-weight: 400;
}
.tri > .cell h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.04;
  letter-spacing: -0.004em;
  margin-bottom: 12px; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
.tri > .cell p { color: var(--ink-60); font-size: 15px; line-height: 1.5; }

@media (max-width: 900px) {
  .tri { grid-template-columns: 1fr; }
  .tri > .cell { border-left: 0 !important; padding-left: 0 !important; padding-right: 0; }
}

/* Four-up variant */
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-15);
}
.quad > .cell {
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--ink-15);
}
.quad > .cell + .cell { padding-left: 24px; border-left: 1px solid var(--ink-15); }
.quad > .cell .num { font-family: var(--serif); font-style: italic; color: var(--ink-60); font-size: 13px; display: block; margin-bottom: 10px; font-weight: 400;}
.quad > .cell h4 { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; line-height: 1.04; margin-bottom: 10px; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}
.quad > .cell p { color: var(--ink-60); font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) { .quad { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .quad { grid-template-columns: 1fr; }
  .quad > .cell { border-left: 0 !important; padding-left: 0 !important; padding-right: 0; }
}

/* ── Project list (work index) ─────────────────────────────── */

.work-list { border-top: 1px solid var(--rule); }
.work-row {
  display: grid;
  grid-template-columns: 56px 1.6fr 1.4fr 0.6fr 28px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-15);
  transition: padding-left .35s ease, color .35s ease;
}
.work-row:hover { padding-left: 16px; color: var(--marine); }
.work-row .idx { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-60); font-weight: 400;}
.work-row .title { font-family: var(--display); font-size: clamp(28px, 3.4vw, 56px); letter-spacing: -0.008em; line-height: 1.04; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;}
.work-row .services { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60); font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.work-row .year { font-family: var(--serif); font-size: 16px; color: var(--ink); text-align: right; font-weight: 400;}
.work-row .arrow { text-align: right; font-family: var(--serif); font-size: 18px; color: var(--ink-40); transition: transform .35s ease, color .35s ease; font-weight: 400;}
.work-row:hover .arrow { transform: translateX(6px); color: var(--marine); }

@media (max-width: 760px) {
  .work-row {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .work-row .services, .work-row .year, .work-row .arrow { display: none; }
}

/* ── Case-study image hero ────────────────────────────────── */

.case-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-2);
  margin-top: clamp(32px, 4vw, 56px);
}
.case-image.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--ink-15);
  background: var(--paper-2);
  text-align: center;
  padding: clamp(40px, 6vw, 80px);
}
.case-image.coming-soon .h-md { line-height: 1; }
.case-image.coming-soon .label { color: var(--ink-60); }

/* ── Two-column "from-to" prose ────────────────────────────── */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ── Definition list (key/value) ───────────────────────────── */

.dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 32px;
}
.dl dt {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding-top: 4px; font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.dl dd {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  border-bottom: 1px solid var(--ink-15);
  padding-bottom: 16px; font-weight: 400;
}
.dl dt { border-bottom: 1px solid var(--ink-15); padding-bottom: 16px; }

@media (max-width: 760px) {
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dt { border-bottom: 0; padding-bottom: 4px; }
  .dl dd { padding-bottom: 22px; margin-bottom: 18px; }
}

/* ── Clients grid (logo strip placeholder) ────────────────── */

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-15);
  border-left: 1px solid var(--ink-15);
}
.client-cell {
  border-right: 1px solid var(--ink-15);
  border-bottom: 1px solid var(--ink-15);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255,255,255,.25);
}
.client-cell span {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
@media (max-width: 760px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

.client-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .client-grid.three { grid-template-columns: 1fr; }
}

/* ── Seal SVG (reusable, color-controlled via CSS mask) ────── */

.seal {
  display: block;
  flex-shrink: 0;
  height: 100px;
  width: auto;
}
.seal-sm { height: 72px; }
.seal-lg { height: 160px; }

/* Hero with seal in the eyebrow row */
.hero-eyebrow.has-seal {
  align-items: flex-start;
}
.hero-eyebrow .seal-slot {
  margin-left: auto;
}
@media (max-width: 760px) {
  .hero-eyebrow .seal-slot .seal { height: 80px; }
}

/* ── Buttons / links ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
  cursor: pointer; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-marine { border-color: var(--marine); color: var(--marine); }
.btn-marine:hover { background: var(--marine); color: var(--paper); }

.link-underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .2s ease;
}
.link-underline:hover { color: var(--marine); }

/* ── Footer ────────────────────────────────────────────────── */

.foot {
  background: #D9CCB0;
  color: var(--paper);
  border-top: 1px solid #D9CCB0;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: 28px;
}
.foot a { color: var(--paper); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.foot-grid .col { display: flex; flex-direction: column; gap: 10px; }
.foot-grid h4 { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,244,242,.65); margin-bottom: 14px; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.foot .body-sm { color: rgba(244,244,242,.85); }
.foot-grid a { display: block; padding: 4px 0; }
.foot-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-mark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  margin-top: 12px;
  margin-bottom: 24px;
  width: 100%;
}
.foot-mark .wordmark-group {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 28px);
  flex: 1;
  min-width: 0;
}
.foot-mark .foot-art {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
}
.foot-mark .seal {
  height: clamp(80px, 10vw, 140px);
  width: auto;
  align-self: flex-end;
  margin-bottom: 8px;
  opacity: .92;
}
.foot-mark .wordmark-group img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  /* Invert the black SVG to paper-colored on the blue ground */
  filter: brightness(0) invert(1) sepia(.04) saturate(.4) brightness(.97);
}
.foot-mark sup {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.4vw, 22px);
  color: rgba(244,244,242,.7);
  letter-spacing: 0;
  margin-top: clamp(6px, 1.2vw, 22px); font-weight: 400;
}
.foot-meta {
  border-top-color: rgba(244,244,242,.25) !important;
  color: rgba(244,244,242,.7) !important;
}
.foot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-15);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-60); font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Page header (non-home) ────────────────────────────────── */

.page-head {
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.page-head .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* ── Form ──────────────────────────────────────────────────── */

.form { display: grid; gap: 0; }
.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--ink-15);
  padding: 22px 0;
  align-items: baseline;
}
.form-row:first-child { border-top: 1px solid var(--rule); }
.form-row label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60); font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  background: transparent;
  border: 0;
  color: var(--ink);
  width: 100%;
  outline: none;
  padding: 4px 0; font-weight: 400;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-40); font-style: italic; }
.form-row textarea { resize: vertical; min-height: 60px; }

@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* ── Cherub / decorative figure (SVG inline) ──────────────── */
.figure-bronze { color: var(--bronze); }
.figure-ink    { color: var(--ink); }

/* ── Numbered chips (e.g., 04 / 12) ───────────────────────── */
.chip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-60);
  letter-spacing: 0; font-weight: 400;
}

/* ── Case study page (Crown Creative–style) ───────────────── */

/* Reset the sticky-meta band grid behavior on case pages — they don't use it */
body.case-page section { display: block; }

.case-hero {
  width: 100%;
  margin: 0;
}
.case-hero img,
.case-hero video {
  display: block;
  width: 100%;
  height: clamp(420px, 78vh, 920px);
  object-fit: cover;
}

.case-intro {
  padding: clamp(72px, 10vw, 160px) 0 clamp(56px, 7vw, 112px);
}
.case-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.case-meta-aside { padding-top: 14px; }
.case-meta-dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) 1fr;
  column-gap: 24px;
  row-gap: 0;
  border-top: 1px solid var(--rule);
}
.case-meta-dl dt {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-15);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60); font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.case-meta-dl dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-15);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  margin: 0; font-weight: 400;
}

.case-fig { margin: 0; }
.case-fig img,
.case-fig video {
  display: block;
  width: 100%;
  height: auto;
}
.case-fig--bleed {
  margin-top: clamp(64px, 8vw, 128px);
  margin-bottom: clamp(64px, 8vw, 128px);
}
.case-fig--bleed img,
.case-fig--bleed video {
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: cover;
}

.case-prose {
  padding: clamp(40px, 6vw, 88px) 0;
}
.case-prose .wrap {
  max-width: 720px;
}
.case-prose p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1em; font-weight: 400;
}
.case-prose p:last-child { margin-bottom: 0; }

.case-pair { padding: clamp(32px, 4vw, 64px) 0; }
.case-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 40px);
}

.case-trio { padding: clamp(32px, 4vw, 64px) 0; }
.case-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

.case-quote {
  padding: clamp(80px, 12vw, 180px) 0;
}
.case-quote blockquote {
  max-width: none;
  margin: 0 auto;
  text-align: center;
}
.case-quote blockquote p {
  max-width: 13em; /* about 20 characters a line */
  margin-left: auto; margin-right: auto;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.008em;
  color: var(--ink); font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
.case-quote blockquote footer {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-style: normal; font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}

.case-credits {
  padding: clamp(80px, 10vw, 160px) 0 clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--ink-15);
}
.case-credits-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.case-credits-dl {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) 1fr;
  column-gap: 24px;
  row-gap: 0;
}
.case-credits-dl dt {
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-15);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-60); font-weight: 400; font-feature-settings: "case" 1, "lnum" 1, "kern" 1, "liga" 1;
}
.case-credits-dl dt:first-child,
.case-credits-dl dd:nth-child(2) { border-top: 1px solid var(--rule); }
.case-credits-dl dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-15);
  font-family: var(--serif);
  font-size: 16px;
  margin: 0; font-weight: 400;
}

.case-next {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.case-next-link {
  display: block;
  padding: clamp(48px, 6vw, 96px) 0;
  color: var(--ink);
  transition: background .25s ease;
}
.case-next-link:hover { background: var(--paper-2); }
.case-next-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.case-next-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-top: 16px; font-weight: 400; font-feature-settings: "kern" 1, "liga" 1;
}
.case-next-arrow {
  display: inline-block;
  margin-left: 24px;
  transition: transform .35s ease;
}
.case-next-link:hover .case-next-arrow { transform: translateX(12px); }
.case-next-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  align-items: flex-end;
}

@media (max-width: 760px) {
  .case-intro-grid,
  .case-pair-grid,
  .case-trio-grid,
  .case-credits-grid,
  .case-next-grid { grid-template-columns: 1fr; }
  .case-next-meta { text-align: left; align-items: flex-start; }
}


/* ── Small text: Ivy Ora Text Medium (requested 2026-10-19) ── */
html body .label,
html body .label-muted,
html body .body-sm,
html body .brand .brand-text,
html body .nav,
html body .nav a,
html body .tri > .cell p,
html body .tri > .cell .num,
html body .quad > .cell .num,
html body .quad > .cell p,
html body .work-row .idx,
html body .work-row .services,
html body .dl dt,
html body .dl dd,
html body .btn,
html body .btn-lg,
html body .link-underline,
html body .foot-grid h4,
html body .foot-grid a,
html body .foot-grid p,
html body .foot-grid li,
html body .foot-meta,
html body .form-row label,
html body .form-row input,
html body .form-row select,
html body .form-row textarea,
html body .chip,
html body .case-meta-dl dt,
html body .case-meta-dl dd,
html body .case-quote blockquote footer,
html body .case-credits-dl dt,
html body .case-credits-dl dd,
html body .step .n,
html body .step p,
html body .shot .cap,
html body .shot .cap .m,
html body .dock a {
  font-family: "ivyora-text", "ivyora-display", Georgia, serif;
  font-weight: 500;
}
/* Bullets match text colour */
html body .caps span::after { background: currentColor; }
html body .figure-bronze { color: currentColor; }


/* ── Locations: NY → NORWAY typing mark (contact) ── */
html body .ny-type {
  margin: 0;
  font-family: "ivyora-display", "ivypresto-display", Georgia, serif;
  font-weight: 300;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  font-kerning: normal;
  color: var(--ink);
}
.ny-caret {
  display: inline-block;
  width: 0.022em;
  height: 0.74em;
  margin: 0 0.035em;
  background: currentColor;
  vertical-align: baseline;
}
.ny-caret.blink { animation: ny-blink 1.06s steps(1, end) infinite; }
.ny-caret.solid { animation: none; opacity: 1; }
@keyframes ny-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ny-caret { display: none; } }

/* Rocky Patel packaging section (work.html) */
.rp-pack { margin-top: clamp(72px, 9vw, 140px); }
.rp-pack-head { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(28px, 3.5vw, 56px); align-items: start; }
.rp-pack-head .lede { margin: 0; max-width: 34ch; }
.rp-row { display: grid; gap: clamp(16px, 2vw, 32px); margin-top: clamp(16px, 2vw, 32px); }
.rp-row.two { grid-template-columns: 1fr 1fr; }
.rp-row.three { grid-template-columns: repeat(3, 1fr); }
.rp-row figure { margin: 0; }
.rp-row img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.rp-row.one img { aspect-ratio: 3 / 2; }
.rp-row figcaption { display: block; margin-top: 10px; }
@media (max-width: 760px) {
  .rp-pack-head, .rp-row.two, .rp-row.three { grid-template-columns: 1fr; }
}

.rp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink); }
.rp-quote { margin: 0; }
.rp-quote blockquote { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--ink); }
.rp-quote figcaption { display: block; margin-top: 14px; }
.rp-quote figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .rp-quotes { grid-template-columns: 1fr; } }

/* Spinning statue in the closing CTA (about.html) */
.cta-duo { align-items: center; }
.cta-statue { display: flex; justify-content: flex-end; align-items: center; margin: calc(clamp(48px, 7vw, 120px) * -0.85) 0; }
.cta-statue video { display: block; width: 132%; max-width: none; margin-left: -32%; height: auto; mix-blend-mode: screen; }
@media (max-width: 760px) { .cta-statue video { width: 100%; margin-left: 0; } }
@media (max-width: 760px) { .cta-statue { margin: 24px 0 0; } }

/* ── Careswitch colour section ─────────────────────────────── */
.cs-colour { padding: clamp(56px, 8vw, 128px) 0; }
.cs-colour-head { display: grid; grid-template-columns: 220px 1fr; column-gap: clamp(20px, 3vw, 48px); row-gap: 18px; align-items: start; }
.cs-colour-head h2 { margin: 0; }
.cs-colour-head p { grid-column: 2; margin: 0; max-width: 40ch; font-family: var(--serif); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink); }
.cs-sub { margin-top: clamp(48px, 6vw, 88px); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink-15); padding-top: 14px; }
.cs-sub .label { margin: 0; }
.cs-sub small { font-family: var(--sans); font-size: 12px; color: var(--ink-60); }

/* Flat: palette, primaries large and supporting colours small */
.cs-big { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(24px, 3vw, 40px); }
.cs-small { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(24px, 3vw, 40px); max-width: 720px; }
.cs-sw { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.cs-sw .chip { aspect-ratio: 3 / 4; max-width: 100%; }
.cs-small .cs-sw .chip { aspect-ratio: 1; }
.cs-sw.light .chip { box-sizing: border-box; border: 1px solid var(--ink-15); }
.cs-sw figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.cs-sw b { font-family: var(--serif); font-weight: 400; font-size: 18px; line-height: 1.2; color: var(--ink); }
.cs-small .cs-sw b { font-size: 15px; }
.cs-sw em { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.cs-small .cs-sw figcaption { margin-top: 8px; }

/* Gradients: animated, with a faint dissolve grain */
.cs-grad { position: relative; overflow: hidden; isolation: isolate; max-width: 100%; margin: 0; }
.cs-grad i { position: absolute; border-radius: 50%; aspect-ratio: 1; will-change: transform; }
.cs-grad::after { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 7 -3.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: csGrain 1.2s steps(4) infinite; }
.cs-grad figcaption { position: absolute; left: clamp(14px, 2.5vw, 32px); bottom: clamp(12px, 2.2vw, 28px); z-index: 2; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #FFF1F0; }
.cs-grad.light figcaption { color: #0F183B; }
@keyframes csGrain { 0% { transform: translate(0,0); } 25% { transform: translate(-6%,4%); } 50% { transform: translate(5%,-7%); } 75% { transform: translate(-3%,-5%); } 100% { transform: translate(0,0); } }


.cs-grads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(24px, 3vw, 40px); }
.cs-grads .cs-grad { aspect-ratio: 4 / 5; }
.cs-grad i.band { left: -35%; width: 170%; height: 62%; aspect-ratio: auto; transform-origin: 50% 50%; filter: blur(clamp(26px, 3.2vw, 48px)); border-radius: 46% 54% 62% 38% / 58% 42% 58% 42%; }
.g-ember { background: #000E41; }
.g-ember .x1 { top: 46%; background: linear-gradient(to bottom, rgba(255,105,105,.15) 0%, #FF6969 50%, rgba(255,105,105,.2) 100%); animation: csWaveA 11s ease-in-out infinite alternate; }
.g-ember .x2 { top: -12%; background: linear-gradient(to bottom, rgba(15,38,120,.2) 0%, rgba(15,38,120,.95) 50%, rgba(15,38,120,.2) 100%); animation: csWaveB 14s ease-in-out infinite alternate; }
.g-mist { background: #F5F7FB; }
.g-mist .x1 { top: 4%; background: #FFF1F0; animation: csWaveC 12s ease-in-out infinite alternate; }
.g-mist .x2 { top: 52%; height: 70%; background: #FFECEA; animation: csWaveA 15s ease-in-out infinite alternate-reverse; }
.g-mist .x3 { top: 30%; height: 50%; background: rgba(255,105,105,.3); animation: csWaveB 13s ease-in-out infinite alternate-reverse; }
.g-mist .x4 { top: 68%; left: -10%; width: 120%; height: 34%; background: #E3E7F0; animation: csWaveC 14s ease-in-out infinite alternate; }
.g-pod { background: #0F183B; }
.g-pod .x1 { top: 2%; background: linear-gradient(to bottom, rgba(35,112,255,.2) 0%, #2370FF 50%, rgba(35,112,255,.2) 100%); animation: csWaveB 12s ease-in-out infinite alternate; }
.g-pod .x2 { top: 55%; height: 48%; background: linear-gradient(to bottom, rgba(92,149,255,.1) 0%, rgba(92,149,255,.75) 50%, rgba(92,149,255,.1) 100%); animation: csWaveC 10s ease-in-out infinite alternate-reverse; }

@keyframes csWaveA {
  0%   { transform: translateY(0) rotate(-14deg) scale(1, 1);      border-radius: 46% 54% 62% 38% / 58% 42% 58% 42%; }
  35%  { transform: translateY(-16%) rotate(-2deg) scale(1.1, 1.3); border-radius: 62% 38% 40% 60% / 40% 62% 38% 60%; }
  70%  { transform: translateY(12%) rotate(-24deg) scale(.95, .8);  border-radius: 38% 62% 55% 45% / 62% 38% 64% 36%; }
  100% { transform: translateY(-6%) rotate(-8deg) scale(1.05, 1.2); border-radius: 55% 45% 36% 64% / 45% 58% 42% 55%; }
}
@keyframes csWaveB {
  0%   { transform: translateY(0) rotate(12deg) scale(1, 1.1);      border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
  35%  { transform: translateY(20%) rotate(2deg) scale(1.15, .85);  border-radius: 40% 60% 64% 36% / 62% 38% 58% 42%; }
  70%  { transform: translateY(6%) rotate(22deg) scale(.9, 1.35);   border-radius: 52% 48% 38% 62% / 36% 64% 44% 56%; }
  100% { transform: translateY(24%) rotate(6deg) scale(1.1, 1);     border-radius: 64% 36% 52% 48% / 58% 42% 62% 38%; }
}
@keyframes csWaveC {
  0%   { transform: translateY(0) rotate(-6deg) scale(1, 1);       border-radius: 42% 58% 58% 42% / 60% 40% 56% 44%; }
  35%  { transform: translateY(14%) rotate(-20deg) scale(1.1, 1.3); border-radius: 60% 40% 38% 62% / 42% 60% 40% 58%; }
  70%  { transform: translateY(-10%) rotate(4deg) scale(.95, .9);   border-radius: 36% 64% 60% 40% / 64% 36% 60% 40%; }
  100% { transform: translateY(8%) rotate(-14deg) scale(1.08, 1.2); border-radius: 56% 44% 44% 56% / 44% 60% 38% 62%; }
}
@keyframes csMorphA {
  0%   { transform: translate(0,0) rotate(0deg) scale(1, 1); }
  33%  { transform: translate(22%,-14%) rotate(40deg) scale(1.35, .8); }
  66%  { transform: translate(-12%,-30%) rotate(-20deg) scale(.85, 1.3); }
  100% { transform: translate(30%,10%) rotate(70deg) scale(1.2, 1.05); }
}
@keyframes csMorphB {
  0%   { transform: translate(0,0) rotate(0deg) scale(1.1, .9); }
  33%  { transform: translate(-25%,20%) rotate(-35deg) scale(.8, 1.35); }
  66%  { transform: translate(15%,32%) rotate(25deg) scale(1.4, .85); }
  100% { transform: translate(-30%,-12%) rotate(-60deg) scale(1, 1.2); }
}
@keyframes csMorphC {
  0%   { transform: translate(0,0) rotate(0deg) scale(1, 1.15); }
  33%  { transform: translate(28%,26%) rotate(30deg) scale(1.3, .8); }
  66%  { transform: translate(-20%,18%) rotate(-25deg) scale(.9, 1.25); }
  100% { transform: translate(10%,-28%) rotate(55deg) scale(1.25, .95); }
}
@keyframes csDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(28%,18%) scale(1.25); } }
@keyframes csDrift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-30%,22%) scale(.9); } }
@keyframes csDrift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-22%,-30%) scale(1.3); } }
@keyframes csDrift4 { from { transform: translate(0,0) scale(.9); } to { transform: translate(-60%,-40%) scale(1.2); } }

@media (max-width: 760px) {
  .cs-colour-head { grid-template-columns: 1fr; }
  .cs-colour-head p { grid-column: 1; }
    .cs-grads { grid-template-columns: 1fr; }
  .cs-grads .cs-grad { aspect-ratio: 16 / 10; }
  .cs-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-big .cs-sw:first-child { grid-column: span 2; }
  .cs-big .cs-sw:first-child .chip { aspect-ratio: 16 / 9; }
  .cs-small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-grad i, .cs-grad::after { animation: none; }
}

/* ── Careswitch: hug paragraph beside the animation ────────── */
.cs-hug { padding: clamp(40px, 6vw, 88px) 0; }
.cs-hug-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cs-hug-grid p { margin: 0; max-width: 32ch; font-family: var(--serif); font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink); font-weight: 400; }
.cs-hug-grid .case-fig { margin: 0; }
@media (max-width: 760px) {
  .cs-hug-grid { grid-template-columns: 1fr; }
}

/* ── Footer mark: big tagline left, seal top right ─────────── */
.foot-mark { align-items: flex-start; justify-content: space-between; gap: clamp(16px, 3vw, 56px); margin-top: clamp(48px, 6vw, 96px); margin-bottom: clamp(20px, 2vw, 32px); }
.foot-mark .foot-art { flex: 0 1 79%; width: 79%; max-width: 79%; }
.foot-mark .seal { align-self: flex-start; width: 13%; min-width: 60px; height: auto; margin: 0; flex: 0 0 auto; }


/* ── Quercus trio: staggered editorial layout (2026-10-22) ── */
.case-trio--stagger .case-trio-grid {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.case-trio--stagger .case-fig { margin: 0; }
.case-trio--stagger .case-fig img,
.case-trio--stagger .case-fig video { display: block; width: 100%; height: auto; }
.case-trio--stagger .trio-sign { grid-column: 1 / 8; grid-row: 1; }
.case-trio--stagger .trio-map  { grid-column: 9 / 13; grid-row: 1 / 3; align-self: center; }
.case-trio--stagger .trio-menu { grid-column: 3 / 9; grid-row: 2; }
@media (max-width: 760px) {
  .case-trio--stagger .case-trio-grid { grid-template-columns: repeat(12, 1fr); }
  .case-trio--stagger .trio-sign { grid-column: 1 / 12; grid-row: auto; }
  .case-trio--stagger .trio-menu { grid-column: 3 / 13; grid-row: auto; }
  .case-trio--stagger .trio-map  { grid-column: 2 / 10; grid-row: auto; align-self: start; }
}


/* ── Offset single images (Quercus, 2026-10-22) ── */
.case-solo { padding: clamp(32px, 4vw, 64px) 0; }
.case-solo .case-fig { width: 72%; }
.case-solo--right .case-fig { margin-left: auto; }
.case-solo--left .case-fig { margin-right: auto; }
.case-solo--narrow .case-fig { width: 38%; max-width: 480px; margin-left: 8%; }
@media (max-width: 760px) {
  .case-solo .case-fig { width: 88%; }
  .case-solo--narrow .case-fig { width: 72%; margin-left: 0; }
}

.case-solo--mid .case-fig { width: 46%; max-width: 640px; margin-left: 8%; }
@media (max-width: 760px) { .case-solo--mid .case-fig { width: 80%; margin-left: 0; } }

/* Quercus trio + plates (2026-10-22) */
.case-trio--stagger .trio-sign   { grid-column: 1 / 8;  grid-row: 1; }
.case-trio--stagger .trio-map    { grid-column: 9 / 13; grid-row: 1; align-self: center; }
.case-trio--stagger .trio-menu   { grid-column: 2 / 9;  grid-row: 2; align-self: end; }
.case-trio--stagger .trio-plates { grid-column: 9 / 13; grid-row: 2; align-self: end; }
.case-solo--mid-right .case-fig { margin-left: auto; margin-right: 8%; }
@media (max-width: 760px) {
  .case-trio--stagger .trio-sign   { grid-column: 1 / 12; grid-row: auto; }
  .case-trio--stagger .trio-map    { grid-column: 2 / 10; grid-row: auto; }
  .case-trio--stagger .trio-menu   { grid-column: 1 / 13; grid-row: auto; }
  .case-trio--stagger .trio-plates { grid-column: 4 / 12; grid-row: auto; }
  .case-solo--mid-right .case-fig { margin-right: 0; }
}

/* Quercus social series (2026-10-22) */
.case-social .label { display: block; margin-bottom: clamp(16px, 2vw, 28px); }
.case-social-grid { gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 760px) {
  .case-social-grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .case-social-grid .case-fig { scroll-snap-align: start; }
}

/* Quercus colour gradients (2026-10-22) */
.g-qforest { background: #2D3B30; }
.g-qforest .x1 { top: 50%; background: linear-gradient(to bottom, rgba(153,101,70,.1) 0%, rgba(169,68,11,.85) 50%, rgba(153,101,70,.15) 100%); animation: csWaveA 12s ease-in-out infinite alternate; }
.g-qforest .x2 { top: -14%; background: linear-gradient(to bottom, rgba(18,28,21,.2) 0%, rgba(18,28,21,.95) 50%, rgba(18,28,21,.2) 100%); animation: csWaveB 14s ease-in-out infinite alternate; }
.g-qdawn { background: #F3EDE1; }
.g-qdawn .x1 { top: 6%; background: #D6D0C0; animation: csWaveC 13s ease-in-out infinite alternate; }
.g-qdawn .x2 { top: 48%; height: 66%; background: rgba(148,108,46,.55); animation: csWaveA 15s ease-in-out infinite alternate-reverse; }
.g-qdawn .x3 { top: 70%; left: -10%; width: 120%; height: 36%; background: rgba(135,131,95,.6); animation: csWaveB 12s ease-in-out infinite alternate; }
.g-qnight { background: #101618; }
.g-qnight .x1 { top: 0%; background: linear-gradient(to bottom, rgba(72,85,93,.2) 0%, #48555D 50%, rgba(72,85,93,.2) 100%); animation: csWaveB 12s ease-in-out infinite alternate; }
.g-qnight .x2 { top: 60%; height: 42%; background: linear-gradient(to bottom, rgba(148,108,46,.05) 0%, rgba(214,150,70,.7) 50%, rgba(148,108,46,.05) 100%); animation: csWaveC 10s ease-in-out infinite alternate-reverse; }

/* Quercus regrouped galleries (2026-10-23) */
.q-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(28px, 4vw, 64px); align-items: start; }
.q-grid .case-fig { margin: 0; }
.q-grid .case-fig img, .q-grid .case-fig video { display: block; width: 100%; height: auto; }
.q-way .q-sign { grid-column: 1 / 8;  grid-row: 1; }
.q-way .q-map  { grid-column: 9 / 13; grid-row: 1 / 3; align-self: center; }
.q-way .q-key  { grid-column: 3 / 8;  grid-row: 2; }
.q-uberto .q-ub     { grid-column: 1 / 6;  grid-row: 1; }
.q-uberto .q-menu   { grid-column: 6 / 13; grid-row: 1; align-self: end; }
.q-uberto .q-plates { grid-column: 8 / 12; grid-row: 2; }
@media (max-width: 760px) {
  .q-way .q-sign { grid-column: 1 / 12; grid-row: auto; }
  .q-way .q-map  { grid-column: 3 / 13; grid-row: auto; }
  .q-way .q-key  { grid-column: 1 / 9;  grid-row: auto; }
  .q-uberto .q-ub     { grid-column: 1 / 10; grid-row: auto; }
  .q-uberto .q-menu   { grid-column: 2 / 13; grid-row: auto; }
  .q-uberto .q-plates { grid-column: 4 / 12; grid-row: auto; }
}

/* Rocky Patel packaging carousel (2026-10-23) */
.rp-reel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: clamp(14px, 1.6vw, 22px); }
.rp-reel-nav button { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1; cursor: pointer; transition: background .25s ease, color .25s ease, opacity .25s ease; }
.rp-reel-nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.rp-reel-nav button:disabled { opacity: .28; cursor: default; }
.rp-reel { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.rp-reel::-webkit-scrollbar { display: none; }
.rp-reel figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.rp-reel img { display: block; height: clamp(320px, 36vw, 540px); width: auto; max-width: none; background: var(--paper-2); }
.rp-reel figcaption { display: block; margin-top: 10px; }
@media (max-width: 760px) { .rp-reel-nav { display: none; } .rp-reel img { height: 62vw; } }
@media (prefers-reduced-motion: reduce) { .rp-reel { scroll-behavior: auto; } }
.rp-soon { margin-top: clamp(40px, 5vw, 72px); padding-top: 16px; border-top: 1px solid var(--ink-15); }
.rp-pack, .rp-reel { min-width: 0; }

/* ── Mobile fixes (2026-10-23) ──────────────────────────────── */
@media (max-width: 760px) {
  /* full-width content: beat the desktop grid-column:2 rules */
  .band > .wrap > :not(.section-head),
  .band > .wrap > .section-head > div:not(.meta),
  .band > .wrap > .section-head > .meta { grid-column: 1; }
  /* clients two-up */
  .client-grid.three { grid-template-columns: repeat(2, 1fr); }
  .client-grid.three .client-cell:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: auto; padding: 28px 24px; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 12.5px; }
  .nav a.is-current { display: none; }
  .nav a[href="index.html"] { display: none; }
}

/* ── Mobile consistency pass 2 (2026-10-23) ─────────────────── */
/* header: keep the gutter on every page (shorthand padding wiped it) */
.topbar-inner { padding-left: var(--gutter); padding-right: var(--gutter); }

@media (max-width: 760px) {
  /* clients: two equal columns that never push past the gutter */
  .client-grid, .client-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-cell { padding: 14px 10px; min-width: 0; }
  .client-cell span { font-size: 17px; }

  /* case-study images: one consistent column, gutter to gutter */
  .q-grid { grid-template-columns: 1fr; row-gap: 16px; }
  .q-grid .case-fig,
  .q-way .q-sign, .q-way .q-map, .q-way .q-key,
  .q-uberto .q-ub, .q-uberto .q-menu, .q-uberto .q-plates { grid-column: 1 / -1; grid-row: auto; align-self: auto; }
  .case-solo .case-fig,
  .case-solo--narrow .case-fig,
  .case-solo--mid .case-fig,
  .case-solo--mid-right .case-fig { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
  .case-trio--stagger .case-trio-grid { grid-template-columns: 1fr; row-gap: 16px; }
  .case-trio--stagger .case-trio-grid > .case-fig { grid-column: 1 / -1; grid-row: auto; }
  .case-pair-grid, .case-trio-grid { row-gap: 16px; }

  /* colour: condensed swatches */
  .cs-colour { padding: 48px 0; }
  .cs-big { grid-template-columns: 1fr; gap: 6px; margin-top: 20px; }
  .cs-big .cs-sw:first-child { grid-column: auto; }
  .cs-big .cs-sw { position: relative; }
  .cs-big .cs-sw .chip,
  .cs-big .cs-sw:first-child .chip { aspect-ratio: auto; height: 52px; }
  .cs-big .cs-sw figcaption { position: absolute; left: 14px; top: 0; bottom: 0; margin: 0; justify-content: center; }
  .cs-big .cs-sw b { font-size: 15px; color: #F4F4F2; }
  .cs-big .cs-sw.light b { color: var(--ink); }
  .cs-small { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 6px; max-width: none; }
  .cs-small .cs-sw .chip { aspect-ratio: 1; }
  .cs-small .cs-sw figcaption { margin-top: 6px; }
  .cs-small .cs-sw b { font-size: 11px; line-height: 1.25; }
  .cs-grads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
  .cs-grads .cs-grad { aspect-ratio: 3 / 4; }
}
@media (max-width: 760px) {
  .cs-small:has(> .cs-sw:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Language switch (2026-10-23) */
.nav a.lang-switch { color: var(--ink-60); padding-left: 14px; border-left: 1px solid var(--ink-15); }
.nav a.lang-switch:hover { color: var(--ink); }
.nav a.lang-switch::after { display: none; }
@media (max-width: 560px) {
  html body .topbar-inner { gap: 12px; }
  html body .brand .brand-text { font-size: 11.5px; letter-spacing: .14em; white-space: nowrap; }
  html body .nav { gap: 11px; font-size: 11px; letter-spacing: .1em; }
  html body .nav a { font-size: 11px; letter-spacing: .1em; }
  html body .nav a.lang-switch { padding-left: 10px; }
}

/* Coming soon grid (2026-10-23) */
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.soon-card { margin: 0; }
.soon-card img, .soon-card video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.soon-card figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-15); }
.soon-t { font-family: var(--display); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.1; font-weight: 400; }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; gap: 28px; } }
.soon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } }

/* Pull quote leading (2026-10-23) */
.case-quote blockquote p { line-height: 1.16; }

.case-clay .case-fig video { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

/* Uberto group v2 (2026-10-23): sign + plates side by side, menu larger below */
.q-uberto .q-ub     { grid-column: 1 / 7;  grid-row: 1; align-self: start; }
.q-uberto .q-plates { grid-column: 7 / 13; grid-row: 1; align-self: start; }
.q-uberto .q-menu   { grid-column: 2 / 12; grid-row: 2; align-self: start; }
.q-uberto .q-ub img, .q-uberto .q-plates img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) {
  .q-uberto .q-ub, .q-uberto .q-plates, .q-uberto .q-menu { grid-column: 1 / -1; grid-row: auto; }
}
.case-pair-grid img[src*="quercus-bedroom-1022"], .case-pair-grid img[src*="quercus-amenities-nook"] { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* Quercus: the mark (2026-10-23) */
.q-mark { padding: clamp(64px, 9vw, 140px) 0; }
.q-mark-head { display: grid; grid-template-columns: 220px 1fr; column-gap: clamp(20px, 3vw, 48px); row-gap: 20px; align-items: start; }
.q-mark-head .h-lg, .q-mark-copy { grid-column: 2; }
.q-mark-head .h-lg { margin: 0; }
.q-mark-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(8px, 1.5vw, 20px); }
.q-mark-copy p { margin: 0; font-family: var(--serif); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; max-width: 38ch; }
.q-mark-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 2.5vw, 40px); margin-top: clamp(40px, 5vw, 80px); }
.q-mark-pair .case-fig { margin: 0; }
.q-mark-pair img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.q-mark-pair figcaption { display: block; margin-top: 12px; }
.q-mark-arrow { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 36px); color: var(--ink-60, #777); }
@media (max-width: 760px) {
  .q-mark-head { grid-template-columns: 1fr; }
  .q-mark-head .h-lg, .q-mark-copy { grid-column: 1; }
  .q-mark-copy { grid-template-columns: 1fr; }
  .q-mark-pair { grid-template-columns: 1fr 1fr; gap: 10px; }
  .q-mark-arrow { display: none; }
}

/* Rocky Patel cover: coming soon (2026-10-23) */
.cover-soon { position: relative; }
.cover-soon .case-image { display: block; }
.cover-soon::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.45); pointer-events: none; }
.cover-soon-tag { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.6vw, 84px); letter-spacing: -0.01em; color: #F4F4F2; text-align: center; padding: 0 16px; }
.rp-pack[hidden] { display: none !important; }
.cover-soon { margin-top: clamp(32px, 4vw, 56px); }
.cover-soon .case-image { margin-top: 0; }

/* Wayfinding group v2 (2026-10-23): interior stacked under the map */
.q-way .q-sign { grid-column: 1 / 8;  grid-row: 1; }
.q-way .q-map  { grid-column: 9 / 13; grid-row: 1; align-self: start; }
.q-way .q-key  { grid-column: 3 / 8;  grid-row: 2; }
.q-way .q-int  { grid-column: 9 / 13; grid-row: 2; align-self: start; }
@media (max-width: 760px) { .q-way .q-int { grid-column: 1 / -1; grid-row: auto; } }
/* swap key and interior (2026-10-23) */
.q-way .q-int { grid-column: 3 / 8;  grid-row: 2; align-self: start; }
.q-way .q-key { grid-column: 9 / 13; grid-row: 2; align-self: start; }
@media (max-width: 760px) { .q-way .q-int, .q-way .q-key { grid-column: 1 / -1; grid-row: auto; } }
.q-way .q-key { grid-column: 8 / 13; }
.q-way .q-int { grid-column: 2 / 7; }
@media (max-width: 760px) { .q-way .q-int, .q-way .q-key { grid-column: 1 / -1; } }
/* Home reel: video shots (2026-10-23) */
.shot video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); transition: opacity .3s ease; }
.shot:hover video { opacity: .84; }

/* Language switch: flags (2026-10-23) */
.nav a.lang-switch { display: inline-flex; align-items: center; color: var(--ink); }
.nav a.lang-switch .flag { display: block; height: 13px; width: auto; }
.nav a.lang-switch:hover { opacity: .6; color: var(--ink); }

/* Language switch in footer (2026-10-23) */
.foot-meta a.foot-lang { display: inline-flex; align-items: center; margin-left: auto; color: #F4F4F2; padding: 4px 0; border: 0; }
.foot-meta a.foot-lang .flag { display: block; height: 14px; width: auto; }
.foot-meta a.foot-lang:hover { opacity: .6; color: #F4F4F2; }
.foot-langs { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.foot-langs .foot-lang { display: inline-flex; align-items: center; color: #F4F4F2; padding: 4px 0; margin: 0; opacity: .4; transition: opacity .2s ease; }
.foot-langs .foot-lang.is-current { opacity: 1; }
.foot-langs a.foot-lang:hover { opacity: 1; color: #F4F4F2; }
.foot-langs .flag { display: block; height: 14px; width: auto; }

/* Wordmark: outlined SVG, The Office of Byrå (2026-10-25) */
html body .brand .brand-mark { display: block; height: 23px; width: auto; color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { html body .brand .brand-mark { height: 17px; } }

/* Nav language toggle: both flags, current one full ink (2026-10-25) */
.nav .nav-langs { display: inline-flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--ink-15); }
.nav .nav-langs .nav-lang { display: inline-flex; align-items: center; color: var(--ink); padding: 4px 0; opacity: .3; transition: opacity .2s ease; }
.nav .nav-langs .nav-lang::after { display: none; }
.nav .nav-langs .nav-lang.is-current { opacity: 1; }
.nav .nav-langs a.nav-lang:hover { opacity: .75; color: var(--ink); }
.nav .nav-langs .flag { display: block; height: 13px; width: auto; }
@media (max-width: 560px) { .nav .nav-langs { gap: 9px; padding-left: 10px; } .nav .nav-langs .flag { height: 11px; } }

/* Careswitch colour film (2026-10-29) */
.cs-colour-film { margin: clamp(18px, 2.4vw, 32px) 0 0; }
.cs-colour-film video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #ECEEF3; }

/* ── Rocky Patel case study (2026-10-29) ── */
.rp-redraw, .rp-mono { padding: clamp(64px, 9vw, 140px) 0; }
.rp-stage { margin: clamp(40px, 5vw, 80px) 0 0; background: #fff; border: 1px solid var(--ink-15); padding: clamp(24px, 5vw, 80px) clamp(16px, 5vw, 80px) clamp(16px, 2.5vw, 28px); }
.rp-stage-art { position: relative; aspect-ratio: 1964 / 545; max-width: 1100px; margin: 0 auto; }
.rp-stage-art .v { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.rp-stage-art .v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .7s ease; }
.rp-stage-art .v .gold { opacity: 0; }
.rp-stage[data-v="1"] .v1, .rp-stage[data-v="2"] .v2, .rp-stage[data-v="3"] .v3 { opacity: 1; }
/* overlay: earlier passes stay visible in gold under the current one */
.rp-stage.is-ghost[data-v="2"] .v1, .rp-stage.is-ghost[data-v="3"] .v2 { opacity: .6; }
.rp-stage.is-ghost[data-v="3"] .v1 { opacity: .3; }
.rp-stage.is-ghost[data-v="2"] .v1 .ink, .rp-stage.is-ghost[data-v="3"] .v1 .ink, .rp-stage.is-ghost[data-v="3"] .v2 .ink { opacity: 0; }
.rp-stage.is-ghost[data-v="2"] .v1 .gold, .rp-stage.is-ghost[data-v="3"] .v1 .gold, .rp-stage.is-ghost[data-v="3"] .v2 .gold { opacity: 1; }
.rp-stage-art .v3 { z-index: 3; } .rp-stage-art .v2 { z-index: 2; }
.rp-stage-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: clamp(24px, 4vw, 56px); padding-top: 16px; border-top: 1px solid var(--ink-15); }
.rp-stage-nav button { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; padding: 6px 0; color: var(--ink-60); cursor: pointer; border-bottom: 1px solid transparent; }
.rp-stage-nav button span { font-variant-numeric: tabular-nums; margin-right: 6px; color: #B8913A; }
.rp-stage-nav button[aria-selected="true"], .rp-stage-nav .rp-ghost[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rp-stage-nav .rp-ghost { margin-left: clamp(0px, 2vw, 24px); }
.rp-stage-nav button:focus-visible { outline: 2px solid #B8913A; outline-offset: 3px; }
.rp-script-bleed img { background: #fff; }
.case-fig figcaption.label { display: block; margin-top: 12px; }
.rp-mono-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 80px); align-items: stretch; }
.rp-mono-grid .case-fig { margin: 0; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rp-mono-grid img, .rp-mono-grid video { display: block; width: 100%; height: auto; }
.rp-mono-film { grid-row: auto; }
.rp-mono-film video { height: 100%; object-fit: cover; }
.rp-mono-seal img, .rp-mono-word img { padding: clamp(16px, 3vw, 40px); box-sizing: border-box; }
.rp-press { padding: 0 0 clamp(48px, 6vw, 96px); }
.case-hero img.rp-hero { object-position: 50% 100%; }
.rp-press .rp-quotes { margin-top: clamp(24px, 3vw, 48px); }
.rp-merch .label, .rp-stories .label { display: block; margin-bottom: clamp(16px, 2vw, 28px); }
.rp-merch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.rp-merch-grid .case-fig { margin: 0; aspect-ratio: 1; overflow: hidden; }
.rp-merch-grid .rp-m-wide { grid-column: span 2; aspect-ratio: auto; }
.rp-merch-grid { grid-auto-rows: auto; align-items: stretch; }
.rp-merch-grid .rp-m-wide img { position: absolute; inset: 0; }
.rp-merch-grid .rp-m-wide { position: relative; }
.rp-merch-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-stories-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.rp-stories-grid .case-fig { margin: 0; }
.rp-stories-grid img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .rp-mono-grid { grid-template-columns: 1fr; }
  .rp-mono-film { grid-row: auto; }
  .rp-merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-stories-grid { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .rp-stories-grid .case-fig { scroll-snap-align: start; }
  .rp-stage-nav .rp-ghost { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .rp-stage-art .v { transition: none; } }

/* Quercus mudroom totes (2026-10-29) */
.q-totes { padding: clamp(32px, 4vw, 64px) 0; }
.q-totes-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: end; }
.q-totes-copy { grid-column: 2 / 6; margin: 0; font-family: var(--serif); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; max-width: 32ch; }
.q-totes .case-fig { grid-column: 7 / 13; margin: 0; }
.q-totes .case-fig img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .q-totes-grid { grid-template-columns: 1fr; }
  .q-totes-copy, .q-totes .case-fig { grid-column: 1; }
}
.q-mark-pair img.q-seal-cut { object-fit: contain; transform: scale(.8); }
/* Quercus seal spin (2026-10-29) */
.q-mark-pair .q-seal-spin { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.q-mark-pair .q-seal-spin video, .q-mark-pair .q-seal-spin img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; transform: scale(.88); }
.q-mark-pair .q-seal-spin img[hidden] { display: none; }

/* Rocky Patel social: Instagram story player (2026-10-29) */
.rp-stories { overflow: hidden; }
.rp-story {
  --w: min(340px, 74vw, calc(76vh * 1018 / 2200));
  --h: calc(var(--w) * 2200 / 1018);
  --ui: "Helvetica Neue", Helvetica, -apple-system, Arial, sans-serif;
  position: relative; height: var(--h); margin: 0 auto;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: pan-y; outline: none;
}
.rp-story:focus-visible .rp-story-chrome { outline: 2px solid var(--ink); outline-offset: 4px; }
.rp-story-card {
  position: absolute; top: 0; left: 50%; width: var(--w); height: var(--h);
  margin: 0 0 0 calc(var(--w) / -2); border-radius: 10px; overflow: hidden; background: var(--marine);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .45s ease; cursor: pointer;
  will-change: transform;
}
.rp-story-card > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rp-story-card.is-active { cursor: default; }
.rp-story-peek {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(35,35,36,.5); color: #fff; font-family: var(--ui); letter-spacing: -.01em;
  opacity: 1; transition: opacity .35s ease;
}
.rp-story-peek img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: var(--ink); object-fit: cover; }
.rp-story-peek b { font-size: 22px; font-weight: 600; }
.rp-story-peek small { font-size: 18px; opacity: .75; }
.rp-story-card.is-active .rp-story-peek { opacity: 0; }

.rp-story-chrome {
  position: absolute; top: 0; left: 50%; width: var(--w); height: var(--h); margin-left: calc(var(--w) / -2);
  z-index: 20; border-radius: 10px; pointer-events: none; color: #fff;
  font-family: var(--ui); letter-spacing: -.01em;
}
.rp-story-chrome::before, .rp-story-chrome::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.rp-story-chrome::before { top: 0; height: 96px; border-radius: 10px 10px 0 0; background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,0)); }
.rp-story-chrome::after { bottom: 0; height: 88px; border-radius: 0 0 10px 10px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.38)); }
.rp-story-bars { position: absolute; z-index: 1; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.rp-story-bars span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; }
.rp-story-bars i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.rp-story-head { position: absolute; z-index: 1; top: 20px; left: 12px; right: 10px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.rp-story-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); object-fit: cover; flex: none; }
.rp-story-user { font-weight: 600; }
.rp-story-time { opacity: .72; }
.rp-story-pause { margin-left: auto; pointer-events: auto; background: none; border: 0; padding: 6px; color: #fff; cursor: pointer; line-height: 0; }
.rp-story-pause svg { width: 16px; height: 16px; fill: currentColor; }
.rp-story .i-play, .rp-story.is-paused .i-pause { display: none; }
.rp-story.is-paused .i-play { display: block; }
.rp-story-more { width: 20px; height: 20px; fill: #fff; flex: none; }
.rp-story-tap { position: absolute; z-index: 0; top: 64px; bottom: 72px; pointer-events: auto; background: none; border: 0; padding: 0; cursor: pointer; }
.rp-story-tap--prev { left: 0; width: 32%; }
.rp-story-tap--next { right: 0; width: 68%; }
.rp-story-foot { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 16px; }
.rp-story-reply { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; font-size: 14px; color: rgba(255,255,255,.92); }
.rp-story-foot svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; flex: none; }
.rp-story-arrow {
  position: absolute; z-index: 21; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 0;
}
.rp-story-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.rp-story-arrow--prev { left: calc(50% - var(--w) / 2 - 48px); }
.rp-story-arrow--next { left: calc(50% + var(--w) / 2 + 16px); }
@media (max-width: 860px) {
  .rp-story { --w: min(78vw, calc(80vh * 1018 / 2200)); }
  .rp-story-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rp-story-card { transition: none; } }

/* Rocky Patel before and after films (2026-10-29) */
.rp-ba { margin: clamp(40px, 5vw, 80px) 0 0; }
.rp-ba video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #fff; }
.rp-ba img { display: block; width: 100%; height: auto; background: #fff; }
.rp-ba figcaption { margin-top: 12px; }

/* Rocky Patel hero film (2026-11-01) */
.case-hero video.rp-hero-film { object-position: 50% 50%; background: #3a1a10; }
@media (max-width: 860px) { .case-hero video.rp-hero-film { height: auto; aspect-ratio: 16 / 9; } }

/* ── Header CTA (shared) ─────────────────────────────────── */
.nav a.nav-cta { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; padding: 11px 18px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); letter-spacing: .14em; transition: background .25s ease, border-color .25s ease; }
.nav a.nav-cta:hover, .nav a.nav-cta.is-current { background: var(--marine); border-color: var(--marine); color: var(--paper); }
.nav a.nav-cta::after { display: none; }
@media (max-width: 900px) { .nav a.nav-cta { display: none; } }
.rp-stat .case-pair-grid { grid-template-columns: 1.339fr 0.806fr; align-items: start; }
.rp-stat .case-fig img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .rp-stat .case-pair-grid { grid-template-columns: 1fr; } }

/* ── Rocky Patel: airport pair (equal heights) ───────────── */
.rp-airport .case-pair-grid { grid-template-columns: 1.5fr 1.345fr; align-items: start; }
@media (max-width: 760px) { .rp-airport .case-pair-grid { grid-template-columns: 1fr; } }

/* ── Rocky Patel: packaging gallery ─────────────────────── */
.rp-gal { padding: clamp(48px, 6vw, 96px) 0; overflow-x: clip; }
.rp-gal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rp-gal-ctrl { display: flex; align-items: center; gap: 10px; }
.rp-gal-count { font-variant-numeric: tabular-nums; margin-right: 6px; }
.rp-gal-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink-15); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.rp-gal-btn:hover { border-color: var(--ink); }
.rp-gal-btn:disabled { opacity: .3; cursor: default; border-color: var(--ink-15); }
.rp-gal-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rp-gal-track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; outline: none;
  margin-right: calc(50% - 50vw); padding-right: var(--gutter);
}
.rp-gal-track::-webkit-scrollbar { display: none; }
.rp-gal-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rp-gal-track.is-drag img { pointer-events: none; }
.rp-gal-slide { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.rp-gal-slide img {
  display: block; height: clamp(340px, 64vh, 720px); width: auto; max-width: 86vw;
  object-fit: cover; user-select: none; -webkit-user-drag: none;
}
.rp-gal-slide figcaption { margin-top: 12px; }
@media (max-width: 760px) {
  .rp-gal-slide img { height: auto; width: 82vw; max-width: none; aspect-ratio: 4 / 5; }
}

/* ── Rocky Patel: polo + hat pair ───────────────────────── */
.rp-merch .case-pair-grid { align-items: start; }
.rp-merch .case-fig img { aspect-ratio: 1800 / 2234; object-fit: cover; }
.rp-ph-box {
  aspect-ratio: 1800 / 2234; background: var(--paper-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}

/* ── Footer: sand ground, black text and marks (2026-11-10) ── */
.foot { background: #D9CCB0; border-top-color: #D9CCB0; color: #232324; }
html body .foot,
html body .foot a,
html body .foot .body-sm,
html body .foot-grid h4,
html body .foot-grid a,
html body .foot-grid a:hover,
html body .foot-meta,
html body .foot-langs .foot-lang,
html body .foot-langs a.foot-lang:hover { color: #232324 !important; }
html body .foot-meta { border-top-color: rgba(35,35,36,.35) !important; }
.foot-mark .foot-art,
.foot-mark .seal { filter: brightness(0) invert(.137); opacity: 1; }

/* Footer without tagline: seal sits alone on the right (2026-11-10) */
.foot-mark { justify-content: flex-end; }

/* Seal beside the office details in the footer (2026-11-10) */
.foot-grid .col-office { display: grid; grid-template-columns: max-content auto; column-gap: clamp(24px, 3vw, 48px); row-gap: 10px; align-content: start; justify-content: start; }
.foot-grid .col-office > * { grid-column: 1; }
.foot-grid .col-office .foot-seal { grid-column: 2; grid-row: 1 / span 5; align-self: start; height: clamp(96px, 9vw, 132px); width: auto; filter: brightness(0) invert(.137); }
@media (max-width: 560px) { .foot-grid .col-office .foot-seal { height: 88px; } }

/* Seal above the location lines, no Office heading (2026-11-10) */
.foot-grid .col-office { display: flex; flex-direction: column; gap: 10px; }
.foot-grid .col-office .foot-seal { grid-column: auto; grid-row: auto; align-self: flex-start; margin-bottom: 18px; }

/* ── Sand page ground (2026-11-10) ───────────────────────────── */
:root { --bg: #D9CCB0; --paper-2: #CFC1A3; --sage: #CFC1A3; }
html, body, .topbar, .case-next { background: var(--bg); }
.foot { border-top: 1px solid var(--rule); }

/* ── No eyebrow column: sections run full width from the left (2026-11-10) ── */
.band > .wrap { grid-template-columns: minmax(0, 1fr); }
.band > .wrap > .section-head > .meta { position: static; }
.band > .wrap > *,
.band > .wrap > :not(.section-head),
.band > .wrap > .section-head > div:not(.meta),
.band > .wrap > .section-head > .meta { grid-column: 1; }
.q-mark-head { grid-template-columns: minmax(0, 1fr); }
.q-mark-head .h-lg, .q-mark-copy { grid-column: 1; }
/* Top of each page stays paper; sand starts below it */
.topbar, .hero, .page-head, .case-hero, .case-intro { background: var(--paper); }
/* Footer seal 20% larger (2026-11-10) */
.foot-grid .col-office .foot-seal { height: clamp(115px, 10.8vw, 158px); }
@media (max-width: 560px) { .foot-grid .col-office .foot-seal { height: 106px; } }
/* Work and About pages stay paper all the way down (footer stays sand) (2026-11-10) */
body.page-paper { --bg: var(--paper); --sage: #D8D8D5; --paper-2: #E9E9E6; background: var(--paper); }
html:has(body.page-paper) { background: var(--paper); }
/* Footer: taupe, charcoal text and seal at about 6:1 contrast (2026-11-10) */
.foot { background: #ADA090; border-top-color: #ADA090; }
/* Taupe replaces sand as the page ground (2026-11-10) */
:root { --bg: #ADA090; --sage: #A39584; --paper-2: #A39584; }
.foot { border-top-color: var(--rule); }
/* Home: everything below the headline section is black (2026-11-10) */
body.page-index .hero ~ .band:not(.ink):not(.paper) {
  --ink: #F4F4F2; --ink-60: rgba(244,244,242,.62); --ink-40: rgba(244,244,242,.42);
  --ink-15: rgba(244,244,242,.15); --rule: rgba(244,244,242,.85);
  --paper: #232324; --paper-2: #2B2B2C; --sage: #232324;
  background: #232324; color: #F4F4F2;
}
body.page-index .hero ~ .band .client-cell { background: rgba(255,255,255,.03); }
/* Warm the light grey bands on paper pages (2026-11-10) */
body.page-paper { --sage: #DDD7CC; --paper-2: #ECE8E1; }
/* Home: "What we do" section on paper (2026-11-10) */
body.page-index .band.paper { background: var(--paper); color: var(--ink); }
body.page-index .band.paper .label { color: var(--ink); }
body.page-index .band.paper .svc-lede { color: var(--ink-60); }
body.page-index .band.paper .svc-grid,
body.page-index .band.paper .svc,
body.page-index .band.paper .svc:not(:nth-child(3n+1)),
body.page-index .band.paper .svc:nth-child(2n) { border-color: var(--ink-15); }
body.page-index .band.paper .svc h3 { color: var(--ink); }
body.page-index .band.paper .svc p { color: var(--ink-60); }

/* Footer: deep taupe with the white knockout seal and off-white type (2026-11-10) */
html body .foot { background: #6E6253; border-top-color: #6E6253; color: #F4F4F2; }
html body .foot,
html body .foot a,
html body .foot .body-sm,
html body .foot-grid h4,
html body .foot-grid a,
html body .foot-grid a:hover,
html body .foot-meta,
html body .foot-langs .foot-lang,
html body .foot-langs a.foot-lang:hover { color: #F4F4F2 !important; }
html body .foot-meta { border-top-color: rgba(244,244,242,.35) !important; }
.foot-grid .col-office .foot-seal { filter: none; }

/* Footer: sky blue, charcoal type and seal, full-width Byra.Design wordmark (2026-11-10) */
html body .foot { background: #A8CFEA; border-top-color: #A8CFEA; color: #232324; }
html body .foot,
html body .foot a,
html body .foot .body-sm,
html body .foot-grid h4,
html body .foot-grid a,
html body .foot-grid a:hover,
html body .foot-meta,
html body .foot-langs .foot-lang,
html body .foot-langs a.foot-lang:hover { color: #232324 !important; }
html body .foot-meta { border-top-color: rgba(35,35,36,.35) !important; }
.foot-grid .col-office .foot-seal { filter: brightness(0) invert(.137); }
.foot > .wrap { container-type: inline-size; }
.foot-word {
  font-family: "ivyora-display", var(--display);
  font-weight: 400;
  font-size: 21cqw;           /* sized so the word spans the column edge to edge */
  line-height: .78;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #232324;
  margin-top: clamp(28px, 4vw, 64px);
  padding-bottom: .04em;
  font-feature-settings: "kern" 1, "liga" 1;
}
.foot-word { line-height: 1.2; padding-bottom: 0; margin-bottom: 0; }
/* Footer: no copyright line; Byra.Design sits on the bottom edge with y and g cropped (2026-11-10) */
.foot { padding-bottom: 0; overflow: hidden; }
.foot-meta { justify-content: flex-end; }
.foot-word { line-height: 1; margin-bottom: -0.05em; padding-bottom: 0; }

.foot-word { font-size: 19.1cqw; }  /* Byrå(Bureau) spans the column */

.foot-grid .col-office .foot-seal { filter: none; }  /* rayed 2026 seal, already charcoal */
/* Byrå(Bureau) sits on the rule, y descender crosses it; copyright back below (2026-11-10) */
.foot { padding-bottom: 28px; overflow: visible; }
.foot-word { line-height: 1; margin-bottom: -0.05em; position: relative; z-index: 1; }
.foot-meta { justify-content: space-between; padding-top: max(18px, 5cqw); }

.foot-word { font-size: 20cqw; }
.foot-word i { font-style: italic; font-weight: 400; }
/* Footer: no rule; copyright and flags above Byrå(Bureau), which sits on the bottom edge with descenders cropped (2026-11-10) */
html body .foot-meta { border-top: 0 !important; padding-top: 0; margin-top: 0; }
.foot { padding-bottom: 0; overflow: hidden; }
.foot-word { margin-top: clamp(8px, 1vw, 16px); line-height: 1; margin-bottom: -0.05em; }

/* ── Footer flipped (2026-11-10): wordmark on top, columns, then flags left / copyright right ── */
.foot { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); overflow: visible; }
.foot-word { margin-top: 0; margin-bottom: clamp(56px, 7vw, 120px); line-height: 1; }
.foot-grid { margin-bottom: 0; }
html body .foot-grid h4 {
  font-family: "ivyora-display", var(--display) !important;
  font-weight: 400 !important;
  font-size: clamp(20px, 1.75vw, 28px);
  letter-spacing: .01em;
  text-transform: none;
  margin-bottom: 10px;
}
html body .foot-grid a,
html body .foot .body-sm { color: rgba(35,35,36,.72) !important; }
html body .foot-grid a:hover { color: #232324 !important; }
html body .foot-meta { flex-direction: row-reverse; justify-content: space-between; margin-top: clamp(56px, 7vw, 112px); }
html body .foot-meta .foot-langs { margin-left: 0; }
html body .foot-meta > span { text-transform: none; letter-spacing: 0; font-size: 15px; }
/* Footer: greyer sky blue (2026-11-11) */
html body .foot { background: #AFC3D2; border-top-color: #AFC3D2; }
html body .foot-grid a,
html body .foot .body-sm { color: rgba(35,35,36,.8) !important; }
