/* =============================================================================
   GELOT INTERNATIONAL — DESIGN SYSTEM v6 "ORIGIN INDEX"
   -----------------------------------------------------------------------------
   Art direction: a spice-trade ledger meets Swiss editorial. The page is a sheet
   of warm archival paper, not a white UI. Composition is a 12-column index with
   hairline rules running edge to edge, ghost section numerals, and oversized
   variable-serif display type (Fraunces WONK) against mono data-labels.

   Colour is used as SIGNAL, never as wash: turmeric carries warmth, vermilion is
   the interrupt, leaf green is tertiary. Geometry is squared — the leaf in the
   logo returns as a 26px corner cut on every media plate — and depth is a hard
   offset "letterpress" shadow, never a soft blur.

   01 TOKENS      02 RESET/BASE   03 TYPE       04 UTILITIES   05 BUTTONS
   06 TABLES      07 CHROME      08 MOTION

   Token names are a public contract: assets/css/app.css and assets/css/creative.css
   consume them and must never be edited in isolation.
   ========================================================================== */

/* ----------------------------------------------------------- 01  TOKENS ---- */
:root {
  /* SIGNAL PALETTE ------------------------------------------------------- */
  /* Vermilion is the brand interrupt and is spent sparingly. Turmeric carries
     warmth, leaf green is tertiary. No other hue earns a place here. */
  --red: #f02409;
  --red-solid: #cc1a04;
  --red-deep: #9c1203;
  --saffron: #e0a63c;
  --amber: #c07812;
  --amber-deep: #8f5606;
  --green: #4e6e12;
  --green-deep: #3b5309;

  /* ARCHIVE NEUTRALS ----------------------------------------------------- */
  /* Every neutral is warm-biased so the page reads as paper stock, not a UI. */
  --ink: #12100b;
  --ink-2: #1b1811;
  --ink-3: #262117;
  --paper: #fbf7ec;
  --paper-2: #f6f1e3;
  --bone: #f3eddf;
  --bone-2: #ebe3d0;
  --bone-3: #e0d6bd;
  --white: #ffffff;

  /* TEXT ----------------------------------------------------------------- */
  --fg: #17150f;
  --body-c: #46433a;
  --muted: #6b675a;
  --on-dark: #f5f0e3;
  --on-dark-2: rgba(245, 240, 227, .7);

  /* HAIRLINES ------------------------------------------------------------ */
  --line: #ded7c4;
  --line-2: #c8c0a8;
  --line-d: rgba(245, 240, 227, .16);
  --line-d2: rgba(245, 240, 227, .32);
  /* Hairline used for rules drawn on ink-filled panels (band, footer, footer
     band) where --line-d is too faint against a mid-dark fill. */
  --ink-d2: rgba(18, 16, 11, .55);

  /* TYPE ----------------------------------------------------------------- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* Fraunces is a variable face. WONK 1 unlocks its angular, slightly wrong
     letterforms — this is what stops the display type reading as a stock serif. */
  --wonk: "SOFT" 0, "WONK" 1;

  /* METRICS — everything snaps to a 4px rhythm --------------------------- */
  --wrap: 1360px;
  --gut: clamp(20px, 4.2vw, 60px);
  --sec: clamp(72px, 7.6vw, 128px);
  --hdr: 78px;
  --cut: 24px;
  --measure: 66ch;
  --gap: clamp(16px, 1.7vw, 28px);

  /* EFFECTS -------------------------------------------------------------- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --tick: repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 24px);
  --tick-d: repeating-linear-gradient(to right, var(--line-d2) 0 1px, transparent 1px 24px);
  --hatch: repeating-linear-gradient(45deg, rgba(245, 240, 227, .07) 0 1px, transparent 1px 9px);
  --hatch-ink: repeating-linear-gradient(45deg, rgba(23, 21, 15, .05) 0 1px, transparent 1px 9px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");

  /* SQUARED GEOMETRY — the system never rounds a corner ------------------ */
  --r-lg: 0px;
  --r-md: 0px;
  --r: 0px;
  --bg-warm: var(--bone-2);
  --bg-deep: var(--ink-2);
  --shadow-sm: 4px 4px 0 rgba(18, 16, 11, .07);
  --shadow-md: 7px 7px 0 rgba(18, 16, 11, .11);
}


/* ------------------------------------------------------ 02  RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 28px);
  overflow-x: clip;
  overscroll-behavior-x: none;
}
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .955rem + .16vw, 1.0625rem);
  line-height: 1.72;
  font-weight: 400;
  color: var(--body-c);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}
img, svg, video, picture { max-width: 100%; display: block; }
img { height: auto; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
main { display: block; counter-reset: secidx; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bone); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 0; }
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* Every media plate is squared; the logo's leaf crop becomes a corner notch. */
.plate, .cat-plate, .prod-plate, .band-plate, .story-plate,
.hero-plate, .pl-plate { border-radius: 0; }

/* ------------------------------------------------------------ 03  TYPE ---- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}
/* WONK is set explicitly alongside wght so no browser can reset the weight axis. */
h1 {
  font-size: clamp(2.9rem, 1.42rem + 5.6vw, 6.1rem);
  line-height: .92;
  letter-spacing: -.042em;
  font-weight: 800;
  font-variation-settings: "SOFT" 0, "WONK" 1, "wght" 800;
}
h2 {
  font-size: clamp(2rem, 1.14rem + 3.3vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.033em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "wght" 700;
}
h3 {
  font-size: clamp(1.15rem, 1.02rem + .56vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: -.017em;
  font-variation-settings: "SOFT" 0, "WONK" 1, "wght" 700;
}
h4 { font-size: 1.08rem; line-height: 1.24; font-variation-settings: "SOFT" 0, "WONK" 1, "wght" 700; }
h5 { font-size: .96rem; line-height: 1.3; font-variation-settings: "SOFT" 0, "WONK" 1, "wght" 700; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--fg); font-weight: 600; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--bone); }
.on-dark { color: var(--on-dark-2); }
.on-dark strong, .on-dark b { color: var(--bone); }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #548701;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.on-dark .eyebrow { color: var(--on-dark-2); }

/* Automatic editorial section numbering — generated, no markup change needed. */
.sec > .wrap > .sec-head .eyebrow::before,
.sec > .wrap > .sec-head-row .sec-head .eyebrow::before {
  content: counter(secidx, decimal-leading-zero);
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: .715rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--red-solid);
  padding-right: 12px;
  border-right: 1px solid var(--line-2);
}

/* ------------------------------------------------------- 04  UTILITIES ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.sec { position: relative; padding-block: var(--sec); }
.sec-alt { background-color: var(--bone-2); background-image: var(--grain); }
.sec-white { background-color: var(--paper); background-image: var(--grain); }
/* Section content always paints above the ghost numeral. */
.sec > .wrap { position: relative; z-index: 1; }
.sec-head { max-width: 78ch; margin-bottom: clamp(40px, 4.6vw, 68px); }
.sec-head h2 + .lede { margin-top: 18px; }

/* GHOST SECTION NUMERAL ------------------------------------------------------
   A huge outlined index figure bled into the top-right of every numbered section.
   It is generated from the secidx counter, so it costs no markup and renumbers
   itself the moment a section is inserted or removed.

   The measure rules in app.css claim ::after on .curve-top sections and ::before
   on .curve-bot ones. Rather than fight them for the same pseudo-element, the
   numeral moves to whichever side is free. A section carrying both rules keeps
   the rules and simply has no numeral. */
.sec:not(.curve-top)::after,
.sec.curve-top:not(.curve-bot)::before {
  content: counter(secidx, decimal-leading-zero);
  position: absolute;
  top: clamp(2px, .7vw, 10px);
  right: var(--gut);
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "SOFT" 0, "WONK" 0, "wght" 800;
  font-size: clamp(4.4rem, 11vw, 12rem);
  line-height: .8;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-3);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: .85;
}
.on-dark.sec:not(.curve-top)::after,
.on-dark.sec.curve-top:not(.curve-bot)::before { -webkit-text-stroke-color: var(--line-d2); }
/* Sections whose head row carries a right-hand action drop the numeral low and
   small, so it can never crowd the button. */
.sec:has(> .wrap > .sec-head-row):not(.curve-top)::after,
.sec:has(> .wrap > .sec-head-row).curve-top:not(.curve-bot)::before {
  top: auto;
  bottom: clamp(14px, 1.8vw, 26px);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  opacity: .55;
}

/* THE INDEX GRID -------------------------------------------------------------
   A real 12-column editorial grid, exposed so composition can be asymmetric:
   offset content by whole columns instead of nudging it with magic margins. */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.grid12 > * { grid-column: span 12; }
@media (min-width: 761px) {
  .c3 { grid-column: span 3; }
  .c4 { grid-column: span 4; }
  .c5 { grid-column: span 5; }
  .c6 { grid-column: span 6; }
  .c7 { grid-column: span 7; }
  .c8 { grid-column: span 8; }
  .c9 { grid-column: span 9; }
  .push1 { margin-left: calc((100% + var(--gap)) / 12); }
  .push2 { margin-left: calc((100% + var(--gap)) / 6); }
  .push3 { margin-left: calc((100% + var(--gap)) / 4); }
}
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}
.sec-head-row .sec-head { flex: 1 1 30ch; }
.split { display: grid; gap: clamp(36px, 5.5vw, 88px); align-items: center; }
@media (min-width: 901px) {
  .split { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
}
.reveal { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.rule {
  height: 6px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--tick);
}
.on-dark .rule, .rule.on-dark { border-color: var(--line-d); background: var(--tick-d); }

/* --------------------------------------------------------- 05  BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 50px;
  font-family: var(--font-body);
  font-size: .845rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line-2); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

.btn-red { background: var(--red-solid); border-color: var(--red-deep); color: #fff; }
.btn-red:hover { background: var(--red-deep); box-shadow: 5px 5px 0 rgba(20, 22, 15, .85); }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bone);
  box-shadow: 5px 5px 0 var(--line-2);
}
.btn-ghost.on-dark { color: var(--on-dark); border-color: var(--line-d2); background: transparent; }
.btn-ghost.on-dark:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(248, 8, 0, .55);
}
.on-dark .btn-ghost { color: var(--on-dark); border-color: var(--line-d2); background: transparent; }
/* ---------------------------------------------------------- 07  TABLES ---- */
.spec-wrap { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--paper); }
.spec { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; }
.spec caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: .715rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: var(--ink);
}
.spec th, .spec td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec thead th {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bone-2);
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}
.spec tbody tr:nth-child(even) { background: rgba(20, 22, 15, .022); }
.spec tbody th { font-weight: 600; color: var(--fg); width: 38%; }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------- 09  CHROME ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bone);
  font-size: .8rem;
}
.skip-link:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------- 10  MOTION ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes scanline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

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


/* ------------------------------------------------------- 08  LINK / TEXT ---- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-solid);
}
.card-link .ic { width: 14px; height: 14px; transition: transform .22s var(--ease); }
.card-link:hover { color: var(--red-deep); }

.sec, .cta-band { counter-increment: secidx; }

.lede {
  font-size: clamp(1.03rem, .98rem + .28vw, 1.2rem);
  line-height: 1.66;
  color: var(--body-c);
  max-width: var(--measure);
}
.on-dark .lede { color: var(--on-dark-2); }
.note {
  font-family: var(--font-mono);
  font-size: .755rem;
  line-height: 1.6;
  letter-spacing: .015em;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--saffron);
}
.on-dark .note { color: var(--on-dark-2); }
.accent { color: var(--red); font-style: italic; }
.on-dark .accent { color: #ff7168; }
