/* ==========================================================
   MODEXA GLOBAL LTD — Inventory Process Consulting
   Design language: warehouse / ledger / bin-label.
   Charcoal + bone + signal amber, square corners, mono labels.
   ========================================================== */

:root {
  --ink: #0e1110;
  --coal: #151918;
  --coal-2: #1d2220;
  --line-d: #2b312e;
  --bone: #f1efe8;
  --paper: #faf9f5;
  --concrete: #dcd8ca;
  --amber: #ffb400;
  --amber-d: #e29f00;
  --steel: #565e58;
  --steel-l: #a9b0ab;
  --text: #1a1e1c;

  --f-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --header-h: 76px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--amber); color: var(--ink); padding: 10px 16px; font-family: var(--f-mono); font-size: .8rem; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .005em; line-height: .96; font-weight: 700; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); font-weight: 600; }
h3 { font-size: 1.65rem; font-weight: 600; line-height: 1.05; }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0;
  font-family: var(--f-mono); font-weight: 500; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 22px;
}
.eyebrow-light { color: var(--steel-l); }
.eyebrow .idx {
  display: inline-block; background: var(--ink); color: var(--amber);
  padding: 3px 8px; margin-right: 12px; letter-spacing: .08em;
}
.eyebrow-light .idx { background: var(--amber); color: var(--ink); }
.eyebrow .idx-ink { background: var(--ink); color: var(--amber); }
.eyebrow .sq { width: 10px; height: 10px; background: var(--amber); margin-right: 12px; }
.eyebrow .slash { color: var(--amber); margin: 0 10px; }

.lead { font-size: 1.28rem; line-height: 1.6; font-weight: 500; color: var(--ink); }
.lead-light { color: var(--bone); }
.code { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 16px 22px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translate(-3px, -3px); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { box-shadow: 4px 4px 0 var(--bone); }
.btn-ghost { border-color: var(--steel-l); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); box-shadow: 4px 4px 0 var(--amber); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-ink:hover { box-shadow: 4px 4px 0 var(--amber); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--bone); border-bottom: 2px solid var(--ink);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { width: 210px; height: 50px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-family: var(--f-mono); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 6px 0; position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.site-nav .nav-cta { background: var(--ink); color: var(--amber); padding: 11px 18px; transition: background .15s, color .15s; }
.site-nav .nav-cta:hover { background: var(--amber); color: var(--ink); }

.nav-toggle { display: none; background: var(--ink); color: var(--bone); border: 0; width: 46px; height: 46px; place-items: center; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--bone); overflow: hidden;
  padding: 80px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(241,239,232,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241,239,232,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5.1rem); line-height: .94; margin-bottom: 36px; }
.hero h1 .hl { display: block; }
.hero h1 .hl-amber { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-flow { display: flex; gap: 0; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-l); }
.hero-flow li { display: flex; align-items: center; }
.hero-flow li + li::before { content: ""; width: 44px; height: 1px; background: var(--steel); margin: 0 14px; }
.hero-flow li::first-letter { color: var(--amber); }

.hero-visual { position: relative; padding-bottom: 56px; }
.hero-photo {
  position: relative; aspect-ratio: 1 / 1.02;
  clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 72px, 100% 100%, 0 100%);
  background: var(--coal);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,17,16,.55), transparent 55%); }
.hero-visual::before {
  content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 72px;
  background: var(--amber); clip-path: polygon(0 0, 100% 100%, 0 100%); transform: translate(0, 0);
}

.ledger {
  position: absolute; left: -48px; bottom: 0; width: min(420px, 92%);
  background: var(--bone); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--amber);
}
.ledger-head { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--bone); padding: 10px 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.ledger-tag { color: var(--amber); }
.ledger table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .72rem; }
.ledger th { text-align: left; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); padding: 8px 14px 6px; border-bottom: 1px solid var(--ink); }
.ledger td { padding: 8px 14px; border-bottom: 1px dashed #b9b5a6; white-space: nowrap; }
.ledger tr:last-child td { border-bottom: 0; }
.st { font-weight: 600; display: inline-block; padding: 1px 7px; font-size: .68rem; }
.st-ok { background: #e1e8dc; color: #25402a; }
.st-flag { background: var(--amber); color: var(--ink); }
.row-flag td { background: #fff4d3; }
.barcode { height: 22px; margin: 10px 14px 12px; }

/* barcode graphic (pure CSS) */
.barcode, .barcode-wide {
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px),
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 23px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 17px);
}

/* ---------- ticker ---------- */
.ticker { background: var(--amber); color: var(--ink); border-block: 2px solid var(--ink); overflow: hidden; }
.ticker-track {
  display: flex; align-items: center; gap: 28px; width: max-content; padding: 14px 0;
  font-family: var(--f-mono); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  animation: ticker 48s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.ticker-track i { width: 9px; height: 9px; background: var(--ink); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-bone { background: var(--bone); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--bone); }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .lead { margin-top: 24px; }
.section-ink h2, .section-ink h3 { color: var(--bone); }

/* profile */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-body { display: grid; gap: 22px; color: #2b312e; }
.split-body .lead { color: var(--ink); }
.split-head h2 { position: relative; padding-bottom: 28px; }
.split-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 88px; height: 8px; background: var(--amber); }

.shift {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  margin-top: 72px; padding: 40px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.shift-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.scatter { display: grid; gap: 12px; }
.scatter li {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  padding: 11px 18px; background: #fff; border: 1.5px dashed var(--ink); font-weight: 500;
  transform: translateX(var(--x)) rotate(var(--r));
}
.scatter .ic { color: var(--steel); }
.shift-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.shift-mid .ic { width: 56px; height: 56px; stroke-width: 1.4; background: var(--amber); padding: 12px; }
.ordered { display: grid; gap: 0; border: 2px solid var(--ink); background: #fff; }
.ordered li { display: grid; grid-template-columns: 8px 1fr; align-items: center; column-gap: 16px; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--ink); }
.ordered li:last-child { border-bottom: 0; }
.ordered li::before { content: ""; grid-row: 1 / 3; align-self: stretch; background: var(--amber); }
.ordered b { font-family: var(--f-head); font-size: 1.35rem; text-transform: uppercase; font-weight: 600; line-height: 1.1; grid-column: 2; }
.ordered span { grid-column: 2; font-size: .95rem; color: var(--steel); line-height: 1.4; }

/* services — bin matrix */
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.bin {
  position: relative; background: var(--coal); padding: 34px 32px 38px; min-height: 300px;
  display: flex; flex-direction: column;
  transition: background .2s ease, color .2s ease;
}
.bin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.bin .code { color: var(--steel-l); transition: color .2s; }
.bin-ic { width: 54px; height: 54px; display: grid; place-items: center; border: 1.5px solid var(--amber); color: var(--amber); transition: background .2s, color .2s, border-color .2s; }
.bin-ic .ic { width: 26px; height: 26px; }
.bin h3 { margin-bottom: 14px; font-size: 1.75rem; }
.bin p { color: #c3c9c4; font-size: 1rem; line-height: 1.65; transition: color .2s; }
.bin::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 5px; background: var(--amber); transition: width .3s ease; }
.bin:hover { background: var(--coal-2); }
.bin:hover::after { width: 100%; }
.bin:hover .bin-ic { background: var(--amber); color: var(--ink); }

/* focus */
.focus-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.focus-photo { position: relative; margin: 0 14px 14px 0; box-shadow: 14px 14px 0 var(--amber); background: var(--coal); }
.focus-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% center; }
.focus-photo figcaption {
  position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px;
  background: var(--ink); color: var(--bone); padding: 14px 20px; font-size: .92rem; font-weight: 500;
}
.focus-photo .code { color: var(--amber); }
.focus-body .lead { margin: 24px 0 34px; }
.ledger-list { counter-reset: row; border-top: 2px solid var(--ink); }
.ledger-list li {
  display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 12px;
  padding: 15px 4px; border-bottom: 1px solid #c9c5b6; font-weight: 500; transition: background .15s, padding .15s;
}
.ledger-list li:hover { background: var(--bone); padding-left: 12px; }
.ledger-list .n { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; color: var(--steel); }
.ledger-list .tick { width: 30px; height: 30px; padding: 4px; background: var(--amber); color: var(--ink); stroke-width: 2.4; }

/* method */
.method { background-image: linear-gradient(to right, rgba(241,239,232,.04) 1px, transparent 1px); background-size: 56px 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step { position: relative; }
.step-rail { position: relative; height: 18px; margin-bottom: 26px; }
.step-rail::before { content: ""; position: absolute; left: 0; right: -36px; top: 8px; height: 2px; background: var(--line-d); }
.step:last-child .step-rail::before { right: 0; }
.node { position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--bone); }
.node-amber { background: var(--amber); }
.step-num {
  display: block; font-family: var(--f-head); font-weight: 700; font-size: 7rem; line-height: .9; margin-bottom: 14px;
  color: transparent; -webkit-text-stroke: 1.5px var(--amber);
}
.step h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 2rem; }
.step h3 .ic { color: var(--amber); width: 1.1em; height: 1.1em; }
.step p { color: #c3c9c4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { border: 1px solid var(--amber); color: var(--bone); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; }
.proportion {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 64px; padding: 24px 30px;
  background: var(--coal); border-left: 5px solid var(--amber); font-size: 1.12rem; color: var(--bone); max-width: 880px;
}
.proportion .ic { color: var(--amber); margin-top: 4px; width: 1.5em; height: 1.5em; }

/* value */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.value-photo { margin: 0 0 14px 14px; box-shadow: -14px 14px 0 var(--ink); }
.value-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.value-copy h2 { margin-bottom: 26px; }
.value-copy .lead { margin-bottom: 20px; }
.value-copy p:last-child { color: #2b312e; }
.pillars { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin-top: 80px; }
.pillar { display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; background: var(--paper); border: 2px solid var(--ink); }
.pillar .code { color: var(--steel); }
.pillar b { font-family: var(--f-head); font-size: 2rem; text-transform: uppercase; font-weight: 600; line-height: 1.05; }
.pillar span:last-child { color: var(--steel); font-size: .98rem; line-height: 1.45; }
.pillar-hl { background: var(--amber); }
.pillar-hl .code, .pillar-hl span:last-child { color: #3a2f00; }
.pillar-link { display: grid; place-items: center; width: 64px; }
.pillar-link .ic { width: 36px; height: 36px; color: var(--ink); }

/* clients — bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(210px, auto)); grid-auto-rows: auto; gap: 16px; }
.bento-photo { position: relative; grid-column: 1 / 3; grid-row: 1 / 3; overflow: hidden; border: 2px solid var(--ink); background: var(--coal); }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.bento-photo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--amber); color: var(--ink); padding: 10px 18px;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 26px; background: #fff; border: 2px solid var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.tile:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.tile .ic { width: 38px; height: 38px; stroke-width: 1.5; }
.tile p { font-weight: 500; line-height: 1.5; font-size: 1.04rem; }
.tile-amber { background: var(--amber); }
.tile-dark { background: var(--ink); color: var(--bone); }
.tile-dark .ic { color: var(--amber); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 22px; min-height: 0; }
.tile-wide .ic { padding: 10px; width: 62px; height: 62px; background: var(--bone); border: 2px solid var(--ink); }

/* commitment */
.commit { background: var(--amber); color: var(--ink); padding: 104px 0 0; overflow: hidden; }
.commit .eyebrow { color: var(--ink); }
.commit h2 { font-size: clamp(3.6rem, 11vw, 9.5rem); font-weight: 700; line-height: .88; margin-bottom: 28px; }
.commit-text { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; font-weight: 500; max-width: 26em; }
.barcode-wide { height: 64px; margin-top: 80px; opacity: .92; }

/* contact */
.contact { background-image: linear-gradient(to right, rgba(241,239,232,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(241,239,232,.04) 1px, transparent 1px); background-size: 56px 56px; }
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; }
.contact-copy h2 { margin-bottom: 28px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.contact-copy .lead { margin-bottom: 18px; }
.contact-copy p:last-child { color: #c3c9c4; max-width: 34em; }
.contact-card { background: var(--bone); color: var(--ink); padding: 38px; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--amber); display: grid; gap: 22px; }
.card-label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.mail { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.6rem); line-height: 1.1; overflow-wrap: anywhere; }
.mail .ic { width: 42px; height: 42px; padding: 9px; flex: none; background: var(--amber); color: var(--ink); }
.mail:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.contact-card .btn { justify-self: start; }
.card-list { display: grid; gap: 14px; border-top: 1px solid var(--ink); padding-top: 22px; font-size: .96rem; line-height: 1.5; }
.card-list li { display: flex; gap: 12px; align-items: flex-start; }
.card-list .ic { margin-top: 2px; color: var(--steel); }

/* ---------- footer ---------- */
.site-footer { background: #090b0a; color: var(--steel-l); border-top: 5px solid var(--amber); padding: 40px 0 34px; font-size: .92rem; line-height: 1.65; }
.footer-inner { display: grid; gap: 6px; }
.footer-reg { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; color: #8b928d; }
.footer-reg span { color: var(--amber); margin: 0 6px; }
.sub-footer { background: #050606; border-top: 1px solid var(--line-d); }
.sub-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; flex-wrap: wrap; }
.sub-brand { display: block; line-height: 0; }
.sub-brand img { width: 210px; height: 50px; }
.sub-links { display: flex; gap: 30px; flex-wrap: wrap; }
.sub-links a { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); text-decoration: none; position: relative; padding: 4px 0; }
.sub-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.sub-links a:hover::after { transform: scaleX(1); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .bins .reveal:nth-child(3n+2) { transition-delay: .08s; }
.js .bins .reveal:nth-child(3n+3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(2) { transition-delay: .1s; }
.js .steps .reveal:nth-child(3) { transition-delay: .2s; }

/* ==========================================================
   Legal pages (terms / privacy)
   ========================================================== */
.legal-hero { background: var(--ink); color: var(--bone); padding: 72px 0 64px; position: relative; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(241,239,232,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(241,239,232,.06) 1px, transparent 1px); background-size: 56px 56px; }
.legal-hero .container { position: relative; }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 14px; }
.legal-hero p { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.legal-wrap { background: var(--paper); padding: 72px 0 112px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 72px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); border: 2px solid var(--ink); background: var(--bone); padding: 22px 22px 18px; }
.toc p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; counter-reset: t; }
.toc a { display: block; text-decoration: none; font-size: .9rem; line-height: 1.4; padding: 5px 0 5px 10px; border-left: 3px solid transparent; }
.toc a:hover { border-left-color: var(--amber); background: #fff; }
.legal { max-width: 780px; }
.legal > p, .legal li { color: #2b312e; }
.legal > p { margin-bottom: 18px; }
.legal h2 { font-size: 2.1rem; margin: 52px 0 16px; padding-top: 22px; border-top: 2px solid var(--ink); font-weight: 600; }
.legal h2:first-of-type { margin-top: 36px; }
.legal ul { margin: 0 0 20px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 26px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; background: var(--amber); }
.legal a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.legal a:hover { background: var(--amber); }
.legal .updated { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--steel); text-transform: uppercase; }
.company-card { border: 2px solid var(--ink); background: var(--bone); padding: 24px 28px; margin: 6px 0 8px; box-shadow: 8px 8px 0 var(--amber); }
.company-card ul { margin: 0; }
.company-card li::before { background: var(--ink); }
.table-wrap { overflow-x: auto; margin: 6px 0 24px; border: 2px solid var(--ink); background: #fff; }
.legal table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.legal th { background: var(--ink); color: var(--bone); text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; }
.legal td { padding: 14px 16px; border-bottom: 1px solid #d7d3c4; vertical-align: top; line-height: 1.5; color: #2b312e; }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { font-weight: 500; color: var(--ink); width: 48%; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .site-nav { gap: 18px; }
  .brand img { width: 180px; height: auto; }
  .hero-grid { gap: 44px; }
  .ledger { left: -24px; }
  .bins { grid-template-columns: repeat(2, 1fr); }
  .focus-grid, .value-grid { gap: 52px; }
  .split { gap: 48px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 2px solid var(--ink); padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid #cfcbbc; font-size: .84rem; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { margin-top: 18px; text-align: center; border: 0; }

  .section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .ledger { left: 0; }
  .split, .focus-grid, .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .focus-photo { max-width: 520px; }
  .focus-photo img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step-rail::before, .step:last-child .step-rail::before { right: 0; }
  .step-num { font-size: 5.5rem; }
  .shift { grid-template-columns: 1fr; padding: 28px; }
  .shift-mid { flex-direction: row; justify-content: flex-start; }
  .shift-mid .ic { transform: rotate(90deg); }
  .pillars { grid-template-columns: 1fr; }
  .pillar-link { width: auto; height: 48px; }
  .pillar-link .ic { transform: rotate(90deg); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-photo { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16 / 9; }
  .tile-wide { grid-column: span 2; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  .brand img, .sub-brand img { width: 168px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-flow li + li::before { width: 22px; margin: 0 10px; }
  .ledger { position: relative; width: 100%; margin-top: -48px; box-shadow: 6px 6px 0 var(--amber); }
  .ledger td, .ledger th { padding-inline: 10px; }
  .hero-visual { padding-bottom: 12px; }
  .bins { grid-template-columns: 1fr; }
  .bin { min-height: 0; padding: 28px 24px 32px; }
  .bin-top { margin-bottom: 28px; }
  .bento { grid-template-columns: 1fr; }
  .bento-photo, .tile-wide { grid-column: auto; }
  .tile { min-height: 0; }
  .ledger-list li { grid-template-columns: 48px 1fr 30px; }
  .contact-card { padding: 28px 22px; box-shadow: 8px 8px 0 var(--amber); }
  .sub-footer-inner { flex-direction: column; align-items: flex-start; }
  .legal h2 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
