/* ============================================================
   Meraki — shared design system (LOCKED)
   Single source of truth: reference/meraki-home-LOCKED.html.
   One stylesheet for every page; no per-page forks, no variant
   data-* forks (those were stripped when the layout was locked).
   ============================================================ */

/* TOKENS — unchanged from the locked :root */
:root{
  --wash:#ECECEA; --card:#16140F; --ink:#151514; --ink-soft:#4c4c48;
  --ink-faint:#908f89; --rule:#D6D6D2; --ivory:#EDEBE6; --ember:#FF8A3D;
  --disp:"Bricolage Grotesque",system-ui,sans-serif;
  --body:"Hanken Grotesk",-apple-system,system-ui,sans-serif;
  --canvas:1180px; --pad:48px; --cols:12; --col-gap:32px;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--wash);color:var(--ink);font-family:var(--body);font-weight:400;line-height:1.62;font-size:17px;-webkit-font-smoothing:antialiased;position:relative;overflow-x:hidden;}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");}

.wrap{max-width:var(--canvas);margin:0 auto;padding:0 var(--pad);position:relative;z-index:1;}
.row{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--col-gap);}
section{scroll-margin-top:48px;}

/* two role-axes */
.ax-out{grid-column:1 / 11;}
.ax-out-full{grid-column:1 / 13;}
.ax-in{grid-column:4 / 10;}
.ax-shift{grid-column:6 / 13;}   /* third, rightward axis — ends at the right edge, wide enough to run on */
.ax-shift2{grid-column:7 / 13;}  /* studio prose — one step further right than the lead (subtle cascade) */
a{color:inherit;}

/* ===== CONTINUE CUE — style C; right edge lands at each section's text-end ===== */
.cap{display:inline-flex;align-items:center;gap:11px;border:1px solid var(--rule);border-radius:30px;
  padding:10px 20px;font-family:var(--body);font-weight:400;font-size:13.5px;letter-spacing:.045em;
  color:var(--ink-soft);text-decoration:none;transition:border-color .2s,color .2s;}
.cap:hover{border-color:var(--ink);color:var(--ink);}
.cap .chev{transition:transform .2s;}
.cap .chev svg{display:block;}
.cap:hover .chev{transform:translateY(2px);}
.cont{display:flex;justify-content:flex-end;margin-top:44px;}
.cont-hero{grid-column:1 / 8;}                   /* lands the cue's right edge at the end of "...should be." */
.cont-philo{grid-column:4 / 10;max-width:42ch;}  /* offset paragraph end */
.cont-studio{grid-column:7 / 13;max-width:54ch;} /* lands at the right-shifted studio block's end */
.cont-wide{grid-column:1 / 11;max-width:46ch;font-size:clamp(24px,3.4vw,38px);}  /* right edge = services line edge (46ch, same clamp) */
.cont-build{grid-column:1 / 11;max-width:46ch;font-size:24px;}  /* right edge lands at the body's edge (46ch@24px) */
.cont-smoor{grid-column:2 / 12;}                 /* follows the centred card's right edge */

/* NAV */
.topbar{position:relative;z-index:2;}
nav{display:flex;justify-content:space-between;align-items:center;padding:34px 0 0;}
.mark{font-family:var(--disp);font-weight:800;font-size:30px;letter-spacing:-.03em;text-decoration:none;}
.navlinks{display:flex;gap:30px;}
.navlinks a{font-size:15px;color:var(--ink-soft);text-decoration:none;transition:color .2s;white-space:nowrap;}
.navlinks a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px;}
.navlinks a[aria-current="page"]{color:var(--ink);}

/* hamburger — NOT in the locked reference; added to satisfy the no-horizontal-scroll
   quality floor (the reference nav overflows on phones). Hidden on desktop. */
.navtoggle{display:none;}
@media(max-width:700px){
  nav{flex-wrap:wrap;}
  .navtoggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:11px;margin:-4px -11px -4px 0;background:none;border:none;cursor:pointer;}
  .navtoggle span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;}
  body.nav-open .navtoggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  body.nav-open .navtoggle span:nth-child(2){opacity:0;}
  body.nav-open .navtoggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .navlinks{display:none;flex-direction:column;width:100%;gap:0;margin-top:12px;}
  body.nav-open .navlinks{display:flex;}
  .navlinks a{padding:13px 2px;font-size:17px;border-top:1px solid var(--rule);}
}

/* HERO */
.hero{padding:150px 0 0;}
.hero-deck{font-family:var(--body);font-weight:800;letter-spacing:-.03em;}
.hero-deck span{display:block;line-height:1.08;}
.hero-deck .l1{font-size:clamp(36px,8vw,108px);}
.hero-deck .l2{font-size:clamp(32px,7vw,94px);}
.hero-deck .l3{font-size:clamp(26px,5.4vw,74px);}
.hero-deck .sf{display:inline;font-weight:600;font-size:clamp(26px,5.3vw,72px);line-height:1.08;letter-spacing:-.03em;color:var(--ink-soft);}
.hero-deck .nw{display:inline;white-space:nowrap;}

/* PHILOSOPHY */
.philo{padding:200px 0 0;}
.ph1{font-family:var(--body);font-weight:700;font-size:clamp(27px,3.6vw,36px);line-height:1.22;letter-spacing:-.02em;color:var(--ink);max-width:40ch;}
.ph2{font-weight:400;font-size:clamp(21px,2.5vw,28px);line-height:1.42;color:var(--ink);max-width:40ch;margin-top:40px;}   /* loud opening = darkest */
.ph1 .muted{color:var(--ink-soft);}                                  /* "Whisper things." — same font, greyed */
/* ONE paragraph that peters out — size steps down inline (unitless line-height scales the leading with it) */
.ph2 .s2{color:var(--ink-soft);}     /* diminuendo floored at ink-soft (was ink-faint — failed contrast) */
.ph2 .s3{color:var(--ink-soft);}     /* coda — quietest readable stop, ink-soft */

/* STUDIO */
.studio{padding:240px 0 0;}
.studio .lead{font-family:var(--body);font-weight:600;font-size:24px;line-height:1.36;letter-spacing:-.012em;}
.studio .lead .grey{color:var(--ink-soft);}   /* 2nd sentence — same Bricolage, same size/weight, greyed */
.studio .prose{margin-top:30px;}
.studio .prose p{font-size:20px;color:var(--ink-soft);max-width:54ch;}

/* SERVICES — single line (3-col KILLED) */
.services{padding:240px 0 0;}
.services p{font-family:var(--body);font-weight:500;font-size:clamp(24px,3.4vw,38px);line-height:1.4;letter-spacing:-.012em;max-width:46ch;}

/* BUILD */
.build{padding:260px 0 0;}
.build .build-lead{font-family:var(--body);font-weight:600;font-size:clamp(22px,3.2vw,30px);line-height:1.26;letter-spacing:-.02em;max-width:26ch;}
.build .build-lead .grey{color:var(--ink-soft);}                  /* "We won't steal your attention, promise." — greyed */
.build .build-body{font-family:var(--body);font-weight:400;font-size:24px;line-height:1.5;color:var(--ink-soft);max-width:46ch;margin-top:32px;}

/* SMOOR — contained dark panel (full-bleed KILLED) */
.smoor{padding:240px 0 0;}
.card{grid-column:2 / 12;position:relative;overflow:hidden;background:var(--card);color:var(--ivory);border-radius:20px;padding:56px 64px 60px;}
.card::after{content:"";position:absolute;right:-80px;top:-60px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,138,61,.18),rgba(255,138,61,0) 66%);pointer-events:none;}
.card-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:40px;}
.smk{font-family:var(--disp);font-weight:800;font-size:40px;letter-spacing:-.03em;}
.ember-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ember);margin-left:1px;vertical-align:baseline;}
.card h2{font-family:var(--body);font-weight:600;font-size:clamp(30px,4.4vw,50px);line-height:1.06;letter-spacing:-.03em;max-width:15ch;margin-bottom:26px;}
.card .cbody{font-size:18px;color:rgba(237,235,230,.76);max-width:46ch;margin-bottom:28px;}
.card .cbody .fade{color:rgba(237,235,230,.6);}   /* fade tail on the dark card — kept legible (~6:1), floor applied */
/* "Smoor is nearly ready…" ask, above the email field folded into the card */
.card .card-cta{font-size:15px;color:rgba(237,235,230,.72);max-width:42ch;margin-top:34px;margin-bottom:18px;}

/* email field (folded into the dark Smoor card) */
.form{display:flex;gap:8px;max-width:360px;flex-wrap:nowrap;}
.form[hidden]{display:none;}   /* class display would otherwise override [hidden] — keep the box gone on success */
.form input{flex:1;min-width:0;font-family:var(--body);font-size:15px;padding:10px 16px;border:1px solid var(--rule);border-radius:10px;background:var(--wash);color:var(--ink);outline:none;transition:border-color .2s;}
.form input:focus{border-color:var(--ink);}
.form button{font-family:var(--body);background:var(--ink);color:var(--wash);font-weight:600;font-size:15px;padding:14px 30px;border:none;border-radius:30px;cursor:pointer;transition:opacity .2s;}
.form button:hover{opacity:.82;}
/* dark card: no boxes — one hairline underline, arrow at the line's end.
   The rule echoes the site's editorial hairlines; it brightens on focus. */
.card .form-dark{gap:6px;max-width:340px;align-items:center;border-bottom:1px solid rgba(237,235,230,.3);transition:border-color .25s;}
.card .form-dark:focus-within{border-color:var(--ivory);}
.card .form-dark input{background:transparent;border:none;border-radius:0;padding:10px 0;color:var(--ivory);}
.card .form-dark input::placeholder{color:rgba(237,235,230,.42);}
/* bare ivory arrow — no box. Brightens and lifts on hover; ember stays state-only. */
.card .form-dark button{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;padding:6px 0 6px 12px;background:transparent;border:none;border-radius:0;color:rgba(237,235,230,.55);transition:color .18s,transform .18s;}
.card .form-dark button:hover{color:var(--ivory);background:transparent;opacity:1;transform:translateY(-2px);}
.card .form-dark button:disabled{opacity:.4;cursor:default;transform:none;}
/* consent note — quiet but legible (kept above the fade floor for small print) */
.card .form-note{margin-top:14px;font-size:13px;line-height:1.4;color:rgba(237,235,230,.55);max-width:42ch;}
/* reserved line so success/error text never shifts what's below it */
.card .form-msg{margin-top:10px;min-height:1.35em;font-size:15px;line-height:1.35;color:var(--ivory);max-width:42ch;}
/* visually-hidden label — present for screen readers, invisible on screen */
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
/* honeypot — kept off-screen (not display:none, which some bots skip); never tab-reachable */
.hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

/* FOOTER — site-wide: airy. Wordmark + company details left, compact links right. */
.site-foot{margin-top:160px;padding:46px 0 60px;border-top:1px solid var(--rule);}
.site-foot .foot-row{display:flex;justify-content:space-between;align-items:flex-start;gap:40px 56px;flex-wrap:wrap;}
.site-foot .foot-id{display:flex;align-items:flex-start;gap:46px;flex-wrap:wrap;}
.site-foot .foot-mark{font-family:var(--disp);font-weight:800;font-size:22px;letter-spacing:-.03em;color:var(--ink);line-height:1;}
.site-foot .foot-co{font-size:13.5px;line-height:1.78;color:var(--ink-soft);margin:0;max-width:58ch;}   /* legal/contact — kept at ink-soft (readable), not ink-faint; 58ch fits the registered address on one line */
.site-foot .foot-addr{white-space:nowrap;}   /* the registered address holds on one line (postcode kept atomic via &nbsp;) */
.site-foot .foot-co a{color:var(--ink-soft);text-decoration:none;border-bottom:1px solid var(--rule);transition:border-color .2s;}
.site-foot .foot-co a:hover{border-color:var(--ink-soft);}
.site-foot .foot-nav{display:flex;gap:30px;flex-wrap:wrap;}
.site-foot .foot-nav a{font-size:14.5px;color:var(--ink-soft);text-decoration:none;white-space:nowrap;transition:color .2s;}
.site-foot .foot-nav a:hover{color:var(--ink);}

/* RESPONSIVE — grid collapses; axes + cue flatten to the left */
@media(max-width:860px){
  :root{--pad:24px;}
  .row{display:block;}
  .ax-out,.ax-out-full,.ax-in,.ax-shift,.ax-shift2,
  .cont-hero,.cont-philo,.cont-studio,.cont-wide,.cont-build,.cont-smoor{grid-column:auto;max-width:none;}
  .cont{justify-content:flex-start;}     /* reflow fallback: cue to left margin */
  .card{grid-column:auto;padding:48px 28px;}
  .hero{padding:96px 0 0;}.philo{padding:120px 0 0;}
  .studio,.services,.build,.smoor,.signup{padding-top:104px;}
  .ph2,.studio .prose{margin-top:24px;}
  .cont{margin-top:32px;}
  .site-foot{margin-top:110px;}.site-foot .foot-row{flex-direction:column;gap:34px;}.site-foot .foot-id{flex-direction:column;gap:18px;}
  .site-foot .foot-addr{white-space:normal;}   /* footer stacks → let the address wrap if the viewport is too narrow; &nbsp; still keeps WC1N 3AX together */
}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px;}
.card a:focus-visible{outline-color:var(--ivory);}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}*{transition:none!important;animation:none!important;}}

/* ------------------------------------------------------------
   Sub-page scaffold — shared layout for /smoor /about /support
   /privacy /terms (placeholder stubs until SD copy lands).
   ------------------------------------------------------------ */
.page{padding:150px 0 150px;}
/* one-word title (support / privacy / terms) — homepage heading style */
.page h1{font-family:var(--body);font-weight:800;font-size:clamp(38px,6vw,72px);line-height:.98;letter-spacing:-.035em;margin-bottom:48px;}
/* lead — about/smoor open on the copy (no H1): display, a touch larger than the body */
.page .lead{font-family:var(--body);font-weight:500;font-size:clamp(22px,2.3vw,26px);line-height:1.4;letter-spacing:-.01em;color:var(--ink);max-width:52ch;margin-bottom:30px;}
/* body prose — homepage reading measure, generous leading + paragraph rhythm */
.page p{font-size:19px;line-height:1.66;color:var(--ink-soft);max-width:64ch;}
.page p + p{margin-top:1.2em;}
.page .email{display:inline-block;font-family:var(--body);font-weight:600;font-size:clamp(20px,2vw,24px);color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink-faint);padding-bottom:3px;margin:8px 0 6px;transition:border-color .2s;}
.page .email:hover{border-color:var(--ink);}
.page .sign{margin-top:2em;font-size:16px;line-height:1.7;color:var(--ink-soft);max-width:64ch;}
.page a.inline{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink-faint);padding-bottom:2px;transition:border-color .2s;}
.page a.inline:hover{border-color:var(--ink);}

/* ------------------------------------------------------------
   Sub-page TEMPLATE (per the About mock) — large title + thin
   rule, larger standfirst, left body column, optional right
   note panel with a vertical divider. Bricolage title, HK body.
   ------------------------------------------------------------ */
.subpage{padding:140px 0 30px;}
.sp-head{margin-bottom:52px;}
.sp-head h1{font-family:var(--body);font-weight:800;font-size:clamp(40px,6.5vw,60px);line-height:1.02;letter-spacing:-.035em;color:var(--ink);margin:0;}
.sp-cols{align-items:stretch;}                 /* note panel stretches → full-height divider */
.sp-main,.sp-lead,.sp-body{grid-column:1 / 8;}
.sp-lead{font-family:var(--body);font-weight:500;font-size:24px;line-height:1.45;letter-spacing:-.01em;color:var(--ink);max-width:38ch;margin:0 0 42px;}
.sp-body p{font-family:var(--body);font-size:18px;line-height:1.72;color:var(--ink-soft);max-width:60ch;}
.sp-body p + p{margin-top:1.5em;}
.sp-body h2{font-family:var(--body);font-weight:700;font-size:21px;line-height:1.32;color:var(--ink);margin:2.3em 0 .5em;}
.sp-note{grid-column:9 / 13;grid-row:1 / 3;align-self:center;}   /* desktop: quiet right-margin note, centred against the body */
.sp-gloss{font-family:var(--body);font-size:20px;line-height:1.5;color:var(--ink-soft);max-width:26ch;margin:0;}   /* gloss/note — not a pull-quote: no quote glyph, no attribution */
.sp-gloss .term{font-style:italic;color:var(--ink);}
.subpage .email{display:inline-block;font-family:var(--body);font-weight:600;font-size:clamp(20px,2vw,24px);color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink-faint);padding-bottom:3px;transition:border-color .2s;}
.subpage .email:hover{border-color:var(--ink);}
.sp-body .sign{margin-top:2.2em;font-size:15px;line-height:1.7;color:var(--ink-soft);}
.subpage a.inline{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink-faint);padding-bottom:2px;transition:border-color .2s;}
.subpage a.inline:hover{border-color:var(--ink);}
@media(max-width:860px){
  .subpage{padding:112px 0 12px;}
  .sp-main,.sp-lead,.sp-body,.sp-note{grid-column:auto;grid-row:auto;}
  /* gloss lifts between standfirst and body as a definition band — hairline rules above/below, left-aligned */
  .sp-note{margin:34px 0 38px;padding:26px 0;max-width:none;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
  .sp-note .sp-gloss{max-width:46ch;}
}

/* ============================================================
   PHONE (<=700px): one block per screen, gentle scroll-snap.
   Desktop/tablet untouched — all scoped here. Uses dvh so a
   "screen" stays correct as the mobile toolbar slides.
   ============================================================ */
@media(max-width:700px){
  /* homepage scroll-narrative: each section fills a screen, content centred.
     No scroll-snap — full-height blocks give the "one per screen" feel and free
     scrolling avoids the jerky snap-back near the end. */
  .hero,.philo,.studio,.services,.build,.smoor{
    min-height:100vh;min-height:100dvh;
    display:flex;flex-direction:column;justify-content:center;
    padding:88px 0 80px;
  }
  /* nav: ~40% tighter to the top; sticky + auto-hide (slides away scrolling down,
     returns on scroll-up via the .scroll-down body class set in nav.js) */
  .topbar{position:sticky;top:0;z-index:50;background:var(--wash);transition:transform .28s ease;}
  body.scroll-down:not(.nav-open) .topbar{transform:translateY(-100%);}
  nav{padding-top:20px;}
  /* hero fills the screen below the (now shorter) nav */
  .hero{min-height:calc(100vh - 64px);min-height:calc(100dvh - 64px);padding:24px 0 52px;}
  /* a touch more leading on the tight Bricolage display blocks — breathing room on phone */
  .hero-deck span{line-height:1.14;}
  .ph1{line-height:1.3;}
  .build .build-lead{line-height:1.34;}
  .card h2{line-height:1.14;}
  /* tighten the Smoor card — kill the empty black below the form */
  .card{padding:40px 26px 44px;}
  /* footer: clean stacked links; no giant top gap */
  .site-foot{margin-top:0;padding:72px 0 76px;}
  .site-foot .foot-nav{flex-direction:column;gap:0;width:100%;}
  .site-foot .foot-nav a{padding:14px 0;border-top:1px solid var(--rule);}
}
