/* ==========================================================================
   D M A T Trading — main stylesheet
   ========================================================================== */

@font-face { font-family: "Plex"; src: url("../fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0c1424;
  --navy: #0a1626;
  --navy-2: #101f35;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #e2dfd7;
  --line-dark: rgba(255, 255, 255, .14);
  --muted: #5b6474;
  --muted-light: #a9b2c2;
  --gold: #b8955a;
  --gold-2: #d9bc85;
  --topbar: 38px;
  --header: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--gold); }
.mono { font-family: "Plex Mono", ui-monospace, monospace; letter-spacing: .02em; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-weight: 300; letter-spacing: -.02em; line-height: 1.12; }
h2 { font-size: clamp(30px, 3.6vw, 50px); }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 28px; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--ink); }
.btn--line { border-color: currentColor; }
.btn--line::before { background: var(--gold); }
.btn--line:hover { color: var(--ink); border-color: var(--gold); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--ink); }
.btn--line-dark { border-color: var(--ink); color: var(--ink); }
.btn--line-dark::before { background: var(--ink); }
.btn--line-dark:hover { color: #fff; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }
.linkbtn { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------- Top bar & header ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60; height: var(--topbar);
  color: rgba(255,255,255,.7); font-size: 12px; border-bottom: 1px solid var(--line-dark);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__right { display: flex; gap: 28px; }
.topbar a:hover { color: var(--gold-2); }

.header {
  position: fixed; top: var(--topbar); left: 0; right: 0; z-index: 70; height: var(--header); color: #fff;
  transition: top .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-scrolled { top: 0; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) { .header.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(14px); } }
.header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; }
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: .14em; line-height: 1.1; }
.brand__name small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.nav { display: flex; gap: 34px; margin-left: auto; font-size: 14px; letter-spacing: .02em; }
.nav a { position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-cta { display: none !important; }
.header__cta { height: 44px; font-size: 12px; padding: 0 20px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff; background: var(--navy);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: kenburns 24s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,22,38,.94) 0%, rgba(10,22,38,.78) 42%, rgba(10,22,38,.35) 100%),
    linear-gradient(0deg, rgba(10,22,38,.95) 0%, rgba(10,22,38,0) 45%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__grid::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(217,188,133,.08), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { to { top: 100%; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; padding: calc(var(--topbar) + var(--header) + 60px) 0 clamp(72px, 12vh, 140px); }
.kicker { display: flex; align-items: center; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .24em; color: var(--gold-2); }
.kicker__line { width: 48px; height: 1px; background: var(--gold); }
.hero__title { font-size: clamp(36px, 5vw, 72px); font-weight: 300; margin: 26px 0 26px; max-width: 20ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 600px; color: rgba(255,255,255,.75); font-size: 18px; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* load-in animations (hero) */
.js .load-in { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .hero__title .line > span { transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes lineUp { to { transform: none; } }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; border-top: 1px solid var(--line-dark); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { padding: 18px 28px; font-size: 13px; text-transform: uppercase; letter-spacing: .18em; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); margin-right: -28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--paper { background: var(--paper); }
.label { display: flex; align-items: center; gap: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin-bottom: 26px; }
.label .mono { color: var(--gold); }
.label::after { content: ""; width: 48px; height: 1px; background: var(--line); order: 1; }
.label .mono { order: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
.head h2 { max-width: 17ch; }
.head__note { max-width: 340px; color: var(--muted); font-size: 15px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; }
.about__img { overflow: hidden; aspect-ratio: 5 / 6; background: var(--paper); }
.about__img img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; will-change: transform; }
.about__badge {
  position: absolute; right: -28px; bottom: 40px; background: var(--ink); color: #fff; padding: 26px 30px;
  display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--gold);
}
.about__badge .mono { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-2); }
.about__badge b { font-weight: 400; font-size: 22px; }
.about__badge span:last-child { font-size: 13px; color: var(--muted-light); }
.about__text h2 { margin-bottom: 28px; }
.about__text > p { color: var(--muted); font-size: 17px; margin-bottom: 16px; max-width: 60ch; }

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 48px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.stat b span { display: inline; margin: 0; font-size: inherit; color: inherit; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product { background: var(--white); position: relative; overflow: hidden; }
.product__img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6df; }
.product__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.02); transform: scale(1.001); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.product:hover .product__img img { transform: scale(1.06); filter: none; }
.product__body { padding: 28px 30px 34px; position: relative; }
.product__body::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.product:hover .product__body::before { transform: scaleX(1); }
.product__body .mono { font-size: 12px; color: var(--gold); }
.product h3 { margin: 10px 0 8px; }
.product p { color: var(--muted); font-size: 15px; }

/* ---------- Dark / approach ---------- */
.section--dark { background: var(--navy); color: #fff; overflow: hidden; }
.dark__bg { position: absolute; inset: 0; opacity: .16; }
.dark__bg img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; filter: grayscale(1); will-change: transform; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy) 0%, rgba(10,22,38,.6) 50%, var(--navy) 100%); z-index: 0; }
.section--dark > .container { position: relative; z-index: 1; }
.head--light .label { color: var(--muted-light); }
.head--light .label::after { background: var(--line-dark); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.principle { padding: 40px 32px 44px 0; position: relative; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.principle .mono { color: var(--gold-2); font-size: 14px; }
.principle h3 { margin: 22px 0 12px; font-size: 21px; }
.principle p { color: var(--muted-light); font-size: 15px; }
.serve { margin-top: 64px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.serve > .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-2); }
.serve ul { display: flex; flex-wrap: wrap; gap: 10px; }
.serve li { border: 1px solid var(--line-dark); padding: 9px 16px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- Timeline ---------- */
.timeline { --progress: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding-top: 40px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 6px; left: 0; height: 1px; }
.timeline::before { right: 0; background: var(--line); }
.timeline::after { width: calc(var(--progress) * 100%); background: var(--gold); transition: width .15s linear; }
.timeline li { position: relative; padding-right: 36px; }
.timeline__dot { position: absolute; top: -40px; left: 0; width: 13px; height: 13px; background: var(--white); border: 1px solid var(--ink); transform: rotate(45deg); transition: background .4s; }
.timeline li.in .timeline__dot { background: var(--gold); border-color: var(--gold); }
.timeline .mono { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.timeline h3 { margin: 12px 0 10px; font-size: 24px; font-weight: 400; }
.timeline p { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 150%; margin-top: -25%; object-fit: cover; opacity: .35; will-change: transform; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,20,36,.95) 0%, rgba(12,20,36,.6) 100%); }
.cta__inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { max-width: 18ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.cinfo { margin: 40px 0; border-top: 1px solid var(--ink); }
.cinfo div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding-top: 3px; }
.cinfo dd { font-size: 16px; }
.cinfo a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.cinfo a:hover { background-size: 100% 1px; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6); }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px;
}
.map__placeholder svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.map__placeholder p { font-size: 14px; color: var(--muted); max-width: 34ch; background: var(--paper); padding: 2px 6px; }
.map__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.form { background: var(--paper); padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; border-top: 2px solid var(--gold); }
.form h3 { font-size: 28px; font-weight: 300; }
.form__hint { color: var(--muted); font-size: 14px; margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #c9c5bb; padding: 24px 0 10px; border-radius: 0; outline: none; appearance: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 22px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .3s var(--ease), font-size .3s var(--ease), color .3s; transform-origin: left; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-20px); font-size: 12px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.field--select::after { content: ""; position: absolute; right: 4px; top: 30px; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form__error { color: #b3261e; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-light); padding: 90px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 64px; }
.brand--light { color: #fff; margin-bottom: 24px; }
.footer__brand p { max-width: 36ch; }
.footer h4 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; color: var(--gold-2); margin-bottom: 20px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__grid a:hover, .footer .linkbtn:hover { color: #fff; }
.footer .linkbtn { text-decoration: none; padding: 0; color: inherit; }
.footer__legal { border-top: 1px solid var(--line-dark); padding: 26px 0 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; }
.footer__legal .mono { max-width: 760px; }

/* ---------- Cookie banner & modal ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 120; width: min(440px, calc(100% - 40px));
  background: var(--white); color: var(--ink); padding: 26px 26px 22px; box-shadow: 0 30px 80px -20px rgba(12,20,36,.45); border-top: 2px solid var(--gold);
  animation: fadeUp .7s var(--ease) both;
}
.cookie[hidden], .modal[hidden] { display: none; }
.cookie p { font-size: 14px; color: var(--muted); }
.cookie p b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.cookie p a { color: var(--ink); text-decoration: underline; }
.cookie__btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cookie__btns .linkbtn { margin-left: 4px; }
.modal { position: fixed; inset: 0; z-index: 130; background: rgba(12,20,36,.6); display: grid; place-items: center; padding: 20px; }
.modal__box { background: var(--white); width: min(560px, 100%); padding: 34px; max-height: 90vh; overflow: auto; border-top: 2px solid var(--gold); }
.modal__box h3 { font-size: 26px; font-weight: 300; margin-bottom: 18px; }
.toggle { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle span { font-size: 14px; color: var(--muted); }
.toggle b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: none; width: 44px; height: 24px; border: 1px solid var(--ink); position: relative; margin-top: 2px; transition: background .3s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: transform .3s var(--ease), background .3s; }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--gold); }
.toggle input:disabled + i { opacity: .45; }
.toggle input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--navy); color: #fff; padding: calc(var(--header) + 80px) 0 70px; position: relative; overflow: hidden; }
.legal-hero .hero__grid { opacity: .4; }
.legal-hero .container { position: relative; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 18px; }
.legal-hero p { color: var(--muted-light); margin-top: 14px; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 80px; padding: 80px 0 120px; }
.legal__toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.legal__toc a:hover { color: var(--ink); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 26px; font-weight: 400; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body p, .legal__body li { color: #39404d; margin-bottom: 14px; }
.legal__body ul { list-style: none; margin-bottom: 16px; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 20px; }
.legal__body th, .legal__body td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__body th { font-weight: 500; background: var(--paper); }
.notice { background: #fff8e8; border-left: 2px solid var(--gold); padding: 16px 20px; font-size: 14px; color: #5a4a2a; margin-bottom: 36px; }
.header--solid { top: 0; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

/* ---------- Draft mode: #draft ---------- */
.draft [data-tbd] { outline: 2px dashed #e5484d !important; outline-offset: 4px; position: relative; }
.draft [data-tbd]::after { content: "TBD"; position: absolute; top: -10px; right: -4px; background: #e5484d; color: #fff; font: 600 10px/1 "Plex Mono", monospace; padding: 3px 6px; z-index: 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .header__cta { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { border-left: 0; padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 64px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline li { padding-top: 34px; border-top: 1px solid var(--line); }
  .timeline__dot { top: -7px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header: 64px; }
  .topbar { display: none; }
  .header { top: 0; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header) 0 auto 0; height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
    background: var(--navy); color: #fff; flex-direction: column; gap: 0; padding: 24px 20px 40px; font-size: 22px; font-weight: 300;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav__mobile-cta { display: inline-flex !important; margin-top: 28px; }
  .header.menu-open { background: var(--navy); color: #fff; box-shadow: none; }
  .hero__content { padding: calc(var(--header) + 48px) 0 48px; }
  .hero__lead { font-size: 16px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__badge { right: 16px; bottom: -28px; padding: 18px 22px; }
  .about__text { margin-top: 20px; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head { flex-direction: column; align-items: flex-start; margin-bottom: 44px; }
  .legal { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 90px; }
  .legal__toc { position: static; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .products { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 32px 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line-dark); }
  .timeline { grid-template-columns: 1fr; row-gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .cinfo div { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
  .cookie__btns .btn { flex: 1; }
  .ticker span { padding: 14px 20px; font-size: 12px; gap: 40px; }
  .ticker span::after { margin-right: -20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .load-in, .js .hero__title .line > span { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
