/* ===== ELiTE SHARED DESIGN SYSTEM ===== */
:root {
  --bg: #ececea;
  --bg-soft: #dcdcd8;
  --ink: #1a1a1a;
  --ink-2: #2a2a2a;
  --muted: #60615f;
  --line: #cdcdc8;
  --accent: #b7642a;
  --accent-ink: #884519;
  --paper: #f6f6f3;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --pad-y: 120px;
  --card-pad: 32px;
  --grid-gap: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; font-weight: 400; }
::selection { background: var(--accent); color: var(--paper); }
img { max-width: 100%; display: block; }

.serif { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }

html, body { overflow-x: clip; }

/* Accessibility: visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.hairline { height: 1px; background: var(--line); width: 100%; }

/* Inline content hyperlinks (body copy inside page sections): copper, no underline.
   Only targets unclassed links, so buttons/cards/tiles keep their own styling;
   nav + footer live outside sections; hero breadcrumb is excluded explicitly. */
section a:not([class]):not(.page-hero-eyebrow *),
main a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
section a:not([class]):not(.page-hero-eyebrow *):hover,
main a:not([class]):hover {
  color: color-mix(in oklab, var(--accent) 72%, var(--ink));
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 8px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: var(--accent);
  margin-bottom: 18px;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  color: var(--bg);
  backdrop-filter: blur(10px);
  transition: transform .4s ease, background .3s;
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
  padding: 18px 40px;
  max-width: 1440px; margin: 0 auto;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 22px; letter-spacing: 0.02em;
  color: var(--bg);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s;
}
.nav-logo:hover { color: color-mix(in oklab, var(--bg) 80%, var(--ink)); }
.elite-logo { display: block; fill: currentColor; }
.nav-logo .elite-logo { height: 24px; width: auto; }
.footer-logo .elite-logo { height: 26px; width: auto; }
.nav-logo-mark {
  width: 8px; height: 8px; background: var(--accent);
  display: inline-block; transform: rotate(45deg);
}
.nav-links {
  display: flex; gap: 36px; list-style: none;
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a {
  color: color-mix(in oklab, var(--bg) 80%, var(--ink));
  text-decoration: none; transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--bg); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
}
.nav-cta {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent);
  color: var(--bg); text-decoration: none; transition: all .25s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Company dropdown */
.nav-group { position: relative; }
.nav-group-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: color-mix(in oklab, var(--bg) 80%, var(--ink));
  position: relative; transition: color .2s;
}
.nav-group-btn .caret { font-size: 9px; color: var(--accent); transition: transform .25s; }
.nav-group:hover .nav-group-btn, .nav-group.open .nav-group-btn, .nav-group-btn.active { color: var(--bg); }
.nav-group:hover .caret, .nav-group.open .caret { transform: rotate(180deg); }
.nav-group-btn.active::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: calc(100% - 16px); height: 1px; background: var(--accent);
}
.nav-drop {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translate(-50%, -6px);
  min-width: 232px; padding: 8px 0;
  background: color-mix(in oklab, var(--ink) 97%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-group:hover .nav-drop, .nav-group.open .nav-drop, .nav-group:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-drop a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 22px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 75%, var(--ink)); text-decoration: none;
  transition: color .2s, background .2s, padding-left .2s;
}
.nav-drop a:hover { color: var(--bg); background: color-mix(in oklab, var(--bg) 6%, transparent); padding-left: 26px; }
.nav-drop a.active { color: var(--bg); background: color-mix(in oklab, var(--bg) 4%, transparent); }
.nav-drop .di { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: var(--accent); flex: none; }

/* Hamburger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid color-mix(in oklab, var(--bg) 24%, transparent);
  cursor: pointer; flex: none;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px; background: var(--bg);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: color-mix(in oklab, var(--ink) 98%, transparent);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
  padding: 84px 32px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.nav-drawer.open { opacity: 1; visibility: visible; transform: none; }
.nav-drawer { overflow-y: auto; }
.nav-drawer-foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
/* spacers center the menu when it fits, and collapse when it must scroll */
.nav-drawer::before, .nav-drawer::after { content: ''; flex: 1 0 8px; }
.nav-drawer ul, .nav-drawer .nav-drawer-cta, .nav-drawer-meta, .nav-drawer-sec, .nav-drawer-foot { flex: none; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav-drawer li { border-bottom: none; }
.nav-drawer ul a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 8px 4px; text-decoration: none; text-align: left;
  font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 400;
  color: color-mix(in oklab, var(--bg) 60%, var(--ink));
  transition: color .2s, padding-left .25s;
}
.nav-drawer ul a:hover, .nav-drawer ul a.active { color: var(--bg); }
.nav-drawer ul a.active .idx::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); }
.nav-drawer ul a .idx {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  color: var(--accent); flex: none; position: relative; top: -6px;
}
.nav-drawer-sec {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  padding: 16px 4px 6px;
}
.nav-drawer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; flex: none; }
.nav-drawer-small a { font-size: 19px; padding: 7px 4px; }
.nav-drawer-small a.active { color: var(--bg); border-bottom: 1px solid var(--accent); align-self: start; display: inline-flex; }
.nav-drawer-foot {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 16px;
}
.nav-drawer .nav-drawer-cta {
  align-self: auto; margin-top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 28px; background: var(--accent); color: var(--ink); text-decoration: none;
  transition: background .2s;
}
.nav-drawer .nav-drawer-cta:hover { background: var(--bg); color: var(--ink); }
.nav-drawer-meta {
  margin-top: 0; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: color-mix(in oklab, var(--bg) 50%, var(--ink));
}
@media (max-height: 760px) {
  .nav-drawer ul a { font-size: 23px; padding: 6px 4px; }
  .nav-drawer-small a { font-size: 16px; padding: 5px 4px; }
  .nav-drawer-sec { padding-top: 14px; }
  .nav-drawer-foot { margin-top: 22px; }
}
body.nav-open { overflow: hidden; }

@media (max-width: 1023px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 14px 20px; }
}
@media (min-width: 1024px) {
  .nav-drawer { display: none; }
}
/* Tablet-landscape squeeze: fit 7 links + CTA without clipping */
@media (min-width: 1024px) and (max-width: 1240px) {
  .nav-links { gap: 18px; font-size: 12px; letter-spacing: 0.05em; }
  .nav-cta { padding: 9px 14px; letter-spacing: 0.08em; }
  .nav-inner { padding-left: 24px; padding-right: 24px; }
}

/* ===== PAGE HERO (unified subpage header) ===== */
.page-hero {
  position: relative; min-height: 100vh;
  background: var(--ink); color: var(--bg);
  overflow: hidden; display: flex; align-items: stretch;
}
@supports (min-height: 100svh) { .page-hero { min-height: 100svh; } }
.page-hero-art {
  position: absolute; top: 140px; bottom: 360px; right: 40px;
  width: 42%; max-width: 700px; z-index: 1;
  background-size: contain; background-position: right top; background-repeat: no-repeat;
  opacity: 0.9;
}
.page-hero-art.blend { mix-blend-mode: lighten; }
.page-hero-art.cover {
  top: 0; bottom: 0; left: 0; right: 0; width: auto; max-width: none;
  background-size: cover; background-position: center right; opacity: 1;
}
.page-hero-art.cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 82%, transparent) 0%, color-mix(in oklab, var(--ink) 45%, transparent) 45%, transparent 70%),
    linear-gradient(180deg, color-mix(in oklab, var(--ink) 60%, transparent), color-mix(in oklab, var(--ink) 90%, transparent));
}
.page-hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: clamp(160px, 26vh, 300px) 40px 80px; width: 100%;
  max-width: 1440px; margin: 0 auto;
}
/* fixed minimum gap between the text block and the bottom-pinned meta strip */
.page-hero-content > :nth-last-child(2) { margin-bottom: 56px; }
.page-hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 32px;
}
.page-hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); flex: none; }
.page-hero-eyebrow a { color: color-mix(in oklab, var(--bg) 60%, var(--ink)); text-decoration: none; transition: color .2s; }
.page-hero-eyebrow a:hover { color: var(--bg); }
.page-hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.02; letter-spacing: -0.025em;
  max-width: 20ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.page-hero .lede {
  margin-top: 32px;
  font-size: 19px; line-height: 1.6;
  color: color-mix(in oklab, var(--bg) 80%, var(--ink));
  max-width: 56ch;
}
@media (min-width: 1001px) { .page-hero h1, .page-hero .lede, .page-hero-eyebrow { max-width: 54%; } }
.page-hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  margin-top: auto; padding-top: 40px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  max-width: 1100px;
}
.page-hero-meta .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, var(--ink));
  margin-bottom: 10px;
}
.page-hero-meta .val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; }
.page-hero-meta .val em { font-style: normal; color: var(--accent); }
@media (max-width: 1000px) {
  .page-hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding: 140px 20px 60px; }
  .page-hero-content { display: contents; }
  .page-hero-eyebrow { order: 1; }
  .page-hero h1 { order: 2; }
  .page-hero-art { order: 3; position: static; width: 88%; max-width: 560px; aspect-ratio: 1 / 1; margin: 28px 0 0 auto; opacity: 0.8; background-position: right center; }
  .page-hero-art.photo { width: 100%; max-width: none; aspect-ratio: 16/9; opacity: 0.9; margin: 36px 0 0; background-position: center; }
  .page-hero .lede { order: 4; margin-top: 28px; }
  .page-hero-meta { order: 5; margin-top: 44px; }
  .page-hero-content > :nth-last-child(2) { margin-bottom: 0; }
  .page-hero-eyebrow, .page-hero h1, .page-hero .lede, .page-hero-meta { position: relative; z-index: 2; }
  .page-hero-art.cover { order: 0; position: absolute; inset: 0; width: auto; max-width: none; margin: 0; aspect-ratio: auto; opacity: 1; }
}
@media (max-width: 900px) { .page-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ===== SHORTER SUBPAGE HEROES (~68vh) =====
   Experiment: delete this whole block to restore full-screen 100vh heroes. */
@media (min-width: 1001px) {
  .page-hero { min-height: 68vh; }
  @supports (min-height: 100svh) { .page-hero { min-height: 68svh; } }
  .page-hero-content { padding-top: clamp(140px, 19vh, 210px); padding-bottom: 64px; }
  .page-hero-content > :nth-last-child(2) { margin-bottom: 48px; }
  .page-hero-art { top: 120px; bottom: 180px; }
  .page-hero .lede { margin-top: 24px; }
  .page-hero-meta { padding-top: 32px; }
}
/* ===== END SHORTER SUBPAGE HEROES ===== */

/* ===== STICKY CONTEXT BAR (page label under nav) ===== */
.ctx-bar { position: fixed; top: 60px; left: 0; right: 0; z-index: 60; background: color-mix(in oklab, var(--ink) 94%, transparent); backdrop-filter: blur(8px); color: var(--bg); border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent); transform: translateY(-110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), top .35s ease, visibility 0s .35s; }
.ctx-bar.visible { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), top .35s ease; }
.ctx-inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; height: 48px; display: flex; align-items: center; gap: 16px; }
.ctx-code { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); flex: none; }
.ctx-name { font-family: 'Playfair Display', serif; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ctx-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.ctx-cnt { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: color-mix(in oklab, var(--bg) 60%, var(--ink)); }
.ctx-arr { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid color-mix(in oklab, var(--bg) 30%, transparent); color: var(--bg); text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 15px; transition: all .2s; }
.ctx-arr:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.ctx-all { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; white-space: nowrap; }
.ctx-all:hover { color: var(--accent); }
@media (max-width: 700px) { .ctx-inner { padding: 0 20px; gap: 10px; height: 52px; } .ctx-all, .ctx-cnt { display: none; } .ctx-name { font-size: 15px; } .ctx-arr { width: 44px; height: 44px; } }

/* ===== SECTIONS ===== */
section { padding: var(--pad-y) 0; }
section.tight { padding: 80px 0; }
section.dark { background: var(--ink); color: var(--bg); }
section.paper { background: var(--paper); }

.section-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start;
  margin-bottom: 60px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 22ch;
}
.section-head h2 em { font-style: italic; color: var(--accent-ink); }
.section.dark .section-head h2 em { color: var(--accent); }
.section-head p {
  font-size: 18px; line-height: 1.65; color: var(--muted);
  max-width: 60ch; margin-top: 20px;
}
.section.dark .section-head p, .dark .section-head p {
  color: color-mix(in oklab, var(--bg) 75%, var(--ink));
}
.section.dark .eyebrow, .dark .eyebrow { color: var(--accent); }
.section.dark .eyebrow::before, .dark .eyebrow::before { background: var(--accent); }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ===== BUTTONS ===== */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 18px 32px;
  text-decoration: none; transition: all .25s;
  border: 1px solid;
  display: inline-flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
/* trailing arrow: starts diagonal, straightens on hover */
.btn .btn-arrow, .btn::after { display: inline-block; }
.btn::after {
  content: '→';
  margin-left: 10px;
  transform: rotate(-45deg);
  transition: transform .3s cubic-bezier(.3,.7,.3,1);
}
.btn:hover::after { transform: rotate(0deg); }
.btn-ghost-light { background: transparent; color: var(--bg); border-color: color-mix(in oklab, var(--bg) 30%, transparent); }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }

/* ===== CTA STRIP ===== */
.cta {
  background: var(--ink); color: var(--bg);
  padding: var(--pad-y) 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background-image:
    linear-gradient(color-mix(in oklab, var(--bg) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 8%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}
.cta-inner {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 60px; align-items: end;
  position: relative; z-index: 1;
}
.cta-inner h3, .cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1; letter-spacing: -0.025em;
}
.cta-inner h3 em, .cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-actions { display: grid; grid-template-columns: minmax(230px, max-content); gap: 12px; justify-content: start; }
.cta-actions .btn { justify-content: space-between; text-align: left; white-space: nowrap; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 700px) {
  .cta-actions { grid-template-columns: fit-content(100%); }
  .cta-actions .btn { min-width: min(230px, 100%); white-space: normal; }
}

/* ===== FOOTER ===== */
.back-to-top {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  text-decoration: none; color: color-mix(in oklab, var(--bg) 70%, var(--ink));
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  transition: color .25s;
}
.back-to-top .btt-label { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.back-to-top .btt-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; line-height: 1; color: var(--accent);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.back-to-top:hover { color: var(--bg); }
.back-to-top:hover .btt-arrow { transform: translateY(-8px); }
@media (max-width: 700px) {
  .footer-row { padding-bottom: 40px; gap: 32px; }
  .back-to-top { flex-direction: row; align-items: center; gap: 10px; }
  .back-to-top .btt-arrow { font-size: 22px; }
}

.footer {
  background: var(--ink-2);
  color: color-mix(in oklab, var(--bg) 80%, var(--ink));
  padding: 80px 0 40px;
}
.footer-statement {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: clamp(34px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--bg); max-width: 22ch;
  padding: 10px 0 70px;
}
.footer-statement em { font-style: italic; color: var(--accent); }
.footer-statement {
  border-top: none;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  padding-bottom: 70px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 24px; }
.footer-links a { position: relative; }
.footer-links a.active { color: var(--bg); }
.footer-links a.active::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--accent); }
.footer-links-ai { margin-top: 14px; gap: 20px; }
@media (max-width: 700px) {
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; row-gap: 16px; column-gap: 18px; margin-top: 28px; }
  .footer-links a { justify-self: start; }
  .footer-links-ai { margin-top: 26px; }
  .footer-links-label { grid-column: 1 / -1; margin-bottom: -2px; }
}
.footer-links-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); align-self: center; }
.footer-cdet { text-align: right; font-size: 14px; line-height: 1.8; }
@media (max-width: 700px) { .footer-cdet { text-align: left; } }
.footer-logo,
.footer a.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--bg);
  transition: color .2s;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.footer-logo:hover,
.footer a.footer-logo:hover { color: color-mix(in oklab, var(--bg) 80%, var(--ink)); }
.footer-logo-mark {
  width: 10px; height: 10px; background: var(--accent);
  display: inline-block; transform: rotate(45deg);
}
.footer h6 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px; font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a { color: inherit; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--bg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--bg) 50%, var(--ink));
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ===== CLIENT STRIP (one-line marquee) ===== */
.client-strip {
  background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 56px 0 60px; overflow: hidden;
}
.client-strip .cs-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 36px; padding: 0 20px; text-align: center;
}
.client-strip .cs-label::before, .client-strip .cs-label::after {
  content: ''; width: 40px; height: 1px; background: var(--accent-ink); flex: none;
}
.client-strip-track {
  display: flex; gap: 72px; width: max-content;
  animation: clientScroll 60s linear infinite;
}
.client-strip:hover .client-strip-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .client-strip-track { animation: none; flex-wrap: wrap; width: auto; } }
.client-strip .cs-item {
  display: flex; align-items: center; gap: 72px; white-space: nowrap;
}
.client-strip .cs-txt { display: flex; flex-direction: column; gap: 7px; }
.client-strip .cs-name {
  font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: 0.01em;
  color: var(--ink); line-height: 1;
}
.client-strip .cs-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); line-height: 1;
}
.client-strip .cs-item::after { content: '●'; font-size: 7px; color: var(--accent-ink); }
a.principals-strip { display: block; text-decoration: none; transition: background .3s; }
a.principals-strip:hover { background: color-mix(in oklab, var(--bg-soft) 88%, var(--accent)); }
a.principals-strip .client-strip-track { animation-duration: 75s; }
@keyframes clientScroll { to { transform: translateX(-50%); } }

/* ===== REVEAL / SCROLL ANIMATIONS ===== */
/* base elements stay fully visible unless JS is active (html.js) */
.reveal.in,
.reveal-img.in { opacity: 1; transform: none; clip-path: none; }

html.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s ease, transform .85s cubic-bezier(.2,.75,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
html.js .reveal-left  { transform: translateX(-36px); }
html.js .reveal-right { transform: translateX(36px); }
html.js .reveal-scale { transform: scale(.93); }
html.js .reveal.in { opacity: 1; transform: none; will-change: auto; }

/* image clip-wipe reveal */
html.js .reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.16,1,.3,1) var(--d, 0ms);
  will-change: clip-path;
}
html.js .reveal-img.in { clip-path: inset(0 0 0 0); will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-img {
    opacity: 1 !important; transform: none !important;
    clip-path: none !important; transition: none !important;
  }
}
