/* =========================================================
   Setu Supply — editorial diligence publication
   Built to DESIGN.md (General Intelligence Company style ref):
   warm cream canvas · serif display + sans body · single blue accent ·
   floating dark pill nav · painterly full-bleed scenes + frosted cards ·
   reading-first editorial layout. No third-party resources.
   ========================================================= */

/* ---------- Self-hosted fonts (substitutes for ppmondwest / af) ---------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens (from DESIGN.md) ---------- */
:root {
  --hudson-blue: #0081c0;
  --slate-cyan: #41a1cf;
  --graphite-night: #282834;
  --ink: #171717;
  --carbon: #2c2c2c;
  --iron: #444141;
  --steel: #646464;
  --fog: #b4b8b4;
  --ash: #a5afaf;
  --mist: #cfd3cf;
  --sage: #dee2de;
  --cream: #fefffc;
  --linen: #f9faf7;
  --paper: #ffffff;
  --obsidian: #1f1f29;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --shadow-sm: rgba(0,0,0,0.15) 0px 2px 6px 0px;
  --shadow-subtle: rgb(222,226,222) 0px 0px 0px 1px;
  --shadow-card: rgba(0,0,0,0.08) 0px 1px 1px 0px, rgba(0,0,0,0.08) 0px 4px 5px 0px;
  --shadow-frost: rgba(0,0,0,0.06) 0px 2px 2px 0px, rgba(0,0,0,0.10) 0px 18px 40px -12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

::selection { background: rgba(0,129,192,0.16); }

:focus-visible { outline: 2px solid var(--hudson-blue); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--obsidian); color: #fff; padding: 10px 16px;
  border-radius: 4px; font-size: 15px; font-weight: 500;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Typography helpers ---------- */
.serif { font-family: var(--font-serif); font-feature-settings: "liga" 0; }

.display {
  font-family: var(--font-serif); font-feature-settings: "liga" 0;
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.375rem); /* 32 → 54px */
  line-height: 1.10; letter-spacing: -0.02em; color: var(--ink);
}
.heading {
  font-family: var(--font-serif); font-feature-settings: "liga" 0;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); /* → 40-48px */
  line-height: 1.1; letter-spacing: -0.02em; color: var(--ink);
}
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--steel);
}
.lede { font-size: clamp(1rem, 0.96rem + 0.4vw, 1.125rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--carbon); }
.muted { color: var(--steel); }

/* inline link inside a headline — the ONLY chromatic accent */
.ilink {
  color: var(--hudson-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}
.ilink:hover { color: var(--slate-cyan); }

/* body link */
.tlink {
  color: var(--hudson-blue); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.tlink:hover { color: var(--slate-cyan); }

/* ---------- Buttons ---------- */
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--obsidian); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 9px 16px; border-radius: 4px; border: 1px solid var(--obsidian);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-dark:hover { background: #15151c; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-dark svg { transition: transform 180ms var(--ease); }
.btn-dark:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--iron);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  padding: 9px 16px; border-radius: 4px; border: 1px solid var(--slate-cyan);
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn-outline { color: var(--slate-cyan); }
.btn-outline:hover { background: rgba(65,161,207,0.08); transform: translateY(-1px); }
.btn-outline svg { transition: transform 180ms var(--ease); }
.btn-outline:hover svg { transform: translateX(3px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: gap 180ms var(--ease), color 160ms var(--ease);
}
.arrow-link:hover { gap: 11px; }
.arrow-link--light { color: #fff; }

/* ---------- Floating pill nav ---------- */
.nav-shell {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
  padding-inline: 16px;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--graphite-night);
  border-radius: 50px; padding: 7px 7px 7px 18px;
  box-shadow: var(--shadow-sm);
  max-width: calc(100vw - 32px);
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; padding-right: 6px; }
.nav__brand-word { font-family: var(--font-serif); font-feature-settings: "liga" 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 22px; padding-inline: 14px; }
.nav__links a { color: #fff; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; opacity: 0.82; transition: opacity 160ms var(--ease); white-space: nowrap; }
.nav__links a:hover { opacity: 1; }
.nav__cta { background: var(--obsidian); color: #fff; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform 160ms var(--ease); }
.nav__cta:hover { transform: translateY(-1px); }
.nav__cta svg { transition: transform 160ms var(--ease); }
.nav__cta:hover svg { transform: translateX(2px); }
.nav__clock {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; opacity: 0.7; font-size: 13px; letter-spacing: -0.01em;
  padding-inline: 12px 14px; border-left: 1px solid rgba(255,255,255,0.16);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nav__toggle { display: none; }

/* mobile nav sheet */
.msheet { display: none; }

@media (max-width: 880px) {
  .nav__links, .nav__clock { display: none; }
  .nav { padding: 7px 7px 7px 16px; gap: 6px; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.08);
  }
  .nav__toggle span { display:block; width: 16px; height: 1.5px; background: #fff; position: relative; }
  .nav__toggle span::before, .nav__toggle span::after { content:""; position:absolute; left:0; width:16px; height:1.5px; background:#fff; transition: transform 180ms var(--ease); }
  .nav__toggle span::before { top: -5px; } .nav__toggle span::after { top: 5px; }
  .nav__toggle[aria-expanded="true"] span { background: transparent; }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

  .msheet {
    pointer-events: auto; display: block; position: fixed; left: 16px; right: 16px; top: 74px; z-index: 99;
    background: var(--graphite-night); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .msheet.open { opacity: 1; transform: none; visibility: visible; }
  .msheet a { display: block; color: #fff; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
  .msheet a:hover { background: rgba(255,255,255,0.06); }
  .msheet .btn-dark { width: 100%; justify-content: center; margin-top: 6px; background: #fff; color: var(--obsidian); border-color:#fff; }
}

/* ---------- Hero (full-bleed painted scene + frosted card) ---------- */
.hero {
  position: relative; width: 100%; height: min(92vh, 860px); min-height: 560px; overflow: hidden;
  /* dusk fallback behind the video — keeps the hero intentional if the clip
     can't play (older Safari/iOS without webm) or before it buffers */
  background: #0b1320 linear-gradient(165deg, #0b1733 0%, #243a63 42%, #7a566d 70%, #c5784b 100%);
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* scrim for headline legibility over the footage (darker lower-left, where the card sits) */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,22,0.62) 0%, rgba(7,11,22,0.22) 48%, rgba(7,11,22,0) 78%),
    linear-gradient(0deg, rgba(7,11,22,0.55) 0%, rgba(7,11,22,0) 46%);
}
.hero__art svg { width: 100%; height: 100%; }
.hero__inner { position: relative; height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: flex-end; }
.hero__card {
  position: relative; margin-bottom: clamp(40px, 8vh, 96px);
  max-width: 560px; width: 100%;
  background: rgba(18,22,38,0.42);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px; padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-frost);
  color: #fff;
}
.hero__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.82); display: inline-flex; align-items: center; gap: 8px; }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
.hero__title { font-family: var(--font-serif); font-feature-settings:"liga" 0; font-weight: 400; color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: 16px; }
.hero__body { color: rgba(255,255,255,0.86); font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.0625rem); line-height: 1.5; margin-top: 14px; max-width: 46ch; }
.hero__actions { margin-top: 22px; }

/* ---------- Editorial sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--paper { background: var(--paper); border-block: 1px solid var(--sage); }
.section--cream { background: var(--cream); }

.section__head { max-width: 24ch; }
.section--wide .section__head { max-width: 18ch; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--iron); margin-bottom: 18px; display:flex; align-items:center; gap:10px; }
.kicker::before { content:""; width: 22px; height: 1px; background: var(--fog); display:inline-block; }

/* 2-column editorial: text block + diagram card */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 40px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 0.92fr 1.08fr; } }
.split--narrow { }
@media (min-width: 880px) { .split--narrow { grid-template-columns: 1fr 1fr; } }

.sidebar-label { }
.sidebar-label h3 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.sidebar-label p { margin-top: 10px; color: var(--steel); font-size: 15px; line-height: 1.55; max-width: 42ch; }
.sidebar-label .arrow-link { margin-top: 18px; }

/* diagram card (DESIGN.md) */
.diagram {
  background: var(--paper); border: 1px solid var(--sage); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: clamp(20px, 3vw, 32px);
}
.diagram__cap { font-size: 13px; color: var(--steel); letter-spacing: -0.012em; margin-top: 16px; }

/* ---------- Reading list (offerings / dimensions) — NOT a card grid ---------- */
.reading { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
@media (min-width: 880px) { .reading { grid-template-columns: 0.5fr 1fr; gap: clamp(28px, 4vw, 56px); } }
.reading__entries { display: grid; }
.entry { padding-block: 26px; border-top: 1px solid var(--sage); }
.entry:first-child { border-top: none; padding-top: 0; }
.entry__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); }
.entry__title { font-family: var(--font-serif); font-feature-settings:"liga" 0; font-weight: 500; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.14; letter-spacing: -0.02em; margin-top: 8px; color: var(--ink); }
.entry__body { margin-top: 10px; color: var(--steel); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.entry__body strong { color: var(--carbon); font-weight: 600; }

/* ---------- Illustrative sample scorecard (single diagram card, monochrome) ---------- */
.scorecard { background: var(--paper); border: 1px solid var(--sage); border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.scorecard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--sage); background: var(--linen); }
.scorecard__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iron); border: 1px solid var(--mist); border-radius: 4px; padding: 3px 8px; }
.scorecard__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.scorecard__body { padding: 22px 20px; }
.scorecard__name { font-family: var(--font-serif); font-feature-settings:"liga" 0; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.scorecard__sub { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }
.scorecard__score { font-family: var(--font-serif); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.scorecard__score span { font-size: 1rem; color: var(--ash); }
.scorecard__band { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-top: 6px; text-align: right; }
.row { margin-top: 18px; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; }
.row__name { color: var(--carbon); font-weight: 500; }
.row__val { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); font-variant-numeric: tabular-nums; }
.bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--sage); overflow: hidden; }
.bar__fill { height: 100%; background: var(--iron); border-radius: 3px; transform-origin: left; }
.row__note { margin-top: 7px; font-size: 12.5px; color: var(--steel); line-height: 1.5; }
.row__note b { color: var(--hudson-blue); font-weight: 600; }
.scorecard__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--sage); font-size: 12px; color: var(--ash); letter-spacing: -0.01em; }

/* ---------- Painted band (mid/closing) ---------- */
.band { position: relative; width: 100%; height: min(70vh, 620px); min-height: 440px; overflow: hidden; }
.band__art { position: absolute; inset: 0; }
.band__art svg { width: 100%; height: 100%; }
.band__inner { position: relative; height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; }
.band__card {
  max-width: 520px; background: rgba(20,18,30,0.40);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 24px;
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-frost); color: #fff;
}
.band__title { font-family: var(--font-serif); font-feature-settings:"liga" 0; font-weight: 400; color:#fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.band__body { color: rgba(255,255,255,0.86); font-size: 1.0625rem; line-height: 1.5; margin-top: 14px; max-width: 42ch; }
.band__card .btn-outline { margin-top: 22px; border-color: rgba(255,255,255,0.7); color: #fff; }
.band__card .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Contact / form ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 40px; align-items: start; }
@media (min-width: 880px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__points { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.contact__points li { display: flex; align-items: center; gap: 10px; color: var(--carbon); font-size: 15px; }
.contact__points svg { flex: none; color: var(--iron); }

.form { background: var(--paper); border: 1px solid var(--sage); border-radius: 16px; box-shadow: var(--shadow-card); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--iron); margin-bottom: 7px; letter-spacing: -0.01em; }
.field input {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--sage); border-radius: 4px;
  padding: 11px 12px; min-height: 44px; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input::placeholder { color: var(--ash); }
.field input:focus { outline: none; border-color: var(--slate-cyan); box-shadow: 0 0 0 3px rgba(65,161,207,0.16); }
.form__note { margin-top: 12px; font-size: 13px; color: var(--steel); }
.form__note.ok { color: var(--iron); }
.form__note.err { color: var(--carbon); }
.form .btn-dark { width: 100%; justify-content: center; margin-top: 4px; }

/* ---------- Footer ---------- */
.foot { background: var(--linen); border-top: 1px solid var(--sage); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.7fr 1fr 1fr; } }
.foot__word { font-family: var(--font-serif); font-feature-settings:"liga" 0; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; display:inline-flex; align-items:center; gap: 9px; }
.foot__tag { color: var(--steel); font-size: 15px; margin-top: 12px; max-width: 38ch; line-height: 1.55; }
.foot__etym { color: var(--ash); font-size: 13px; margin-top: 10px; }
.foot__h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); margin-bottom: 14px; }
.foot__col a, .foot__col address { display: block; color: var(--steel); font-size: 15px; line-height: 2; font-style: normal; }
.foot__col a:hover { color: var(--hudson-blue); }
.foot__bottom { border-top: 1px solid var(--sage); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ash); letter-spacing: -0.01em; }
.foot__bottom span:last-child { max-width: 54ch; text-align: right; }

/* ---------- Reveal (gated behind .js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .foot__bottom span:last-child { text-align: left; }
  .hero__card { max-width: 100%; }
}
