/* ==========================================================================
   Design system: tokens, base, primitives and shared chrome.
   Values follow the reference DESIGN spec (neutral canvas, indigo accents,
   blue-to-orange spectrum, pill controls, inset tactile shadows).
   ========================================================================== */

:root {
  /* Fonts (OFL stand-ins for the commercial faces in the spec) */
  --font-ui: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: Newsreader, Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Semantic colour */
  --tx: #43301f;
  --tx-secondary: #573d2e;
  --tx-tertiary: #79583e;
  --tx-inverse: #f8efd9;
  --sf: #f3e4c9;
  --card: #f8efd9;
  --sf-secondary: #eddcbd;
  --sf-tertiary: #e8d5b2;
  --sf-quaternary: #dfc9a2;
  --st: #d8c49e;
  --st-secondary: #e3cfaa;

  /* Brand */
  --br-blue: #8a5f41;
  --br-orange: #a4502a;
  --sr-slate: #43301f;
  --sr-black: #2a1d12;

  /* Indigo, the interactive accent */
  --indigo-50: #fbf5e8; --indigo-100: #f1e2c6; --indigo-200: #e3cba3; --indigo-300: #d1ae80;
  --indigo-400: #b98b60; --indigo-500: #a0724e; --indigo-600: #8a5f41; --indigo-700: #7a5238;
  --indigo-800: #6b4630; --indigo-900: #573d2e; --indigo-950: #43301f;

  /* Supporting earthy hues (chip recipes) */
  --orange-50: #faeee2; --orange-100: #f5e2cf; --orange-200: #ebcaac; --orange-600: #a4502a; --orange-700: #8f4423; --orange-800: #7a391d;
  --green-50: #eef0de; --green-100: #e6e9cf; --green-200: #cbd3a6; --green-600: #2f6b3a; --green-700: #285c32;
  --pink-50: #f7e8e4; --pink-100: #f0d8d2; --pink-200: #e2b8ae; --pink-400: #8c4a43; --pink-800: #6b3530;
  --yellow-50: #f8efd6; --yellow-100: #f3e3bb; --yellow-200: #e6cd8f; --yellow-700: #7d5f1c; --yellow-800: #6a5018;
  --red-50: #f8e6dd; --red-100: #f0d2c4; --red-300: #a4502a; --red-500: #8f2f1d;
  --grey-50: #f6ecd6;

  /* Radius */
  --r-sm: 4px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-4xl: 32px;

  /* Shadows: inset and tactile, never heavy */
  --sh-btn-primary: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.2);
  --sh-btn-secondary: inset 0 2px 0 rgba(255,250,240,.35), inset 0 -1px 0 rgba(67,48,31,.08);
  --sh-hero-ring: inset 0 0 0 1px rgba(67,48,31,.2);
  --sh-frame-glow: inset 0 0 25px 10px rgba(248,239,217,.6);
  --sh-card-float: 0 2px 12px rgba(67,48,31,.08), 0 0 0 1px rgba(67,48,31,.06);
  --sh-card-subtle: 0 1px 3px rgba(67,48,31,.1), 0 0 0 1px rgba(67,48,31,.05);
  --sh-panel-inner: 0 2px 6px rgba(67,48,31,.05);
  --sh-pill-lift: 0 8px 25.6px rgba(67,48,31,.1);
  --sh-night-panel: inset 0 -6px 16px rgba(243,228,201,.55), 0 0 0 2px rgba(67,48,31,.12);

  /* Motion */
  --ease-ui: cubic-bezier(.2,0,0,1);
  --ease-reveal: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --d-fast: .15s; --d-normal: .2s; --d-moderate: .3s; --d-slow: .5s; --d-entrance: .7s;

  /* Layout */
  --nav-h: 68px;
  --ticker-h: 36px;
  --header-h: var(--nav-h);
  --container: min(88%, 1400px);

  /* Texture */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --container: min(83.3333%, 1400px); } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); scrollbar-width: thin; scrollbar-color: var(--st) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--st); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }
body {
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; overscroll-behavior-y: none;
  background: var(--sf); color: var(--tx);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5; font-weight: 425;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }
strong, b { font-weight: 625; }
h1, h2, h3, h4 { font-weight: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
::selection { background: var(--tx-secondary); color: var(--sf); }
:focus-visible { outline: 2px solid var(--indigo-950); outline-offset: 2px; border-radius: 6px; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 18px; border-radius: 999px; background: var(--sr-slate); color: var(--tx-inverse); font-weight: 525; transform: translateY(-160%); transition: transform var(--d-normal) var(--ease-ui); }
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap, .container { width: var(--container); margin-inline: auto; }
.maxw { width: 100%; }
.section { padding-block: 96px 0; }
@media (min-width: 768px) { .section { padding-block: 176px 0; } }

/* ---------- Type primitives ---------- */
.h-hero { font-family: var(--font-display); font-size: clamp(42px, 6.4vw, 64px); line-height: 1.05; letter-spacing: -.025em; font-weight: 425; color: var(--tx); text-wrap: balance; font-variation-settings: 'opsz' 72; }
.h-section, .section-heading { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -.02em; font-weight: 525; color: var(--tx); text-wrap: balance; font-variation-settings: 'opsz' 72; }
.eyebrow, .section-label { display: block; font-family: var(--font-ui); font-size: 12px; line-height: 16px; font-weight: 525; letter-spacing: 2px; text-transform: uppercase; color: var(--tx-tertiary); }
.lead { font-size: 18px; line-height: 1.65; color: var(--tx-tertiary); }
.mono-label { font-family: var(--font-mono); font-size: 13px; line-height: 1.33; font-weight: 400; letter-spacing: .78px; text-transform: uppercase; color: var(--indigo-700); }
.muted { color: var(--tx-tertiary); }

/* Motif ornament + hero eyebrow with radial indigo hairlines */
.motif { width: 208px; height: 32px; margin-inline: auto; background: url('/img/motif.svg') center / contain no-repeat; }
.hero-eyebrow { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--indigo-900); font-size: 14px; letter-spacing: .025em; font-weight: 425; }
.hero-eyebrow > span { padding-inline: 32px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 100%; height: 1px; background: radial-gradient(circle, var(--indigo-500) 0%, transparent 100%); }
@media (min-width: 768px) { .hero-eyebrow { gap: 10px; font-size: 16px; } }

/* ---------- Buttons (all controls are pills) ---------- */
.btn, .button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-ui); font-size: 16px; line-height: 24px; font-weight: 525; cursor: pointer;
  transition: background-color .35s var(--ease-ui), box-shadow .35s var(--ease-ui), color .35s var(--ease-ui), transform .35s var(--ease-ui);
}
.btn:active, .button:active { transform: scale(.96); transition-duration: var(--d-fast); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-primary, .button { background: var(--sr-slate); color: var(--tx-inverse); box-shadow: var(--sh-btn-primary); }
.btn-primary:hover, .button:hover { background: #36261a; }
.btn-secondary { background: var(--sf-secondary); color: var(--tx); box-shadow: var(--sh-btn-secondary); }
.btn-secondary:hover { background: var(--card); }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 15px; line-height: 22.5px; }
.btn-outline, .button-outline { background: var(--card); color: var(--tx); border: 1px solid var(--st); font-size: 14px; line-height: 20px; box-shadow: none; }
.btn-outline:hover, .button-outline:hover { background: var(--sf); }
.btn-hero { min-height: 52px; padding: 14px 24px; font-family: var(--font-display); font-size: 17px; font-weight: 525; letter-spacing: -.005em; }
.btn-hero:active { transform: scale(.97); }
.btn-hero-ink { background: linear-gradient(180deg, #6b4630 0%, #43301f 100%); color: var(--tx-inverse); box-shadow: var(--sh-btn-primary); }
.btn-hero-ink:hover { background: linear-gradient(180deg, #5f3e2a 0%, #36261a 100%); }
.btn-hero-paper { background: linear-gradient(180deg, #fbf5e8 0%, #eddcbd 100%); color: var(--tx); box-shadow: var(--sh-hero-ring); }
.btn-hero-paper:hover { background: linear-gradient(180deg, #fdf9f0 0%, #f1e2c6 100%); }
.btn-icon { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 999px; background: var(--sf-tertiary); color: var(--tx); box-shadow: var(--sh-btn-secondary); }
.btn-icon:hover { background: var(--sf-quaternary); }
.btn .ico, .button .ico { width: 16px; height: 16px; }

/* Links */
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo-600); font-size: 14px; font-weight: 525; transition: color var(--d-normal) ease-out; }
.text-link:hover { color: var(--indigo-800); }
.text-link .ico { width: 14px; height: 14px; transition: transform .35s var(--ease-ui); }
.text-link:hover .ico { transform: translate(2px,-2px); }
.inline-link, .company-link { color: var(--indigo-800); text-decoration: underline; text-decoration-color: rgba(107,70,48,.35); text-underline-offset: 2px; text-decoration-thickness: 1px; transition: text-decoration-color var(--d-normal) ease-out; }
.inline-link:hover, .company-link:hover { text-decoration-color: var(--indigo-800); }

/* ---------- Chips, tags, badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sf-secondary); border: 1px solid var(--st-secondary); color: var(--tx-tertiary); font-size: 12px; line-height: 16px; font-weight: 525; }
.badge-new { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--indigo-100); border: 1px solid var(--indigo-800); color: var(--indigo-800); font-size: 14px; line-height: 20px; font-weight: 525; }
.badge-new::before, .tag.is-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-hue { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-xl); border: 1px solid; font-size: 14px; line-height: 20px; font-weight: 625; }
.chip-indigo { color: var(--indigo-500); background: var(--indigo-50); border-color: rgba(210,223,249,.75); }
.chip-green { color: var(--green-600); background: rgba(242,248,235,.75); border-color: rgba(200,228,176,.75); }
.chip-orange { color: var(--orange-600); background: var(--orange-50); border-color: rgba(253,220,206,.75); }
.chip-pink { color: var(--pink-400); background: rgba(252,234,240,.5); border-color: var(--pink-100); }
.chip-yellow { color: rgba(192,136,39,.9); background: rgba(255,248,230,.5); border-color: var(--yellow-200); }
.chip-red { color: var(--red-300); background: rgba(253,231,226,.5); border-color: var(--red-100); }

/* Card primitive */
.card { background: var(--card); border: 1px solid var(--st-secondary); border-radius: var(--r-2xl); }

/* Texture helper */
.noise { position: relative; isolation: isolate; }
.noise::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: var(--noise); opacity: .15; mix-blend-mode: overlay; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgba(243,228,201,.95); border-bottom: 1px solid var(--st-secondary); opacity: 0; transform: translateY(-6px); transition: opacity var(--d-moderate) var(--ease-ui), transform var(--d-moderate) var(--ease-ui); }
@supports (backdrop-filter: blur(1px)) { .site-header::before { background: rgba(243,228,201,.84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
.site-header.is-compact::before, .site-header.is-solid::before { opacity: 1; transform: none; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; width: var(--container); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx); font-family: var(--font-ui); font-size: 17px; font-weight: 625; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: 999px; color: var(--tx); font-size: 16px; font-weight: 425; transition: background-color var(--d-normal) ease-out, color var(--d-normal) ease-out; }
.nav-links a:hover { background: rgba(67,48,31,.06); }
.nav-links a[aria-current] { color: var(--indigo-800); }
.nav-links a:focus-visible { outline: 1.6px solid var(--indigo-600); outline-offset: 0; border-radius: 999px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.menu-toggle .ico { width: 18px; height: 18px; }
.mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; display: grid; gap: 4px; padding: 12px 6% 20px; background: var(--card); border-bottom: 1px solid var(--st-secondary); box-shadow: 0 16px 32px rgba(67,48,31,.08); }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-inline: 12px; border-radius: var(--r-lg); color: var(--tx-secondary); font-size: 16px; font-weight: 525; }
.mobile-menu a:hover { background: var(--sf-secondary); color: var(--indigo-800); }
.mobile-menu .btn { margin-top: 8px; color: var(--tx-inverse); justify-content: center; }
@media (max-width: 900px) {
  .site-header nav[aria-label="Primary"], .header-actions .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--d-entrance) var(--ease-reveal), transform var(--d-entrance) var(--ease-reveal); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
