/* Eluneri Technologies - an independent engineering practice.
   Visual language: a well-set working document. Paper, ink green, near-black text,
   a serif for statements, a sans for reading, a mono only for technical captions. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("../fonts/source-serif-4-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; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("../fonts/source-serif-4-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+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: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("../fonts/source-serif-4-cyrillic-opsz-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("../fonts/source-serif-4-cyrillic-ext-opsz-normal.woff2") format("woff2-variations"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-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+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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Metric-matched fallbacks: until the web fonts arrive (slow mobile networks), text is set in a
   local font resized to the same width and line metrics, so the first screen does not jump when they swap in. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 107.3%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 100%; ascent-override: 103.6%; descent-override: 33.5%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback TNR"; src: local("Times New Roman"), local("Liberation Serif"); size-adjust: 111.2%; ascent-override: 93.2%; descent-override: 30.1%; line-gap-override: 0%; }

/* ======================================================================
   Design tokens
   ====================================================================== */
:root {
  /* Brand palette (fixed) */
  --paper: #F5F1E8;
  --forest: #123E31;
  --ink: #17221E;
  --accent: #1B8B63;
  --sand: #E8DECD;
  /* Derived */
  --paper-2: #EFE9DC;
  --sheet: #FFFFFF;
  --muted: #56645D;            /* ≥ 4.5:1 on paper and white */
  --rule: #D5CBB7;             /* warm hairline on paper */
  --rule-sheet: #DCE4DF;       /* hairline on white */
  --mint: #EAF5F0;
  --action: #16825D;           /* accent family, AA with white text */
  --action-hover: #0F6B4C;
  --on-dark: #FFFFFF;
  --on-dark-muted: #BFD3CA;
  --rule-dark: rgba(234, 245, 240, 0.18);
  --danger: #A23B2A;
  --danger-bg: #FBEDEA;
  --warn-bg: #FFF7E6;
  --warn-line: #B88A2E;
  --focus: #1B8B63;

  --serif: "Source Serif 4", "Serif Fallback", "Serif Fallback TNR", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale - perfect fourth, anchored at 17px */
  --t-cap: 0.8125rem;   /* 13 - mono captions */
  --t-sm: 0.9375rem;    /* 15 */
  --t-body: 1.0625rem;  /* 17 */
  --t-lead: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --t-h4: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
  --t-h3: clamp(1.55rem, 1.2rem + 1.2vw, 2.25rem);
  --t-h2: clamp(2.2rem, 1.35rem + 3vw, 4.1rem);
  --t-hero: clamp(2.8rem, 1rem + 6.4vw, 7.1rem);

  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(4rem, 2.6rem + 4.6vw, 7rem);
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.62; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--forest); font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(27, 139, 99, .16); }
.on-dark :focus-visible { outline-color: var(--mint); box-shadow: 0 0 0 5px rgba(234, 245, 240, .18); }

/* Links: a hairline that thickens and turns accent on hover */
a { color: var(--forest); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; transition: background-size .25s var(--ease), color .2s; }
a:hover { color: var(--action); background-size: 100% 2px; }
a.btn, .logo, .nav a, .lang-switch a, .mobile-panel a, a.station, .skip-link, a.no-u { background-image: none; padding-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { 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-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type roles ---------- */
.label, .mono { font-family: var(--mono); font-size: var(--t-cap); line-height: 1.45; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.label-strong { font-family: var(--mono); font-size: var(--t-cap); font-weight: 500; color: var(--forest); }
.h-section { font-family: var(--serif); font-weight: 520; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: "opsz" 60; max-width: 17ch; text-wrap: balance; }
.h-quote { font-family: var(--serif); font-weight: 480; font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.014em; font-variation-settings: "opsz" 48; text-wrap: balance; }
.h-item { font-family: var(--serif); font-weight: 600; font-size: var(--t-h4); line-height: 1.22; letter-spacing: -0.008em; font-variation-settings: "opsz" 32; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* ---------- Grid ----------
   margin (1–3)  |  main (4–9)  |  aside (10–12)           */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.c-margin { grid-column: 1 / span 3; }
.c-main { grid-column: 4 / span 6; }
.c-aside { grid-column: 10 / span 3; }
.c-wide { grid-column: 4 / span 9; }
.c-full { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .c-margin, .c-main, .c-aside, .c-wide, .c-full { grid-column: 1 / -1; }
}

/* ======================================================================
   Signature: the resolve line - a stepped path that straightens and ends
   in the Eluneri dot. Fewer steps further down the page.
   ====================================================================== */
.rl { display: flex; align-items: center; gap: 14px; color: var(--forest); }
.rl-steps { flex: none; height: 22px; width: auto; overflow: visible; }
.rl-steps path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; }
.rl-label { flex: none; font-family: var(--mono); font-size: var(--t-cap); font-weight: 500; color: var(--forest); white-space: nowrap; }
.rl-label span { color: var(--muted); font-weight: 400; margin-left: 10px; }
.rl-line { flex: 1; height: 1.5px; background: currentColor; min-width: 24px; }
.rl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.on-dark .rl { color: var(--mint); }
.on-dark .rl-label { color: #fff; }
.on-dark .rl-label span { color: var(--on-dark-muted); }

.section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 var(--section); }
.section-head { row-gap: 18px; margin: clamp(2.2rem, 1.8rem + 2vw, 4rem) 0 clamp(2.5rem, 2rem + 2.5vw, 4.5rem); align-items: end; }
.section-head .intro { color: var(--muted); max-width: 46ch; font-size: var(--t-body); }
.section-head .c-intro { grid-column: 9 / span 4; padding-bottom: .4em; }
.section-head .c-title { grid-column: 1 / span 8; }
@media (max-width: 960px) { .section-head .c-intro, .section-head .c-title { grid-column: 1 / -1; } }

/* ---------- Margin notes ---------- */
.note { font-size: var(--t-sm); line-height: 1.55; color: var(--muted); padding-left: 16px; position: relative; }
.note::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1.5px; background: var(--forest); }
.note .label { display: block; margin-bottom: 6px; color: var(--forest); }
.note p { margin: 0 0 .5em; }
.on-dark .note::before { background: var(--mint); }
.on-dark .note { color: var(--on-dark-muted); }
.on-dark .note .label { color: #fff; }

/* ======================================================================
   Buttons - the primary action ends in the logo's line and dot
   ====================================================================== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em; border-radius: var(--r); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s, color .2s, transform .12s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-tail { display: inline-flex; align-items: center; flex: none; }
.btn-tail::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
.btn-tail::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn:hover .btn-tail::before { width: 30px; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-primary .btn-tail::after { background: var(--mint); }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest); color: #fff; }
.btn-quiet { background: transparent; color: var(--forest); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--forest); color: var(--forest); background: rgba(255,255,255,.5); }
.btn-light { background: var(--paper); color: var(--forest); }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: var(--t-sm); gap: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.text-link { font-weight: 600; }

/* ======================================================================
   Header & navigation
   ====================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); white-space: nowrap; }
.logo:hover { color: var(--forest); }
.logo-mark { width: 24px; height: 24px; flex: none; }
.logo-mark .lm-path { stroke-dasharray: 30; stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }
.logo:hover .lm-path { animation: lm-redraw .7s var(--ease); }
@keyframes lm-redraw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.logo-word { font-family: var(--serif); font-weight: 620; font-size: 1.375rem; letter-spacing: -0.012em; font-variation-settings: "opsz" 24; }
.logo-sub { font-weight: 450; font-size: var(--t-sm); color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { position: relative; display: block; padding: 10px 10px; color: var(--ink); font-size: .96875rem; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.nav a:hover { color: var(--forest); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); padding: 2px; font-family: var(--mono); font-size: .75rem; }
.lang-switch a { padding: 5px 7px; color: var(--muted); border-radius: 1px; transition: background-color .2s, color .2s; }
.lang-switch a:hover { color: var(--forest); background: rgba(255,255,255,.7); }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--forest); }
.menu-toggle { display: none; }
.mobile-panel { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-header { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: transparent; color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--r); font: inherit; font-weight: 600; font-size: var(--t-sm); cursor: pointer; }
  .menu-toggle .bars { width: 18px; height: 10px; position: relative; }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease), width .25s var(--ease); }
  .menu-toggle .bars::before { top: 0; width: 18px; }
  .menu-toggle .bars::after { top: 8px; width: 12px; }
  .menu-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { top: 4px; width: 18px; transform: rotate(-45deg); }
  .mobile-panel { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); overflow-y: auto; z-index: 59; clip-path: inset(0 0 0 0); transition: clip-path .4s var(--ease); }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel.is-closing { clip-path: inset(0 0 100% 0); }
  .mobile-panel .wrap { padding-top: 12px; padding-bottom: 32px; display: grid; gap: 8px; }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; counter-reset: m; }
  .mobile-panel li { counter-increment: m; }
  .mobile-panel li a { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 500; line-height: 1.15; color: var(--forest); letter-spacing: -0.012em; }
  .mobile-panel li a::before { content: "0" counter(m); font-family: var(--mono); font-size: var(--t-cap); color: var(--muted); font-weight: 400; letter-spacing: 0; }
  .mobile-panel li a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); transition: background-color .2s; }
  .mobile-panel li a:hover::after { background: var(--accent); }
  .mobile-panel .btn { width: 100%; margin-top: 22px; }
  .mobile-panel .lang-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
  @media (prefers-reduced-motion: no-preference) {
    .mobile-panel:not([hidden]) { animation: panel-in .38s var(--ease); }
    @keyframes panel-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  }
}
@media (min-width: 1101px) { .mobile-panel { display: none !important; } }
@media (max-width: 440px) { .logo-sub { display: none; } .header-actions { gap: 10px; } }

/* ======================================================================
   Hero - a typographic statement, then the working diagram
   ====================================================================== */
.hero { padding: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem) 0 0; overflow: hidden; }
.hero-title { font-family: var(--serif); font-size: var(--t-hero); line-height: .96; letter-spacing: -0.032em; font-variation-settings: "opsz" 60; color: var(--forest); margin: 0; }
.hero-title .l1 { display: block; font-weight: 560; }
.hero-title .l2 { display: block; font-weight: 300; color: var(--ink); padding-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
.hero-body { margin-top: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); row-gap: 22px; align-items: start; }
.hero-body .who { padding-top: 8px; display: grid; gap: 2px; }
.hero-body .who b { font-weight: 500; color: var(--forest); }
.hero-body .lead { max-width: 42ch; }
.hero-body .btn-row { margin-top: 2rem; }
@media (max-width: 960px) { .hero-title .l2 { padding-left: 0; margin-top: .06em; } .hero-body .who { order: 2; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-title .l1, .hero-title .l2, .hero-body { animation: rise .9s var(--ease) both; }
  .hero-title .l2 { animation-delay: .08s; }
  .hero-body { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Workflow diagram (interactive) ---------- */
.wf { margin-top: clamp(2.6rem, 2rem + 2.6vw, 4.2rem); background: var(--sheet); border: 1px solid var(--rule); border-bottom: 0; position: relative; }
.wf::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(18, 62, 49, .08) 1px, transparent 1.2px); background-size: 16px 16px; pointer-events: none; }
.wf-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 22px; border-bottom: 1px solid var(--rule-sheet); background: rgba(255,255,255,.88); }
.wf-bar .label-strong { display: inline-flex; gap: 10px; align-items: center; }
.wf-bar .label-strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--forest); border-radius: var(--r); padding: 2px; }
.seg::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); background: var(--forest); border-radius: 1px; transition: transform .35s var(--ease); }
.seg[data-active="could"]::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; font: inherit; font-size: var(--t-sm); font-weight: 600; padding: 8px 18px; min-height: 40px; border: 0; background: transparent; color: var(--forest); cursor: pointer; transition: color .25s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: #fff; }
.wf-hint { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.wf-stage { position: relative; height: 262px; }
.wf-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wf-svg .p-base { fill: none; stroke: var(--rule-sheet); stroke-width: 1; }
.wf-svg .p-main { fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wf-svg .p-dup { fill: none; stroke: #A0612B; stroke-width: 1.3; stroke-dasharray: 4 5; stroke-linecap: round; }
.wf-tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-family: var(--mono); font-size: .75rem; color: #8A4B1C; background: rgba(255,255,255,.94); padding: 1px 6px; border: 1px dashed #D9B98F; border-radius: var(--r); white-space: nowrap; pointer-events: none; }
.wf-end { position: absolute; right: -5px; top: 46%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.3); transition: opacity .3s, transform .5s var(--ease); }
.wf-end.is-on { opacity: 1; transform: none; }
/* no-JS / reduced-motion fallback: the "could be" state is a static straight line */
.wf:not(.is-live)[data-mode="could"] .p-main { d: path("M0 138 H1000"); }
.wf-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; margin-left: auto; border: 1px solid var(--rule-sheet); border-radius: var(--r); background: #fff; font: inherit; font-size: var(--t-sm); font-weight: 550; color: var(--forest); cursor: pointer; transition: border-color .2s, color .2s; }
.wf-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.wf-replay:hover { border-color: var(--forest); }
.wf-replay:hover svg { transform: rotate(-120deg); }
.wf-replay[aria-disabled="true"] { color: var(--muted); cursor: default; }
.wf-replay[aria-disabled="true"]:hover svg { transform: none; }
.wf:not(.is-live) .wf-replay { display: none; }
.wf-hint { margin-left: 0; }

.stations { list-style: none; margin: 0; padding: 0; }
.station { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -14px); display: grid; justify-items: center; gap: 4px; min-width: 120px; padding: 0; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: center; cursor: pointer; }
.station .st-node { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sheet); border: 1.5px solid var(--forest); font-family: var(--mono); font-size: .75rem; color: var(--forest); transition: background-color .35s, color .35s, transform .25s var(--ease), border-color .35s, box-shadow .35s; }
.station.is-resolved .st-node { border-color: var(--accent); color: var(--action); }
.station .st-name { margin-top: 8px; font-weight: 650; font-size: 1rem; color: var(--forest); line-height: 1.2; }
.station .st-state { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.station:hover .st-node { transform: scale(1.12); }
.station[aria-current="true"] .st-node { background: var(--forest); color: #fff; box-shadow: 0 0 0 5px rgba(27, 139, 99, .18); }
.station.is-manual .st-state { color: #8A4B1C; }
.station.is-manual.is-resolved .st-node { border-style: dashed; border-color: var(--muted); color: var(--muted); }
.station.is-manual .st-name { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: transparent; transition: text-decoration-color .4s, color .4s; }
.station.is-manual.is-resolved .st-name { text-decoration-color: currentColor; color: var(--muted); }
.station.is-resolved .st-state { color: var(--action); }
.station.is-resolved[aria-current="true"] .st-node { background: var(--accent); border-color: var(--accent); border-style: solid; color: #fff; }
.st-state { display: grid; }
.st-state [data-when] { grid-area: 1 / 1; transition: opacity .3s .16s, transform .4s var(--ease) .16s; }
.st-state [data-when="could"], .station.is-resolved .st-state [data-when="now"] { opacity: 0; transform: translateY(-4px); transition-duration: .14s; transition-delay: 0s; }
.station.is-resolved .st-state [data-when="could"] { opacity: 1; transform: none; transition: opacity .3s .16s, transform .4s var(--ease) .16s; }
.wf:not(.is-live)[data-mode="could"] .st-state [data-when="now"] { opacity: 0; }
.wf:not(.is-live)[data-mode="could"] .st-state [data-when="could"] { opacity: 1; transform: none; }
.station:focus-visible { outline: none; box-shadow: none; }
.station:focus-visible .st-node { outline: 2px solid var(--focus); outline-offset: 4px; }

.wf-detail { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px var(--gap); padding: 20px 22px 24px; border-top: 1px solid var(--rule-sheet); background: var(--sheet); }
.wf-detail .label { padding-top: 4px; }
.wf-detail p { font-family: var(--serif); font-size: var(--t-h4); line-height: 1.4; color: var(--ink); max-width: 52ch; font-variation-settings: "opsz" 24; font-weight: 420; }
.wf-detail [data-text] { display: none; }
.wf-detail [data-text].is-shown { display: block; }
@media (prefers-reduced-motion: no-preference) { .wf-detail [data-text].is-shown { animation: fade .35s var(--ease); } @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } }
.wf-foot { position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--rule-sheet); font-size: var(--t-sm); color: var(--muted); background: #FBFAF6; }
@media (prefers-reduced-motion: reduce) { .seg::before, .st-state [data-when], .wf-end { transition: none; } }
@media (max-width: 760px) {
  .wf-bar { padding: 14px 16px; }
  .wf-hint { order: 3; width: 100%; }
  .wf-replay { margin-left: 0; min-height: 44px; min-width: 44px; justify-content: center; }
  .wf-replay span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wf-stage { height: 138px; }
  .wf-tag { display: none; }
  .station { min-width: 56px; transform: translate(-50%, -14px); }
  .station .st-name, .station .st-state { display: none; }
  .station::after { content: ""; position: absolute; left: 50%; top: -8px; width: 44px; height: 44px; transform: translateX(-50%); }
  .wf-detail { grid-template-columns: 1fr; padding: 16px; }
  .wf-detail .label { color: var(--forest); font-weight: 500; }
  .wf-foot { padding: 12px 16px; }
}


/* ======================================================================
   01 Situations - quotes with hanging punctuation
   ====================================================================== */
.situations { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.situation { position: relative; padding: clamp(1.8rem, 1.3rem + 1.6vw, 2.9rem) 0; border-top: 1px solid var(--rule); row-gap: 14px; }
.situation:last-child { border-bottom: 1px solid var(--rule); }
.situation .meta { display: grid; gap: 6px; align-content: start; padding-top: .55em; }
.situation .meta .label-strong { font-size: .875rem; }
.situation .h-quote { text-indent: -0.42em; transition: color .25s; }
.situation:hover .h-quote { color: var(--ink); }
.situation .answer { margin-top: 1rem; max-width: 56ch; }
.situation .go { padding-top: .55em; justify-self: start; }
.situation .go a { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.situation .go a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.situation details { margin-top: 1.1rem; }
.situation summary { cursor: pointer; font-weight: 600; color: var(--forest); display: inline-flex; gap: 12px; align-items: center; list-style: none; padding: 4px 0; }
.situation summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; border: 1.5px solid var(--forest); border-radius: 50%; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1.5px; background: var(--forest); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.how { margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; border-top: 1.5px solid var(--forest); }
.how div { padding: 12px 0 2px; font-size: var(--t-sm); line-height: 1.55; }
.how dt { font-family: var(--mono); font-size: var(--t-cap); color: var(--muted); margin-bottom: 4px; }
.how dd { margin: 0; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } .how div + div { border-top: 1px solid var(--rule); } }
@media (max-width: 960px) { .situation .meta { padding-top: 0; display: flex; gap: 14px; flex-wrap: wrap; } .situation .h-quote { text-indent: 0; } }

/* smooth disclosure where supported */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  details[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { details::details-content { transition: none; } }
}


/* ======================================================================
   03 Diagnostic band - the report is the centrepiece, and it breaks out
   of the band into the next section
   ====================================================================== */
.band-dark { background: var(--forest); color: var(--on-dark); padding-bottom: 0; position: relative; }
.band-dark .h-section, .band-dark h3 { color: #fff; }
.band-dark .muted, .band-dark .label, .band-dark .section-head .intro { color: var(--on-dark-muted); }
.band-dark a:not(.btn) { color: #fff; }
.band-dark .btn-light, .band-dark .btn-light:hover { color: var(--forest); }
.diag-layout { row-gap: 36px; align-items: start; }
.diag-text { grid-column: 1 / span 5; display: grid; gap: 26px; align-content: start; padding-bottom: var(--section); }
.diag-text .lead { color: #fff; }
.diag-sheet { grid-column: 6 / span 7; position: relative; z-index: 2; margin-bottom: calc(-1 * clamp(6rem, 4rem + 8vw, 11rem)); }
@media (max-width: 960px) { .diag-text, .diag-sheet { grid-column: 1 / -1; } .diag-text { padding-bottom: 0; } }
.steps-plain { list-style: none; margin: 0; padding: 0; position: relative; }
.steps-plain li { position: relative; display: grid; grid-template-columns: 2.6rem 1fr; gap: 8px; padding: 0 0 18px; }
.steps-plain li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 1.5px; background: var(--rule-dark); }
.steps-plain li:last-child::before { display: none; }
.steps-plain .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--mint); display: grid; place-items: center; font-family: var(--mono); font-size: .75rem; color: var(--mint); }
.steps-plain li:last-child .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps-plain b { color: #fff; font-weight: 600; }
.steps-plain p { margin: 2px 0 0; color: var(--on-dark-muted); font-size: 1rem; }
.sheet-frame .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-clip { position: relative; max-height: 860px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0,0,0,.04); transition: max-height .6s var(--ease); background: #fff; }
.sheet-clip.is-open { max-height: 9000px; }
.sheet-clip:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255,255,255,0), #fff 82%); pointer-events: none; }
.sheet-clip .report-web { border: 0; border-radius: 0; }
.sheet-actions { display: inline-flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(234,245,240,.5); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.after-overlap { padding-top: calc(clamp(6rem, 4rem + 8vw, 11rem) + 3.5rem); }
@media (max-width: 960px) { .diag-sheet { margin-bottom: -5rem; } .after-overlap { padding-top: 9rem; } .sheet-clip { max-height: 640px; } }

/* ======================================================================
   04 Process - a staircase that resolves into a straight line
   ====================================================================== */
.stairs { list-style: none; margin: 0; padding: 0; --u: clamp(22px, 5.4vw, 84px); }
.stairs li { display: grid; grid-template-columns: calc(var(--i) * var(--u)) var(--u) minmax(0, 1fr); }
.stairs .tread { border-top: 1.5px solid var(--forest); padding-top: 12px; font-family: var(--serif); font-size: clamp(1.1rem, .9rem + 1vw, 1.75rem); font-weight: 500; color: var(--forest); line-height: 1; font-variation-settings: "opsz" 48; }
.stairs .riser { border-left: 1.5px solid var(--forest); padding: 0 0 clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem) clamp(16px, 2vw, 28px); max-width: 64ch; }
.stairs .riser h3 { margin-top: -0.32em; }
.stairs .riser p { margin-top: 8px; color: var(--ink); }
.stairs .resolved { display: grid; grid-template-columns: calc(5 * var(--u)) minmax(0, 1fr); align-items: start; }
.stairs .resolved .end { display: flex; align-items: center; border-top: 0; }
.stairs .resolved .end::before { content: ""; flex: 1; height: 1.5px; background: var(--forest); }
.stairs .resolved .end::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 0; }
.stairs .resolved .end { margin-top: -0.75px; }
.stairs-note { margin-top: 26px; display: grid; grid-template-columns: calc(5 * var(--u)) minmax(0, 1fr); }
.stairs-note .note { grid-column: 2; max-width: 48ch; }
@media (max-width: 600px) { .stairs-note { grid-template-columns: 1fr; } .stairs-note .note { grid-column: 1; } }

/* ======================================================================
   05 About
   ====================================================================== */
.about-grid { row-gap: 32px; align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; max-width: 300px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait .ph-mark svg { width: 46%; height: auto; color: var(--forest); opacity: .75; }
.portrait .ph { position: absolute; left: 12px; bottom: 10px; }
.about-lead { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; font-weight: 400; color: var(--ink); letter-spacing: -0.012em; font-variation-settings: "opsz" 40; max-width: 26ch; text-wrap: balance; }
.principles { margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--forest); }
.principles div { padding: 16px 20px 4px 0; }
.principles div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.principles dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--forest); margin-bottom: 6px; }
.principles dd { margin: 0; font-size: var(--t-sm); }
.about-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: start; }
.about-foot .note { max-width: 48ch; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ======================================================================
   06 FAQ - sticky heading, calm accordion
   ====================================================================== */
.faq-grid { row-gap: 28px; align-items: start; }
.faq-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { grid-column: 6 / span 7; border-top: 1.5px solid var(--forest); }
@media (max-width: 960px) { .faq-head, .faq { grid-column: 1 / -1; position: static; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.4rem 1fr 18px; gap: 10px; align-items: baseline; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-n { font-family: var(--mono); font-size: var(--t-cap); color: var(--muted); }
.faq summary .q-t { font-family: var(--serif); font-size: var(--t-h4); font-weight: 520; color: var(--forest); line-height: 1.3; transition: color .2s; font-variation-settings: "opsz" 28; }
.faq summary:hover .q-t { color: var(--ink); }
.faq summary .plus { align-self: center; }
.faq .answer { padding: 0 0 24px 2.4rem; margin-left: 10px; max-width: 62ch; }
@media (max-width: 560px) { .faq .answer { padding-left: 0; margin-left: 0; } }

/* ======================================================================
   07 Contact - the resolved line: a quiet, precise form
   ====================================================================== */
.contact-grid { row-gap: 32px; align-items: start; }
.contact-side { grid-column: 1 / span 4; display: grid; gap: 28px; }
.contact-form { grid-column: 6 / span 7; }
@media (max-width: 960px) { .contact-side, .contact-form { grid-column: 1 / -1; } }
.contact-facts { margin: 0; display: grid; gap: 0; border-top: 1.5px solid var(--forest); }
.contact-facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.contact-facts dt { font-family: var(--mono); font-size: var(--t-cap); color: var(--muted); }
.contact-facts dd { margin: 0; }
.form-sheet { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(22px, 3.2vw, 44px); position: relative; }
.form-sheet::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--forest); }

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; margin-bottom: 26px; }
.field label, .field legend, .q-label { font-weight: 600; color: var(--ink); font-size: 1rem; }
.hint, .field .hint { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.input, .textarea, .select { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #FBFAF7; border: 0; border-bottom: 1.5px solid #9FA89F; border-radius: var(--r) var(--r) 0 0; padding: 12px 12px; min-height: 50px; transition: border-color .2s, background-color .2s, box-shadow .25s var(--ease); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:hover, .textarea:hover { border-bottom-color: var(--forest); background: #F8F6F0; }
.input:focus, .textarea:focus { outline: none; }
.input:focus-visible, .textarea:focus-visible { outline: none; background: #fff; border-bottom-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent), 0 0 0 4px rgba(27, 139, 99, .12); }
.input::placeholder, .textarea::placeholder { color: #8C968F; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-bottom-color: var(--danger); box-shadow: inset 0 -2px 0 var(--danger); }
.input:disabled, .textarea:disabled { opacity: .6; cursor: not-allowed; }
.field-error { color: var(--danger); font-size: var(--t-sm); font-weight: 550; margin: 0; display: flex; gap: 8px; align-items: center; }
.field-error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.field-error[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--mint); color: var(--ink); font-size: 1rem; line-height: 1.5; border-left: 2px solid var(--accent); }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--action); }
.notice-demo { background: var(--warn-bg); border-left-color: var(--warn-line); }
.notice-demo svg { color: #8A6418; }
.notice-error { background: var(--danger-bg); border-left-color: var(--danger); }
.notice-error svg { color: var(--danger); }
.notice p { margin: 0; }
.notice .btn { margin-top: 10px; }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.placeholder { font-style: normal; color: #7A5A12; background-image: none; border-bottom: 1px dashed currentColor; }
.on-dark .placeholder, .site-footer .placeholder { color: #F2D9A0; }

/* ======================================================================
   Footer - the long resolved line
   ====================================================================== */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 0 0 32px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer .logo-sub { color: var(--on-dark-muted); }
.footer-line { padding: 46px 0 40px; color: var(--mint); }
.footer-line .rl-line { height: 1px; opacity: .6; }
.footer-statement { font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.15rem); font-weight: 400; line-height: 1.18; color: #fff; letter-spacing: -0.012em; max-width: 36ch; text-wrap: balance; margin: 0 0 40px; font-variation-settings: "opsz" 48; }
.footer-grid { row-gap: 32px; }
.footer-grid .f1 { grid-column: 1 / span 4; } .footer-grid .f2 { grid-column: 5 / span 4; } .footer-grid .f3 { grid-column: 9 / span 4; }
@media (max-width: 960px) { .footer-grid .f1, .footer-grid .f2, .footer-grid .f3 { grid-column: 1 / -1; } }
.footer-grid h2 { font-family: var(--mono); font-size: var(--t-cap); font-weight: 500; color: #fff; margin-bottom: 12px; }
.footer-grid dl { margin: 0; display: grid; gap: 6px; }
.footer-grid dl div { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-grid dd { margin: 0; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-family: var(--mono); font-size: var(--t-cap); }

/* ---------- Simple pages ---------- */
.page-head { padding: clamp(2.4rem, 1.8rem + 3vw, 4.5rem) 0 clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.page-head h1 { font-family: var(--serif); font-weight: 520; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -0.024em; font-variation-settings: "opsz" 60; max-width: 16ch; }
.page-head .lead { margin-top: 1.1rem; color: var(--muted); max-width: 56ch; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-weight: 560; font-size: 1.7rem; margin: 2.2em 0 .6em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } }
.btn { max-width: 100%; }


/* ---------- 404: a path that stops short ---------- */
.nf { padding: clamp(3rem, 2rem + 5vw, 7rem) 0 var(--section); }
.nf-line { display: flex; align-items: center; gap: 0; color: var(--forest); }
.nf-line .rl-steps { height: 30px; width: auto; }
.nf-gap { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--forest) 0 6px, transparent 6px 12px); opacity: .5; margin: 0 18px; }
.nf-code { font-family: var(--serif); font-size: clamp(4rem, 2rem + 9vw, 10rem); font-weight: 300; line-height: .8; color: var(--forest); letter-spacing: -0.04em; font-variation-settings: "opsz" 60; }
.nf-title { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); font-family: var(--serif); font-weight: 520; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: "opsz" 60; max-width: 16ch; }
.nf-langs { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--forest); }
.nf-lang { padding: 18px 24px 4px 0; }
.nf-lang + .nf-lang { padding-left: 24px; border-left: 1px solid var(--rule); }
.nf-h { font-family: var(--serif); font-size: 1.2rem; font-weight: 560; color: var(--forest); }
.nf-lang ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.nf-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.nf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 760px) { .nf-langs { grid-template-columns: 1fr; } .nf-lang + .nf-lang { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Pricing */
.pk-grid { list-style: none; margin: clamp(2rem, 1.6rem + 2vw, 3.4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--forest); }
.pk { padding: 26px 22px 24px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.pk:first-child { border-left: 0; padding-left: 0; }
.pk-title { margin: 0; }
.pk-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; min-height: 2.6rem; }
.pk-amount { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--forest); line-height: 1.1; }
.pk-from { color: var(--muted, #56645D); font-size: var(--t-sm); }
.pk-free .pk-amount { color: var(--action); }
.pk-text { margin: 0; font-size: .9375rem; }
.pk-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9375rem; }
.pk-points li { padding-left: 18px; position: relative; }
.pk-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--action); }
.pk-foot { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 20px; }
.pk-foot .hint { margin: 0; }
@media (max-width: 1000px) { .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk:nth-child(3) { border-left: 0; padding-left: 0; } .pk:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 600px) { .pk-grid { grid-template-columns: 1fr; } .pk { border-left: 0; padding-left: 0; padding-right: 0; } .pk + .pk { border-top: 1px solid var(--rule); } }

/* Booking card in the contact section */
.book-card { margin-top: 28px; padding: 22px 22px 18px; background: var(--forest); color: #fff; }
.book-card h3 { color: #fff; margin: 0 0 6px; }
.book-card p { color: #E2EEE8; margin: 0 0 10px; }
.book-card .book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 0; }
.book-card .btn-primary { background: #fff; color: var(--forest); border-color: #fff; }
.book-card .hint { color: #CFE3D8; }

/* Legal pages */
.legal-date { margin-top: 10px; }
.terms-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.terms-list > li { margin: 0 0 6px; }
.status-wait { color: var(--forest); }
.portrait-fig { margin: 0; }
.portrait-fig figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: .9375rem; }
.portrait-fig figcaption strong { color: var(--forest); font-weight: 600; }
.portrait-fig figcaption span { color: var(--muted, #56645D); font-size: var(--t-sm); }


/* Cookie consent banner */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; margin: 0 auto; max-width: 42rem; background: #FFFFFF; color: #17221E; border: 1px solid rgba(23,34,30,.14); border-radius: 12px; box-shadow: 0 10px 30px rgba(23,34,30,.18); padding: 1rem 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cookie-banner p { margin: 0; flex: 1 1 18rem; font-size: .95rem; line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie-banner[hidden] { display: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }


/* What-we-do (services) block */
.offer-grid { list-style: none; margin: clamp(1.6rem,1.2rem + 2vw,3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.offer-card { padding: 1.1rem 1.15rem; border: 1px solid rgba(23,34,30,.12); border-radius: 12px; background: rgba(255,255,255,.45); }
.offer-card h3 { margin: 0 0 .45rem; }
.offer-card p { margin: 0; color: #4a564f; font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }



/* Concise tasks, independent founder projects and invitation-only diagnostic. */
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.case-card { min-width: 0; background: var(--sheet); border: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 24px); }
.case-top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 16px 20px; }
.case-status { color: var(--muted); font-size: .75rem; }
.case-visual { margin: 0; border-block: 1px solid var(--rule-sheet); background: var(--paper-2); }
.case-visual a { display: block; }
.case-visual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-visual figcaption { padding: 7px 20px; font-size: .75rem; color: var(--muted); background: var(--sheet); }
.case-body { padding: 22px 24px 24px; }
.case-body > .h-item { font-size: clamp(1.35rem, 1rem + .65vw, 1.8rem); margin-bottom: 18px; overflow-wrap: anywhere; }
.case-facts { display: grid; gap: 12px; margin: 0; }
.case-facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
.case-facts dt { color: var(--muted); font-family: var(--mono); font-size: .75rem; padding-top: 3px; }
.case-facts dd { margin: 0; font-size: .9375rem; line-height: 1.5; }
.case-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule-sheet); font-size: .875rem; }
.portfolio-more { margin-top: 28px; border-block: 1px solid var(--rule); }
.portfolio-more summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--forest); list-style: none; }
.portfolio-more summary::-webkit-details-marker { display: none; }
.portfolio-more ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; list-style: none; margin: 0; padding: 0 0 20px; }
.portfolio-more a { overflow-wrap: anywhere; }
.portfolio-all { margin: 20px 0 0; }
.invite-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.invite-explanation > p { margin: 0 0 20px; }
.invite-explanation .lead { color: var(--on-dark); }
.invite-explanation .hint { color: var(--on-dark-muted); }
.invite-preview { background: var(--sheet); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-top: 3px solid var(--accent); }
.on-dark .invite-preview .h-item { color: var(--forest); margin: 14px 0 20px; }
.invite-preview > .label { color: var(--muted); }
.preview-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0 0 20px; }
.preview-scores > div { border-top: 1px solid var(--rule-sheet); padding-top: 12px; min-width: 0; }
.preview-scores dt { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.preview-scores dd { margin: 4px 0 0; color: var(--forest); font-family: var(--serif); font-size: 2rem; line-height: 1.2; }
.preview-scores dd span { font-family: var(--sans); font-size: .875rem; color: var(--muted); }
.preview-time { grid-column: 1 / -1; }
.invite-preview > p { font-size: .9375rem; }
.on-dark .invite-preview .text-link { color: var(--forest); }
.home-projects.section, .home-diagnostic.section { padding-bottom: clamp(3rem, 5vw, 5rem); }
.about-grid .about-lead { max-width: 48ch; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1.4; }
@media (max-width: 760px) {
  .case-grid, .invite-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .case-body { padding: 20px; }
  .case-top { padding: 14px 20px; }
  .case-facts > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .case-facts dt { padding: 0; }
  .portfolio-more ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .menu-toggle { padding-inline: 10px; }
  .menu-toggle [data-menu-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
