/* ============================================================================
   Engleza cu Niko — "OUT LOUD" Design System
   Direction: language-as-voice. Ink + TRUE off-white paper + ONE electric lime
   highlighter accent. RO struck → EN spoken out loud, /IPA/ mono tags as signature.
   Type:  Bricolage Grotesque (display) × Hanken Grotesk (body) × JetBrains Mono (IPA)
   Motion: expo only, no bounce. Compositor-only. Reduced-motion → instant.
   Bible: /DESIGN.md  (tokens here mirror DESIGN.md §3/§2/§4/§5 verbatim)
   ========================================================================== */

@layer reset, tokens, base, layout, components, motion, utilities;

/* ---------- self-hosted fonts (sec 2026-10-24) -------------------------
   Replaces the Google Fonts <link>: no visitor IP goes to Google (GDPR) and
   the CSP needs no third-party font host. Same families/axes as the old
   request (Bricolage opsz+wght, Hanken wght, JetBrains Mono wght), latin +
   latin-ext (RO diacritics, IPA). Files copied from @fontsource-variable/*
   5.3.0 (package.json devDependencies); licences: assets/fonts/*-OFL.txt. */
/* bricolage-grotesque-latin-ext-opsz-normal */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-opsz-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;
}

/* bricolage-grotesque-latin-opsz-normal */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/fonts/bricolage-grotesque-latin-opsz-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;
}

/* hanken-grotesk-latin-ext-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-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;
}

/* hanken-grotesk-latin-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/hanken-grotesk-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;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-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;
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-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;
}

/* ---------- reset (layered so utilities always win) --------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100%; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, picture, svg { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button, input, textarea, select { font: inherit; color: inherit; }
  ul[role="list"] { list-style: none; }
  :focus-visible { outline: 3px solid var(--ink-900); outline-offset: 3px; border-radius: 2px; }
}

/* ---------- tokens (DESIGN.md §2/§3/§4/§5) ----------------------------- */
@layer tokens {
  :root {
    /* primitive — ink ramp + paper + lime (OKLCH). Warm-earth hues fully removed. */
    --ink-900:   oklch(0.17 0.006 250);   /* near-black — text/structure */
    --ink-800:   oklch(0.26 0.010 250);   /* dark panels (method/contact/quote/value) */
    --ink-700:   oklch(0.36 0.012 250);   /* hairlines on ink, borders-on-dark */
    --paper:     oklch(0.972 0.004 95);   /* TRUE off-white (NOT cream) */
    --paper-2:   oklch(0.94 0.005 95);    /* soft fill / alt section bg */
    --lime:      oklch(0.88 0.20 128);    /* SIGNATURE highlighter */
    --lime-deep: oklch(0.60 0.17 128);    /* small accent / icon tint ON paper — ≥3:1 on paper/soft/white (measured 3.44/3.13/3.73); was 0.72 = 2.18:1 */
    --signal:    oklch(0.62 0.20 28);     /* freeze / struck-through ONLY — rare */
    --signal-on-ink: oklch(0.76 0.16 28); /* struck RO word on ink panels — ≥4.5:1 on --ink-800 (was 4 inline 0.72 literals = 4.3:1) */
    --muted:     oklch(0.45 0.010 250);   /* body-muted (AA on paper) */
    --white:     #ffffff;
    --c-white:   var(--white);            /* legacy alias (kept so untouched HTML still resolves) */

    /* social brand colors (recognition on the contact ink panel) */
    --brand-whatsapp:  #25d366;
    --brand-messenger: #0084ff;

    /* semantic — components reference THESE, never primitives */
    --bg-page:        var(--paper);
    --bg-ink:         var(--ink-800);
    --bg-brand:       var(--ink-800);     /* former "brand drench" → now ink */
    --bg-soft:        var(--paper-2);
    --surface:        var(--white);

    --text-ink:       var(--ink-900);
    --text-muted:     var(--muted);
    --text-on-brand:  var(--ink-900);     /* hero is paper now → ink text */
    --text-on-ink:    oklch(0.93 0.006 95);

    --accent:         var(--lime);
    --accent-deep:    var(--lime-deep);
    --accent-hover:   var(--lime-deep);
    --line:           oklch(0.17 0.006 250 / 0.16);
    --line-strong:    oklch(0.17 0.006 250 / 0.5);   /* control boundaries ≥3:1 on paper/soft/white (3.53/3.46/3.60); 0.45 measured 2.97 on soft */
    --line-on-ink:    oklch(0.93 0.006 95 / 0.18);
    /* type — Bricolage display × Hanken body × JetBrains mono (DESIGN.md §2) */
    --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
    --font-mono:    "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
    --font-sign:    var(--font-mono);     /* wordmark/emphasis = mono + lime highlighter */

    /* fluid type scale (Major-Third-ish, dramatic display) */
    --step--1: clamp(0.83rem, 0.81rem + 0.10vw, 0.89rem);
    --step-0:  clamp(1.00rem, 0.97rem + 0.16vw, 1.10rem);
    --step-1:  clamp(1.20rem, 1.13rem + 0.34vw, 1.40rem);
    --step-2:  clamp(1.45rem, 1.32rem + 0.64vw, 1.85rem);
    --step-3:  clamp(1.78rem, 1.55rem + 1.14vw, 2.55rem);
    --step-4:  clamp(2.40rem, 1.80rem + 2.80vw, 4.40rem);
    --step-5:  clamp(3.20rem, 1.60rem + 7.20vw, 8.50rem);

    /* space (8px base) */
    --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;   --sp-4: 1.5rem;
    --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4.5rem; --sp-8: 6.5rem;

    /* sharp radii (anti-slop: no soft rounded everything) */
    --radius: 2px;
    --radius-lg: 4px;
    --radius-pill: 999px;
    --maxw: 1180px;

    /* elevation — ink-hue-tinted (250°), NOT pure black. Pre-rendered on ::after,
       faded via opacity → compositor-only (DESIGN.md §4). */
    --shadow-sm: 0 1px 2px oklch(0.17 0.01 250 / 0.06);
    --shadow-md: 0 6px 18px oklch(0.17 0.01 250 / 0.10), 0 1px 3px oklch(0.17 0.01 250 / 0.08);
    --shadow-lg: 0 24px 56px oklch(0.17 0.01 250 / 0.16), 0 8px 18px oklch(0.17 0.01 250 / 0.10);
    --elev-1: var(--shadow-sm);
    --elev-2: var(--shadow-md);
    --elev-3: var(--shadow-lg);

    /* motion — expo ONLY, no bounce (DESIGN.md §5) */
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:  var(--ease);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-press: cubic-bezier(0.4, 0, 0.6, 1);
    --dur: 260ms;
  }
}

/* ---------- base -------------------------------------------------------- */
@layer base {
  html { scroll-padding-top: calc(var(--sp-7) + var(--sp-2)); scroll-behavior: smooth;
    scrollbar-color: var(--ink-700) var(--paper-2); }
  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--text-ink);
    background: var(--bg-page);
    /* layered depth: faint ink grain + paper warmth, never a flat fill */
    background-image:
      radial-gradient(70rem 46rem at 100% -12%, oklch(0.88 0.20 128 / 0.05), transparent 60%),
      radial-gradient(60rem 50rem at -12% 112%, oklch(0.26 0.01 250 / 0.05), transparent 58%);
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02;
    letter-spacing: -0.022em; text-wrap: balance; color: var(--text-ink); }
  /* Bricolage has opsz (12..96): match optical size to rendered size (typography-system). */
  h1 { font-size: var(--step-5); font-variation-settings: "opsz" 96; letter-spacing: -0.03em; }
  h2 { font-size: var(--step-4); font-variation-settings: "opsz" 64; }
  h3 { font-size: var(--step-2); letter-spacing: -0.015em; font-variation-settings: "opsz" 36; }
  h4 { font-variation-settings: "opsz" 24; }
  p { max-width: 66ch; text-wrap: pretty; }
  strong { font-weight: 700; }
  ::selection { background: var(--lime); color: var(--ink-900); }
  /* A-2: fixed-attachment gradients force fullscreen repaints on scroll — scope to desktop */
  @media (min-width: 900px) {
    body { background-attachment: fixed; }
  }
}

/* ---------- layout ------------------------------------------------------ */
@layer layout {
  .wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
  .wrap--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
  .section { padding-block: var(--sp-8); }
  .section--tight { padding-block: var(--sp-7); }
  .stack > * + * { margin-top: var(--sp-3); }
  .lede { font-size: var(--step-1); color: var(--text-muted); line-height: 1.5; max-width: 60ch; }
}

/* ---------- signature primitives --------------------------------------- */
@layer components {
  /* highlighter mark — THE OUT LOUD signature. Lime behind ink text. */
  .hl {
    background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 100%; background-size: 100% 38%;
    color: var(--ink-900); padding: 0 0.06em; box-decoration-break: clone;
  }
  /* IPA transcription tag — mono, muted, /slashed/ */
  .ipa { font-family: var(--font-mono); font-weight: 500; color: var(--muted);
    font-size: 0.82em; letter-spacing: 0.01em; }
  /* RO→EN out-loud swap. EN is visible by default; JS re-plays it. */
  .swap { display: inline-flex; align-items: baseline; gap: 0.28em; }
  .swap__ro { color: var(--signal); opacity: 0.85; font-weight: 400; /* 0.55 measured 2.1:1 even at 81px */
    text-decoration: line-through; text-decoration-thickness: 2px; }
  .swap__en { color: var(--ink-900); font-weight: 800; }

  /* eyebrow — mono uppercase + lime tick (used deliberately, not everywhere) */
  .eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-900);
    display: inline-flex; align-items: center; gap: 0.6rem; }
  .eyebrow::before { content: ""; width: 2.2rem; height: 3px; background: var(--lime); }

  /* wordmark / emphasis — replaces the old script signature */
  .sign { font-family: var(--font-sign); font-weight: 700; line-height: 0.95;
    letter-spacing: -0.01em; text-transform: lowercase; }

  /* --- nav --- */
  .nav { position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    background: oklch(0.972 0.004 95 / 0.86);
    border-bottom: 1px solid var(--line); }
  .nav__bar { display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4); padding-block: 0.85rem; }
  .brand { display: inline-flex; align-items: baseline; gap: 0.42rem; font-family: var(--font-display);
    font-size: var(--step-1); font-weight: 700; letter-spacing: -0.02em; }
  .brand .sign { font-size: 1em; }
  .brand .sign, .brand b { background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 100%; background-size: 100% 42%; padding: 0 0.08em; }
  .nav__links { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.6rem); }
  .nav__links a { font-size: var(--step--1); font-weight: 600; color: var(--text-muted);
    padding: 0.4rem 0.2rem; transition: color var(--dur) var(--ease); }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-ink); }
  /* nav link = highlighter wipe (the .hl mark, drawn by transform — compositor-only) */
  .nav__links a:not(.btn) { position: relative; isolation: isolate; }
  .nav__links a:not(.btn)::after { content: ""; position: absolute; z-index: -1;
    inset-inline: 0.1rem; bottom: 0.55rem; height: 0.5em; background: var(--lime);
    transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
  .nav__links a:not(.btn):hover::after,
  .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  /* scrolled state: pre-rendered elevation faded in (main.js toggles .is-scrolled) */
  .nav::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    box-shadow: var(--elev-2); opacity: 0; transition: opacity var(--dur) var(--ease); }
  .nav.is-scrolled::after { opacity: 1; }
  .nav__toggle { display: none; }

  /* --- buttons — sharp. primary = lime fill + ink text (highlighter = "go") --- */
  .btn { --_bg: var(--lime); --_fg: var(--ink-900);
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    cursor: pointer; white-space: nowrap;
    font-family: var(--font-body); font-weight: 800; font-size: var(--step-0);
    line-height: 1.1; padding: 0.95rem 1.7rem; border-radius: var(--radius);
    background: var(--_bg); color: var(--_fg); border: 0;
    transition: transform 180ms var(--ease), background-color 180ms var(--ease),
      color 180ms var(--ease), border-color 180ms var(--ease); }
  .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    box-shadow: var(--elev-3); opacity: 0; transition: opacity 180ms var(--ease); }
  .btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
  .btn:hover::after { opacity: 1; }
  .btn:active { transform: translateY(0) scale(0.985); transition-duration: 90ms;
    transition-timing-function: var(--ease-press); }
  .btn:active::after { opacity: 0; }
  .btn__ar { display: inline-flex; transition: transform 180ms var(--ease); }
  .btn__ar svg { width: 1.05em; height: 1.05em; }
  .btn:hover .btn__ar { transform: translateX(3px); }
  /* ghost — single ink hairline, never doubled */
  .btn--ghost { --_bg: transparent; --_fg: var(--ink-900); border: 1.5px solid var(--line-strong);
    box-shadow: none; }
  .btn--ghost::after, .btn--ghost-on::after, .btn--on-brand::after { display: none; }
  .btn--ghost:hover { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
  /* on-ink CTA = lime fill pops on dark sections */
  .btn--on-brand { --_bg: var(--lime); --_fg: var(--ink-900); }
  .btn--on-brand:hover { background: var(--accent-deep); }
  /* ghost-on = hairline ghost that lives on ink sections */
  .btn--ghost-on { --_bg: transparent; --_fg: var(--text-on-ink);
    border: 1.5px solid oklch(0.93 0.006 95 / 0.5); box-shadow: none; }
  .btn--ghost-on:hover { background: oklch(0.93 0.006 95 / 0.12); border-color: var(--paper); }
  .btn--lg { font-size: var(--step-1); padding: 1.05rem 2rem; }
  .btn--nav { padding: 0.8rem 1.6rem; font-size: var(--step--1); }
  .nav__links a.btn { color: var(--ink-900); padding: 0.85rem 1.7rem; }
  .nav__links a.btn:hover { color: var(--ink-900); }

  /* --- HERO = OUT LOUD masthead (paper, full-height portrait column) --- */
  .hero { position: relative; background: var(--bg-page); color: var(--text-ink);
    overflow: clip; isolation: isolate; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
    background:
      radial-gradient(48rem 34rem at 92% 8%, oklch(0.88 0.20 128 / 0.16), transparent 62%),
      radial-gradient(40rem 40rem at -8% 108%, oklch(0.26 0.01 250 / 0.10), transparent 60%); }
  /* Hero (operator 2026-10-14): the portrait is EXACTLY as tall as the copy column —
     top = kicker cap-top, bottom = last proof line baseline. The grid carries the section
     padding; the photo contributes NO intrinsic height (absolutely-filled cell), so the row
     height comes from the text alone. */
  .hero__grid { display: grid; gap: var(--sp-6); align-items: stretch;
    grid-template-columns: 1.08fr 0.92fr; padding-block: var(--sp-8) var(--sp-7); }
  .hero__copy { min-width: 0; }
  .hero__kicker { font-family: var(--font-mono); font-size: var(--step-1);
    font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-900); margin-bottom: 0.5rem;
    text-box: trim-start cap alphabetic; } /* photo top meets the cap line, not the leading */
  .hero__copy > .hero__note:last-child { text-box: trim-end cap alphabetic; } /* …and the baseline */
  .hero__kicker::before { content: "/ "; color: var(--lime-deep); }
  .hero h1 { color: var(--ink-900); margin-block: 0 0.18em; line-height: 0.96;
    /* clamp vs the swap line ("îngheață speaks" ≈ 7.4em wide) so it never presses the photo column */
    font-size: clamp(3rem, 1.1rem + 4.4vw, 5.05rem); }
  .hero h1 .lead { display: block; line-height: 0.96; }
  .hero h1 .sign { display: inline; background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 92%; background-size: 100% 34%; }
  .hero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-top: var(--sp-4);
    font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; font-size: var(--step--1); color: var(--ink-900); }
  .hero__tags span { display: inline-flex; align-items: center; gap: 0.6rem; }
  .hero__tags span + span::before { content: "//"; margin-right: 0.9rem; color: var(--lime-deep); }
  .hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
  .hero__note { margin-top: var(--sp-3); font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
  .hero__note a { text-decoration: underline; text-underline-offset: 3px; }
  .hero__photo { position: relative; min-height: 0; }
  .hero__photo picture { position: absolute; inset: 0; overflow: hidden; }
  /* Portrait tower — grayscale, bright, NO blend wash, NO rotation, radius 0 (DESIGN.md §4).
     The flyer crop carries a curved frame on its right edge: a slight zoom anchored left
     pushes it out of frame; object-position keeps eyes/glasses in the upper-middle. */
  .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% var(--hero-photo-y, 24%);
    transform: scale(1.1); transform-origin: 22% 30%;
    border-radius: 0; box-shadow: none;
    filter: grayscale(100%) contrast(1.06) brightness(1.04); }
  /* 901–1100: the copy wraps taller, the frame turns narrow → a touch more zoom keeps the
     flyer curve out of the top/bottom-right corners */
  @media (min-width: 901px) and (max-width: 1100px) {
    .hero__photo img { transform: scale(1.16); }
  }
  .hero__badge { position: absolute; bottom: 0; left: -1.5rem;
    background: var(--ink-900); color: var(--paper); border-radius: var(--radius);
    padding: 0.85rem 1.1rem; box-shadow: var(--shadow-md); max-width: 13rem; line-height: 1.2; z-index: 2; }
  .hero__badge .sign { font-size: 1.7rem; color: var(--paper); display: block; }
  .hero__badge .sign::after { content: ""; }
  .hero__badge small { font-family: var(--font-mono); font-size: var(--step--1);
    color: var(--lime); font-weight: 600; }

  /* value strip — ink, paper text, lime icons */
  .valuestrip { background: var(--bg-ink); color: var(--text-on-ink); }
  .valuestrip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
    padding-block: var(--sp-4); list-style: none; }
  .valuestrip li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600;
    font-size: var(--step--1); letter-spacing: 0.01em; }
  .valuestrip li:not(:last-child) { border-right: 1px solid var(--line-on-ink); padding-right: var(--sp-4); }
  .valuestrip svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--lime); }

  /* section heading block */
  .head { max-width: 56ch; margin-bottom: var(--sp-6); }
  .head .lede { margin-top: var(--sp-3); }

  /* --- audiences — varied affordances, sharp cards --- */
  .audiences { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
  .aud { position: relative; padding: var(--sp-5); border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elev-1);
    transition: transform 300ms var(--ease); }
  .aud::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; box-shadow: var(--elev-3); opacity: 0;
    transition: opacity 300ms var(--ease); }
  .aud:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--ink-900); }
  .aud:hover::after { opacity: 1; }
  .aud:active { transform: translateY(-3px) scale(0.992); transition-timing-function: var(--ease-press); }
  .aud--feature:hover { transform: translateY(-6px) rotate(0.4deg); }
  .aud--feature { grid-row: span 2; background: var(--bg-ink); color: var(--text-on-ink);
    display: flex; flex-direction: column; justify-content: space-between; border-color: transparent; }
  .aud--feature h3 { color: var(--paper); }
  .aud--wide { grid-column: 1 / -1; background: var(--bg-soft); border-color: transparent;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-4); }
  .aud--wide .aud__icon { margin-bottom: 0; background: var(--surface); } /* tile would vanish on the bg-soft band */
  .aud--wide .btn { white-space: nowrap; }
  .aud__icon { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: var(--radius);
    background: var(--bg-soft); color: var(--ink-900); margin-bottom: var(--sp-3);
    transition: transform 280ms var(--ease) 50ms, background 280ms var(--ease) 50ms, color 280ms var(--ease) 50ms; }
  .aud--feature .aud__icon { background: oklch(0.88 0.20 128 / 0.22); }
  .aud:hover .aud__icon { transform: translateY(-3px) rotate(-7deg) scale(1.08);
    background: var(--lime); color: var(--ink-900); }
  .aud__icon svg { width: 1.55rem; height: 1.55rem; }
  .aud h3 { margin-bottom: 0.4rem; }
  .aud p { color: var(--text-muted); font-size: var(--step-0); }
  .aud--feature p { color: var(--text-on-ink); opacity: 0.84; }
  .aud__tag { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--sp-3);
    font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700; color: var(--ink-900);
    transition: transform 280ms var(--ease) 110ms; }
  .aud__tag svg { color: var(--lime-deep); }
  .aud:hover .aud__tag { transform: translateX(6px); }
  .aud--feature .aud__tag { color: var(--lime); }

  /* --- method (ink, freeze→speak) --- */
  .method, .contact { position: relative; isolation: isolate; overflow: clip; }
  .method::before, .contact::before { content: ""; position: absolute; inset: 0; z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(70rem 32rem at 84% -8%, oklch(0.88 0.20 128 / 0.10), transparent 58%),
      radial-gradient(60rem 50rem at -6% 108%, oklch(0.36 0.012 250 / 0.55), transparent 60%),
      linear-gradient(180deg, oklch(0.30 0.010 250 / 0.6), transparent 42%); }
  .method { background: var(--bg-ink); color: var(--text-on-ink); }
  .method h2 { color: var(--paper); }
  .method .lede { color: var(--text-on-ink); opacity: 0.82; line-height: 1.6; }
  .method p, .contact p, .aud--feature p, .quoteband p { line-height: 1.62; }
  .method em { font-style: normal; }
  .method__grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr);
    margin-top: var(--sp-6); }
  .pillar__ic { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: var(--radius);
    background: oklch(0.88 0.20 128 / 0.16); color: var(--lime);
    transition: transform 280ms var(--ease); }
  .pillar:hover .pillar__ic { transform: translateY(-3px) rotate(-7deg) scale(1.08); }
  .pillar__ic svg { width: 1.65rem; height: 1.65rem; }
  .pillar h3 { color: var(--paper); margin-block: var(--sp-3) 0.4rem; font-size: var(--step-1); }
  .pillar p { color: var(--text-on-ink); opacity: 0.82; font-size: var(--step-0); }
  .pillar { padding-top: var(--sp-4); border-top: 2px solid var(--line-on-ink); }

  /* --- courses — sharp cards, lime level pills --- */
  .courses { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
  .course { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5);
    border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--elev-1); transition: transform var(--dur) var(--ease); }
  .course::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; box-shadow: var(--elev-3); opacity: 0;
    transition: opacity var(--dur) var(--ease); }
  .course:hover { transform: translateY(-6px); border-color: var(--ink-900); }
  .course:hover::after { opacity: 1; }
  .course:active { transform: translateY(-3px) scale(0.992); transition-timing-function: var(--ease-press); }
  /* level = lime fill + ink text (semantic rule satisfied) */
  .course__level { align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
    letter-spacing: 0.06em; color: var(--ink-900); background: var(--lime);
    padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
  .course:hover .course__level { background: var(--ink-900); color: var(--lime); }
  .course h3 { font-size: var(--step-2); }
  .course__who { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    color: var(--muted); letter-spacing: 0.02em; }
  .course p { color: var(--text-muted); font-size: var(--step-0); }
  .course__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
    margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line);
    font-size: var(--step--1); color: var(--text-muted); font-weight: 600; }
  .course__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
  .course__meta svg { width: 1.05rem; height: 1.05rem; color: var(--ink-900); flex: none; }
  .course__meta b { color: var(--text-ink); }
  .badge-soon { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700;
    color: var(--ink-900); text-transform: uppercase; letter-spacing: 0.08em;
    border: 1px dashed var(--line); padding: 0.2rem 0.5rem; border-radius: var(--radius); }

  /* --- quote band (ink drench) --- */
  .quoteband { position: relative; isolation: isolate; overflow: clip;
    background: var(--bg-ink); color: var(--text-on-ink); text-align: center; }
  .quoteband::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(50rem 26rem at 50% -20%, oklch(0.88 0.20 128 / 0.12), transparent 60%),
      radial-gradient(46rem 40rem at 8% 120%, oklch(0.36 0.012 250 / 0.55), transparent 58%); }
  .quoteband .sign { font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); color: var(--paper); line-height: 1;
    background: none; text-transform: none; letter-spacing: -0.02em; }
  .quoteband p { margin: var(--sp-3) auto 0; font-size: var(--step-1); opacity: 0.9; }
  .quoteband .ipa { color: var(--lime); } /* --muted on ink measured <3:1; IPA tag = lime accent on ink */

  /* --- about — duotone portrait, broken offset --- */
  .about__grid { display: grid; gap: var(--sp-6); grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    filter: grayscale(100%) contrast(1.08) brightness(0.97); transform: rotate(-1.2deg); }
  .about blockquote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.22;
    border: 0; margin: var(--sp-4) 0 0; color: var(--text-ink); }
  .about blockquote .sign { color: var(--ink-900); font-size: 1em; background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 100%; background-size: 100% 38%; }

  /* --- blog cards --- */
  .posts { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .post { position: relative; display: flex; flex-direction: column; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--elev-1); transition: transform 300ms var(--ease); }
  .post::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; box-shadow: var(--elev-3); opacity: 0;
    transition: opacity 300ms var(--ease); }
  .post:hover, .post:has(a:focus-visible) { transform: translateY(-6px); border-color: var(--ink-900); }
  .post:hover::after, .post:has(a:focus-visible)::after { opacity: 1; }
  .post:active { transform: translateY(-3px) scale(0.994); transition-timing-function: var(--ease-press); }
  .post__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
  .post__cat { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-900); }
  .post h3 { font-size: var(--step-1); transition: color 220ms var(--ease); }
  .post h3 a { color: inherit; }
  .post h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .post:hover h3 { color: var(--ink-900); }
  .post:hover h3 a { background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 96%; background-size: 100% 30%; }
  .post p { color: var(--text-muted); font-size: var(--step-0); }
  .post__meta { margin-top: auto; padding-top: var(--sp-3); font-size: var(--step--1);
    color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
  .post__more { font-weight: 700; color: var(--ink-900); display: inline-flex; align-items: center; gap: 0.35rem; }
  .post__more svg { width: 1em; height: 1em; transition: transform 220ms var(--ease); }
  .post:hover .post__more svg { transform: translateX(5px); }

  /* --- article (blog post) --- */
  .article { width: min(100% - 2.5rem, 720px); margin-inline: auto; }
  .article__head { padding-block: var(--sp-6) var(--sp-4); }
  .article h1 { font-size: var(--step-4); margin-block: var(--sp-2); }
  .article__meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-muted); font-weight: 600;
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
  .prose { font-size: var(--step-1); line-height: 1.7; }
  .prose > * + * { margin-top: 1.15em; }
  .prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
  .prose h3 { font-size: var(--step-1); margin-top: 1.3em; }
  .prose ul, .prose ol { padding-left: 1.3em; }
  .prose li + li { margin-top: 0.4em; }
  .prose blockquote { border-left: 3px solid var(--lime); padding-left: 1.1em;
    font-family: var(--font-display); font-size: var(--step-1); color: var(--text-muted); }
  .prose a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--lime);
    text-underline-offset: 3px; text-decoration-thickness: 2px; }
  .tldr { background: var(--bg-soft); border-left: 3px solid var(--lime);
    border-radius: var(--radius); padding: var(--sp-4); font-size: var(--step-0); }
  .tldr b { color: var(--ink-900); }

  /* --- FAQ --- */
  .faq { display: grid; gap: var(--sp-2); }
  .faq details { background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); box-shadow: var(--elev-1);
    transition: border-color var(--dur) var(--ease); }
  .faq details[open] { border-color: var(--ink-900); box-shadow: var(--elev-2); }
  .faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
    font-variation-settings: "opsz" 36;
    list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--ink-900); font-family: var(--font-mono);
    font-size: 1.4em; line-height: 1; transition: transform var(--dur) var(--ease); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details:not([open]):hover { border-color: var(--line-strong); }
  .faq details:not([open]):hover summary::after { transform: rotate(90deg); }
  .faq p { margin-top: var(--sp-2); color: var(--text-muted); }

  /* --- contact (ink) --- */
  .contact { background: var(--bg-ink); color: var(--text-on-ink); }
  .contact h2 { color: var(--paper); }
  .contact__grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr 1fr; align-items: center; }
  .contact__list { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
  .contact__list a { display: flex; align-items: center; gap: 0.9rem; font-size: var(--step-1);
    font-weight: 600; }
  .contact__ic { --ic: var(--lime); position: relative; isolation: isolate;
    flex: none; width: 3rem; height: 3rem; border-radius: var(--radius);
    display: grid; place-items: center; background: var(--ic); color: var(--ink-900);
    transition: transform 240ms var(--ease); }
  .contact__ic svg { width: 1.5rem; height: 1.5rem; }
  .contact__ic--whatsapp  { --ic: var(--brand-whatsapp); color: var(--ink-900); }
  .contact__ic--messenger { --ic: var(--brand-messenger); color: var(--white); }
  .contact__ic--phone { --ic: var(--lime); }
  .contact__ic--email { --ic: var(--lime-deep); }

  /* ===== Icons: Solar bold-duotone — lime second tone (Batch I) ===== */
  /* Duotone rule (state-aware): the 2nd tone is chosen by the surface the icon sits on IN
     THAT STATE — paper → --lime-deep · ink → --lime · lime fill → --ink-700. Primary = ink on
     paper, paper on ink, ink on lime. */
  .ic2 { fill: var(--lime-deep); }
  .valuestrip .ic2, .method .ic2, .contact .ic2, .quoteband .ic2,
  .footer .ic2, .aud--feature .ic2 { fill: var(--lime); }
  .valuestrip svg, .pillar__ic, .aud--feature .aud__icon { color: var(--text-on-ink); }
  .contact__ic .ic2, .aud:hover .aud__icon .ic2 { fill: var(--ink-700); }
  .contact__list a:hover .contact__ic { transform: translateY(-2px) scale(1.07); }
  .contact__list a { text-decoration: underline 2px transparent; text-underline-offset: 0.3em;
    transition: text-decoration-color var(--dur) var(--ease); }
  .contact__list a:hover { text-decoration-color: var(--lime); }

  /* --- footer --- */
  .footer { background: var(--bg-page); border-top: 1px solid var(--line); }
  .footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-5);
    padding-block: var(--sp-6); }
  .footer a { color: var(--text-muted); font-size: var(--step--1); }
  .footer a:hover { color: var(--ink-900); }
  .footer .brand { color: var(--ink-900); }
  .footer__nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
  .footer__legal { font-size: var(--step--1); color: var(--text-muted); }
  .footer__legal a:hover { color: var(--ink-900); }

  /* breadcrumb */
  .crumbs { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-muted); padding-top: var(--sp-4); }
  .crumbs a:hover { color: var(--ink-900); }

  /* --- confidence meter (signature 3): lime top scroll-progress --- */
  .meter { position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: var(--line); z-index: 60; pointer-events: none; }
  .meter__bar { height: 100%; width: 100%; background: var(--lime);
    transform: scaleX(0); transform-origin: left; will-change: transform; }

  /* ===== Phase 1 homepage elevation — OUT LOUD signature enactments (append-only) ===== */

  /* hero IPA tag — mono footnote to the swap, bound tight to the h1 (sp-2: it annotates it) */
  .hero__ipa { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 0.4rem 0.8rem; font-family: var(--font-mono); }
  /* hero lede — ink (was inline style on the markup), lifted from .lede's muted */
  .hero__lede { margin-top: var(--sp-3); color: var(--text-ink); opacity: 0.94; }
  .hero__ipa .ipa { font-size: var(--step-1); color: var(--ink-900); font-weight: 500; }
  .hero__ipa-ro { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.02em; }

  /* hero H1 swap — shrink on narrow viewports so îngheață→speaks holds on one line */
  @media (max-width: 640px) {
    .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  }

  /* hero secondary CTA — .btn--ghost-on is built for ink; the hero is paper. Re-theme via CSS
     so the hairline + ink text read on the paper hero (HTML class kept intact). */
  .hero .btn--ghost-on { --_fg: var(--ink-900); border-color: var(--line-strong); box-shadow: none; }
  .hero .btn--ghost-on:hover { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

  /* highlighter variant for INK sections. The paper-bg `.hl` (lime wipe behind ink text) is
     illegible on ink — the top of the glyphs vanishes into the dark bg. This variant keeps the
     highlighter language on dark panels: paper text + lime accent bar at the baseline. */
  .hl--on-ink { color: var(--paper); background: none; padding: 0 0.1em;
    box-shadow: inset 0 -0.22em 0 oklch(0.88 0.20 128 / 0.92); }

  /* swap variant on ink — default swap__en (--ink-900) is invisible on ink; override to paper.
     No .hl on ink (lime wipe needs ink text on a light surface); the swap mechanic carries itself. */
  .method .swap__ro, .contact .swap__ro, .quoteband .swap__ro { color: var(--signal-on-ink); opacity: 1;
    text-decoration-color: var(--signal-on-ink); }
  .method .swap__en, .contact .swap__en, .quoteband .swap__en { color: var(--paper); }
}

/* ---------- motion (DESIGN.md §5) ------------------------------------- */
@layer motion {
  /* reveal ONLY when JS active — content visible by default (no-JS safe). */
  .js .reveal { opacity: 0; transform: translateY(18px); will-change: transform, opacity;
    transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }
  .js .reveal[data-d="1"] { transition-delay: 70ms; }
  .js .reveal[data-d="2"] { transition-delay: 140ms; }
  .js .reveal[data-d="3"] { transition-delay: 210ms; }
  .js .reveal[data-d="4"] { transition-delay: 280ms; }

  /* word-swap: EN slides up + highlighter wipe (visible-by-default; JS re-plays) */
  .js .swap__en { animation: swapIn 620ms var(--ease) both; }
  @keyframes swapIn {
    from { opacity: 0; transform: translateY(0.5em); background-size: 0 38%; }
    to   { opacity: 1; transform: none; background-size: 100% 38%; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important;
      scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .swap__en { animation: none; }
    /* meter: static full bar under reduced motion */
    .meter__bar { transform: none !important; }
  }
}

/* ---------- utilities -------------------------------------------------- */
@layer utilities {
  .center { text-align: center; max-width: none; }
  .mx-auto { margin-inline: auto; }
  .skip { position: absolute; left: -9999px; top: 0; }
  .skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink-900);
    color: var(--paper); padding: 0.7rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
}

/* ---------- responsive ------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: var(--sp-7) var(--sp-6); }
  /* stacked: fixed 4/5 frame, face framed by the same zoom + position rules */
  .hero__photo { width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 5; }
  .hero__badge { bottom: 0.8rem; left: 0.75rem; }
  .audiences, .courses, .contact__grid, .about__grid, .method__grid { grid-template-columns: 1fr; }
  .aud--feature { grid-row: auto; }
  .aud--wide { grid-template-columns: 1fr; text-align: left; }
  .valuestrip ul { grid-template-columns: 1fr 1fr; }
  .valuestrip li:not(:last-child) { border-right: 0; padding-right: 0; }
}
/* nav collapses to the burger up to 1024px — 7 links + CTA need ~1000px in one row */
@media (max-width: 1024px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: var(--sp-2) 1.25rem var(--sp-4); box-shadow: var(--shadow-md); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: inline-grid; place-items: center; width: 3rem; height: 3rem;
    border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
  .nav__toggle svg { width: 1.4rem; height: 1.4rem; }
}
@media (max-width: 640px) {
  .valuestrip ul { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
  .hero__photo { max-width: none; }
  /* H-2: mobile sticky CTA bar — one-thumb WhatsApp reach on every page */
  .stickyc { display: block; }
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
}

/* ===== Round-2 client-feedback components — OUT LOUD, tokens-only (append-only) ===== */
@layer components {

  /* --- waitlist CTA on course cards: full-width footer button --- */
  .course__wait { margin-top: var(--sp-3); width: 100%; justify-content: center;
    font-size: var(--step--1); padding: 0.75rem 1.2rem; }

  /* --- results: before → after transformation strip --- */
  .transform { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr);
    margin-top: var(--sp-5); list-style: none; padding: 0; }
  .transform__item { background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--elev-1); padding: var(--sp-4) var(--sp-5); }
  .transform__from { color: var(--text-muted); font-size: var(--step-0); }
  .transform__from s { color: var(--muted); text-decoration-thickness: 1px;
    text-decoration-color: oklch(0.72 0.18 28 / 0.7); }
  .transform__to { margin-top: var(--sp-3); padding-top: var(--sp-3);
    border-top: 1px solid var(--line); font-weight: 700; color: var(--ink-900);
    font-size: var(--step-1); line-height: 1.3; }
  .transform__to::before { content: "→"; font-family: var(--font-mono); color: var(--lime-deep);
    font-weight: 700; margin-right: 0.5rem; }

  /* --- testimonials (placeholder-aware) --- */
  .tgrid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr); margin-top: var(--sp-6); }
  .tcard { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--elev-1); padding: var(--sp-5);
    display: flex; flex-direction: column; gap: var(--sp-3); }
  .tcard blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3;
    font-variation-settings: "opsz" 24; color: var(--text-ink); border: 0; margin: 0; }
  .tcard figcaption { margin-top: auto; font-family: var(--font-mono); font-size: var(--step--1);
    display: flex; flex-direction: column; gap: 0.15rem; }
  .tcard__name { color: var(--ink-900); font-weight: 700; }
  .tcard__role { color: var(--text-muted); }

  /* --- credentials row (about) --- */
  .creds { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4);
    list-style: none; padding: 0; }
  .creds li { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    color: var(--ink-900); background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 0.4rem 0.7rem; }
  .creds__k { font-weight: 800; background: linear-gradient(var(--lime), var(--lime)) no-repeat;
    background-position: 0 100%; background-size: 100% 40%; padding: 0 0.12em; color: var(--ink-900); }

  /* --- "cum începem" 3-step --- */
  .steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(3, 1fr);
    margin-top: var(--sp-6); list-style: none; padding: 0; }
  .step { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--elev-1); padding: var(--sp-5); }
  .step__n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
    background: var(--lime); color: var(--ink-900); border-radius: var(--radius);
    font-family: var(--font-mono); font-weight: 700; font-size: var(--step-2); margin-bottom: var(--sp-3); }
  .step h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
  .step p { color: var(--text-muted); font-size: var(--step-0); }
}

@media (max-width: 900px) {
  .transform, .tgrid, .steps { grid-template-columns: 1fr; }
}
/* ===== Testimoniale reale (v2) ===== */
@layer components {

  /* flagship case study — ink drench panel, giant pull-quote + typographic stats */
  .tfeature { position: relative; isolation: isolate; overflow: clip;
    margin-top: var(--sp-6); padding: clamp(1.75rem, 1.1rem + 3vw, 3.5rem);
    background: var(--bg-ink); color: var(--text-on-ink); border-radius: var(--radius-lg); }
  .tfeature::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(42rem 24rem at 88% -12%, oklch(0.88 0.20 128 / 0.12), transparent 60%),
      radial-gradient(36rem 30rem at -8% 118%, oklch(0.36 0.012 250 / 0.55), transparent 58%); }
  .tfeature__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem;
    font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
  .tfeature__kicker .ipa { color: var(--text-on-ink); opacity: 0.75;
    letter-spacing: 0; text-transform: none; }
  .tfeature__kicker .swap { text-transform: none; letter-spacing: 0; }
  .tfeature .swap__ro { color: var(--signal-on-ink); opacity: 1;
    text-decoration-color: var(--signal-on-ink); }
  .tfeature .swap__en { color: var(--lime); }
  .tfeature__quote { margin-top: var(--sp-4); font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.9rem, 1.15rem + 2.9vw, 3.4rem); line-height: 1.06;
    letter-spacing: -0.02em; font-variation-settings: "opsz" 64;
    color: var(--paper); text-wrap: balance; text-indent: -0.42em; }
  .tfeature__quote em { font-style: normal; }
  .tfeature__sub { margin-top: var(--sp-4); font-size: var(--step-0);
    color: var(--text-on-ink); opacity: 0.82; max-width: 52ch; }
  .tfeature__cite { display: block; margin-top: var(--sp-4); font-family: var(--font-mono);
    font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; color: var(--lime); }

  /* typographic stats — the result as display type */
  .tstats { margin-top: var(--sp-5); display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3); }
  .tstats > div { border-top: 2px solid var(--line-on-ink); padding-top: var(--sp-3); }
  .tstats dt { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink); opacity: 0.75; }
  .tstats dd { margin-top: 0.35rem; font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.1rem, 1.5rem + 2.3vw, 3.2rem); line-height: 1;
    font-variation-settings: "opsz" 48; color: var(--lime);
    font-variant-numeric: lining-nums tabular-nums; }

  /* full story — native details, no-JS safe */
  .tstory { margin-top: var(--sp-5); border-top: 1px solid var(--line-on-ink); }
  .tstory summary { cursor: pointer; list-style: none; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; padding-block: var(--sp-3);
    font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); }
  .tstory summary::-webkit-details-marker { display: none; }
  .tstory summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.6em;
    line-height: 1; color: var(--lime); transition: transform var(--dur) var(--ease); }
  .tstory[open] summary::after { transform: rotate(45deg); }
  .tstory:not([open]) summary:hover::after { transform: rotate(90deg); }
  .tstory summary:hover { color: var(--lime); }
  .tstory__body { display: grid; gap: var(--sp-3); max-width: 72ch; padding-bottom: var(--sp-3);
    font-size: var(--step-0); line-height: 1.65; color: var(--text-on-ink); opacity: 0.88; }

  /* second proof — paper card, lime edge, stat + quote split */
  .tsecond { margin-top: var(--sp-4); padding: var(--sp-5) var(--sp-6);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--elev-1); }
  .tsecond__grid { display: grid; gap: var(--sp-5) var(--sp-6); grid-template-columns: minmax(210px, 0.62fr) 1.38fr; }
  .tsecond__big { font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1;
    font-variation-settings: "opsz" 48; letter-spacing: 0.02em;
    font-variant-numeric: lining-nums tabular-nums; }
  .tsecond__meta { margin-top: var(--sp-2); font-family: var(--font-mono);
    font-size: var(--step--1); color: var(--text-muted); }
  .tsecond blockquote { font-family: var(--font-display); font-weight: 500;
    font-size: var(--step-1); line-height: 1.4; font-variation-settings: "opsz" 24;
    color: var(--text-ink); text-indent: -0.4em; text-wrap: pretty; }
  .tsecond figcaption { margin-top: var(--sp-3); font-family: var(--font-mono);
    font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; }


  /* segment groups + cards */
  .tseg { margin-top: var(--sp-7); }
  .tseg__title { display: flex; align-items: center; gap: 0.8rem; font-size: var(--step-2);
    font-variation-settings: "opsz" 36; }
  .tseg__title::before { content: ""; flex: none; width: 1.6rem; height: 3px; background: var(--lime); }
  .tseg__sub { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: var(--sp-4); }
  .tgrid--2 { grid-template-columns: repeat(2, 1fr); }
  .tcard { transition: transform 300ms var(--ease), border-color 300ms var(--ease); }
  .tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit; box-shadow: var(--elev-3); opacity: 0;
    transition: opacity 300ms var(--ease); }
  .tcard:hover { transform: translateY(-6px); border-color: var(--ink-900); }
  .tcard:hover::after { opacity: 1; }
  .tcard__hl { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
    line-height: 1.3; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
  .tcard blockquote { font-family: var(--font-body); font-weight: 400; font-size: var(--step-0);
    line-height: 1.6; color: var(--text-muted); }

  /* closing CTA */
  .tcta { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: var(--sp-4) var(--sp-6);
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-6); }
  .tcta__line { font-size: var(--step-1); font-weight: 500; color: var(--text-ink); max-width: 46ch; }

  @media (max-width: 900px) {
    .tsecond__grid { grid-template-columns: 1fr; }
    .tcta { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 640px) {
    .tstats { grid-template-columns: 1fr 1fr; }
    .tstats > div:last-child { grid-column: 1 / -1; }
    .tsecond { padding: var(--sp-4); }
  }
}

/* ===== Batch S — mobile CTA + cursuri hero + contact note (append-only, tokens-only) ===== */
@layer components {

  /* H-2 — mobile sticky CTA bar. Hidden ≥641px (display toggled in the 640px block);
     z-index 40 sits below .nav (50) and the open mobile nav panel. */
  .stickyc { position: fixed; inset-inline: 0; bottom: 0; display: none;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--elev-2);
    padding: 0.6rem 1.25rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom)); }
  .stickyc .btn { width: 100%; font-size: var(--step--1); padding-block: 0.8rem; }

  /* S-9 — cursuri hero spacing: pull the first course card into view sooner on mobile */
  .cursuri-hero { padding-block: var(--sp-7) var(--sp-6); }
  @media (max-width: 640px) {
    .cursuri-hero { padding-block: var(--sp-7) var(--sp-3); }
  }

  /* D-2 — contact proof micro-line. Markup owned by Batch H (index.html); CSS lives here. */
  .contact__note { font-family: var(--font-mono); font-size: var(--step--1);
    color: var(--text-on-ink); opacity: 0.8; margin-top: var(--sp-3); }
  .contact__note a { text-decoration: underline; text-underline-offset: 3px; }
}

/* ===== Batch L — site-wide spacing rhythm (append-only, tokens-only) ===== */
@layer components {

  /* centered CTA paragraph that closes a section grid — one rhythm site-wide
     (index courses preview, cum-începem steps, blog-post closing CTA) */
  .section__cta { margin-top: var(--sp-6); }

  /* cursuri: proof strip + 1-la-1 band follow the courses grid as siblings —
     sp-5 after the grid, then the pair grouped tight at the card gap (sp-4) */
  .courses ~ .aud--wide { margin-top: var(--sp-5); }
  .aud--wide + .aud--wide { margin-top: var(--sp-4); }

  /* FAQ (bg-soft) is directly followed by cum-începem (bg-soft): drop this section's
     bottom padding so the same-surface pair reads one sp-8 gap, not 2× sp-8 */
  #intrebari { padding-bottom: 0; }
}

/* ===== Polish pass 2026-10-14 — micro-interactions + details (append-only, tokens-only) ===== */
@layer components {
  /* focus ring follows the surface: ink on paper (≥3:1), lime on ink panels */
  .method :focus-visible, .contact :focus-visible, .quoteband :focus-visible,
  .tfeature :focus-visible, .valuestrip :focus-visible, .aud--feature :focus-visible,
  .hero__badge :focus-visible, .cta :focus-visible,
  [style*="background:var(--bg-ink)"] :focus-visible { outline-color: var(--lime); }
  /* inline ink surfaces (cursuri hero + featured course) follow the on-ink icon rule */
  [style*="background:var(--bg-ink)"] .course__meta svg { color: var(--text-on-ink); }
  [style*="background:var(--bg-ink)"] .ic2 { fill: var(--lime); }
  /* email chip sits on --lime-deep: ink-700 2nd tone measured 2.91:1 → paper (3.3:1) */
  .contact__ic--email .ic2 { fill: var(--paper); }

  /* typographic details */
  .step__n { font-variant-numeric: lining-nums tabular-nums; }
  .tcard__hl, .transform__to, .tcta__line, .tseg__title { text-wrap: balance; }
  .tcard blockquote, .tfeature__sub, .tstory__body p { text-wrap: pretty; }

  /* mobile sticky WhatsApp bar — visible by default (no-JS); with JS it rises in after the
     hero and steps aside while #contact / the footer is on screen (main.js .is-on). */
  .js .stickyc { transform: translateY(110%); visibility: hidden;
    transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
  .js .stickyc.is-on { transform: none; visibility: visible;
    transition: transform var(--dur) var(--ease), visibility 0s; }
}

@layer motion {
  /* disclosure content settles in when opened (FAQ + full testimonial story) */
  .faq details[open] > p, .tstory[open] .tstory__body { animation: settleIn 360ms var(--ease) both; }
  @keyframes settleIn {
    from { opacity: 0; transform: translateY(-0.4rem); }
    to   { opacity: 1; transform: none; }
  }
}

/* ===== Testimoniale: clear labelling + readable long stories (2026-10-14) ===== */
.thead { margin-top: var(--sp-7); }
.tsecond__kicker { margin-bottom: var(--sp-4); }
.tstory__h { margin-top: var(--sp-3); font-family: var(--font-mono); font-weight: 700;
  font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.tstory__h:first-child { margin-top: 0; }
.tcard blockquote p + p, .tsecond blockquote p + p { margin-top: 0.75em; }
.tsecond blockquote p + p { text-indent: 0; }

/* ===== On-ink icons: solid lime tile + ink glyph (2026-10-14) =====
   Paper glyph details drawn over the lime 2nd tone measured ~1.3:1 (operator: "very light green
   with white"). On ink surfaces the tile becomes the lime fill and the glyph turns ink: primary
   ink on lime ≈13.9:1, 2nd tone = ink @40% over lime (separates the two tones, ≈6:1 vs primary).
   Same treatment for the paper cards' hover tile. Lime = fill WITH ink (DESIGN.md §3). */
.pillar__ic, .aud--feature .aud__icon { background: var(--lime); color: var(--ink-900); }
.valuestrip svg { box-sizing: content-box; padding: 0.35rem; border-radius: var(--radius);
  background: var(--lime); color: var(--ink-900); }
.method .pillar__ic .ic2, .aud--feature .aud__icon .ic2, .valuestrip svg .ic2,
.aud:hover .aud__icon .ic2 { fill: var(--ink-900); fill-opacity: 0.4; }
