/* ═══════════════════════════════════════════════════════════
   SAND-VINE CONTRACTORS — DESIGN SYSTEM
   Palette retained from original brand.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* brand palette (retained) */
  --sand:       #e8dcc8;
  --sand-lt:    #f5efe3;
  --warm:       #faf7f2;
  --rust:       #c4622d;
  --terra:      #d4785a;
  --brown:      #2c1a0e;
  --olive:      #7a7355;
  --cream:      #f2ece0;
  --charcoal:   #1a1410;
  --muted:      #9c8e7e;
  --gold:       #b5962a;
  --dusk:       #060e18;

  /* derived surfaces */
  --ink-900:    #120c07;
  --ink-800:    #1c1209;
  --ink-700:    #241609;
  --line:       rgba(44,26,14,0.10);
  --line-dk:    rgba(232,220,200,0.10);

  /* type */
  --f-display: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-serif:   'Instrument Serif', 'Playfair Display', Georgia, serif;

  /* geometry */
  --r-xs: 3px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 100px;

  /* motion */
  --ease:    cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
  --ease-bk: cubic-bezier(.34,1.56,.64,1);

  /* layout */
  --shell: min(1340px, 100% - 9rem);
  --nav-h: 82px;
}

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

html {
  scroll-behavior: smooth; scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--warm);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.loading { overflow: hidden; height: 100vh; }

img, svg { display: block; max-width: 100%; }
em, i, cite, address, blockquote { font-style: normal; }
a { color: inherit; }
::selection { background: var(--rust); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(196,98,45,.45); border-radius: 10px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--rust); }

/* ── LAYOUT PRIMITIVES ──────────────────────────────────── */
.shell { width: var(--shell); margin-inline: auto; }
.stack-lg { padding-block: clamp(5.5rem, 10vw, 9rem); }
.center { text-align: center; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.ch-mark {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--f-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 1.5rem;
}
.ch-mark::before {
  content: ''; width: 30px; height: 1px; background: currentColor;
  transform-origin: left; animation: markGrow 1s var(--ease) both;
}
@keyframes markGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ch-mark.ctr::before { display: none; }

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  font-weight: 800; letter-spacing: -.035em;
  color: var(--brown); line-height: 1.02;
  margin-bottom: 1.1rem;
}
.sec-title em {
  font-family: var(--f-serif);
  font-style: normal; font-weight: 400;
  color: var(--rust); letter-spacing: -.01em;
}
.sec-desc {
  font-size: 1.05rem; line-height: 1.8;
  color: var(--olive); max-width: 52ch;
}
.sec-hdr { margin-bottom: clamp(3rem, 5vw, 4.6rem); }
.sec-hdr.ctr { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-hdr.ctr .sec-desc { margin-inline: auto; }

/* section header with a right-aligned action */
.sec-hdr.split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN — camel rider crossing the dunes
   ═══════════════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(ellipse 90% 55% at 50% 86%, rgba(196,98,45,.42), transparent 70%),
    linear-gradient(180deg, #04080f 0%, #0b1522 34%, #2a1a12 74%, #55301a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
#loader.done { opacity: 0; visibility: hidden; }

.ldr-stars { position: absolute; inset: 0 0 40% 0; pointer-events: none; }
.ldr-stars i {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--d,3s) ease-in-out infinite var(--del,0s);
}
@keyframes twinkle { 0%,100% { opacity: var(--lo,.15); } 50% { opacity: .95; } }

.ldr-sun {
  position: absolute; left: 50%; bottom: 30%;
  width: 260px; height: 260px; margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,120,90,.55), rgba(196,98,45,.18) 55%, transparent 72%);
  animation: sunRise 2.6s var(--ease) both;
}
@keyframes sunRise { from { transform: translateY(60px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* scrolling dune layers */
.ldr-dunes { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; overflow: hidden; }
.ldr-dunes svg { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; }
.dune-back  { animation: duneRun 16s linear infinite; opacity: .55; }
.dune-front { animation: duneRun 9s  linear infinite; }
@keyframes duneRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ldr-stage {
  position: absolute; left: 50%; bottom: 28%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}
.ldr-camel { width: clamp(200px, 30vw, 320px); filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); }

/* sand kicked up by the hooves */
.ldr-dust { position: absolute; bottom: 8px; left: 50%; width: 62%; height: 40px; transform: translateX(-46%); }
.ldr-dust i {
  position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(232,220,200,.5);
  animation: dustPuff var(--dd,2.4s) linear infinite var(--del,0s);
}
@keyframes dustPuff {
  0%   { transform: translate(0,0) scale(.4); opacity: 0; }
  20%  { opacity: .8; }
  100% { transform: translate(var(--dx,-60px), -26px) scale(1.6); opacity: 0; }
}

.ldr-brand {
  position: absolute; left: 0; right: 0; bottom: 20%;
  text-align: center; z-index: 4;
  animation: fadeUp 1s var(--ease) .35s both;
}
.ldr-name {
  font-family: var(--f-serif); font-style: normal;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: .01em;
  color: var(--sand-lt); line-height: 1;
}
.ldr-name em { font-style: normal; color: var(--terra); }
.ldr-tag {
  margin-top: .8rem; font-size: .68rem; font-weight: 600; letter-spacing: .36em;
  text-transform: uppercase; color: rgba(232,220,200,.45);
}

.ldr-track {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  z-index: 4; width: min(300px, 62vw); height: 2px;
  background: rgba(232,220,200,.13); border-radius: 2px; overflow: hidden;
}
.ldr-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rust), var(--terra));
  transition: width .25s linear;
}
.ldr-pct {
  position: absolute; left: 0; right: 0; bottom: 9%; z-index: 4; text-align: center;
  font-family: var(--f-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .3em; color: rgba(232,220,200,.5);
}

/* ── CAMEL RIG (shared by loader + process) ─────────────── */
.camel-rig, .camel-rig g, .camel-rig path, .camel-rig circle { transform-box: view-box; }
.camel-rig .cm-fill { fill: #100a06; }
.camel-rig .cm-stroke { stroke: #100a06; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.camel-rig .cm-far { opacity: .55; }

.cm-bob { animation: camelBob 1.1s ease-in-out infinite; transform-origin: 130px 90px; }
@keyframes camelBob {
  0%,100% { transform: translateY(0) rotate(-.6deg); }
  50%     { transform: translateY(-4px) rotate(.6deg); }
}
.cm-neck { animation: neckNod 2.2s ease-in-out infinite; transform-origin: 150px 74px; }
@keyframes neckNod { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.cm-tail { animation: tailSway 1.6s ease-in-out infinite; transform-origin: 74px 82px; }
@keyframes tailSway { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.cm-rider { animation: riderSway 1.1s ease-in-out infinite; transform-origin: 118px 60px; }
@keyframes riderSway { 0%,100% { transform: translateY(0) rotate(1.4deg); } 50% { transform: translateY(-2px) rotate(-1.4deg); } }
.cm-robe { animation: robeFlap 1.5s ease-in-out infinite; transform-origin: 108px 46px; }
@keyframes robeFlap { 0%,100% { transform: rotate(-5deg) scaleX(1); } 50% { transform: rotate(6deg) scaleX(1.08); } }

.cm-leg { animation: legSwing 1.1s ease-in-out infinite; }
.cm-leg.p2 { animation-name: legSwingB; }
@keyframes legSwing  { 0%,100% { transform: rotate(17deg); } 50% { transform: rotate(-17deg); } }
@keyframes legSwingB { 0%,100% { transform: rotate(-17deg); } 50% { transform: rotate(17deg); } }
.cm-shin { animation: shinBend 1.1s ease-in-out infinite; }
.cm-shin.p2 { animation-name: shinBendB; }
@keyframes shinBend  { 0%,100% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } }
@keyframes shinBendB { 0%,100% { transform: rotate(10deg); } 45% { transform: rotate(-14deg); } }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  --btn-bg: var(--rust);
  --btn-fg: #fff;
  --btn-sweep: var(--brown);
  position: relative;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.7rem 1rem 1.9rem;
  border: none; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s var(--ease);
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
/* liquid sweep from the bottom */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--btn-sweep);
  border-radius: inherit;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(44,26,14,.55); }
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.btn:active { transform: translateY(-1px) scale(.985); }
.btn:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* rolling label */
.btn-label { position: relative; z-index: 1; display: inline-block; overflow: hidden; height: 1em; line-height: 1; }
.btn-label span {
  display: block;
  transition: transform .45s var(--ease);
}
.btn-label span + span { position: absolute; inset: 0; transform: translateY(115%); }
.btn:hover .btn-label span,
.btn:focus-visible .btn-label span { transform: translateY(-115%); }
.btn:hover .btn-label span + span,
.btn:focus-visible .btn-label span + span { transform: translateY(0); }

/* arrow puck */
.btn-ico {
  position: relative; z-index: 1;
  width: 26px; height: 26px; flex: none;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  transition: transform .45s var(--ease), background .35s;
  overflow: hidden;
}
.btn-ico svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover .btn-ico { transform: rotate(45deg); background: rgba(255,255,255,.28); }
.btn:hover .btn-ico svg { transform: rotate(-45deg); }

/* variants */
.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--brown);
  --btn-sweep: var(--brown);
  box-shadow: inset 0 0 0 1px rgba(44,26,14,.22);
}
.btn-outline:hover, .btn-outline:focus-visible { color: var(--sand); box-shadow: inset 0 0 0 1px var(--brown), 0 14px 28px -14px rgba(44,26,14,.5); }
.btn-outline .btn-ico { background: rgba(44,26,14,.10); }

.btn-light {
  --btn-bg: transparent;
  --btn-fg: rgba(240,232,218,.9);
  --btn-sweep: var(--sand);
  box-shadow: inset 0 0 0 1px rgba(232,220,200,.25);
}
.btn-light:hover, .btn-light:focus-visible { color: var(--brown); box-shadow: inset 0 0 0 1px var(--sand), 0 14px 30px -14px rgba(0,0,0,.6); }
.btn-light .btn-ico { background: rgba(232,220,200,.16); }
.btn-light:hover .btn-ico { background: rgba(44,26,14,.14); }

.btn-sand { --btn-bg: var(--sand); --btn-fg: var(--brown); --btn-sweep: var(--rust); }
.btn-sand:hover { color: #fff; }
.btn-sand .btn-ico { background: rgba(44,26,14,.12); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .72rem 1.2rem .72rem 1.35rem; font-size: .67rem; }

/* text link with animated underline + arrow */
.link-x {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rust); text-decoration: none; position: relative; padding-bottom: 4px;
}
.link-x::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-x:hover::after { transform: scaleX(1); transform-origin: left; }
.link-x svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .4s var(--ease); }
.link-x:hover svg { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — floating capsule bar
   ═══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.15rem 0;
  transition: padding .5s var(--ease);
}
#nav .nav-inner {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .5rem .55rem .5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease), backdrop-filter .5s;
}
#nav.solid { padding: .6rem 0; }
#nav.solid .nav-inner {
  background: rgba(250,247,242,.82);
  border-color: rgba(44,26,14,.08);
  box-shadow: 0 18px 44px -26px rgba(44,26,14,.5);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
/* pages that start on a light background */
#nav.on-light .nav-inner {
  background: rgba(250,247,242,.7);
  border-color: rgba(44,26,14,.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* brand */
.nav-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; flex: none; }
.nav-logo {
  position: relative; width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
}
.nav-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav-logo .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(196,98,45,.55);
  animation: spin 18s linear infinite;
  transition: border-color .4s, transform .5s var(--ease);
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-brand:hover .ring { border-color: var(--rust); }
.nav-brand:hover img { animation: pop .5s var(--ease-bk); }
@keyframes pop { 50% { transform: scale(1.12); } }

.nav-words { line-height: 1.12; }
.nav-name {
  display: block;
  font-family: var(--f-serif); font-style: normal;
  font-size: 1.18rem; color: var(--sand);
  transition: color .5s var(--ease);
}
.nav-sub {
  display: block;
  font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(232,220,200,.5); transition: color .5s var(--ease);
}
#nav.solid .nav-name, #nav.on-light .nav-name { color: var(--brown); }
#nav.solid .nav-sub,  #nav.on-light .nav-sub  { color: var(--muted); }

/* links with a sliding hover pill */
.nav-links {
  list-style: none; display: flex; align-items: center; gap: .15rem;
  position: relative; padding: 0 .2rem;
}
.nav-pill {
  position: absolute; top: 50%; left: 0; height: 34px; width: 0;
  transform: translateY(-50%); border-radius: var(--r-pill);
  background: rgba(232,220,200,.14);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
#nav.solid .nav-pill, #nav.on-light .nav-pill { background: rgba(196,98,45,.11); }
.nav-links.hot .nav-pill { opacity: 1; }
.nav-links > li > a {
  position: relative; z-index: 1; display: block;
  padding: .55rem .95rem;
  font-size: .705rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(240,232,218,.78); text-decoration: none;
  transition: color .3s;
}
.nav-links > li > a:hover { color: #fff; }
#nav.solid .nav-links > li > a, #nav.on-light .nav-links > li > a { color: rgba(44,26,14,.72); }
#nav.solid .nav-links > li > a:hover, #nav.on-light .nav-links > li > a:hover { color: var(--rust); }
.nav-links > li > a.active { color: var(--terra); }
#nav.solid .nav-links > li > a.active, #nav.on-light .nav-links > li > a.active { color: var(--rust); }
.nav-links > li > a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: currentColor;
}

.nav-right { display: flex; align-items: center; gap: .6rem; flex: none; }

/* burger */
.burger {
  display: none; width: 44px; height: 44px; flex: none;
  border: 1px solid rgba(232,220,200,.25); background: transparent;
  border-radius: 50%; cursor: pointer; position: relative;
}
#nav.solid .burger, #nav.on-light .burger { border-color: rgba(44,26,14,.15); }
.burger i {
  position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 2px;
  background: var(--sand); transition: transform .4s var(--ease), opacity .25s, background .4s;
}
#nav.solid .burger i, #nav.on-light .burger i { background: var(--brown); }
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { top: 22px; }
.burger i:nth-child(3) { top: 27px; }
body.menu-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); background: var(--sand); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); background: var(--sand); }
body.menu-open .burger { border-color: rgba(232,220,200,.3); }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 890;
  background: linear-gradient(160deg, var(--ink-900), #2a1a10 70%, #3d2312);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 2rem 3rem;
  clip-path: circle(0% at calc(100% - 46px) 46px);
  transition: clip-path .75s var(--ease);
  pointer-events: none;
}
body.menu-open .nav-drawer { clip-path: circle(150% at calc(100% - 46px) 46px); pointer-events: auto; }
.nav-drawer a {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 3rem); letter-spacing: -.03em;
  color: var(--sand); text-decoration: none;
  padding: .35rem 0; display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
.nav-drawer a span { font-family: var(--f-body); font-size: .68rem; letter-spacing: .25em; color: var(--rust); }
.nav-drawer a:hover { color: var(--terra); }
body.menu-open .nav-drawer a { opacity: 1; transform: none; }
body.menu-open .nav-drawer a:nth-child(1) { transition-delay: .18s; }
body.menu-open .nav-drawer a:nth-child(2) { transition-delay: .24s; }
body.menu-open .nav-drawer a:nth-child(3) { transition-delay: .30s; }
body.menu-open .nav-drawer a:nth-child(4) { transition-delay: .36s; }
body.menu-open .nav-drawer a:nth-child(5) { transition-delay: .42s; }
body.menu-open .nav-drawer a:nth-child(6) { transition-delay: .48s; }
.drawer-foot {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dk);
  font-size: .75rem; color: rgba(232,220,200,.45); line-height: 2;
}

/* scroll progress rail */
.scroll-rail {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 950; background: transparent; pointer-events: none;
}
.scroll-rail i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rust), var(--terra));
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: var(--nav-h) 0 9rem;
}
.hero-bg {
  position: absolute; inset: -2%;
  background: url('images/image 2.jpg') center 60% / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(196,98,45,.28) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(6,14,24,.55) 0%, rgba(6,14,24,.42) 32%, rgba(6,14,24,.86) 82%, rgba(6,14,24,.97) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
/* drifting sand motes */
.hero-motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-motes i {
  position: absolute; border-radius: 50%; background: rgba(232,220,200,.55);
  animation: mote var(--d,14s) linear infinite var(--del,0s);
}
@keyframes mote {
  0%   { transform: translate(0,0); opacity: 0; }
  12%  { opacity: var(--o,.5); }
  88%  { opacity: var(--o,.5); }
  100% { transform: translate(var(--dx,120px), var(--dy,-160px)); opacity: 0; }
}

.hero-content { position: relative; z-index: 3; width: var(--shell); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(232,220,200,.6); margin-bottom: 1.8rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--terra));
}
.hero-eyebrow::after { background: linear-gradient(90deg, var(--terra), transparent); }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); animation: beacon 2.4s ease-in-out infinite; }
@keyframes beacon { 0%,100% { box-shadow: 0 0 0 0 rgba(212,120,90,.6); } 50% { box-shadow: 0 0 0 8px rgba(212,120,90,0); } }

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8.4vw, 8rem);
  font-weight: 800; line-height: .93; letter-spacing: -.045em;
  color: var(--sand-lt);
}
.hero-headline em,
.hero-headline .accent {
  display: block; font-family: var(--f-serif); font-weight: 400;
  color: var(--terra); letter-spacing: -.01em; margin-top: .12em;
}
/* per-line mask reveal */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); }
body:not(.loading) .line-mask > span { animation: lineUp 1.05s var(--ease) both; }
body:not(.loading) .line-mask:nth-of-type(2) > span { animation-delay: .12s; }
@keyframes lineUp { to { transform: none; } }

.hero-subline {
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: rgba(232,220,200,.68); line-height: 1.75;
  margin: 1.9rem auto 2.8rem; max-width: 40rem;
  animation: fadeUp 1s var(--ease) .5s both;
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s var(--ease) .66s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 2.2rem;
  width: var(--shell); margin-inline: auto; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  animation: fadeUp 1s var(--ease) .85s both;
}
.hero-stats { display: flex; gap: clamp(1.6rem, 4vw, 3.6rem); }
.hero-stat { position: relative; padding-left: 1.1rem; }
.hero-stat::before {
  content: ''; position: absolute; left: 0; top: .35rem; bottom: .35rem; width: 2px;
  background: linear-gradient(var(--rust), transparent);
}
.hero-stat b {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--sand); line-height: 1; letter-spacing: -.03em;
}
.hero-stat > span {
  display: block; margin-top: .3rem;
  font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(232,220,200,.42);
}
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(232,220,200,.4); text-decoration: none;
}
.hero-scroll .mouse {
  width: 22px; height: 34px; border-radius: 12px; border: 1px solid rgba(232,220,200,.3);
  position: relative;
}
.hero-scroll .mouse::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px;
  margin-left: -1.5px; border-radius: 2px; background: var(--terra);
  animation: wheel 1.8s var(--ease-io) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.hero-scroll:hover { color: var(--terra); }

/* ── MARQUEE ────────────────────────────────────────────── */
.marquee-strip {
  background: var(--rust); padding: .8rem 0; overflow: hidden;
  position: relative; z-index: 2;
}
.marquee-inner { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-strip:hover .marquee-inner { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 2.6rem; padding-right: 2.6rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.82); white-space: nowrap;
}
.marquee-item svg { width: 13px; height: 13px; opacity: .65; flex: none; animation: spin 9s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
#about { background: var(--cream); position: relative; overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center; padding-block: clamp(5rem, 8vw, 7.5rem);
}
.about-media { position: relative; }
.about-frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 4/5; box-shadow: 0 40px 80px -50px rgba(44,26,14,.7);
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.about-frame:hover img { transform: scale(1.06); }
.about-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,26,14,.72), transparent 52%);
}
.about-cap {
  position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.6rem; z-index: 2;
  font-family: var(--f-serif); font-style: normal; font-size: 1rem;
  color: rgba(240,232,218,.82);
}
/* floating badge */
.about-badge {
  position: absolute; right: -1.4rem; top: 2.2rem; z-index: 3;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--brown); color: var(--sand);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 24px 40px -22px rgba(44,26,14,.8);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.about-badge b { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.about-badge span { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-top: .3rem; }
.about-badge .spin-text { position: absolute; inset: 0; animation: spin 22s linear infinite; }

.about-copy p { font-size: 1.05rem; line-height: 1.9; color: var(--olive); margin-bottom: 1.05rem; max-width: 56ch; }
.about-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 2.2rem 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.val {
  background: var(--cream); padding: 1.4rem 1.5rem;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.val:hover { background: var(--sand-lt); }
.val svg { width: 26px; height: 26px; stroke: var(--rust); fill: none; stroke-width: 1.4; margin-bottom: .8rem; transition: transform .5s var(--ease-bk); }
.val:hover svg { transform: translateY(-4px) rotate(-8deg); }
.val b { display: block; font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: var(--brown); margin-bottom: .25rem; }
.val span { font-size: .8rem; color: var(--muted); line-height: 1.65; }

.director {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.2rem 1.5rem; border-left: 3px solid var(--rust);
  background: rgba(196,98,45,.05); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.director .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--rust), var(--brown));
  display: grid; place-items: center; color: var(--sand);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
}
.director b { display: block; font-family: var(--f-display); font-size: .98rem; color: var(--brown); }
.director span { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   SERVICES — dark canvas, cards lift on hover / tap
   ═══════════════════════════════════════════════════════════ */
#services {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(196,98,45,.18), transparent 60%),
    radial-gradient(ellipse 50% 45% at 92% 88%, rgba(181,150,42,.13), transparent 62%),
    linear-gradient(170deg, var(--ink-900) 0%, var(--brown) 55%, var(--ink-800) 100%);
  color: var(--sand);
}
#services::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(232,220,200,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,220,200,.045) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}
#services .shell { position: relative; z-index: 1; }
#services .ch-mark { color: var(--terra); }
#services .sec-title { color: var(--sand-lt); }
#services .sec-title em { color: var(--terra); }
#services .sec-desc { color: rgba(232,220,200,.55); }

.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.1rem;
}
.svc {
  --accent: var(--rust);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 2.4rem 2.1rem 2.2rem;
  border-radius: var(--r-md);
  background: rgba(232,220,200,.055);
  border: 1px solid rgba(232,220,200,.13);
  cursor: pointer; overflow: hidden;
  text-align: left; width: 100%; font: inherit; color: inherit;
  transition: transform .55s var(--ease), border-color .45s var(--ease),
              box-shadow .55s var(--ease), background .45s var(--ease);
}
/* glow wash that rises on activation */
.svc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease);
}
/* top accent hairline that draws in */
.svc::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.svc:hover, .svc:focus-visible, .svc.open {
  transform: translateY(-12px);
  background: rgba(232,220,200,.07);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 34px 60px -34px rgba(0,0,0,.85), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.svc:hover::before, .svc:focus-visible::before, .svc.open::before { opacity: 1; }
.svc:hover::after, .svc:focus-visible::after, .svc.open::after { transform: scaleX(1); }
.svc:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }

.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.svc-ico {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  transition: transform .6s var(--ease-bk), background .4s;
}
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-ico svg .dash { stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease); }
.svc:hover .svc-ico, .svc.open .svc-ico { transform: translateY(-4px) rotate(-7deg) scale(1.06); background: color-mix(in srgb, var(--accent) 28%, transparent); }
.svc:hover .svc-ico svg .dash, .svc.open .svc-ico svg .dash { stroke-dashoffset: 120; }

.svc-num {
  font-family: var(--f-display); font-size: 2.6rem; font-weight: 800;
  line-height: 1; letter-spacing: -.04em;
  color: rgba(232,220,200,.09); transition: color .45s var(--ease);
}
.svc:hover .svc-num, .svc.open .svc-num { color: color-mix(in srgb, var(--accent) 42%, transparent); }

.svc-name {
  font-family: var(--f-display); font-size: 1.32rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--sand-lt); margin-bottom: .6rem;
}
.svc-desc { font-size: .87rem; line-height: 1.75; color: rgba(232,220,200,.55); }

/* expanding detail */
.svc-more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease), opacity .4s var(--ease);
  opacity: 0;
}
.svc:hover .svc-more, .svc:focus-within .svc-more, .svc.open .svc-more { grid-template-rows: 1fr; opacity: 1; }
.svc-more > div { overflow: hidden; }
.svc-list { list-style: none; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(232,220,200,.12); display: flex; flex-direction: column; gap: .55rem; }
.svc-list li {
  position: relative; padding-left: 1.4rem;
  font-size: .8rem; color: rgba(232,220,200,.72);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.svc:hover .svc-list li, .svc:focus-within .svc-list li, .svc.open .svc-list li { opacity: 1; transform: none; }
.svc-list li:nth-child(1) { transition-delay: .06s; }
.svc-list li:nth-child(2) { transition-delay: .11s; }
.svc-list li:nth-child(3) { transition-delay: .16s; }
.svc-list li:nth-child(4) { transition-delay: .21s; }
.svc-list li:nth-child(5) { transition-delay: .26s; }
.svc-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px; background: var(--accent);
}
.svc-cue {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 78%, var(--sand));
  transition: opacity .35s, transform .5s var(--ease);
}
.svc-cue svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .45s var(--ease); }
.svc:hover .svc-cue svg, .svc.open .svc-cue svg { transform: rotate(180deg); }

/* secondary services row */
.svc-mini-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.svc-mini {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.7rem 1.6rem; border-radius: var(--r-md);
  background: rgba(232,220,200,.055);
  border: 1px solid rgba(232,220,200,.12);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.svc-mini:hover { transform: translateY(-7px); background: rgba(232,220,200,.085); border-color: rgba(212,120,90,.4); }
.svc-mini .m-ico {
  width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: rgba(196,98,45,.2); border: 1px solid rgba(196,98,45,.34);
  transition: transform .5s var(--ease-bk);
}
.svc-mini:hover .m-ico { transform: rotate(-10deg) scale(1.08); }
.svc-mini .m-ico svg { width: 20px; height: 20px; stroke: var(--terra); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-mini b { display: block; font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--sand-lt); margin-bottom: .3rem; }
.svc-mini span { font-size: .78rem; line-height: 1.7; color: rgba(232,220,200,.5); }

/* ═══════════════════════════════════════════════════════════
   EDITORIAL BREAK
   ═══════════════════════════════════════════════════════════ */
.edit-break { position: relative; min-height: 62vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.edit-bg { position: absolute; inset: 0; background: url('images/image 3.jpg') center / cover no-repeat; background-attachment: fixed; }
.edit-dim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(44,26,14,.78), rgba(28,18,9,.93)); }
.edit-content { position: relative; z-index: 2; max-width: 860px; padding: 6rem 2rem; }
.quote-mark { width: 54px; height: 54px; margin: 0 auto 1.6rem; opacity: .8; }
.quote-mark path { fill: var(--rust); }
.edit-quote {
  font-family: var(--f-serif); font-style: normal; font-weight: 400;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.45;
  color: var(--sand); margin-bottom: 1.5rem;
}
.edit-attr { font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--terra); }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
#portfolio { background: var(--brown); position: relative; overflow: hidden; }
#portfolio .ch-mark { color: var(--terra); }
#portfolio .sec-title { color: var(--sand-lt); }
#portfolio .sec-title em { color: var(--terra); }
#portfolio .sec-desc { color: rgba(232,220,200,.52); }

.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.flt {
  padding: .55rem 1.25rem; border-radius: var(--r-pill);
  border: 1px solid rgba(232,220,200,.16); background: transparent; cursor: pointer;
  font-family: var(--f-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: rgba(232,220,200,.5);
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.flt:hover { color: var(--sand); border-color: rgba(232,220,200,.38); transform: translateY(-2px); }
.flt.on { background: var(--rust); border-color: var(--rust); color: #fff; }


/* ═══════════════════════════════════════════════════════════
   WORK WALL — masonry poster gallery
   ═══════════════════════════════════════════════════════════ */
.work-wall { columns: 3; column-gap: 16px; }

.work {
  position: relative; display: block; break-inside: avoid;
  margin: 0 0 16px; padding: 0;
  border-radius: var(--r-md); overflow: hidden;
  background: rgba(232,220,200,.05);
  border: 1px solid rgba(232,220,200,.11);
  cursor: zoom-in;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s var(--ease), transform .6s var(--ease),
              box-shadow .6s var(--ease), border-color .5s var(--ease),
              background .5s var(--ease);
}
.work.in { clip-path: inset(0 0 0 0); }
.work:hover {
  transform: translateY(-8px);
  background: rgba(232,220,200,.09);
  border-color: rgba(212,120,90,.45);
  box-shadow: 0 44px 66px -38px rgba(0,0,0,.85);
}
.work:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.work.hide { display: none; }

/* the artwork — lightly graded at rest, full colour on hover */
.work-media { position: relative; display: block; overflow: hidden; }
.work-media img {
  width: 100%; height: auto; display: block;
  filter: saturate(.82) brightness(.95);
  transform: scale(1.001);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.work:hover .work-media img { filter: none; transform: scale(1.055); }
/* barely-there warm veil so the wall reads as one set */
.work-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(200deg, rgba(196,98,45,.14), rgba(12,8,4,.2));
  opacity: 1; transition: opacity .7s var(--ease);
}
.work:hover .work-media::after { opacity: 0; }

/* hairline frame that draws in on hover */
.work-frame {
  position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(245,239,227,.5); border-radius: 5px;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .65s var(--ease);
}
.work:hover .work-frame { opacity: 1; transform: none; }

.work-open {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(250,247,242,.95); display: grid; place-items: center;
  opacity: 0; transform: scale(.5) rotate(-35deg);
  transition: opacity .4s var(--ease), transform .55s var(--ease-bk);
}
.work-open svg { width: 15px; height: 15px; stroke: var(--brown); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.work:hover .work-open { opacity: 1; transform: none; }

/* badge on pieces that have a live website behind them */
.work-live {
  position: absolute; left: 1rem; top: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .7rem; border-radius: var(--r-pill);
  background: rgba(12,8,4,.66); backdrop-filter: blur(6px);
  border: 1px solid rgba(232,220,200,.28);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-lt);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.work-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #6fbf8a;
  animation: beacon2 1.8s ease-in-out infinite;
}
.work:hover .work-live { opacity: 1; transform: none; }

/* museum label beneath the piece */
.work-meta {
  position: relative; display: flex; align-items: baseline; gap: .9rem;
  padding: 1.15rem 1.25rem 1.25rem;
}
.work-meta::after {
  content: ''; position: absolute; left: 1.25rem; right: 1.25rem; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--rust), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.work:hover .work-meta::after { transform: scaleX(1); }
.work-index {
  flex: none; font-family: var(--f-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  color: rgba(232,220,200,.3); transition: color .4s var(--ease);
}
.work:hover .work-index { color: var(--terra); }
.work-body { min-width: 0; }
.work-title {
  display: block; font-family: var(--f-display);
  font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--sand-lt); line-height: 1.3;
  transition: color .35s var(--ease);
}
.work:hover .work-title { color: var(--terra); }
.work-cat {
  display: block; margin-top: .28rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: rgba(232,220,200,.42);
  transition: color .35s var(--ease);
}
.work:hover .work-cat { color: rgba(232,220,200,.65); }

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center; padding: 4rem 4rem 5rem;
  background: rgba(10,7,4,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lb-stage {
  position: relative; max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  transform: scale(.94) translateY(14px); opacity: 0;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.lightbox.on .lb-stage { transform: none; opacity: 1; }
.lb-stage img {
  max-width: 100%; max-height: calc(100svh - 17rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9);
}
.lb-cap { text-align: center; }
.lb-cap b {
  display: block; font-family: var(--f-display); font-size: 1.05rem;
  font-weight: 700; color: var(--sand-lt); letter-spacing: -.02em;
}
.lb-cap span {
  display: block; margin-top: .3rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--terra);
}
.lb-visit {
  display: none; margin: .9rem auto 0;
  align-items: center; gap: .55rem;
  padding: .6rem 1.2rem; border-radius: var(--r-pill);
  background: var(--sand); color: var(--brown); text-decoration: none;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, transform .4s var(--ease);
}
.lb-visit.on { display: inline-flex; }
.lb-visit:hover { background: var(--rust); color: #fff; transform: translateY(-2px); }
.lb-visit svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn {
  position: absolute; z-index: 2; border: 1px solid rgba(232,220,200,.22);
  background: rgba(232,220,200,.08); border-radius: 50%; cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.lb-btn svg { width: 17px; height: 17px; stroke: var(--sand); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--rust); border-color: var(--rust); transform: scale(1.08); }
.lb-close { top: 1.6rem; right: 1.6rem; }
.lb-prev  { left: 1.6rem;  top: 50%; margin-top: -24px; }
.lb-next  { right: 1.6rem; top: 50%; margin-top: -24px; }
.lb-count {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--f-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; color: rgba(232,220,200,.45);
}
body.lb-open { overflow: hidden; }

/* ── ARCHIVE STRIP ──────────────────────────────────────── */
.work-archive { margin-top: 3.5rem; padding-top: 2.4rem; border-top: 1px solid rgba(232,220,200,.12); }
.archive-h {
  font-size: .68rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 1.4rem;
}
.archive-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 3rem; }
.archive-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(232,220,200,.07);
  transition: padding-left .4s var(--ease), border-color .4s;
}
.archive-list li:hover { padding-left: .7rem; border-color: rgba(212,120,90,.4); }
.archive-list b {
  font-family: var(--f-display); font-size: .95rem; font-weight: 600;
  color: rgba(245,239,227,.82); transition: color .3s;
}
.archive-list li:hover b { color: var(--terra); }
.archive-list span {
  margin-left: auto; font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(232,220,200,.35); white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   CLIENTS — logo slots ready for real artwork
   ═══════════════════════════════════════════════════════════ */
.clients { background: var(--cream); padding-block: clamp(4rem, 7vw, 6rem); overflow: hidden; }
.clients-lbl {
  display: flex; align-items: center; gap: 1.2rem; justify-content: center;
  font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 2.6rem;
}
.clients-lbl::before, .clients-lbl::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, rgba(44,26,14,.22)); }
.clients-lbl::after { background: linear-gradient(90deg, rgba(44,26,14,.22), transparent); }

.logo-wall {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.logo-slot {
  position: relative; background: var(--cream);
  min-height: 142px; display: grid; place-items: center; padding: 1.4rem 1rem;
  text-align: center; text-decoration: none;
  transition: background .4s var(--ease);
}
.logo-slot::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--rust); transform: scaleX(0); transform-origin: center;
  transition: transform .5s var(--ease);
}
.logo-slot:hover { background: var(--sand-lt); }
.logo-slot:hover::after { transform: scaleX(1); }
/* Drop a PNG/SVG into images/clients/ and it shows immediately.
   The image is visible by DEFAULT — never hidden behind JavaScript — because a
   lazily-loaded image with `display:none` has no layout box and some browsers
   (Safari) therefore never load it at all. JS is only used to fall back to the
   lettered placeholder if a file is genuinely missing. */
.logo-slot img {
  display: block;
  max-height: 54px; max-width: 78%; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(.72);
  transition: filter .45s var(--ease), transform .45s var(--ease);
}
.logo-slot:hover img { filter: grayscale(0) opacity(1); transform: scale(1.06); }
.logo-ph { display: none; flex-direction: column; align-items: center; gap: .55rem; }
.logo-slot.no-logo .logo-ph { display: flex; }
.logo-ph b {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(196,98,45,.1); color: var(--rust);
  font-family: var(--f-display); font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  transition: background .4s, color .4s, transform .5s var(--ease-bk);
}
.logo-slot:hover .logo-ph b { background: var(--rust); color: #fff; transform: translateY(-3px) scale(1.06); }
.logo-ph span {
  font-size: .66rem; font-weight: 500; letter-spacing: .04em;
  color: var(--muted); line-height: 1.4; max-width: 15ch;
  transition: color .4s;
}
.logo-slot:hover .logo-ph span { color: var(--brown); }
.clients-note { text-align: center; margin-top: 1.6rem; font-size: .72rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   PROCESS — scroll-driven caravan timeline
   ═══════════════════════════════════════════════════════════ */
#process { position: relative; overflow: hidden; background: var(--warm); }
#process::before {
  content: ''; position: absolute; right: -6%; top: 0; width: 46%; height: 100%;
  background: url('images/image 5.jpg') center / cover no-repeat;
  opacity: .045; mask-image: linear-gradient(90deg, transparent, #000 75%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
  pointer-events: none;
}
#process .shell { position: relative; z-index: 1; }

.proc-rail { position: relative; margin-top: 5.5rem; }
.proc-line {
  position: absolute; left: 0; right: 0; top: 46px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(196,98,45,.22) 0 6px, transparent 6px 12px);
  border-radius: 2px;
}
.proc-line i {
  position: absolute; inset: 0; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--gold), var(--rust));
  border-radius: 2px; transition: width .35s linear;
}
/* the caravan walks the line as you scroll */
.proc-camel {
  position: absolute; top: 4px; left: 0; width: 76px;
  transform: translateX(-50%);
  transition: left .35s linear;
  pointer-events: none;
}
.proc-camel .camel-rig .cm-fill { fill: var(--rust); }
.proc-camel .camel-rig .cm-stroke { stroke: var(--rust); }

.proc-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.6rem; }
.proc-step { position: relative; padding-top: 0; text-align: left; }
.step-head { position: relative; height: 92px; }
.step-dot {
  position: absolute; left: 0; top: 37px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--warm); border: 2px solid rgba(196,98,45,.4);
  transition: border-color .4s, background .4s, box-shadow .4s;
}
.proc-step.lit .step-dot { border-color: var(--rust); background: var(--rust); box-shadow: 0 0 0 6px rgba(196,98,45,.14); }
.proc-step.lit .step-dot::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 1px solid var(--rust); animation: ping 2.4s var(--ease-io) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.step-num {
  position: absolute; left: 32px; bottom: 48px;
  font-family: var(--f-display); font-size: 3.4rem; font-weight: 800; line-height: .85;
  letter-spacing: -.05em; color: rgba(196,98,45,.14);
  transition: color .5s var(--ease), transform .5s var(--ease);
}
.proc-step.lit .step-num { color: rgba(196,98,45,.38); transform: translateY(-2px); }
.step-body { padding-right: 1.5rem; }
.step-icon { width: 30px; height: 30px; stroke: var(--rust); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.step-icon path, .step-icon circle, .step-icon rect, .step-icon line, .step-icon polyline {
  stroke-dasharray: 160; stroke-dashoffset: 160;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.proc-step.lit .step-icon path, .proc-step.lit .step-icon circle, .proc-step.lit .step-icon rect,
.proc-step.lit .step-icon line, .proc-step.lit .step-icon polyline { stroke-dashoffset: 0; }
.step-title { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; color: var(--brown); margin-bottom: .55rem; letter-spacing: -.02em; }
.step-desc { font-size: .85rem; line-height: 1.8; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
#testimonial { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 66vh; text-align: center; }
.test-bg { position: absolute; inset: 0; background: url('images/image 1.jpg') center 30% / cover no-repeat; background-attachment: fixed; }
.test-dim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,14,24,.92), rgba(44,26,14,.95)); }
.test-content { position: relative; z-index: 2; max-width: 840px; padding: 6rem 2rem; width: 100%; }
.test-slides { position: relative; min-height: 220px; }
.test-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.test-slide.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.test-quote {
  font-family: var(--f-serif); font-style: normal; font-weight: 400;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem); line-height: 1.5;
  color: var(--sand); margin-bottom: 1.6rem;
}
.test-author { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(232,220,200,.45); }
.test-author b { color: var(--terra); font-weight: 600; }
.test-dots { display: flex; gap: .1rem; justify-content: center; margin-top: 2rem; }
.t-dot {
  position: relative; width: 34px; height: 34px;
  border: none; padding: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.t-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: width .45s var(--ease), background .35s, border-radius .45s var(--ease);
}
.t-dot.on::after { background: var(--rust); width: 26px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
#contact { background: var(--brown); position: relative; overflow: hidden; color: var(--sand); }
#contact::before {
  content: ''; position: absolute; right: -10rem; top: -10rem;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.14), transparent 68%);
  pointer-events: none; animation: float 9s ease-in-out infinite;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; position: relative; z-index: 1; }
#contact .ch-mark { color: var(--terra); }
#contact .sec-title { color: var(--sand-lt); font-size: clamp(1.9rem, 3vw, 2.7rem); }
#contact .sec-title em { color: var(--terra); }
.contact-blurb { font-size: 1.02rem; color: rgba(232,220,200,.55); line-height: 1.85; margin: 1.2rem 0 2.4rem; max-width: 44ch; }

.contact-items { display: flex; flex-direction: column; gap: .5rem; }
.c-item {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.1rem; border-radius: var(--r-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.c-item:hover { background: rgba(232,220,200,.05); border-color: rgba(232,220,200,.12); transform: translateX(6px); }
.c-icon {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(196,98,45,.16); border: 1px solid rgba(196,98,45,.28);
  transition: transform .5s var(--ease-bk), background .35s;
}
.c-item:hover .c-icon { transform: rotate(-8deg) scale(1.06); background: rgba(196,98,45,.3); }
.c-icon svg { width: 18px; height: 18px; stroke: var(--terra); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-lbl { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-bottom: .18rem; }
.c-val { font-size: .9rem; color: var(--sand); }

.cform {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(232,220,200,.035);
  border: 1px solid rgba(232,220,200,.1);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; position: relative; }
.fg label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(232,220,200,.42); margin-bottom: .45rem; }
.fg input, .fg textarea, .fg select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,220,200,.12);
  border-radius: var(--r-sm);
  padding: .85rem 1rem; color: var(--sand);
  font-family: var(--f-body); font-size: .88rem; outline: none; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(232,220,200,.28); }
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--rust); background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(196,98,45,.15);
}
.fg select option { background: var(--brown); color: var(--sand); }
.fg textarea { min-height: 120px; }
.form-note { font-size: .68rem; color: rgba(232,220,200,.35); text-align: center; }
.form-note a { color: var(--terra); }
.btn.sent { --btn-bg: #2f6b45; pointer-events: none; }

/* honeypot — must stay in the DOM but never be seen or focusable */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  font-size: .78rem; line-height: 1.7; text-align: center;
  padding: .7rem .9rem; border-radius: var(--r-sm);
  background: rgba(111,191,138,.14); border: 1px solid rgba(111,191,138,.4);
  color: #a8e0bd;
}
.form-status.is-error {
  background: rgba(212,120,90,.14); border-color: rgba(212,120,90,.45); color: #f0b9a5;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer { background: var(--ink-900); color: var(--sand); padding-block: clamp(3rem, 5vw, 4.5rem) 0; }
.foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(232,220,200,.08);
}
.foot-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; text-decoration: none; }
.foot-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.foot-name { font-family: var(--f-serif); font-style: normal; font-size: 1.25rem; color: var(--sand); }
.foot-name span { color: var(--terra); }
.foot-blurb { font-size: .85rem; line-height: 1.85; color: rgba(232,220,200,.42); max-width: 34ch; }
.foot-h { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.1rem; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.foot-list a {
  font-size: .84rem; color: rgba(232,220,200,.5); text-decoration: none;
  display: inline-flex; align-items: center;
  transition: color .3s;
}
.foot-list a::before {
  content: ''; width: 0; height: 1px; margin-right: 0; background: var(--terra);
  transition: width .35s var(--ease), margin-right .35s var(--ease);
}
.foot-list a:hover { color: var(--sand); }
.foot-list a:hover::before { width: 12px; margin-right: .45rem; }
.foot-social { display: flex; gap: .55rem; margin-top: 1.3rem; }
.soc {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(232,220,200,.14);
  display: grid; place-items: center; text-decoration: none;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.soc svg { width: 15px; height: 15px; fill: rgba(232,220,200,.5); transition: fill .3s; }
.soc:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-4px); }
.soc:hover svg { fill: #fff; }
.foot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding-block: 1.6rem;
}
.foot-copy { font-size: .72rem; color: rgba(232,220,200,.28); }
.foot-legal { display: flex; gap: 1.4rem; }
.foot-legal a { font-size: .72rem; color: rgba(232,220,200,.35); text-decoration: none; transition: color .3s; }
.foot-legal a:hover { color: var(--terra); }
.to-top {
  position: fixed; right: 1.8rem; bottom: 1.8rem; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--rust); display: grid; place-items: center;
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  box-shadow: 0 12px 28px -12px rgba(44,26,14,.8);
  transition: opacity .4s var(--ease), transform .5s var(--ease-bk), background .3s;
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brown); }
.to-top svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════════
   LEGAL / PRIVACY PAGE
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 5rem) 0 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 0%, rgba(196,98,45,.22), transparent 62%),
    linear-gradient(165deg, var(--ink-900), var(--brown) 70%, #3a2211);
  color: var(--sand);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(232,220,200,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,220,200,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 40% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 40% 40%, #000, transparent 75%);
}
.page-hero .shell { position: relative; z-index: 1; padding-bottom: 4rem; }
.dune-edge { position: relative; z-index: 1; margin-bottom: -1px; }
.page-hero .ch-mark { color: var(--terra); }
.page-title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; color: var(--sand-lt);
}
.page-title em { font-family: var(--f-serif); font-style: normal; font-weight: 400; color: var(--terra); }
.page-lede { margin-top: 1.4rem; max-width: 58ch; font-size: 1.02rem; line-height: 1.85; color: rgba(232,220,200,.6); }
.page-meta { margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.page-meta div span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-bottom: .3rem; }
.page-meta div b { font-family: var(--f-display); font-size: .95rem; font-weight: 600; color: var(--sand); }
.dune-edge { display: block; width: 100%; height: 70px; }
.dune-edge path { fill: var(--warm); }

.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.legal-toc { position: sticky; top: 118px; }
.toc-h { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--rust); margin-bottom: 1.1rem; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: .1rem; }
.legal-toc a {
  counter-increment: toc; position: relative;
  display: flex; gap: .7rem; padding: .5rem .7rem;
  border-radius: var(--r-sm); text-decoration: none;
  font-size: .8rem; color: var(--olive);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.legal-toc a::before { content: counter(toc,decimal-leading-zero); font-size: .68rem; color: var(--muted); padding-top: .18rem; }
.legal-toc a:hover { background: rgba(196,98,45,.07); color: var(--brown); transform: translateX(3px); }
.legal-toc a.active { background: rgba(196,98,45,.11); color: var(--rust); font-weight: 500; }
.legal-toc a.active::before { color: var(--rust); }

.legal-body { max-width: 74ch; }
.legal-sec { padding-bottom: 2.8rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.legal-sec:last-child { border-bottom: none; }
.legal-sec h2 {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em;
  color: var(--brown); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .85rem;
}
.legal-sec h2 .n {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: rgba(196,98,45,.12); color: var(--rust);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; font-family: var(--f-body);
}
.legal-sec h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--brown); margin: 1.6rem 0 .6rem; }
.legal-sec p { font-size: .95rem; line-height: 1.9; color: var(--olive); margin-bottom: .9rem; }
.legal-sec ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: .6rem 0 1.2rem; }
.legal-sec li { position: relative; padding-left: 1.5rem; font-size: .92rem; line-height: 1.8; color: var(--olive); }
.legal-sec li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--rust); }
.legal-sec a:not(.btn) { color: var(--rust); text-decoration: none; border-bottom: 1px solid rgba(196,98,45,.3); transition: border-color .3s; }
.legal-sec a:not(.btn):hover { border-color: var(--rust); }
.legal-note {
  padding: 1.4rem 1.6rem; border-left: 3px solid var(--rust);
  background: rgba(196,98,45,.05); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 1.4rem 0;
}
.legal-note p { margin: 0; font-size: .9rem; color: var(--brown); }
.legal-cta {
  margin-top: 2rem; padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: var(--r-md); background: var(--brown); color: var(--sand);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.legal-cta > div b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.legal-cta > div span { font-size: .88rem; color: rgba(232,220,200,.55); }

/* ═══════════════════════════════════════════════════════════
   DESIGN ACADEMY
   ═══════════════════════════════════════════════════════════ */
.acad-hero { min-height: auto; }
.acad-hero .shell { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3.5rem; align-items: center; }
.acad-hero-copy { min-width: 0; }
.acad-hero .page-lede { max-width: 48ch; }

/* "next intake" card in the academy hero */
.next-card {
  position: relative; overflow: hidden;
  padding: 2rem 1.9rem; border-radius: var(--r-md);
  background: rgba(232,220,200,.06);
  border: 1px solid rgba(232,220,200,.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 70px -50px rgba(0,0,0,.9);
  animation: float 8s ease-in-out infinite;
}
.next-card::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.28), transparent 70%);
  pointer-events: none;
}
.next-card > * { position: relative; }
.next-lbl {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra);
}
.next-lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); animation: beacon 2.4s ease-in-out infinite; }
.next-when { font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(232,220,200,.5); margin-bottom: .4rem; }
.next-title { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--sand-lt); line-height: 1.1; margin-bottom: .9rem; }
.next-desc { font-size: .85rem; line-height: 1.75; color: rgba(232,220,200,.55); margin-bottom: 1.4rem; }
.next-rows { display: flex; flex-direction: column; gap: .55rem; padding-top: 1.2rem; border-top: 1px solid rgba(232,220,200,.13); margin-bottom: 1.5rem; }
.next-rows div { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: rgba(232,220,200,.45); }
.next-rows b { font-family: var(--f-display); font-weight: 600; color: var(--sand); }
.acad-hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle var(--d,3s) ease-in-out infinite var(--del,0s); }

/* two-lane explainer: monthly cohorts vs one-off classes */
.lane-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.lane {
  position: relative; overflow: hidden;
  padding: clamp(2rem, 3.4vw, 2.9rem);
  border-radius: var(--r-md);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s;
}
.lane::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.lane:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -40px rgba(44,26,14,.6); border-color: rgba(196,98,45,.3); }
.lane:hover::after { transform: scaleX(1); }
.lane-tag {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem;
  padding: .38rem .9rem; border-radius: var(--r-pill);
  background: rgba(196,98,45,.11); color: var(--rust);
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.lane-tag svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lane h3 { font-family: var(--f-display); font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 700; letter-spacing: -.03em; color: var(--brown); margin-bottom: .8rem; }
.lane h3 em { font-family: var(--f-serif); font-style: normal; font-weight: 400; color: var(--rust); }
.lane p { font-size: .95rem; line-height: 1.85; color: var(--olive); margin-bottom: 1.3rem; }
.lane ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; }
.lane li { position: relative; padding-left: 1.6rem; font-size: .88rem; color: var(--olive); }
.lane li svg { position: absolute; left: 0; top: .28em; width: 14px; height: 14px; stroke: var(--rust); fill: none; stroke-width: 2; }

/* monthly schedule board */
.month-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.month {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.7rem 1.7rem 1.6rem;
  border-radius: var(--r-md);
  background: rgba(232,220,200,.05);
  border: 1px solid rgba(232,220,200,.12);
  transition: transform .5s var(--ease), background .4s, border-color .4s, box-shadow .5s var(--ease);
}
.month:hover { transform: translateY(-8px); background: rgba(232,220,200,.09); border-color: rgba(212,120,90,.42); box-shadow: 0 30px 50px -34px rgba(0,0,0,.85); }
.month-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.month-when {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra);
}
.status {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.live   { color: #6fbf8a; }
.status.live i { animation: beacon2 1.8s ease-in-out infinite; }
@keyframes beacon2 { 0%,100% { box-shadow: 0 0 0 0 rgba(111,191,138,.6); } 50% { box-shadow: 0 0 0 6px rgba(111,191,138,0); } }
.status.open   { color: var(--terra); }
.status.soon   { color: rgba(232,220,200,.42); }
.month h3 { font-family: var(--f-display); font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; color: var(--sand-lt); }
.month p { font-size: .83rem; line-height: 1.75; color: rgba(232,220,200,.52); }
.month-foot {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid rgba(232,220,200,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .68rem; color: rgba(232,220,200,.42);
}
.month-foot b { font-family: var(--f-display); font-weight: 600; color: var(--sand); font-size: .78rem; }
.board-note {
  margin-top: 1.6rem; display: flex; align-items: center; gap: .7rem; justify-content: center;
  font-size: .78rem; color: rgba(232,220,200,.45);
}
.board-note svg { width: 15px; height: 15px; stroke: var(--terra); fill: none; stroke-width: 1.6; flex: none; }

/* one-off masterclasses */
.oneoff-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.oneoff {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.9rem; border-radius: var(--r-md);
  background: var(--cream); border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), background .4s;
}
.oneoff::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.14), transparent 70%);
  transform: scale(.4); opacity: 0; transition: transform .7s var(--ease), opacity .5s;
}
.oneoff:hover { transform: translateY(-9px); background: var(--sand-lt); box-shadow: 0 32px 56px -40px rgba(44,26,14,.65); }
.oneoff:hover::before { transform: scale(1); opacity: 1; }
.oneoff-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(196,98,45,.12); margin-bottom: 1.2rem;
  transition: transform .55s var(--ease-bk), background .4s;
}
.oneoff:hover .oneoff-ico { transform: rotate(-9deg) scale(1.08); background: var(--rust); }
.oneoff-ico svg { width: 22px; height: 22px; stroke: var(--rust); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.oneoff:hover .oneoff-ico svg { stroke: #fff; }
.oneoff h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: .5rem; letter-spacing: -.02em; }
.oneoff p { font-size: .85rem; line-height: 1.75; color: var(--muted); margin-bottom: 1.3rem; flex: 1; }
.oneoff-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.oneoff-meta div span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.oneoff-meta div b { font-family: var(--f-display); font-size: .82rem; font-weight: 600; color: var(--brown); }

/* what you learn — track cards */
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.track {
  background: var(--warm); padding: 2.1rem 1.9rem;
  transition: background .45s var(--ease), transform .45s var(--ease);
}
.track:hover { background: var(--cream); }
.track-n { font-family: var(--f-display); font-size: .68rem; font-weight: 600; letter-spacing: .2em; color: var(--rust); margin-bottom: 1rem; }
.track svg { width: 26px; height: 26px; stroke: var(--rust); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .9rem; transition: transform .5s var(--ease-bk); }
.track:hover svg { transform: translateY(-4px) rotate(-8deg); }
.track h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--brown); margin-bottom: .5rem; }
.track p { font-size: .83rem; line-height: 1.75; color: var(--muted); }

/* stats belt */
.stat-belt {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px;
  background: rgba(232,220,200,.1);
  border-block: 1px solid rgba(232,220,200,.1);
}
.stat-belt > div { background: var(--brown); padding: 2.4rem 1.5rem; text-align: center; transition: background .4s; }
.stat-belt > div:hover { background: var(--ink-700); }
.stat-belt b { display: block; font-family: var(--f-display); font-size: clamp(1.9rem,3.2vw,2.7rem); font-weight: 800; color: var(--sand-lt); letter-spacing: -.04em; line-height: 1; }
.stat-belt > div > span { display: block; margin-top: .55rem; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); }

/* levels */
.tiers { display: flex; flex-direction: column; gap: .7rem; margin-top: 2rem; }
.tier {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r-sm);
  background: rgba(232,220,200,.04); border: 1px solid rgba(232,220,200,.1);
  transition: transform .4s var(--ease), background .35s, border-color .35s;
}
.tier:hover { transform: translateX(7px); background: rgba(232,220,200,.08); border-color: rgba(212,120,90,.4); }
.tier-badge {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(196,98,45,.18); border: 1px solid rgba(196,98,45,.3);
}
.tier-badge svg { width: 19px; height: 19px; stroke: var(--terra); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tier b { display: block; font-family: var(--f-display); font-size: .98rem; color: var(--sand-lt); margin-bottom: .15rem; }
.tier span { font-size: .8rem; color: rgba(232,220,200,.5); line-height: 1.6; }

/* checkbox rows in the application form */
.cb-group { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem; }
.cb-row {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .6rem .8rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid rgba(232,220,200,.1);
  font-size: .8rem; color: rgba(232,220,200,.68);
  transition: background .3s, border-color .3s, color .3s;
}
.cb-row:hover { background: rgba(255,255,255,.06); color: var(--sand); }
.cb-row input { accent-color: var(--rust); width: 15px; height: 15px; flex: none; }
.cb-row:has(input:checked) { border-color: var(--rust); background: rgba(196,98,45,.12); color: var(--sand); }

/* FAQ accordion */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-items: start; }
.acc-item {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--cream); border: 1px solid var(--line);
  transition: border-color .4s, box-shadow .5s var(--ease);
}
.acc-item.open { border-color: rgba(196,98,45,.35); box-shadow: 0 20px 40px -30px rgba(44,26,14,.5); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.3rem 1.5rem; cursor: pointer; width: 100%;
  font-family: var(--f-display); font-size: .98rem; font-weight: 600; color: var(--brown);
  background: none; border: none; text-align: left;
  transition: color .3s;
}
.acc-q:hover { color: var(--rust); }
.acc-q i {
  position: relative; width: 20px; height: 20px; flex: none;
}
.acc-q i::before, .acc-q i::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--rust);
  transform: translate(-50%,-50%); transition: transform .4s var(--ease), opacity .3s;
}
.acc-q i::before { width: 13px; height: 1.5px; }
.acc-q i::after  { width: 1.5px; height: 13px; }
.acc-item.open .acc-q i::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.open .acc-a { grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 1.5rem 1.4rem; font-size: .89rem; line-height: 1.85; color: var(--olive); }

/* ═══════════════════════════════════════════════════════════
   CSR — THE CARAVAN PROGRAMME
   ═══════════════════════════════════════════════════════════ */
.csr-hero {
  position: relative; min-height: 94svh; overflow: hidden;
  display: flex; align-items: stretch;
  padding: calc(var(--nav-h) + 3rem) 0 0;
}
.csr-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.csr-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  animation: csrDrift 22s ease-out forwards;
}
@keyframes csrDrift { from { transform: scale(1.09); } to { transform: scale(1); } }
.csr-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(18,12,7,.42) 0%, rgba(18,12,7,.05) 30%, rgba(18,12,7,.72) 78%, rgba(18,12,7,.96) 100%),
    linear-gradient(to right, rgba(18,12,7,.55), transparent 62%);
}
.csr-hero .shell {
  position: relative; z-index: 2;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem;
  width: var(--shell);
}
/* the photograph runs on a diagonal: headline sits in the open sky top-left,
   the caption in the dark ground bottom-right, so neither covers a walker */
.csr-lede { align-self: start; }
.csr-hero .csr-caption { align-self: end; justify-self: end; text-align: left; }
.csr-hero .ch-mark { color: var(--terra); }
.csr-title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.02;
  color: var(--sand-lt); max-width: 18ch;
}
.csr-title em { font-family: var(--f-serif); font-weight: 400; color: var(--terra); }

/* the caption that sits with the photograph */
.csr-caption {
  margin-top: 0; padding-left: 1.5rem;
  border-left: 2px solid var(--rust);
  max-width: 46ch;
}
.csr-caption p {
  font-family: var(--f-serif); font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.5; color: rgba(245,239,227,.9);
}
.csr-caption cite {
  display: block; margin-top: .9rem;
  font-family: var(--f-body); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--terra);
}
.csr-credit {
  position: absolute; right: 1.5rem; bottom: 1rem; z-index: 2;
  font-size: .68rem; letter-spacing: .14em; color: rgba(232,220,200,.3);
}

/* pledge cards */
.pledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.pledge {
  position: relative; overflow: hidden;
  padding: 2.2rem 2rem; border-radius: var(--r-md);
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s;
}
.pledge::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--rust), var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform .6s var(--ease);
}
.pledge:hover { transform: translateY(-8px); border-color: rgba(196,98,45,.3); box-shadow: 0 34px 58px -40px rgba(44,26,14,.6); }
.pledge:hover::before { transform: scaleY(1); }
.pledge-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(196,98,45,.11); margin-bottom: 1.3rem;
  transition: background .4s, transform .55s var(--ease-bk);
}
.pledge:hover .pledge-ico { background: var(--rust); transform: rotate(-8deg) scale(1.07); }
.pledge-ico svg { width: 24px; height: 24px; stroke: var(--rust); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.pledge:hover .pledge-ico svg { stroke: #fff; }
.pledge h3 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; color: var(--brown); margin-bottom: .6rem; letter-spacing: -.02em; }
.pledge p { font-size: .9rem; line-height: 1.8; color: var(--olive); }

/* what we teach — dark strip */
.teach-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.teach {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.8rem 1.7rem; border-radius: var(--r-md);
  background: rgba(232,220,200,.055); border: 1px solid rgba(232,220,200,.12);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.teach:hover { transform: translateY(-6px); background: rgba(232,220,200,.09); border-color: rgba(212,120,90,.42); }
.teach-n {
  flex: none; font-family: var(--f-display); font-size: 1.6rem; font-weight: 800;
  line-height: 1; letter-spacing: -.04em; color: rgba(212,120,90,.35);
  transition: color .4s var(--ease);
}
.teach:hover .teach-n { color: var(--terra); }
.teach b { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--sand-lt); margin-bottom: .4rem; }
.teach span { font-size: .86rem; line-height: 1.8; color: rgba(232,220,200,.55); }

/* the walk — a footprint trail of milestones */
.walk-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.walk-grid .sec-hdr { margin-bottom: 0; position: sticky; top: 120px; }
.trail { position: relative; padding-left: 2.6rem; }
/* the dotted trail runs between the markers, never past the last one */
.trail-step::after {
  content: ''; position: absolute; left: calc(-2.6rem + 7px); top: 1.7rem; bottom: -.4rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--rust) 0 7px, transparent 7px 15px);
  opacity: .45;
}
.trail-step:last-child::after { display: none; }
.trail-step { position: relative; padding-bottom: 2.4rem; padding-left: 0; }
.trail-step:last-child { padding-bottom: 0; }
.trail-step::before {
  content: ''; position: absolute; left: -2.6rem; top: .35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--warm); border: 2px solid var(--rust);
  transition: background .4s, box-shadow .4s;
}
.trail-step:hover::before { background: var(--rust); box-shadow: 0 0 0 6px rgba(196,98,45,.14); }
.trail-when {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rust); margin-bottom: .4rem;
}
.trail-step h3 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: .45rem; }
.trail-step p { font-size: .88rem; line-height: 1.8; color: var(--olive); max-width: 58ch; }

/* partner call-out */
.csr-cta {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center;
  padding: clamp(2.2rem, 4vw, 3.4rem); border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(196,98,45,.24), transparent 65%),
    linear-gradient(150deg, var(--ink-900), var(--brown));
  color: var(--sand);
}
.csr-cta h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; color: var(--sand-lt); margin-bottom: .9rem; }
.csr-cta h2 em { font-family: var(--f-serif); font-weight: 400; color: var(--terra); }
.csr-cta p { font-size: .95rem; line-height: 1.85; color: rgba(232,220,200,.6); max-width: 46ch; }
.csr-cta-actions { display: flex; flex-direction: column; gap: .7rem; }

/* ── 404 ────────────────────────────────────────────────── */
.err-hero { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; }
.err-hero .shell { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem 4rem; }
.err-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.err-links {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(232,220,200,.12);
}
.err-links a {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(232,220,200,.5); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 40px;
  transition: color .3s;
}
.err-links a:hover { color: var(--terra); }

/* ═══════════════════════════════════════════════════════════
   REVEAL + UTILITIES
   ═══════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-l.visible { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-r.visible { opacity: 1; transform: none; }
.reveal-s { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-s.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: .08s; } .rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; } .rd4 { transition-delay: .32s; }
.rd5 { transition-delay: .40s; } .rd6 { transition-delay: .48s; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  :root { --shell: min(1100px, 100% - 4rem); }
  .month-board, .oneoff-grid, .track-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-belt { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pledge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-wall { columns: 2; }
  .svc-grid, .svc-mini-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .logo-wall { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .proc-steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 3rem; }
  .proc-line, .proc-camel { display: none; }
  /* The rail is gone below this width, so the dot and number can no longer be
     absolutely positioned against it — put the head back into normal flow,
     otherwise it collapses to zero height and the numbers sit on the copy. */
  .step-head {
    position: relative; height: auto; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .9rem;
  }
  /* relative, not static — the pulsing ring is an absolutely positioned
     ::after and needs the dot itself as its containing block */
  .step-dot { position: relative; top: auto; left: auto; flex: none; }
  .step-num { position: static; font-size: 2.5rem; line-height: 1; }
  .proc-step.lit .step-num { transform: none; }
  .step-body { padding-right: 0; }
  /* the rail's clearance is only needed when the rail exists */
  .proc-rail { margin-top: 2.5rem; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pledge-grid, .teach-grid { grid-template-columns: 1fr; }
  .csr-cta { grid-template-columns: 1fr; gap: 2rem; }
  .walk-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .walk-grid .sec-hdr { position: static; }
  .csr-hero .csr-caption { justify-self: start; }
  .csr-hero .shell { gap: 2rem; }
  .acad-hero .shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { right: 1rem; top: 1rem; width: 96px; height: 96px; }
  .lightbox { padding: 4.5rem 1.5rem; }
  .lb-prev { left: .6rem; } .lb-next { right: .6rem; }
  .archive-list { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; }
  .legal-toc ol { flex-direction: row; flex-wrap: wrap; }
  .lane-grid, .faq-grid { grid-template-columns: 1fr; }
  .edit-bg, .test-bg { background-attachment: scroll; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .hero-scroll { display: none; }
}
@media (max-width: 680px) {
  :root { --shell: min(640px, 100% - 2.4rem); }
  body { font-size: 15px; }
  #hero { padding-bottom: 11rem; }
  .svc-grid, .svc-mini-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-wall { columns: 1; }
  .proc-steps { grid-template-columns: 1fr; }
  .form-row, .cb-group { grid-template-columns: 1fr; }
  .month-board, .oneoff-grid, .track-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bar { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .24em; }
  .hero-eyebrow::before, .hero-eyebrow::after { display: none; }
  .page-meta { gap: 1.2rem 1.8rem; }
  .legal-cta { flex-direction: column; align-items: flex-start; }
  .to-top { right: 1rem; bottom: 1rem; }
}

/* ── MOBILE / TOUCH REFINEMENTS ─────────────────────────── */
@media (max-width: 980px) {
  /* sideways reveals become vertical — a translateX near the edge can
     trigger a horizontal scroll on iOS Safari even with overflow-x hidden */
  .reveal-l, .reveal-r { transform: translateY(26px); }

  /* touch targets: 40px+ on anything tappable */
  .foot-list a { min-height: 40px; align-items: center; }
  .foot-legal a { display: inline-flex; align-items: center; min-height: 40px; }
  .flt { padding: .8rem 1.3rem; }
  .soc { width: 44px; height: 44px; }
  .legal-toc a { min-height: 40px; align-items: center; }
  .c-item { padding: 1rem .9rem; }
  .link-x { min-height: 40px; align-items: center; }
  .clients-note, .form-note { line-height: 2.2; }
  .form-note a, .legal-sec p a, .legal-sec li a {
    display: inline-block; padding: .3rem 0;
  }
  .legal-sec li, .legal-sec p { line-height: 2; }
}

@media (max-width: 680px) {
  /* On a tall phone viewport a full-bleed 3:2 photo crops to ~33% of its width,
     which loses the lone walker the caption is about. Stack the hero instead so
     the whole photograph is visible: headline, photograph, caption. */
  .csr-hero {
    display: flex; flex-direction: column; min-height: auto;
    padding: calc(var(--nav-h) + 2rem) 0 0;
    background: linear-gradient(170deg, var(--ink-900), var(--brown) 70%, var(--ink-800));
  }
  .csr-hero .shell { display: contents; }
  .csr-lede { order: 1; width: var(--shell); margin-inline: auto; }
  .csr-hero-bg {
    order: 2; position: relative; inset: auto;
    margin: 1.8rem 0; border-radius: 0;
  }
  .csr-hero-bg img { height: auto; aspect-ratio: 3 / 2; object-position: center; animation: none; }
  .csr-hero-bg::after { background: linear-gradient(to bottom, rgba(18,12,7,.2), rgba(18,12,7,.3)); }
  .csr-hero .csr-caption {
    order: 3; width: var(--shell); margin-inline: auto;
    justify-self: stretch; align-self: auto; max-width: none;
  }
  .csr-credit {
    order: 4; position: static; width: var(--shell);
    margin: .8rem auto 2.5rem; text-align: right;
  }

  /* one more step up for label text on phones */
  .ch-mark, .work-cat, .hero-stat > span, .c-lbl, .foot-h, .fg label,
  .archive-h, .clients-lbl, .toc-h, .page-meta div span, .oneoff-meta div span,
  .stat-belt > div > span, .month-when, .status, .next-lbl, .trail-when,
  .svc-cue, .work-index, .foot-legal a, .foot-copy, .csr-credit {
    font-size: .72rem;
  }
  .hero-eyebrow { font-size: .68rem; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-l, .reveal-r, .reveal-s { opacity: 1 !important; transform: none !important; }
  .line-mask > span { transform: none !important; }
}
