/* =========================================================================
   SolyTrades — design system
   Premium European editorial: warm paper, deep maritime ink and restrained
   brass. Zero external requests (system fonts only).
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  /* Light (paper) */
  --paper:        #F4F0E8;   /* warm near-white, default light bg */
  --paper-2:      #E9E2D7;   /* deeper light panel */
  --card:         #FCFAF6;
  --ink:          #10202C;   /* primary text on light */
  --ink-2:        #52616B;   /* secondary text on light */
  --ink-3:        #7B858A;   /* tertiary / captions */
  --line:         #D8CFC0;   /* hairline on light */
  --line-2:       #C7BAA6;

  /* Dark (ink) */
  --dark:         #081722;   /* dark section bg */
  --dark-2:       #102430;   /* dark panel */
  --dark-3:       #17313E;   /* dark card */
  --on-dark:      #F4EFE6;   /* text on dark */
  --on-dark-2:    #B4BEC2;   /* secondary on dark */
  --line-dark:    #29414C;

  /* Signal + secondary accents (used sparingly) */
  --signal:       #B58C52;   /* brass — CTA, active nav, route nodes, figures */
  --signal-2:     #8D6634;
  --signal-soft:  rgba(181,140,82,0.14);
  --teal:         #2D645E;   /* AI Intelligence secondary accent */
  --teal-soft:    rgba(45,100,94,0.13);

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
             Palatino, "URW Palladio L", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono",
          Menlo, Consolas, "Liberation Mono", monospace;

  /* Rhythm */
  --wrap:      1280px;
  --wrap-nar:  860px;
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --sec-y:     clamp(4.75rem, 9vw, 8.75rem);
  --radius:    9px;
  --shadow-sm: 0 10px 32px rgba(8,23,34,.06);
  --shadow-md: 0 22px 60px rgba(8,23,34,.12);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html, body { max-width: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(181,140,82,.055), transparent 24rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
::selection { background: var(--signal); color: #fff; }
[fill="#BE7B3C"] { fill: var(--signal); }
[stroke="#BE7B3C"] { stroke: var(--signal); }

/* ---- Type scale ------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.7rem, 6.3vw, 5.75rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.62rem); letter-spacing: -0.02em; }
h4 { font-size: 1.16rem; letter-spacing: -0.018em; }
p  { margin: 0 0 1.1em; }
.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 40ch;
}
.lead--wide { max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.mono  { font-family: var(--mono); }

/* eyebrow: mono, spaced, with a short rule */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.4rem;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--signal); }
.section--dark .eyebrow::before { background: var(--signal); opacity: .8; }

/* ---- Layout ---------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-nar); }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-2); }
.section--dark .lead { color: var(--on-dark); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: var(--line-dark); }

/* section heading cluster */
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 1rem; }

/* generic grids */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.8rem); }
.grid > *, .hero__grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem,5vw,5rem); }
.grid--aside { grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--aside { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .96rem; font-weight: 500; letter-spacing: -0.005em;
  padding: .82rem 1.5rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.btn .btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--primary { --bg: var(--signal); --fg: #fff; --bd: var(--signal); }
.btn--primary:hover { --bg: var(--signal-2); --bd: var(--signal-2); }
.btn--dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--dark:hover { --bg: #000; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.section--dark .btn--ghost { --fg: var(--on-dark); --bd: var(--line-dark); }
.section--dark .btn--ghost:hover { --bg: var(--on-dark); --fg: var(--dark); --bd: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* text link with arrow */
.tlink {
  font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tlink:hover { color: var(--signal-2); border-color: var(--signal); }
.tlink .btn__arrow { transition: transform .25s var(--ease); }
.tlink:hover .btn__arrow { transform: translateX(3px); }
.section--dark .tlink { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .tlink:hover { color: var(--signal); border-color: var(--signal); }

/* ---- Cards / tiles / features --------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.card--flush { padding: 0; overflow: hidden; }
.section--paper2 .card { border-color: var(--line-2); }
.section--dark .card {
  background: var(--dark-2); border-color: var(--line-dark); color: var(--on-dark);
}
.card--link { transition: border-color .25s var(--ease), transform .25s var(--ease); display: block; }
.card--link:hover { border-color: var(--signal); transform: translateY(-3px); }

/* capability tile (mono label + short text) — NOT a fake statistic */
.tile { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.section--dark .tile { border-color: var(--line-dark); }
.tile__k { font-family: var(--mono); font-size: .72rem; letter-spacing:.14em; text-transform: uppercase; color: var(--signal-2); margin-bottom: .7rem; }
.section--dark .tile__k { color: var(--signal); }
.tile__v { font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.tile p { color: var(--ink-2); font-size: .95rem; margin: .4rem 0 0; }
.section--dark .tile p { color: var(--on-dark-2); }

/* feature block: line icon + heading + text */
.feature__icon {
  width: 42px; height: 42px; color: var(--signal);
  margin-bottom: 1.2rem;
}
.section--dark .feature__icon { color: var(--signal); }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--ink-2); margin: 0; }
.section--dark .feature p { color: var(--on-dark-2); }

/* number-led list (process steps) */
.stepper { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem,3vw,2.4rem);
  padding: clamp(1.6rem,3vw,2.4rem) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.section--dark .step { border-color: var(--line-dark); }
.step__n::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .9rem; color: var(--signal-2);
  letter-spacing: .05em;
}
.section--dark .step__n::before { color: var(--signal); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.section--dark .step p { color: var(--on-dark-2); }

/* pills / tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 100px;
  color: var(--ink-2);
}
.section--dark .tag { border-color: var(--line-dark); color: var(--on-dark-2); }

/* compliance callout */
.callout {
  border-left: 2px solid var(--signal);
  background: var(--signal-soft);
  padding: clamp(1.2rem,2.4vw,1.8rem) clamp(1.3rem,2.6vw,2rem);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--neutral { border-color: var(--line-2); background: transparent; }
.callout--teal { border-color: var(--teal); background: var(--teal-soft); }
.section--dark .callout { background: rgba(190,123,60,0.14); }

/* eyebrow number label for big lists */
.idx { font-family: var(--mono); font-size: .8rem; color: var(--signal-2); letter-spacing:.05em; }

/* ---- Disclosure (accordion) ----------------------------------------- */
.disclosure { border-top: 1px solid var(--line); }
.disclosure:last-child { border-bottom: 1px solid var(--line); }
.disclosure > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: baseline;
  padding: clamp(1.3rem,2.6vw,1.9rem) 0;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover .disclosure__t { color: var(--signal-2); }
.disclosure__i { font-family: var(--mono); font-size: .8rem; color: var(--signal-2); }
.disclosure__t { font-size: clamp(1.1rem,2vw,1.4rem); font-weight: 600; letter-spacing:-0.015em; transition: color .2s var(--ease); }
.disclosure__sub { display:block; font-family: var(--mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-3); margin-top:.4rem; font-weight:400;}
.disclosure__plus { position: relative; width: 16px; height: 16px; margin-top:.4rem; }
.disclosure__plus::before, .disclosure__plus::after { content:""; position:absolute; background: var(--ink-2); transition: transform .25s var(--ease); }
.disclosure__plus::before { top:7px; left:0; width:16px; height:2px; }
.disclosure__plus::after  { left:7px; top:0; width:2px; height:16px; }
.disclosure[open] .disclosure__plus::after { transform: scaleY(0); }
.disclosure__body { padding: 0 0 clamp(1.5rem,3vw,2.2rem) calc(0.8rem + 2.4rem); }
@media (max-width:620px){ .disclosure__body{ padding-left:0; } }
.disclosure__body p { color: var(--ink-2); max-width: 68ch; }
.disclosure__body ul { margin:.4rem 0 1rem; }

/* ---- Route map / figures -------------------------------------------- */
.figure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(1.2rem,2.4vw,2rem); }
.section--dark .figure { border-color: var(--line-dark); background: var(--dark-2); }
.figure__cap { font-family: var(--mono); font-size: .72rem; letter-spacing:.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 1rem; }
.section--dark .figure__cap { color: var(--on-dark-2); }
.artframe { /* full-bleed-ish SVG art holder with subtle field */
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(190,123,60,0.05), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.section--dark .artframe {
  border-color: var(--line-dark);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(190,123,60,0.10), transparent 55%),
    var(--dark-2);
}

/* image slot (for later drop-in photography) */
.imgslot {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
}
.imgslot img { width:100%; height:100%; object-fit: cover; }

/* ---- List with rules ------------------------------------------------- */
.rlist { list-style: none; padding: 0; margin: 0; }
.rlist li { padding: .85rem 0; border-top: 1px solid var(--line); display:flex; gap:.8rem; }
.rlist li::before { content:"—"; color: var(--signal-2); }
.section--dark .rlist li { border-color: var(--line-dark); }
.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: var(--ink-2); }
.checks li::before { content: ""; width: 8px; height: 8px; margin-top: .55rem; background: var(--signal); border-radius: 1px; }
.section--dark .checks li { color: var(--on-dark-2); }

/* two-col column list */
.cols2 { columns: 2; column-gap: 2.5rem; }
@media (max-width:620px){ .cols2{ columns:1; } }

/* ---- Prose (legal / long form) -------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { font-family: var(--mono); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-3); }
.legal-toc { border:1px solid var(--line); border-radius: var(--radius); padding:1.4rem 1.6rem; background: var(--card); margin-bottom:2.5rem; }
.legal-toc ol { margin:.5rem 0 0; padding-left:1.2rem; columns:2; column-gap:2rem; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--signal-2); }
@media (max-width:620px){ .legal-toc ol{ columns:1; } }

/* definition table (legal notice / contact facts) */
.deflist { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; }
.deflist dt { font-weight: 600; padding: .7rem 0; border-top: 1px solid var(--line); }
.deflist dd { padding: .7rem 0; border-top: 1px solid var(--line); margin: 0; color: var(--ink-2); }
@media (max-width:560px){ .deflist{ grid-template-columns:1fr; } .deflist dd{ border-top:0; padding-top:0; } }

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand svg { height: 30px; width: auto; }
.brand__name { font-weight: 650; font-size: 1.18rem; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.7rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .93rem; font-weight: 450; color: var(--ink-2);
  padding: .4rem 0; position: relative; transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--signal);
}
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__cta { padding: .6rem 1.15rem; font-size: .9rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--ink); }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav__links, .nav__right .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}
/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  transform: translateX(100%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; padding: var(--gutter);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__top { display:flex; align-items:center; justify-content:space-between; height:74px; }
.drawer__links { list-style:none; margin: 2rem 0 0; padding:0; display:grid; gap: .3rem; }
.drawer__links a { font-size: 1.5rem; font-weight: 550; letter-spacing:-0.02em; padding:.6rem 0; border-bottom:1px solid var(--line); display:block; }
.drawer .btn { margin-top: 2rem; justify-content: center; }
.drawer__close { background:none;border:0;cursor:pointer;color:var(--ink);padding:.5rem;}
.drawer__close svg{width:26px;height:26px;}

/* ---- Hero ------------------------------------------------------------ */
.hero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px){ .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; } }
.hero p.lead { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero__meta { margin-top: 2.8rem; display:flex; flex-wrap:wrap; gap: 1.6rem 2.2rem; }
.hero__meta div { min-width: 0; }
.hero__meta .tile__k { margin-bottom:.35rem; }
.hero__meta .tile__v { font-size: .98rem; }
@media (max-width: 560px){ .hero__meta { flex-direction: column; gap: 1.3rem; } }

/* small page hero (interior pages) */
.pagehero { padding-top: clamp(2.6rem,5vw,4.5rem); padding-bottom: clamp(2rem,4vw,3.4rem); }
.pagehero .display, .pagehero h1 { max-width: 18ch; }
.pagehero .lead { margin-top: 1.4rem; max-width: 58ch; }
.breadcrumb { font-family: var(--mono); font-size:.74rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-3); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--signal-2); }

/* ---- CTA band -------------------------------------------------------- */
.cta-band { background: var(--dark); color: var(--on-dark); }
.cta-band .wrap { display:grid; grid-template-columns: 1.2fr auto; gap: 2rem; align-items:center; padding-block: clamp(3rem,6vw,5rem); }
@media (max-width:820px){ .cta-band .wrap{ grid-template-columns:1fr; } }
.cta-band h2 { color: var(--on-dark); margin:0; }
.cta-band p { color: var(--on-dark-2); margin:.8rem 0 0; max-width: 46ch; }

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.3rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.form legend {
  font-family: var(--mono); font-size:.74rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--signal-2); padding: 0; margin-bottom: .4rem;
  display:flex; align-items:center; gap:.7rem;
}
.field { display: grid; gap: .45rem; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width:620px){ .field__row{ grid-template-columns:1fr; } }
.field label { font-size: .92rem; font-weight: 500; }
.field .req { color: var(--signal-2); }
.field small { color: var(--ink-3); font-size: .8rem; }
.input, .select, .textarea, .file {
  font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .75rem .85rem; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2383888D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft);
}
.file { padding: .6rem .85rem; }
.file::file-selector-button {
  font: inherit; font-size:.85rem; margin-right: .9rem; padding: .45rem .9rem;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper-2); cursor: pointer;
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--ink-2); }
.consent input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--signal); }
.consent a { color: var(--signal-2); border-bottom: 1px solid var(--line-2); }
.form-aside {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem,3vw,2rem);
}
.form-aside h3 { font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size:.82rem; color: var(--ink-3); }
.form-msg { padding: 1rem 1.2rem; border-radius: var(--radius); font-size:.92rem; display:none; }
.form-msg.ok { display:block; background: var(--teal-soft); border-left:2px solid var(--teal); }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: clamp(3.5rem,6vw,5rem) 2.5rem; }
.site-footer a { color: var(--on-dark-2); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--on-dark); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.5rem,3vw,2.5rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 860px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--on-dark); }
.footer-brand p { color: var(--on-dark-2); font-size: .92rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h4 { color: var(--on-dark); font-size: .78rem; font-family: var(--mono); letter-spacing:.12em; text-transform: uppercase; font-weight:500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .82rem; }
.footer-legal .footer-legal__links { display:flex; flex-wrap:wrap; gap: 1.2rem; }
.footer-brand__note { font-size:.82rem; color: var(--on-dark-2); margin-top:1.4rem; }

/* ---- Cookie banner --------------------------------------------------- */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1.2rem; z-index: 80;
  max-width: 560px; margin-inline: auto;
  background: var(--dark-2); color: var(--on-dark); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transform: translateY(140%); transition: transform .4s var(--ease); font-size: .9rem;
}
.cookie.is-shown { transform: translateY(0); }
.cookie p { margin: 0 0 1rem; color: var(--on-dark-2); }
.cookie a { color: var(--signal); }
.cookie__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie .btn { font-size:.85rem; padding: .55rem 1rem; }
.cookie .btn--ghost { --fg: var(--on-dark); --bd: var(--line-dark); }
.cookie .btn--ghost:hover { --bg: var(--on-dark); --fg: var(--dark); }

/* ---- Utilities ------------------------------------------------------- */
.center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack > * + * { margin-top: 1.1rem; }
.maxw-prose { max-width: 60ch; }
.hide { display: none !important; }
.skip-link { position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:.6rem 1rem; z-index:200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* reveal on scroll (progressive; no-JS shows everything) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================================
   Premium institutional refinement — July 2026
   ========================================================================= */

/* Structure and section atmosphere */
.wrap {
  width: 100%;
}
.section {
  position: relative;
  isolation: isolate;
}
.section--paper2 {
  background:
    radial-gradient(circle at 92% 12%, rgba(181,140,82,.09), transparent 28rem),
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 48%),
    var(--paper-2);
}
.section--dark {
  background:
    radial-gradient(circle at 86% 8%, rgba(181,140,82,.12), transparent 30rem),
    radial-gradient(circle at 12% 100%, rgba(45,100,94,.13), transparent 32rem),
    var(--dark);
}
.section-head {
  max-width: 68ch;
}
.section-head h2 {
  max-width: 20ch;
}
.section-head.center h2 {
  margin-inline: auto;
}
.section-head .lead {
  margin-top: 1.25rem;
}
.grid,
.hero__grid,
.nav,
.footer-top,
.cta-band .wrap {
  min-width: 0;
}
.grid > *,
.hero__grid > *,
.nav > *,
.footer-top > *,
.cta-band .wrap > * {
  min-width: 0;
}

/* Editorial microtype */
.lead {
  line-height: 1.55;
}
.eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--signal-2);
}
.eyebrow::before {
  width: 2.4rem;
  background: linear-gradient(90deg, var(--signal), rgba(181,140,82,.25));
}
.tile__k,
.figure__cap,
.breadcrumb,
.footer-col h4 {
  font-weight: 600;
}
.mono,
.tile__k,
.figure__cap,
.breadcrumb,
.eyebrow,
.idx {
  font-variant-numeric: tabular-nums;
}

/* Header: a stable dark frame for the brand */
.site-header {
  background: color-mix(in srgb, var(--dark) 94%, transparent);
  border-bottom: 1px solid rgba(244,239,230,.08);
  box-shadow: 0 1px 0 rgba(181,140,82,.07);
  backdrop-filter: saturate(1.15) blur(16px);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--dark) 98%, transparent);
  border-color: rgba(181,140,82,.28);
  box-shadow: 0 14px 40px rgba(8,23,34,.18);
}
.nav {
  height: 78px;
}
.site-header .brand,
.site-header .nav__toggle {
  color: var(--on-dark);
}
.brand__name {
  font-weight: 680;
  letter-spacing: -.025em;
}
.nav__links a {
  color: var(--on-dark-2);
  font-size: .88rem;
  letter-spacing: .01em;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--on-dark);
}
.nav__links a[aria-current="page"]::after {
  bottom: -5px;
  height: 1px;
  background: var(--signal);
}
.nav__cta {
  box-shadow: 0 8px 24px rgba(181,140,82,.2);
}
.drawer {
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(181,140,82,.12), transparent 22rem),
    var(--paper);
}
.drawer .wrap {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
.drawer .brand,
.drawer .nav__toggle {
  color: var(--ink);
}
.drawer__links a {
  font-family: var(--display);
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  font-weight: 500;
  padding: .72rem 0;
}

/* Buttons and links */
.btn {
  min-height: 48px;
  max-width: 100%;
  justify-content: center;
  padding: .84rem 1.55rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .015em;
  white-space: normal;
  text-align: center;
  box-shadow: 0 8px 22px rgba(8,23,34,.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(8,23,34,.13);
}
.btn--primary {
  --fg: #fff;
}
.btn--ghost {
  background: color-mix(in srgb, var(--paper) 45%, transparent);
}
.section--dark .btn--ghost,
.cta-band .btn--ghost {
  background: rgba(255,255,255,.025);
}
.cta-band .btn--ghost {
  --fg: var(--on-dark);
  --bd: rgba(244,239,230,.48);
}
.cta-band .btn--ghost:hover {
  --bg: var(--on-dark);
  --fg: var(--dark);
  --bd: var(--on-dark);
}
.tlink {
  font-size: .92rem;
  font-weight: 650;
  border-bottom-color: color-mix(in srgb, var(--signal) 42%, var(--line));
}

/* Hero: a premium editorial opening with an architectural route panel */
.hero {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
  overflow: clip;
  background:
    radial-gradient(circle at 82% 26%, rgba(181,140,82,.13), transparent 31rem),
    linear-gradient(110deg, rgba(255,255,255,.36), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.95%, rgba(16,32,44,.035) 50%, transparent 50.05%),
    linear-gradient(0deg, transparent 0 49.95%, rgba(16,32,44,.025) 50%, transparent 50.05%);
  background-size: 9rem 9rem;
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000);
}
.hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(3rem, 6vw, 6.5rem);
}
.hero__copy {
  position: relative;
  z-index: 2;
}
.hero .display {
  max-width: 13ch;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.hero p.lead {
  margin-top: 1.9rem;
  color: var(--ink-2);
  max-width: 58ch;
}
.hero__art {
  position: relative;
  width: 100%;
  max-width: 650px;
  justify-self: end;
}
.hero .artframe {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  border: 1px solid rgba(181,140,82,.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% 38%, rgba(181,140,82,.2), transparent 30%),
    radial-gradient(circle at 18% 88%, rgba(45,100,94,.28), transparent 38%),
    linear-gradient(145deg, #132C39, var(--dark) 72%);
  box-shadow:
    0 34px 80px rgba(8,23,34,.2),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.hero .artframe::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(244,239,230,.07);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(244,239,230,.035) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(244,239,230,.025) 50%, transparent 50.2%);
  background-size: 5rem 5rem;
}
.hero .artframe svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.14));
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__meta > div {
  padding-right: 1.1rem;
}
.hero__meta > div + div {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}
.hero__meta .tile__v {
  line-height: 1.45;
}

/* Cards, tiles and figures */
.card {
  border-color: color-mix(in srgb, var(--line) 86%, white);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(252,250,246,.94));
  box-shadow: var(--shadow-sm);
}
.section--dark .card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 45%),
    var(--dark-2);
  border-color: rgba(181,140,82,.19);
  box-shadow: 0 20px 48px rgba(0,0,0,.16);
}
.card--link,
.feature.card {
  position: relative;
  overflow: hidden;
}
.feature.card::after,
.card--link::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent 70%);
  opacity: .55;
}
.card--link:hover {
  border-color: color-mix(in srgb, var(--signal) 65%, var(--line));
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid rgba(181,140,82,.32);
  border-radius: 50%;
  background: var(--signal-soft);
}
.section--dark .feature__icon {
  background: rgba(181,140,82,.1);
  border-color: rgba(181,140,82,.3);
}
.tile {
  position: relative;
  padding: 1.8rem 1.1rem 1.8rem 0;
}
.grid--2 > .tile:nth-child(even) {
  padding-left: 1.1rem;
}
.tile__v {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 500;
}
.step {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
}
.step__n::before {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line));
  border-radius: 50%;
  background: var(--signal-soft);
}
.section--dark .step__n::before {
  border-color: rgba(181,140,82,.34);
}
.figure,
.artframe,
.imgslot,
.legal-toc,
.form-aside {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.callout {
  border-left-width: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.disclosure > summary {
  min-width: 0;
}
.disclosure__t {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Interior heroes get the same institutional frame as the home route panel */
.pagehero {
  position: relative;
  overflow: clip;
  color: var(--on-dark);
  background:
    radial-gradient(circle at 80% 32%, rgba(181,140,82,.16), transparent 27rem),
    radial-gradient(circle at 12% 100%, rgba(45,100,94,.14), transparent 28rem),
    var(--dark);
  border-bottom: 1px solid rgba(181,140,82,.25);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}
.pagehero::after {
  content: "";
  position: absolute;
  width: min(31rem, 56vw);
  aspect-ratio: 1;
  right: clamp(1rem, 5vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(181,140,82,.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.5rem rgba(181,140,82,.035),
    0 0 0 9rem rgba(181,140,82,.018);
  pointer-events: none;
}
.pagehero .wrap {
  position: relative;
  z-index: 1;
}
.pagehero .display,
.pagehero h1,
.pagehero .lead {
  color: var(--on-dark);
}
.pagehero .display,
.pagehero h1 {
  max-width: 17ch;
}
.pagehero .lead {
  color: var(--on-dark-2);
}
.pagehero .breadcrumb,
.pagehero .breadcrumb a {
  color: var(--on-dark-2);
}
.pagehero .breadcrumb a:hover {
  color: var(--signal);
}

/* Conversion and footer */
.cta-band {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 85% 40%, rgba(181,140,82,.18), transparent 25rem),
    linear-gradient(120deg, var(--dark), #102936);
  border-top: 1px solid rgba(181,140,82,.25);
  border-bottom: 1px solid rgba(181,140,82,.16);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 18rem;
  aspect-ratio: 1;
  right: -5rem;
  bottom: -12rem;
  border: 1px solid rgba(181,140,82,.2);
  border-radius: 50%;
}
.cta-band .wrap {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, auto);
}
.cta-band .btn-row {
  justify-content: flex-end;
}
.site-footer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 24%),
    #06131C;
  border-top: 1px solid rgba(181,140,82,.18);
}
.footer-top {
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
}
.footer-brand .brand__name {
  font-size: 1.28rem;
}
.footer-col h4 {
  color: var(--signal);
}
.footer-col a {
  display: inline-block;
}
.footer-legal {
  color: color-mix(in srgb, var(--on-dark-2) 80%, transparent);
}
.cookie {
  border-color: rgba(181,140,82,.32);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

/* Motion remains restrained and disappears for users who request it */
.reveal {
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.grid > .card:nth-child(2),
.grid > .feature:nth-child(2) {
  transition-delay: .04s;
}
.grid > .card:nth-child(3),
.grid > .feature:nth-child(3) {
  transition-delay: .08s;
}
.grid > .card:nth-child(4),
.grid > .feature:nth-child(4) {
  transition-delay: .12s;
}
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

/* Responsive safeguards: no page-level clipping is used as a layout fix */
@media (max-width: 1100px) {
  .nav__links {
    gap: .9rem;
  }
  .nav__links a {
    font-size: .82rem;
  }
}
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__art {
    order: 0;
    justify-self: center;
    max-width: 680px;
  }
  .hero .display {
    max-width: 15ch;
  }
  .pagehero::after {
    right: -7rem;
    opacity: .65;
  }
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }
  .cta-band .btn-row {
    justify-content: flex-start;
  }
}
@media (max-width: 620px) {
  :root {
    --gutter: 1.15rem;
    --sec-y: 4.5rem;
  }
  body {
    font-size: 16px;
  }
  .display {
    font-size: clamp(2.55rem, 13.6vw, 4rem);
    line-height: 1;
  }
  h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }
  .hero__grid {
    gap: 2.8rem;
  }
  .hero__meta {
    grid-template-columns: 1fr;
  }
  .hero__meta > div,
  .hero__meta > div + div {
    padding: .9rem 0;
    border-left: 0;
  }
  .hero__meta > div + div {
    border-top: 1px solid var(--line);
  }
  .hero .artframe {
    border-radius: 14px;
  }
  .hero .artframe::before {
    inset: 8px;
  }
  .grid--2 > .tile:nth-child(even) {
    padding-left: 0;
  }
  .tile {
    padding-right: 0;
  }
  .step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
  }
  .step__n::before {
    width: 36px;
    height: 36px;
    font-size: .76rem;
  }
  .pagehero {
    padding-top: 3.6rem;
    padding-bottom: 3.8rem;
  }
  .pagehero::after {
    width: 23rem;
    right: -12rem;
  }
  .cta-band .btn-row,
  .hero .btn-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cta-band .btn,
  .hero .btn {
    width: 100%;
  }
  .figure,
  .card,
  .artframe,
  .legal-toc,
  .form-aside {
    max-width: 100%;
  }
  .deflist,
  .disclosure > summary {
    min-width: 0;
  }
  .storage-table-wrap {
    overflow: visible !important;
  }
  .storage-table,
  .storage-table tbody,
  .storage-table tr,
  .storage-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }
  .storage-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .storage-table thead tr,
  .storage-table thead th {
    position: absolute;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap !important;
  }
  .storage-table tr {
    padding: .45rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
  }
  .storage-table td {
    padding: .82rem 0 !important;
    border-bottom: 1px solid var(--line) !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .storage-table td:last-child {
    border-bottom: 0 !important;
  }
  .storage-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .35rem;
    color: var(--signal-2);
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-legal,
  .footer-legal__links {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in,
  .no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .grid > .card,
  .grid > .feature {
    transition-delay: 0s !important;
  }
  .btn:hover,
  .card--link:hover {
    transform: none;
  }
}
