/* ==========================================================================
   Lazzzy Hustler · the paper system
   One stylesheet for every page: the Next app (landing, essays, terms) links
   it from the root layout, and the static module pages link it directly.
   Brand palette is the source of truth: cobalt #0055FE, ink, cool white,
   pale blue #BFD3FF, graphite #8B93AD, plus gold for support and the six
   track colours. Surfaces are paper; components are cut card with ink
   outlines and hard offset shadows; illustrations are die-cut stickers.
   ========================================================================== */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url(/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: italic; font-display: swap; font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-standard-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-display: swap; font-weight: 100 1000;
  src: url(/fonts/dm-sans-latin-ext-standard-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(/fonts/caveat-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  /* type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* brand */
  --cobalt: #0055FE;
  --cobalt-deep: #0041C4;       /* text on paper, hover states */
  --pale: #BFD3FF;
  --pale-2: #E2EBFF;
  --ink: #0A0B0D;
  --graphite: #8B93AD;          /* decoration only on paper */
  --gold: #E0A92E;
  --gold-deep: #7A5608;         /* gold-family text on paper */
  --gold-pale: #F8E7BD;

  /* paper surfaces */
  --paper: #F3F1EA;             /* page ground */
  --paper-2: #EAE6DA;           /* recessed bands */
  --sheet: #FCFBF7;             /* cards, cut white card */
  --sheet-cool: #F4F6FB;        /* the Blue Zone cool white */

  /* text */
  --text: #16171B;
  --text-2: #3D4049;            /* body copy */
  --text-3: #5B6070;            /* captions, meta (5.6:1 on paper) */

  /* states */
  --ok: #17824A;  --ok-pale: #DDF3E6;
  --bad: #C4343A; --bad-pale: #FBE3E3;
  --focus: #0055FE;

  /* six tracks (fills with ink outlines; -ink variants for small text) */
  --t1: #0055FE; --t2: #E0A92E; --t3: #8B5CF6; --t4: #2FB76C; --t5: #FF6B4A; --t6: #22B8CF;
  --t1-ink: #0041C4; --t2-ink: #7A5608; --t3-ink: #5B2FC4; --t4-ink: #17703F; --t5-ink: #B53A1E; --t6-ink: #0F6A78;

  /* shape */
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-pill: 999px;
  --line: 2px;                  /* ink outline */
  --line-strong: 2.5px;
  --sh-sm: 3px 3px 0 var(--ink);
  --sh: 5px 5px 0 var(--ink);
  --sh-lg: 8px 8px 0 var(--ink);
  --lift: 0 1px 0 rgba(10, 11, 13, .06), 0 10px 24px -14px rgba(10, 11, 13, .35);

  /* spacing scale (4pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --measure: 66ch;

  /* motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 520ms;

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body.paper, .paper-root {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* paper grain: a fixed, non-interactive fibre layer over the whole page */
body.paper::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0 0.15 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 12% -10%, rgba(255, 255, 255, .55), transparent 60%);
  mix-blend-mode: multiply; opacity: .55;
}
a { color: inherit; }
img, svg, video { max-width: 100%; }
::selection { background: var(--pale); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--sheet); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top var(--t) var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* ---------- typography ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
.display { font-weight: 800; font-stretch: 86%; letter-spacing: -.035em; line-height: .94; font-size: clamp(52px, 8.2vw, 124px); }
.h1 { font-weight: 800; font-stretch: 88%; letter-spacing: -.03em; line-height: .96; font-size: clamp(42px, 7vw, 92px); }
.h2 { font-weight: 800; font-stretch: 90%; letter-spacing: -.025em; line-height: 1; font-size: clamp(34px, 5vw, 64px); }
.h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.12; font-size: clamp(21px, 2.3vw, 27px); }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 54ch; margin: 0; text-wrap: pretty; }
.prose-p { color: var(--text-2); max-width: var(--measure); margin: 0; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.meta { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.05; color: var(--cobalt-deep); }

/* section label: a strip of pale tape with a number */
.label { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--pale); padding: 6px 12px 6px 10px; border-radius: 3px; transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 rgba(10, 11, 13, .08); clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 96%, 96% 100%, 4% 96%, 0 100%, 1% 50%); }
.label b { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0; background: var(--ink); color: var(--sheet); border-radius: 3px; padding: 1px 6px; }
.label--gold { background: var(--gold-pale); }
.label--plain { background: transparent; clip-path: none; box-shadow: none; transform: none; padding: 0; color: var(--text-3); }

/* highlighted phrase: a hand-laid marker band behind the words */
.mark { position: relative; white-space: nowrap; isolation: isolate; }
.mark::before { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.08em; bottom: .14em; height: .34em; background: var(--pale); border-radius: 3px 8px 4px 6px; transform: rotate(-1.2deg) scaleX(var(--mark, 1)); transform-origin: left; transition: transform .7s var(--ease) .2s; }
html.js .mark:not(.in)::before { --mark: 0; }
.mark--cobalt::before { background: var(--cobalt); opacity: .9; }
.mark--cobalt { color: var(--sheet); }

/* hand-drawn strike */
.strike { position: relative; white-space: nowrap; color: var(--text-3); }
.strike svg { position: absolute; left: -4%; top: 38%; width: 108%; height: .5em; overflow: visible; pointer-events: none; }
.strike path { stroke: var(--cobalt); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .35s; }
html.js .strike:not(.in) path { stroke-dashoffset: 400; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sheet); --fg: var(--ink); --sh-c: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border: var(--line-strong) solid var(--ink); border-radius: 14px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -.005em; line-height: 1.1; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--sh-c);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 6px 0 var(--sh-c); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh-c); transition-duration: 60ms; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.btn .arr { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { --bg: var(--cobalt); --fg: #fff; }
.btn--primary:hover { --bg: #0a4ef0; }
.btn--gold { --bg: var(--gold); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--sheet); --sh-c: var(--cobalt); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 15px; border-radius: 12px; box-shadow: 3px 3px 0 var(--sh-c); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--sh-c); }
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 2px 2px 0 var(--sh-c); filter: saturate(.6); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-color: var(--fg) var(--fg) var(--fg) transparent; animation: lh-spin .7s linear infinite; }
@keyframes lh-spin { to { transform: rotate(360deg); } }

/* text link with a moving arrow */
.tlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); text-decoration: none; padding: 6px 0; background: linear-gradient(var(--cobalt), var(--cobalt)) left bottom / 100% 2px no-repeat; transition: background-size var(--t) var(--ease), color var(--t) var(--ease); }
.tlink:hover { color: var(--cobalt-deep); background-size: 100% 4px; }
.tlink .arr { transition: transform var(--t) var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }
.ilink { color: var(--cobalt-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cobalt) 45%, transparent); transition: text-decoration-color var(--t) var(--ease); }
.ilink:hover { text-decoration-color: var(--cobalt); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--sheet); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); }
.card--flat { box-shadow: none; }
.card--soft { box-shadow: var(--lift); border-color: rgba(10, 11, 13, .9); }
.card--feature { box-shadow: var(--sh-lg); }
.card--cobalt { background: var(--cobalt); color: #fff; }
.card--pale { background: var(--pale-2); }
.card--ink { background: var(--ink); color: var(--sheet); box-shadow: 5px 5px 0 var(--cobalt); }
a.card, .card--link { text-decoration: none; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.card:hover, .card--link:hover { transform: translate(-2px, -3px) rotate(var(--hover-rot, -.4deg)); box-shadow: 8px 9px 0 var(--ink); }
a.card:active, .card--link:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); transition-duration: 60ms; }
/* ruled index card */
.ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(0, 85, 254, .14) 31px 32px); background-position: 0 14px; }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(191, 211, 255, .82); box-shadow: 0 1px 1px rgba(10, 11, 13, .12); clip-path: polygon(3% 0, 97% 6%, 100% 30%, 97% 52%, 100% 78%, 96% 100%, 4% 94%, 0 72%, 3% 48%, 0 22%); pointer-events: none; }

/* chips and tags */
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 700; font-size: 13px; line-height: 1; padding: 7px 11px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--sheet); color: var(--ink); white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--cobalt)); border: 1.5px solid var(--ink); flex: none; }
.chip--cobalt { background: var(--cobalt); color: #fff; }

/* ---------- stickers (die-cut illustrations) ---------- */
.sticker { display: block; height: auto; filter: drop-shadow(0 1px 0 rgba(10, 11, 13, .12)) drop-shadow(2px 10px 12px rgba(10, 11, 13, .16)); transform: rotate(var(--rot, 0deg)); user-select: none; -webkit-user-drag: none; }
.float { animation: lh-float var(--dur, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes lh-float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-7px) rotate(calc(var(--rot, 0deg) + .8deg)); } }

/* hand annotation with an inked arrow */
.note { position: absolute; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.note--down { flex-direction: column; align-items: flex-start; gap: 0; }
.note--down svg { margin-left: 18px; }
.note svg path { fill: none; stroke: var(--cobalt-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note svg path { stroke-dasharray: 260; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .4s; }
html.js .note:not(.in) svg path { stroke-dashoffset: 260; }
html.js .note:not(.in) .hand { opacity: 0; transform: translateY(6px); }
.note .hand { transition: opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s; }

/* ---------- reveal on scroll (content is visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-pop { opacity: 0; transform: translateY(16px) rotate(calc(var(--rot, 0deg) - 3deg)) scale(.94); transition: opacity .6s var(--ease), transform .8s var(--ease-spring); transition-delay: var(--d, 0s); }
html.js .reveal-pop.in { opacity: 1; transform: rotate(var(--rot, 0deg)); }

/* ---------- section scaffolding ---------- */
.band { position: relative; padding: clamp(64px, 10vw, 128px) 0; scroll-margin-top: 72px; }
.band--recess { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--sheet); }
.band--ink .h2, .band--ink .h3, .band--ink .display { color: var(--sheet); }
.band--cobalt { background: var(--cobalt); color: #fff; }
.band__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.torn-top::before, .torn-bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V7l14 3 11-5 16 4 12-6 18 5 10-3 17 6 14-5 15 3 12-4 19 5 13-6 16 6 11-3 18 4 13-5 15 4 12-3 17 5 14-6 16 5 12-2 15 4 13-6 16 6 12-3 15 4 14-3V16z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V7l14 3 11-5 16 4 12-6 18 5 10-3 17 6 14-5 15 3 12-4 19 5 13-6 16 6 11-3 18 4 13-5 15 4 12-3 17 5 14-6 16 5 12-2 15 4 13-6 16 6 12-3 15 4 14-3V16z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.torn-top::before { top: -15px; }
.torn-bottom::after { bottom: -15px; transform: scaleY(-1); }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: var(--line) solid transparent; transition: border-color var(--t) var(--ease), background var(--t) var(--ease); }
.mast.is-scrolled { border-bottom-color: var(--ink); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mast__logo { display: block; flex: none; }
.mast__logo img { display: block; height: 30px; width: auto; }
.mast__nav { display: flex; align-items: center; gap: 4px; }
.mast__link { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; transition: background var(--t) var(--ease); }
.mast__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2.5px; border-radius: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.mast__link:hover::after, .mast__link[aria-current="page"]::after { transform: scaleX(1); }
.mast__link[aria-current="page"] { color: var(--cobalt-deep); }
.mast__cta { margin-left: 8px; }
.mast__menu { display: none; }
.mast__sheet { display: none; }
@media (max-width: 820px) {
  .mast__in { height: 64px; }
  .mast__logo img { height: 26px; }
  .mast__nav { display: none; }
  .mast__menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: var(--line) solid var(--ink); border-radius: 12px; background: var(--sheet); box-shadow: 3px 3px 0 var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
  .mast__menu:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
  .mast__menu .bars { width: 18px; height: 12px; position: relative; }
  .mast__menu .bars::before, .mast__menu .bars::after, .mast__menu .bars i { content: ""; position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
  .mast__menu .bars::before { top: 0; } .mast__menu .bars i { top: 5px; } .mast__menu .bars::after { bottom: 0; }
  .mast__menu[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
  .mast__menu[aria-expanded="true"] .bars i { opacity: 0; }
  .mast__menu[aria-expanded="true"] .bars::after { transform: translateY(-4.5px) rotate(-45deg); }
  .mast__sheet { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); background: var(--sheet); border: var(--line) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 10px; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px) rotate(-.6deg); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .mast__sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
  .mast__sheet a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px 14px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
  .mast__sheet a:not(.btn) + a:not(.btn) { border-top: 1.5px dashed rgba(10, 11, 13, .18); }
  .mast__sheet a:not(.btn):hover, .mast__sheet a:not(.btn):focus-visible { background: var(--pale-2); }
  .mast__sheet a[aria-current="page"] { color: var(--cobalt-deep); }
  .mast__sheet .btn { width: 100%; margin-top: 10px; border-top: var(--line-strong) solid var(--ink); }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.field__help { font-size: 13.5px; line-height: 1.45; color: var(--text-3); margin: 0; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; font: 400 16px/1.4 var(--font-body); color: var(--text);
  background: var(--sheet); border: var(--line) solid var(--ink); border-radius: 12px; padding: 12px 14px;
  box-shadow: inset 2px 2px 0 rgba(10, 11, 13, .06); transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #767B88; }
.input:focus, .field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--pale), 3px 3px 0 var(--cobalt); }
.field.is-error input:not([type="checkbox"]):not([type="radio"]), .field.is-error textarea, .field.is-error select, .input.is-error { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-pale); }
.field__error { font-size: 13.5px; font-weight: 600; color: var(--bad); margin: 0; display: flex; gap: 6px; align-items: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: var(--line) solid var(--ink); border-radius: 7px; background: var(--sheet); display: grid; place-items: center; cursor: pointer; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease-spring); }
.check input:checked { background: var(--cobalt); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:active { transform: scale(.92); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--ok-pale); color: var(--text); box-shadow: var(--sh-sm); font-size: 15.5px; line-height: 1.5; }
.notice--error { background: var(--bad-pale); }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- accordion (native details, animated where supported) ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: var(--sheet); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: var(--sh-sm); transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); interpolate-size: allow-keywords; }
.faq details[open] { box-shadow: var(--sh); transform: translate(-1px, -1px); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.25; color: var(--ink); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border: var(--line) solid var(--ink); border-radius: 50%; position: relative; background: var(--pale-2); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform var(--t) var(--ease); }
.faq details[open] .pm { background: var(--cobalt); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .faq__a { padding: 0 20px 20px; color: var(--text-2); font-size: 16.5px; line-height: 1.62; max-width: 68ch; }
.faq .faq__a p { margin: 0 0 10px; }
.faq .faq__a p:last-child { margin: 0; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: #E9EAEE; padding: clamp(64px, 9vw, 104px) 0 40px; margin-top: 0; overflow: hidden; }
.foot a { color: #E9EAEE; text-decoration: none; }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.foot__logo { height: 34px; width: auto; display: block; }
.foot__tag { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: #B9BDC9; max-width: 40ch; }
.foot__h { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); margin: 0 0 12px; }
.foot__links { display: grid; gap: 4px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 16px; color: #E9EAEE; width: fit-content; background: linear-gradient(var(--pale), var(--pale)) left 85% / 0 2px no-repeat; transition: background-size var(--t) var(--ease), color var(--t) var(--ease); }
.foot__links a:hover { background-size: 100% 2px; color: #fff; }
.foot__fine { margin-top: 48px; padding-top: 22px; border-top: 1.5px dashed rgba(233, 234, 238, .22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: #A3A8B5; }
.foot__fine p { margin: 0; max-width: 70ch; }
.foot__nap { width: 190px; margin: 26px 0 0 -6px; transform: rotate(-3deg); }
.foot__zzz { font-family: var(--font-hand); font-weight: 700; color: var(--pale); font-size: 30px; line-height: 1; }
.foot__zzz span { display: inline-block; animation: lh-zzz 3.6s ease-in-out infinite; }
.foot__zzz span:nth-child(2) { animation-delay: .5s; font-size: 1.2em; }
.foot__zzz span:nth-child(3) { animation-delay: 1s; font-size: 1.45em; }
@keyframes lh-zzz { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-6px); opacity: 1; } }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__grid { grid-template-columns: 1fr; } }

/* floating feedback */
.lh-fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: 14px; background: var(--sheet); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.lh-fab:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.lh-fab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lh-fab svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .lh-fab span { display: none; } .lh-fab { padding: 10px 12px; right: 12px; bottom: 12px; } }

/* utilities */
.stack > * + * { margin-top: var(--gap, 18px); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fadein { animation: lh-fadein .6s var(--ease) both; animation-delay: var(--fd, 0s); }
@keyframes lh-fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.js .reveal, html.js .reveal-pop { opacity: 1; transform: rotate(var(--rot, 0deg)); }
}
