/* ===========================================================================
   Canaan — landing concept v4
   Positioning : README.md §3  ·  Copy : WEBSITE-CONTENT.md §4
   Palette     : README.md §1 — warm near-black, limestone, one terracotta
                 accent, olive reserved for the Arabic mark and the "sell" half
   Type        : serif headings against a sans body — editorial, not startup

   Where the look comes from: kinetic's rule that motion is hierarchy
   (what matters moves first, furthest, settles last) laid over kanan's
   token discipline. Everything here is local — no webfont request, no CDN.
   =========================================================================== */

:root{
  /* --- surface ---------------------------------------------------------- */
  --ink:#0F0E0C;          /* page ground, per README §1 */
  --ink-2:#131110;        /* raised: cards, bands */
  --ink-3:#181513;        /* raised further: hover, wells */
  --ink-deep:#0B0A08;     /* footer, below the fold of everything */

  /* --- text -------------------------------------------------------------
     --faint is the floor: the quietest thing that is still text, and it clears
     WCAG AA (4.5:1) on every surface it sits on, input wells included — 4.99
     on --ink, 4.55 in a field. There is no quieter text colour on purpose;
     the old --ghost (#5F594F, 2.78:1) is gone rather than kept for decoration,
     because every place it was used turned out to be carrying words. */
  --limestone:#EDE7DD;    /* primary */
  --body:#B7AFA2;         /* running text */
  --muted:#9A9284;        /* secondary */
  --faint:#888173;        /* labels, meta — was #7C7568, 4.23:1 */

  /* --- accents ----------------------------------------------------------
     Terracotta is the only accent. Olive is not a second accent: README §1
     reserves it for the Arabic mark, and WEBSITE-CONTENT §4.3 extends it to
     the "sell" rows of the accountability list so the two halves read apart.

     Terracotta itself sits just under AA as small text (4.43:1 on --ink), and
     light text on a terracotta fill is 3.54:1. So the brand hex stays for
     marks, lines and large type, and two working shades carry the rest:
     --terracotta-lift for small accent text (5.26:1), --terracotta-deep for a
     fill with limestone on it (4.55:1). */
  --terracotta:#C8553D;
  --terracotta-lift:#D4644C;
  --terracotta-deep:#AC4934;
  --olive:#7A8450;

  /* --- lines ------------------------------------------------------------ */
  --line:rgba(237,231,221,.10);
  --line-2:rgba(237,231,221,.16);
  --line-3:rgba(237,231,221,.26);
  --wash:rgba(237,231,221,.025);
  --wash-2:rgba(237,231,221,.045);
  --accent-wash:rgba(200,85,61,.055);
  --accent-line:rgba(200,85,61,.38);

  /* --- type ------------------------------------------------------------- */
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --arabic:'Noto Kufi Arabic','Segoe UI',sans-serif;
  --mono:ui-monospace,Menlo,Consolas,monospace;

  --t-display:clamp(34px,5.6vw,76px);
  --t-h1:clamp(32px,5.2vw,70px);
  --t-h2:clamp(26px,3.6vw,52px);
  --t-h3:clamp(19px,2.1vw,28px);
  --t-pull:clamp(18px,2.1vw,29px);   /* serif paragraph used as a statement */
  --t-lead:clamp(14px,1.15vw,16.5px);
  --t-body:14px;
  --t-label:9.5px;

  /* --- motion -----------------------------------------------------------
     Fast to leave, slow to arrive. Nothing bounces. */
  --ease:cubic-bezier(.16,1,.3,1);
  --ease-snap:cubic-bezier(.2,.9,.2,1);

  /* --- measure ---------------------------------------------------------- */
  --shell:1440px;
  --pad:clamp(20px,3.4vw,56px);
  --sec-y:clamp(56px,8vh,116px);
}

/* ===== reset ============================================================= */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;padding:0}
body{
  background:var(--ink);
  color:var(--limestone);
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  font-synthesis:none;
}
::selection{background:var(--terracotta-deep);color:var(--limestone)}
a{color:var(--limestone);text-decoration:none}
h1,h2,h3,h4{margin:0;font-family:var(--serif);font-weight:400;letter-spacing:-.025em}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
img,canvas{display:block;max-width:100%}
input,textarea,button,select{font:inherit;color:inherit}

:where(a,button,summary,input,textarea):focus-visible{
  outline:2px solid var(--terracotta);
  outline-offset:3px;
  border-radius:3px;
}

/* ===== skip link =========================================================
   The first stop on every page. Without it a keyboard visitor tabs through
   the whole nav before reaching a word of content, on every page they open.
   Off screen until focused, then over the nav. */

.skip{
  position:fixed;top:12px;left:var(--pad);z-index:1000;
  padding:11px 18px;border-radius:999px;
  background:var(--limestone);color:var(--ink);
  font-size:13px;line-height:1;
  transform:translateY(calc(-100% - 24px));
  transition:transform .3s var(--ease);
}
.skip:focus{transform:none}

/* `main` takes tabindex="-1" so the skip link can hand it focus. It is a
   landing point, not a control, so it gets no ring. */
main:focus{outline:none}

.shell{width:100%;max-width:var(--shell);margin-inline:auto;padding-inline:var(--pad)}
.ar{font-family:var(--arabic)}

/* ===== motion primitives =================================================
   Reveals are armed by motion/kinetic.js and only ever hide content once the
   script is alive — a dead script, a blocked file or reduced motion all leave
   the page fully visible. */

.rv{opacity:1;transform:none}
html.js-motion .rv{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .85s var(--ease),transform .95s var(--ease);
}
html.js-motion .rv.in{opacity:1;transform:none}
html.js-motion .rv.d1{transition-delay:.07s}
html.js-motion .rv.d2{transition-delay:.14s}
html.js-motion .rv.d3{transition-delay:.21s}
html.js-motion .rv.d4{transition-delay:.28s}
html.js-motion .rv.d5{transition-delay:.35s}

/* ===== scroll rail =======================================================
   The page's own progress, in the two colours of the two halves. */

.rail{position:fixed;top:0;left:0;right:0;height:2px;z-index:95;pointer-events:none;background:transparent}
.rail i{
  display:block;height:100%;width:100%;
  transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--terracotta),var(--terracotta) 46%,var(--olive));
}

/* ===== nav ===============================================================
   Full height at rest, compacted once the visitor is moving. */

.nav{
  position:fixed;top:0;left:0;right:0;z-index:90;
  padding:clamp(15px,2.1vw,26px) 0;
  background:linear-gradient(to bottom,rgba(15,14,12,.92),rgba(15,14,12,0));
  border-bottom:1px solid transparent;
  transition:padding .5s var(--ease),background .5s var(--ease),border-color .5s var(--ease);
}
.nav[data-scrolled="true"]{
  padding:10px 0;
  background:rgba(15,14,12,.86);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.nav__grid{display:flex;align-items:center;justify-content:space-between;gap:clamp(14px,2vw,32px)}

/* The wordmark is a lockup, not a word: Latin, hairline, Arabic — README §1. */
.mark{display:flex;align-items:baseline;gap:9px;min-width:0;white-space:nowrap}
.mark b{font-family:var(--serif);font-weight:400;font-size:clamp(19px,1.8vw,25px);letter-spacing:-.01em;color:var(--limestone)}
.mark s{display:block;width:1px;height:15px;background:var(--line-3);text-decoration:none;align-self:center}
.mark em{font-family:var(--arabic);font-style:normal;font-size:clamp(13px,1.3vw,16px);color:var(--olive);line-height:1}

.nav__links{display:flex;align-items:center;gap:clamp(14px,2vw,30px)}
.nav__links a{
  position:relative;font-size:12.5px;color:var(--muted);white-space:nowrap;
  transition:color .35s var(--ease);
}
.nav__links a::after{
  content:'';position:absolute;left:0;right:0;bottom:-5px;height:1px;
  background:var(--terracotta);transform:scaleX(0);transform-origin:100% 50%;
  transition:transform .45s var(--ease);
}
.nav__links a:hover{color:var(--limestone)}
.nav__links a:hover::after{transform:scaleX(1);transform-origin:0 50%}
.nav__links a[data-on="true"]{color:var(--limestone)}
.nav__links a[data-on="true"]::after{transform:scaleX(1);transform-origin:0 50%}

.nav__right{display:flex;align-items:center;gap:14px}

.lang{display:flex;align-items:center;gap:4px;border:1px solid var(--line-2);border-radius:999px;padding:3px}
.lang button{
  border:none;cursor:pointer;background:transparent;
  font-family:var(--mono);font-size:10px;letter-spacing:.08em;
  padding:4px 9px;border-radius:999px;color:var(--muted);
  transition:background .25s var(--ease),color .25s var(--ease);
}
.lang button[data-on="true"]{background:var(--terracotta-deep);color:var(--limestone)}

.burger{
  width:34px;height:34px;border:none;background:transparent;padding:0;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.burger span{
  display:block;width:19px;height:1.5px;background:var(--limestone);
  transition:transform .35s var(--ease);
}
.burger[data-open="true"] span:first-child{transform:translateY(3.25px) rotate(45deg)}
.burger[data-open="true"] span:last-child{transform:translateY(-3.25px) rotate(-45deg)}

.drawer{
  margin:16px var(--pad) 0;
  background:rgba(24,21,19,.9);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border:1px solid var(--line);border-radius:6px;
  padding:20px;display:flex;flex-direction:column;gap:15px;
  animation:drawer-down .32s var(--ease) both;
}
.drawer a{font-size:15px}
.drawer .lang{align-self:flex-start;margin-top:4px}
@keyframes drawer-down{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* ===== buttons ===========================================================
   The fill rises from below on hover: the control acknowledges before it acts. */

.btn{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 22px;border-radius:999px;border:1px solid var(--limestone);
  background:var(--limestone);color:var(--ink);
  font-size:13.5px;line-height:1;cursor:pointer;white-space:nowrap;
  transition:transform .45s var(--ease-snap),box-shadow .5s var(--ease),border-color .45s var(--ease);
}
.btn > *{position:relative;z-index:2;transition:color .35s var(--ease)}
.btn::before{
  content:'';position:absolute;inset:0;z-index:1;background:var(--terracotta-deep);
  transform:translateY(101%);transition:transform .5s var(--ease);
}
.btn:hover::before{transform:translateY(0)}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 40px -20px var(--terracotta);color:var(--limestone)}
.btn:hover > *{color:var(--limestone)}
.btn .arrow{transition:transform .45s var(--ease-snap)}
.btn:hover .arrow{transform:translateX(4px)}

.btn--sm{padding:10px 17px;font-size:12.5px}

.btn--ghost{background:transparent;color:var(--limestone);border-color:var(--line-2)}
.btn--ghost:hover{border-color:var(--accent-line)}

/* A link that behaves like a rule being underlined. */
.link{
  display:inline-flex;align-items:center;gap:8px;font-size:13px;
  border-bottom:1px solid var(--line-3);padding-bottom:3px;
  transition:color .25s var(--ease),border-color .25s var(--ease);
}
.link:hover{color:var(--terracotta-lift);border-color:var(--accent-line)}
.link span{transition:transform .35s var(--ease)}
.link:hover span{transform:translateX(3px)}

/* ===== labels ============================================================ */

.label{
  font-family:var(--mono);font-size:var(--t-label);
  letter-spacing:.16em;text-transform:uppercase;color:var(--faint);
}
.label--accent{color:var(--terracotta-lift)}
.label--olive{color:var(--olive)}

.eyebrow{
  display:flex;align-items:center;gap:11px;
  font-family:var(--mono);font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);
}
.eyebrow i{flex:none;width:5px;height:5px;border-radius:50%;background:var(--terracotta)}

/* ===== section scaffold ==================================================
   Every section opens on a hairline and an index. That repetition is the
   editorial spine the whole page hangs from. */

.sec{border-top:1px solid var(--line);padding-block:var(--sec-y)}
.sec--flush{border-top:0}

.sec__head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:20px;flex-wrap:wrap;margin-bottom:clamp(26px,3.4vw,46px);
}
.sec__head h2{max-width:22ch;font-size:var(--t-h2);color:var(--limestone);text-wrap:balance}
.sec__head p{max-width:46ch;font-size:13.5px;line-height:1.6;color:var(--muted);text-wrap:pretty}

/* Heading left, argument right — the layout the long-form sections share. */
.split{display:grid;grid-template-columns:1fr;gap:clamp(18px,2.4vw,30px)}
.split__head{font-size:var(--t-h2);color:var(--limestone);text-wrap:balance}
.split__body{display:flex;flex-direction:column;gap:clamp(14px,1.8vw,20px)}
@media(min-width:900px){
  .split{grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(24px,3vw,48px);align-items:start}
  .split--wide{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
}

.prose{max-width:62ch;font-size:var(--t-body);line-height:1.62;color:var(--muted);text-wrap:pretty}
.prose--lead{
  max-width:58ch;font-family:var(--serif);font-size:var(--t-pull);
  line-height:1.4;letter-spacing:-.015em;color:var(--body);
}
.prose--lead b{font-weight:400;color:var(--limestone)}
.lede{max-width:58ch;font-size:var(--t-lead);line-height:1.62;color:var(--body);text-wrap:pretty}
.lede em{font-style:italic;color:var(--limestone)}

/* ===== marquee ===========================================================
   The page was already moving before you arrived. Six practices, stated
   without a heading — it is texture, not a list to be read. */

.band{
  border-block:1px solid var(--line);background:var(--ink-2);
  overflow:hidden;padding:18px 0;display:flex;white-space:nowrap;
  --band-speed:52s;
}
.band__row{display:flex;flex:none;animation:band-slide var(--band-speed) linear infinite;will-change:transform}
.band:hover .band__row{animation-play-state:paused}
.band b{
  display:inline-flex;align-items:center;gap:22px;
  font-family:var(--serif);font-weight:400;font-size:clamp(17px,2.1vw,28px);
  padding-inline:22px;color:var(--faint);transition:color .4s var(--ease);
}
.band b::after{content:'';flex:none;width:6px;height:6px;border-radius:50%;background:var(--terracotta);opacity:.55}
.band:hover b{color:var(--limestone)}
@keyframes band-slide{to{transform:translateX(-100%)}}

/* ===== engagement cards ================================================== */

.cards{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(14px,1.8vw,22px)}
@media(min-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.card{
  position:relative;overflow:hidden;
  display:flex;flex-direction:column;gap:13px;
  padding:clamp(20px,2.4vw,32px);
  border:1px solid var(--line);border-radius:8px;background:var(--wash);
  transition:border-color .4s var(--ease),background .4s var(--ease),transform .5s var(--ease);
}
/* The accent arrives as an edge, not a glow. */
.card::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--terracotta);
  transform:scaleY(0);transform-origin:50% 0;transition:transform .6s var(--ease);
}
.card:hover{border-color:var(--accent-line);background:var(--wash-2);transform:translateY(-3px)}
.card:hover::before{transform:scaleY(1)}
.card__top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.card h3{font-size:clamp(24px,2.6vw,36px);color:var(--limestone)}
.card__line{font-size:14.5px;line-height:1.55;color:var(--limestone);text-wrap:pretty}
.card__sub{font-size:13.5px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.card__foot{
  margin-top:auto;padding-top:14px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  border-top:1px solid var(--line);
}
.card__foot .arrow{font-size:13px;color:var(--body);transition:transform .4s var(--ease)}
.card:hover .card__foot .arrow{transform:translateX(4px)}

.aside{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:clamp(20px,2.6vw,30px)}
.aside p{font-size:14px;line-height:1.6;color:var(--body);text-wrap:pretty}

/* ===== accountability list ===============================================
   WEBSITE-CONTENT §4.3: the failure list. Every row resolves to the same
   owner, and the colour says which half of the studio it came from. */

.owners{
  display:flex;flex-direction:column;gap:16px;
  padding:clamp(18px,2.4vw,32px);
  border:1px solid var(--line);border-radius:8px;background:var(--wash);
}
.owners__top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.owners__rows{display:flex;flex-direction:column}
.owners__row{
  display:flex;align-items:center;gap:clamp(12px,1.6vw,20px);
  padding:clamp(11px,1.4vw,16px) 0;border-top:1px solid var(--line);
}
.owners__row i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--terracotta)}
.owners__row[data-kind="sell"] i{background:var(--olive)}
.owners__row b{
  flex:0 1 auto;min-width:0;font-family:var(--serif);font-weight:400;
  font-size:clamp(17px,2vw,26px);line-height:1.2;letter-spacing:-.02em;
  color:var(--limestone);text-wrap:pretty;
}
/* The rule is the sentence's arrow: it stretches so the fault and its owner
   stay tied together however long the label runs. */
.owners__row s{
  flex:1 1 auto;min-width:18px;height:1px;background:var(--line-2);
  text-decoration:none;
}
.owners__row u{
  flex:none;text-decoration:none;font-family:var(--mono);font-size:10px;
  letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;color:var(--terracotta-lift);
}
.owners__row[data-kind="sell"] u{color:var(--olive)}
.owners__foot{
  padding-top:16px;border-top:1px solid var(--line);
  font-family:var(--serif);font-style:italic;
  font-size:clamp(16px,1.8vw,23px);line-height:1.4;color:var(--body);text-wrap:pretty;
}

.plate{display:flex;flex-direction:column;gap:11px}
.plate__frame{
  position:relative;width:100%;height:clamp(200px,30vw,440px);
  border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--ink-2);
}
.plate__frame::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(15,14,12,.72),rgba(15,14,12,0) 58%);
}
.plate__cap{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* ===== process rail ======================================================
   WEBSITE-CONTENT §4.4 is four steps in a fixed order, and order is the whole
   point of it — so the section is a rail rather than a row of cards. The spine
   fills as the reader descends and each dot lights as its step arrives, which
   makes the sequence legible as a sequence before a word of it is read.

   Kinetic's spine runs through three hues. This one does not: README §1 gives
   the studio a single accent and reserves olive for the Arabic mark, so the
   fill varies in weight rather than in colour. */

.flow{position:relative;padding-left:clamp(26px,3.2vw,46px)}

.flow__spine{position:absolute;left:0;top:10px;bottom:10px;width:1px;background:var(--line)}
.flow__spine i{
  position:absolute;inset:0;transform-origin:50% 0;
  background:linear-gradient(180deg,var(--terracotta),var(--terracotta-lift));
}

/* Airier than the copy needs, deliberately: the rail has to be tall enough
   that descending it is an actual scroll, or the spine has nothing to fill. */
.step{position:relative;display:grid;gap:7px;padding:clamp(22px,3vw,44px) 0}
@media(min-width:760px){
  .step{
    grid-template-columns:clamp(38px,3.4vw,54px) minmax(0,1fr);
    column-gap:clamp(14px,1.6vw,24px);align-items:baseline;
  }
}
.step > .label{font-size:11px;letter-spacing:.18em}
/* The dot rides the spine, level with the heading it belongs to. */
.step::before{
  content:'';position:absolute;
  left:calc(-1 * clamp(26px,3.2vw,46px));
  top:calc(clamp(22px,3vw,44px) + .62em);
  width:9px;height:9px;border-radius:50%;
  background:var(--terracotta);border:1px solid var(--terracotta);
  transform:translateX(-4px) scale(1);
  transition:transform .6s var(--ease-snap),background .6s var(--ease),border-color .6s var(--ease);
}
.step h3{font-size:clamp(21px,2.4vw,30px);line-height:1.12;color:var(--limestone);text-wrap:balance}
.step p{grid-column:1/-1;max-width:62ch;font-size:14px;line-height:1.62;color:var(--muted);text-wrap:pretty}
@media(min-width:760px){.step p{grid-column:2}}

/* Unlit only once the script is alive to light them again — same fail-open
   contract as .rv, so a dead script leaves the rail complete rather than grey. */
html.js-motion .flow__spine i{transform:scaleY(0)}
html.js-motion .step::before{
  background:var(--ink);border-color:var(--faint);
  transform:translateX(-4px) scale(.7);
}
html.js-motion .step.in::before{
  background:var(--terracotta);border-color:var(--terracotta);
  transform:translateX(-4px) scale(1);
}

/* ===== closing ========================================================== */

.close{display:flex;flex-direction:column;gap:clamp(18px,2.4vw,26px)}
.close h2{max-width:18ch;font-size:clamp(30px,4.6vw,68px);line-height:1.03;letter-spacing:-.035em;color:var(--limestone);text-wrap:balance}
.close .btn{align-self:flex-start}
.fine{max-width:56ch;font-size:12.5px;line-height:1.6;color:var(--faint);text-wrap:pretty}
.fine a{color:var(--muted);border-bottom:1px solid rgba(154,146,132,.35);transition:color .2s,border-color .2s}
.fine a:hover{color:var(--terracotta-lift);border-color:var(--accent-line)}

/* ===== engagement pages ================================================== */

.view{padding-top:clamp(104px,15vh,172px);padding-bottom:clamp(48px,7vh,88px)}

.page-head{display:flex;flex-direction:column;gap:18px;animation:rise-in .7s var(--ease) both}
.page-head h1{max-width:20ch;font-size:var(--t-h1);line-height:1.02;letter-spacing:-.035em;color:#8D8578;text-wrap:balance}
.page-head h1 b{font-weight:400;color:var(--limestone)}
.page-head .btn{align-self:flex-start}
@keyframes rise-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}

.group{display:flex;flex-direction:column;gap:12px}
.group__items{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:11px clamp(16px,2vw,32px)}
.group__items li{display:flex;gap:11px;align-items:flex-start;font-size:14px;line-height:1.55;color:var(--body)}
.group__items li::before{
  content:'';flex:none;width:4px;height:4px;border-radius:50%;
  background:var(--terracotta);margin-top:8px;
}

.points{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(14px,1.8vw,22px)}
.point{
  display:flex;flex-direction:column;gap:10px;
  padding:clamp(16px,2vw,24px);border-radius:8px;
  border:1px solid var(--line);background:rgba(237,231,221,.02);
}
.point h3{font-size:clamp(18px,2vw,24px);line-height:1.18;color:var(--limestone);text-wrap:balance}
.point p{font-size:13.5px;line-height:1.6;color:var(--muted);text-wrap:pretty}
/* The one card the page wants read first. */
.point[data-focal="true"]{border-color:var(--accent-line);background:var(--accent-wash)}
.point[data-focal="true"] h3{font-size:clamp(20px,2.3vw,29px)}
.point[data-focal="true"] p{color:var(--limestone)}
.point[data-focal="true"] .label{color:var(--terracotta-lift)}

.panels{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(14px,1.8vw,22px)}
@media(min-width:900px){.panels{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}}
.panel{
  display:flex;flex-direction:column;gap:14px;
  border:1px solid var(--line-2);border-radius:8px;
  padding:clamp(18px,2.2vw,26px);background:var(--wash);
}
.panel p{font-size:14px;line-height:1.6;color:var(--body);text-wrap:pretty}
.panel--accent{border-color:var(--accent-line);background:var(--accent-wash)}
.panel--accent > h3{
  font-family:var(--serif);font-size:clamp(20px,2.3vw,30px);
  line-height:1.28;letter-spacing:-.02em;color:var(--limestone);text-wrap:pretty;
}

/* ===== FAQ ===============================================================
   Rows open on a grid row rather than a max-height guess, so a long answer
   cannot be clipped by a number chosen in advance.

   Each row is a <details> and its question is the <summary>, which brings
   the keyboard handling, the expanded state for screen readers and a working
   no-JS fallback with it. The v4 export used a div with role="button" and a
   hand-written Enter/Space handler to do the same job. */

.faq{display:flex;flex-direction:column;border-top:1px solid var(--line-2)}
.faq__row{display:block;border-bottom:1px solid var(--line);padding:clamp(15px,1.8vw,22px) 0}
.faq__q{display:flex;align-items:baseline;gap:clamp(12px,1.5vw,20px);cursor:pointer;list-style:none}
.faq__q::-webkit-details-marker{display:none}
.faq__q:focus-visible{outline-offset:4px}
.faq__q .label{flex:none;width:clamp(24px,2.2vw,32px);color:var(--faint);transition:color .3s var(--ease)}
.faq__q h3{
  flex:1;min-width:0;font-size:clamp(19px,2.2vw,30px);line-height:1.16;
  color:#8D8578;transition:color .3s var(--ease);text-wrap:balance;
}
.faq__q i{
  flex:none;font-style:normal;font-size:15px;line-height:1;color:var(--faint);
  transition:transform .35s var(--ease),color .3s var(--ease);
}
.faq__row[open] .faq__q .label{color:var(--terracotta-lift)}
.faq__row[open] .faq__q h3{color:var(--limestone)}
.faq__row[open] .faq__q i{transform:rotate(45deg);color:var(--terracotta)}
.faq__a{
  display:grid;grid-template-rows:0fr;opacity:0;
  transition:grid-template-rows .5s var(--ease),opacity .4s ease;
}
.faq__a > div{overflow:hidden}
.faq__row[open] .faq__a{grid-template-rows:1fr;opacity:1}
.faq__a p{
  padding:13px 0 4px;max-width:64ch;
  font-size:14px;line-height:1.62;color:var(--body);text-wrap:pretty;
}
@media(min-width:900px){.faq__a p{padding-left:clamp(36px,3.7vw,52px)}}

.tailcta{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  border-top:1px solid var(--line);padding-top:clamp(20px,2.6vw,32px);
}
.tailcta p{
  font-family:var(--serif);font-size:clamp(19px,2.2vw,30px);
  line-height:1.3;letter-spacing:-.02em;color:var(--limestone);text-wrap:pretty;
}

/* ===== start / form ====================================================== */

.start{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(26px,3.4vw,44px)}
@media(min-width:900px){.start{grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:clamp(24px,3vw,48px);align-items:start}}
.start__head{display:flex;flex-direction:column;gap:18px;animation:rise-in .7s var(--ease) both}
.start__head h1{font-size:clamp(30px,4.4vw,62px);line-height:1.02;letter-spacing:-.035em;color:#8D8578;text-wrap:balance}
.start__head h1 b{font-weight:400;color:var(--limestone)}
.contact{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.contact div{display:flex;flex-direction:column;gap:3px}
.contact span:last-child{font-size:14px;color:var(--limestone)}

.form{display:flex;flex-direction:column;gap:clamp(14px,1.8vw,20px)}
.form__pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:clamp(14px,1.8vw,20px)}
.field{display:flex;flex-direction:column;gap:8px}
/* A field is a control, not a hairline, so its edge has to clear the 3:1
   non-text minimum (WCAG 1.4.11): .42 gives 3.5:1 against the page, 3.2:1
   against the well. The --line-2 it used was 1.5:1.

   `outline:none` switches off the site-wide focus ring, so the border change
   is the entire focus indicator. It has to be seen: solid terracotta, not
   --accent-line, which was 1.6:1 — near enough the resting border that a
   keyboard visitor could not tell which field they were in. */
.field input,.field textarea{
  background:rgba(237,231,221,.05);
  border:1px solid rgba(237,231,221,.42);border-radius:5px;
  padding:12px 14px;font-family:var(--sans);font-size:14px;line-height:1.55;
  color:var(--limestone);outline:none;
  transition:border-color .25s var(--ease),background .25s var(--ease),box-shadow .25s var(--ease);
}
.field textarea{resize:vertical;min-height:9em}
.field input:focus,.field textarea:focus{
  border-color:var(--terracotta);background:rgba(237,231,221,.07);
  box-shadow:0 0 0 1px var(--terracotta);
}
input::placeholder,textarea::placeholder{color:var(--faint)}

.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  cursor:pointer;font-size:12.5px;padding:9px 15px;border-radius:999px;
  border:1px solid var(--line-2);background:transparent;color:var(--body);
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.chip:hover{border-color:var(--line-3)}
.chip[data-on="true"]{background:var(--limestone);color:var(--ink);border-color:var(--limestone)}

.form__submit{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.sent{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;color:var(--olive)}

/* The failure is the same weight as the success: terracotta rather than the
   olive of a sent form, and it carries role="alert". */
/* Sans, not the mono of .sent: the success line is four words and mono suits
   it, an error is a sentence and mono makes a sentence hard work. */
.err{
  font-family:var(--sans);font-size:12.5px;line-height:1.55;
  color:var(--terracotta-lift);max-width:44ch;
  text-wrap:pretty;
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields they can tell are hidden. Never focusable. */
.hp{
  position:absolute;left:-9999px;top:auto;
  width:1px;height:1px;overflow:hidden;
}

/* Turnstile renders its own iframe; this only reserves the room so the
   submit row does not jump when it arrives. */
.turnstile{min-height:65px;max-width:320px}
.turnstile[data-state="loading"],.turnstile[data-state="failed"]{
  display:flex;align-items:center;
  font-size:12px;line-height:1.5;color:var(--faint);
}
.turnstile[data-state="failed"]{color:var(--terracotta-lift);max-width:46ch}

.btn[disabled]{opacity:.55;cursor:progress}
.btn[disabled]:hover{transform:none;box-shadow:none}
.btn[disabled]:hover::before{transform:translateY(101%)}
.form p{font-size:13px;line-height:1.6;color:var(--faint);text-wrap:pretty}

/* ===== footer ============================================================ */

.foot{border-top:1px solid var(--line);background:var(--ink-deep)}
.foot__grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:clamp(24px,3vw,40px);padding-block:clamp(32px,4.4vw,56px);
}
.foot__brand{display:flex;flex-direction:column;gap:14px}
.foot__brand p{max-width:34ch;font-size:12.5px;line-height:1.6;color:var(--faint);text-wrap:pretty}
.foot__brand p[data-show="false"]{display:none}
.foot__col{display:flex;flex-direction:column;gap:11px}
.foot__col a{font-size:13px;color:var(--body);transition:color .25s var(--ease)}
.foot__col a:hover{color:var(--terracotta-lift)}
.foot__bar{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding-bottom:clamp(24px,3vw,36px);
}
.foot__bar span{font-family:var(--mono);font-size:var(--t-label);letter-spacing:.16em;color:var(--faint)}

/* ===========================================================================
   Cookie notice — used on every page

   This lived in legal.css, which the Astro pages deliberately do not load (it
   widens .prose), so the notice rendered as bare text on every page but the
   legal ones and the blog. Every page loads canaan.css.
   =========================================================================== */

.ck{
  position:fixed;inset:auto 0 0 0;z-index:900;
  padding:0 var(--pad) max(var(--pad),env(safe-area-inset-bottom));
  pointer-events:none;
  transform:translateY(14px);opacity:0;
  transition:opacity .5s var(--ease),transform .6s var(--ease);
}
.ck[data-in="true"]{transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){
  .ck{transition:none;transform:none}
}

.ck__panel{
  pointer-events:auto;
  width:100%;max-width:var(--shell);margin-inline:auto;
  display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;
  justify-content:space-between;
  padding:18px 22px;
  background:rgba(19,17,16,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid var(--line-2);
  border-top:1px solid var(--accent-line);
  box-shadow:0 26px 70px -30px rgba(0,0,0,.9);
}
.ck__text{max-width:72ch;min-width:min(100%,32ch);flex:1 1 380px}
.ck__text p{
  margin:0;font-size:12.5px;line-height:1.62;color:var(--body);
  text-wrap:pretty;
}
.ck__text a{
  color:var(--limestone);
  border-bottom:1px solid var(--accent-line);
  transition:color .2s;
}
.ck__text a:hover{color:var(--terracotta-lift)}
.ck__acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:none}
.ck__acts .btn{white-space:nowrap}

@media(max-width:620px){
  .ck__panel{flex-direction:column;align-items:stretch;padding:18px}
  /* The 380px basis above is a width. Once the panel stacks it would become
     a height and blow the notice up to half the screen, so it is reset. */
  .ck__text{flex:0 1 auto;min-width:0}
  .ck__acts{justify-content:flex-start}
  .ck__acts .btn{flex:1 1 auto;justify-content:center}
}

/* ===== reduced motion ====================================================
   Nothing below is decorative enough to justify overriding the preference. */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv,html.js-motion .rv{opacity:1!important;transform:none!important;transition:none!important}
  .band__row{animation:none}
  .page-head,.start__head{animation:none}
  .rail i{transition:none}
  /* The rail still has to read as a completed sequence, so it arrives lit
     rather than waiting for a scroll that will never animate it. */
  .flow__spine i,html.js-motion .flow__spine i{transform:scaleY(1)}
  .step::before,html.js-motion .step::before{
    background:var(--terracotta);border-color:var(--terracotta);
    transform:translateX(-4px) scale(1);
  }
  *,*::before,*::after{transition-duration:.001ms!important}
}
