/* ===== fonts.css ===== */
/* ============================================================
   Soul8 — Fonts (self-hosted for Cloudflare Pages)
   Editorial pairing: Spectral (serif display), Hanken Grotesk (UI/body),
   Spline Sans Mono (technical labels). Generated by build-fonts.mjs —
   latin + latin-ext subsets only. Do not edit by hand.
   ============================================================ */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-400-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-400-800-latin.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: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-italic-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/spectral-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/spectral-300-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/spectral-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/spectral-600-latin.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: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/spectral-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/spectral-700-latin.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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/spline-sans-mono-400-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/spline-sans-mono-400-500-latin.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;
}

:root {
  --font-serif: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-display: var(--font-serif);
  --font-body: var(--font-sans);
  --font-eyebrow: var(--font-sans);
  --font-code: var(--font-mono);
}


/* ===== colors.css ===== */
/* ============================================================
   Soul8 — Color
   The canonical Soul8 surface is LIGHT and editorial: a warm ivory
   canvas, navy ink, soft-gold accents, and sandy warm neutrals.
   Navy is used as a deliberate, sparing "anchor" surface (footer,
   one feature band) — never as the default page background.
   (The old site forced everything dark with !important overrides;
   that layer is intentionally retired here.)
   ============================================================ */

:root {
  /* ---- Base palette ---- */
  --c-ivory:        #F6F1E8;  /* warm ivory — primary canvas */
  --c-ivory-deep:   #EFE9DD;  /* slightly deeper ivory — alt band */
  --c-paper:        #FFFFFF;  /* card / form surface */
  --c-sand:         #D8C3A5;  /* warm neutral — frames, rules, decor */
  --c-sand-soft:    #E7DCC9;  /* tint of sand for soft fills */

  --c-navy:         #0E1A2B;  /* midnight navy — ink & anchor surface */
  --c-navy-700:     #1B2A3E;  /* raised navy (cards on navy) */
  --c-navy-500:     #2B3A4D;  /* navy tint — secondary headings */
  --c-charcoal:     #2B2B2B;  /* body text on light */
  --c-slate:        #5A6573;  /* muted secondary text (AA on ivory) */
  --c-slate-light:  #8A93A0;  /* tertiary / captions */

  --c-gold:         #C6A86A;  /* soft gold — decorative accent, on-dark */
  --c-gold-deep:    #8F6E22;  /* deep gold — AA-capable accent text on light */
  --c-gold-soft:    #EFE3C7;  /* gold wash — highlight fills */

  /* Status (muted, editorial) */
  --c-success:      #2E6F4E;
  --c-success-bg:   #E3F0E8;
  --c-error:        #9B2D2D;
  --c-error-bg:     #F5E2E0;
  --c-info:         #2B5170;
  --c-info-bg:      #E2ECF3;

  /* ---- Semantic surfaces ---- */
  --surface-canvas:   var(--c-ivory);     /* page background */
  --surface-alt:      var(--c-ivory-deep);/* alternating band */
  --surface-card:     var(--c-paper);     /* cards, forms, dialogs */
  --surface-ink:      var(--c-navy);      /* anchor band, footer, hero overlay */
  --surface-ink-raised: var(--c-navy-700);/* raised element on ink */
  --surface-sand:     var(--c-sand-soft); /* warm soft fill (tags, callouts) */

  /* ---- Semantic text ---- */
  --text-primary:     var(--c-navy);      /* headings, strong text */
  --text-secondary:   var(--c-navy-500);  /* sub-headings */
  --text-body:        var(--c-charcoal);  /* body copy */
  --text-muted:       var(--c-slate);     /* secondary / supporting */
  --text-caption:     var(--c-slate-light);
  --text-on-ink:      var(--c-ivory);     /* text on navy surface */
  --text-on-ink-muted:#C5CCD6;            /* muted text on navy */
  --text-accent:      var(--c-gold-deep); /* accent text on light (AA) */
  --text-accent-ink:  var(--c-gold);      /* accent text on navy */

  /* ---- Borders & lines ---- */
  --border-hairline:  rgba(14, 26, 43, 0.10);
  --border-soft:      rgba(14, 26, 43, 0.16);
  --border-strong:    var(--c-navy);
  --border-sand:      var(--c-sand);
  --border-on-ink:    rgba(246, 241, 232, 0.16);

  /* ---- Interactive ---- */
  --link:             var(--c-navy);
  --link-hover:       var(--c-gold-deep);
  --accent:           var(--c-gold);
  --accent-strong:    var(--c-gold-deep);
  --focus-ring:       var(--c-gold-deep);

  /* Selection */
  --selection-bg:     var(--c-navy);
  --selection-fg:     var(--c-ivory);
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }


/* ===== typography.css ===== */
/* ============================================================
   Soul8 — Typography scale
   Editorial rhythm: large serif display, comfortable sans body,
   tracked-uppercase sans eyebrows, mono for technical reference.
   Sizes use clamp() for fluid display headings; body is fixed.
   ============================================================ */

:root {
  /* ---- Weights ---- */
  --fw-light:   300; /* @kind font */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-black:   800; /* @kind font */

  /* ---- Line heights ---- */
  --lh-tight:   1.08;   /* @kind font */
  --lh-snug:    1.22;   /* @kind font */
  --lh-normal:  1.5;    /* @kind font */
  --lh-relaxed: 1.7;    /* @kind font */

  /* ---- Letter spacing ---- */
  --ls-tight:   -0.02em; /* @kind font */
  --ls-snug:    -0.01em; /* @kind font */
  --ls-normal:  0;       /* @kind font */
  --ls-wide:    0.08em;  /* @kind font */
  --ls-wider:   0.16em;  /* @kind font */

  /* ---- Fluid display sizes ---- */
  --fs-display:  clamp(2.75rem, 1.6rem + 4.6vw, 5rem);   /* @kind other */
  --fs-h1:       clamp(2.25rem, 1.5rem + 3vw, 3.5rem); /* @kind other */
  --fs-h2:       clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); /* @kind other */
  --fs-h3:       clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); /* @kind other */
  --fs-h4:       1.2rem;

  /* ---- Fixed text sizes ---- */
  --fs-lead:     1.25rem;  /* intro paragraph */
  --fs-body-lg:  1.125rem; /* prose */
  --fs-body:     1rem;     /* default UI/body */
  --fs-sm:       0.9375rem;
  --fs-xs:       0.8125rem; /* eyebrows, captions, labels */
  --fs-2xs:      0.6875rem; /* tiny meta / mono codes */
}

/* ============================================================
   Optional helper classes — used by specimen cards & kits.
   Components reference the tokens above directly.
   ============================================================ */

.t-eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-accent);
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

.t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

.t-lead {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.t-body {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

.t-mono {
  font-family: var(--font-code);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-snug);
}


/* ===== spacing.css ===== */
/* ============================================================
   Soul8 — Spacing, radii, shadows, layout, motion
   Soft, calm, editorial. 4px base grid. Generous section padding.
   Shadows are navy-tinted and low — never heavy drop shadows.
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0:  0;
  --space-1:  0.25rem;  /* 4  */
  --space-2:  0.5rem;   /* 8  */
  --space-3:  0.75rem;  /* 12 */
  --space-4:  1rem;     /* 16 */
  --space-5:  1.5rem;   /* 24 */
  --space-6:  2rem;     /* 32 */
  --space-7:  2.5rem;   /* 40 */
  --space-8:  3rem;     /* 48 */
  --space-9:  4rem;     /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-11: 6rem;     /* 96 */
  --space-12: 8rem;     /* 128 */

  /* Section rhythm */
  --section-y:       clamp(4rem, 2.5rem + 6vw, 8rem); /* @kind spacing */
  --section-y-tight: clamp(3rem, 2rem + 4vw, 5rem); /* @kind spacing */

  /* ---- Layout ---- */
  --container-max:   1240px;  /* standard content width */
  --container-wide:  1440px;  /* hero / full layouts */
  --container-prose: 760px;   /* legal & article reading width */
  --gutter:          clamp(1.25rem, 0.5rem + 3vw, 4rem); /* @kind spacing */
  --header-h:        4.75rem;

  /* ---- Radii ---- */
  --radius-xs:   2px;
  --radius-sm:   4px;   /* buttons, inputs, tags */
  --radius-md:   8px;   /* cards, dialogs */
  --radius-lg:   14px;  /* large panels, media */
  --radius-pill: 999px;

  /* ---- Borders ---- */
  --bw-hairline: 1px;
  --bw-strong:   1.5px;

  /* ---- Shadows (navy-tinted, low) ---- */
  --shadow-xs: 0 1px 2px rgba(14, 26, 43, 0.06);
  --shadow-sm: 0 4px 14px rgba(14, 26, 43, 0.06);
  --shadow-md: 0 14px 32px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, 0.12);
  --shadow-ink: 0 24px 60px rgba(0, 0, 0, 0.35); /* for navy surfaces */

  /* ---- Motion ---- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-soft:  cubic-bezier(0.22, 0.61, 0.36, 1); /* @kind other */
  --dur-fast:   0.18s; /* @kind other */
  --dur-base:   0.3s;  /* @kind other */
  --dur-slow:   0.6s;  /* @kind other */
  --transition: all var(--dur-base) var(--ease-out); /* @kind other */
}


/* ===== base.css ===== */
/* ============================================================
   Soul8 — Base element defaults
   Applied wherever styles.css is linked. Keeps specimen cards,
   UI kits and consumer pages consistent out of the box.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background-color: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--link); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--link-hover); }

strong, b { font-weight: var(--fw-semibold); }

small { font-size: var(--fs-xs); }

hr { border: none; border-top: var(--bw-hairline) solid var(--border-hairline); margin: var(--space-6) 0; }

img, picture, svg, video { max-width: 100%; display: block; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--selection-bg); color: var(--selection-fg); }

/* Reading width helper for prose / legal pages */
.prose { max-width: var(--container-prose); }
.prose p { font-size: var(--fs-body-lg); color: var(--text-body); margin-bottom: 1.25em; }
.prose h2 { font-size: var(--fs-h3); margin: 2em 0 0.5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}


/* ===== kit.css ===== */
/* Soul8 website UI-kit layout — composes the design-system tokens.
   Only layout/scaffold lives here; visuals come from styles.css tokens. */

.site { min-height: 100%; display: flex; flex-direction: column; background: var(--surface-canvas); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: var(--section-y-tight); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(246,241,232,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); width: 100%; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.site-nav__links { display: flex; gap: var(--space-6); }
.site-nav__link {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--text-muted); position: relative; padding: 0.3rem 0;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.site-nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--c-gold); transition: width var(--dur-base) var(--ease-out);
}
.site-nav__link:hover { color: var(--text-primary); }
.site-nav__link:hover::after, .site-nav__link[aria-current="true"]::after { width: 100%; }
.site-nav__link[aria-current="true"] { color: var(--text-primary); }
.lang { display: flex; align-items: center; gap: 0.4rem; padding-left: var(--space-5); border-left: 1px solid var(--border-hairline); }
.lang button { background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: 0.08em; color: var(--text-caption); padding: 0.25rem 0.4rem; border-radius: var(--radius-xs); }
.lang button[aria-pressed="true"] { color: var(--c-ivory); background: var(--c-navy); }

/* Mobile nav toggle (hamburger) */
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle__bars { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 18px; }
.nav-toggle__bars i { display: block; height: 2px; width: 100%; background: var(--c-navy); border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.nav-toggle__bars.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle__bars.is-open i:nth-child(2) { opacity: 0; }
.nav-toggle__bars.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); align-items: center; padding-block: var(--space-10) var(--section-y); }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: var(--space-5) 0 var(--space-5); }
.hero__sub { font-size: var(--fs-lead); color: var(--text-muted); line-height: var(--lh-relaxed); max-width: 34ch; margin-bottom: var(--space-7); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media .frame { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content:''; position:absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--c-sand); border-radius: var(--radius-md); z-index: -1; }

/* Trust band */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.trust__item { padding-block: var(--space-7); }
.trust__k { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-primary); margin-bottom: 0.2rem; }
.trust__v { font-size: var(--fs-sm); color: var(--text-muted); }

/* Section header */
.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head h2 { font-size: var(--fs-h2); margin: var(--space-4) 0 var(--space-4); }
.section-head p { font-size: var(--fs-body-lg); color: var(--text-muted); margin: 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* Silo / service hero */
.silo-hero { position: relative; background: var(--surface-ink); color: var(--text-on-ink); overflow: hidden; padding-block: var(--space-11) var(--space-10); }
.silo-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(40%); }
.silo-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.silo-hero h1 { color: var(--text-on-ink); font-size: var(--fs-h1); margin: var(--space-5) 0 var(--space-5); }
.silo-hero__lead { color: var(--text-on-ink); font-size: var(--fs-lead); line-height: var(--lh-relaxed); opacity: 0.92; }

/* Service body */
.service-body { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: var(--space-9); align-items: start; }
.service-prose p { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-body); margin: 0 0 var(--space-5); }
.points { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-hairline); }
.points li { padding: var(--space-4) 0 var(--space-4) var(--space-6); border-bottom: 1px solid var(--border-hairline); position: relative; color: var(--text-body); font-size: var(--fs-sm); }
.points li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: 0.7rem; height: 0.7rem; border: 1.5px solid var(--c-gold-deep); border-radius: 50%; }

/* CTA band */
.cta-band { background: var(--surface-ink); color: var(--text-on-ink); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-9); text-align: center; }
.cta-band h2 { color: var(--text-on-ink); font-size: var(--fs-h2); margin: var(--space-4) 0 var(--space-4); }
.cta-band p { color: var(--text-on-ink-muted); font-size: var(--fs-body-lg); max-width: 46ch; margin: 0 auto var(--space-7); }

/* Footer */
.site-footer { background: var(--surface-ink); color: var(--text-on-ink-muted); margin-top: auto; padding-block: var(--space-10) var(--space-7); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); padding-bottom: var(--space-8); }
.site-footer__blurb { max-width: 40ch; line-height: var(--lh-relaxed); margin-top: var(--space-4); font-size: var(--fs-sm); }
.foot-col h4 { color: var(--text-accent-ink); font-size: var(--fs-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; font-weight: var(--fw-bold); margin: 0 0 var(--space-4); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.foot-col a, .foot-col button { color: var(--text-on-ink-muted); font-size: var(--fs-sm); background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-body); text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--c-gold); }
.site-footer__bottom { border-top: 1px solid var(--border-on-ink); padding-top: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; font-size: var(--fs-2xs); color: var(--text-on-ink-muted); }
.site-footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-9); align-items: start; }
.contact-channel { padding: var(--space-5) 0; border-top: 1px solid var(--border-hairline); }
.contact-channel h4 { font-size: var(--fs-2xs); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-accent); margin: 0 0 var(--space-3); font-weight: var(--fw-bold); }
.contact-channel a { color: var(--text-primary); border-bottom: 1px solid var(--border-soft); }
.contact-channel a:hover { color: var(--c-gold-deep); }
.form-card { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: var(--space-8); box-shadow: var(--shadow-sm); }

/* Reveal-on-load (kept subtle) */
.fade-up { opacity: 0; transform: translateY(16px); animation: faStep var(--dur-slow) var(--ease-out) forwards; }
@keyframes faStep { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .hero, .service-body, .contact-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__media::after { display: none; }
  .grid-3, .grid-2, .site-footer__grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    background: var(--surface-canvas);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) var(--gutter) var(--space-5);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  }
  .site-nav.is-open { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .site-nav__links { display: flex; flex-direction: column; gap: 0; }
  .site-nav__link { padding: var(--space-4) 0; font-size: var(--fs-sm); border-bottom: 1px solid var(--border-hairline); }
  .site-nav__link::after { display: none; }
  .lang { padding-left: 0; border-left: none; padding-top: var(--space-4); }
}


/* ===== components.css ===== */
/* ============================================================
   Soul8 — Component layer (production)
   Static-HTML equivalents of the design-system React primitives
   (Button, Logo, Eyebrow, Badge, ServiceCard, FaqItem, Field,
   Checkbox). Visuals come from the token layer; this file only
   wires component structure to those tokens.
   ============================================================ */

/* ---- Logo ---- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.25em; text-decoration: none; }
.logo__mark { display: inline-flex; align-items: baseline; font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 1.5rem; letter-spacing: 0.32em; line-height: 1; color: currentColor; }
.logo__mark b { margin-left: 0.14em; color: var(--c-gold); font-weight: var(--fw-semibold); }
.logo__tag { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; line-height: 1; color: var(--text-muted); }
.logo--dark .logo__mark { color: var(--c-navy); }
.logo--light .logo__mark { color: var(--c-ivory); }
.logo--light .logo__tag { color: var(--text-on-ink-muted); }

/* ---- Eyebrow ---- */
.eyebrow { display: inline-block; position: relative; font-family: var(--font-eyebrow); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-accent); padding-left: 2.75rem; }
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 1.75rem; height: 1px; background: var(--c-gold); }
.eyebrow--noline { padding-left: 0; }
.eyebrow--noline::before { display: none; }
.eyebrow--ink { color: var(--text-accent-ink); }

/* ---- Button ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; font-family: var(--font-body); font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; transition: all var(--dur-base) var(--ease-out); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-xs); }
.btn--md { padding: 0.9rem 1.7rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.15rem 2.4rem; font-size: var(--fs-body); }
.btn--full { display: flex; width: 100%; }
.btn__icon { display: inline-flex; }

.btn--primary { background: var(--c-navy); color: var(--c-ivory); border-color: var(--c-navy); }
.btn--primary:hover { background: var(--c-navy-500); color: var(--c-ivory); border-color: var(--c-navy-500); }
.btn--gold { background: var(--c-gold); color: var(--c-navy); border-color: var(--c-gold); }
.btn--gold:hover { background: var(--c-gold-deep); color: #fff; border-color: var(--c-gold-deep); }
.btn--outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: var(--c-ivory); border-color: var(--c-navy); }
.btn--ghost { background: transparent; color: var(--c-navy); border-color: transparent; }
.btn--ghost:hover { background: rgba(14,26,43,0.06); color: var(--c-navy); border-color: transparent; }
/* On dark surfaces, outline/ghost flip to ivory ink */
.on-ink .btn--outline { color: var(--c-ivory); border-color: var(--border-on-ink); }
.on-ink .btn--outline:hover { background: var(--c-ivory); color: var(--c-navy); border-color: var(--c-ivory); }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3rem 0.7rem; font-family: var(--font-body); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; line-height: 1; border: 1px solid transparent; border-radius: var(--radius-pill); }
.badge--neutral { background: var(--c-sand-soft); color: var(--c-navy); }
.badge--gold { background: var(--c-gold-soft); color: var(--c-gold-deep); }
.badge--outline { background: transparent; color: var(--text-muted); border-color: var(--border-soft); }
.badge--success { background: var(--c-success-bg); color: var(--c-success); }
.badge--error { background: var(--c-error-bg); color: var(--c-error); }
.badge--info { background: var(--c-info-bg); color: var(--c-info); }

/* ---- Service card ---- */
.svc-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; height: 100%; box-shadow: var(--shadow-xs); transition: all var(--dur-base) var(--ease-out); }
.svc-card:hover { border-color: var(--border-soft); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: all var(--dur-slow) var(--ease-out); }
.svc-card:hover .svc-card__media img { filter: none; transform: scale(1.03); }
.svc-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex-grow: 1; }
.svc-card__eyebrow { font-family: var(--font-eyebrow); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-accent); margin-bottom: var(--space-2); }
.svc-card h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-regular); color: var(--text-primary); margin: 0 0 var(--space-3); letter-spacing: var(--ls-tight); }
.svc-card p { margin: 0; color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); flex-grow: 1; }
.svc-card__link { margin-top: var(--space-5); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-primary); display: inline-flex; gap: 0.5em; transition: color var(--dur-base); }
.svc-card__link span { transition: transform var(--dur-base); }
.svc-card:hover .svc-card__link { color: var(--c-gold-deep); }
.svc-card:hover .svc-card__link span { transform: translateX(3px); }

/* ---- FAQ (native details/summary, no JS) ---- */
.faq { border-bottom: 1px solid var(--border-hairline); }
.faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-regular); color: var(--text-primary); letter-spacing: var(--ls-snug); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary .faq__q { flex-grow: 1; }
.faq > summary .faq__sign { flex-shrink: 0; color: var(--c-gold-deep); font-size: 1.4rem; line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.faq[open] > summary .faq__sign { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--space-5); color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); max-width: 62ch; }

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > label { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-secondary); }
.field > label .req { color: var(--c-gold-deep); }
.field input, .field textarea, .field select { width: 100%; padding: 0.8rem 0.9rem; font-family: var(--font-body); font-size: var(--fs-body); color: var(--text-body); background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); outline: none; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235A6573' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-gold-deep); box-shadow: 0 0 0 3px rgba(143,110,34,0.12); }
.field__helper { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---- Checkbox ---- */
.checkbox { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); }
.checkbox input { margin-top: 0.15rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--c-navy); cursor: pointer; }
.checkbox a { color: var(--text-primary); border-bottom: 1px solid var(--border-soft); }
.checkbox a:hover { color: var(--c-gold-deep); }

/* ---- Language switch (header) ---- */
.lang a { display: inline-flex; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: 0.08em; color: var(--text-caption); padding: 0.25rem 0.4rem; border-radius: var(--radius-xs); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--c-ivory); background: var(--c-navy); }

/* ---- Turnstile + form status ---- */
.cf-turnstile { margin: var(--space-2) 0 var(--space-5); }
.form-status { margin-top: var(--space-4); padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); font-weight: var(--fw-semibold); font-size: var(--fs-sm); display: none; }
.form-status.is-error { background: var(--c-error-bg); color: var(--c-error); display: block; }
.form-status.is-ok { background: var(--c-success-bg); color: var(--c-success); display: block; }

/* ---- About values grid + prose helpers ---- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.value-item { border-top: 2px solid var(--c-gold); padding-top: var(--space-5); }
.value-item h3 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-regular); color: var(--text-primary); margin: 0 0 var(--space-3); letter-spacing: var(--ls-snug); }
.value-item p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.lead-prose p { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-body); margin-bottom: var(--space-5); }

/* ---- Legal pages ---- */
.legal-sec { margin-bottom: var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-hairline); }
.legal-sec h2 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-regular); color: var(--text-primary); margin: 0 0 var(--space-4); letter-spacing: var(--ls-snug); }
.legal-sec p { margin: 0; color: var(--text-body); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.legal-sec ul { margin: var(--space-4) 0 0; padding-left: var(--space-6); color: var(--text-body); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.legal-sec li { margin-bottom: var(--space-3); }
.legal-sec .legal-note { margin: var(--space-4) 0 0; padding: var(--space-4) var(--space-5); background: var(--c-gold-soft); border-radius: var(--radius-sm); color: var(--c-gold-deep); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.legal-meta { color: var(--text-caption); font-size: var(--fs-xs); font-family: var(--font-code); }
.legal-title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-regular); color: var(--text-primary); letter-spacing: var(--ls-tight); margin: var(--space-4) 0 var(--space-2); }

/* ---- Contact regional block ---- */
.contact-channel p { font-size: var(--fs-body); }
.contact-regional { color: var(--text-body); line-height: var(--lh-relaxed); }
.contact-regional strong { color: var(--text-primary); }
.contact-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 940px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}
