/* DBAN — layout: editorial split hero with a live "marketplace orbit", then alternating paper / forest bands. */
:root {
  --paper: #FCFBF7;      /* page ground, warm off-white */
  --cream: #F5F1E8;      /* brand cream, soft sections */
  --ink: #0B241F;        /* text, green-black */
  --muted: #4B5F5A;      /* secondary text */
  --emerald: #0F6B5A;    /* brand primary */
  --emerald-2: #138A73;  /* hover / glow */
  --forest: #0A3D34;     /* deep bands, footer */
  --gold: #E3A93B;       /* knight gold, highlights */
  --gold-soft: #F3D79C;
  --line: rgba(10, 61, 52, .12);
  --on-dark: #F5F1E8;
  --on-dark-muted: rgba(245, 241, 232, .72);
  --card: #FFFFFF;

  --f-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --step--1: .875rem; --step-0: 1rem; --step-1: 1.1875rem; --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
  --radius: 18px;
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  font-feature-settings: "ss01", "cv11"; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(252, 251, 247, .92); }
img, svg { max-width: 100%; }
a { color: var(--emerald); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; margin: 0; color: var(--forest); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; cursor: pointer; font-family: inherit; }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 10px 30px -12px rgba(15, 107, 90, .7); }
.btn-primary:hover { background: var(--emerald-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(15, 107, 90, .35); color: var(--emerald); background: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--emerald); background: #fff; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(252, 251, 247, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(15, 107, 90, .08); color: var(--emerald); }
.nav .btn { margin-left: 10px; padding: 11px 18px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--emerald-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--forest); }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% 20%, rgba(19, 138, 115, .14), transparent 60%),
  radial-gradient(700px 420px at 10% 90%, rgba(227, 169, 59, .12), transparent 60%),
  var(--paper); }
.hero canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero .grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); opacity: .7; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 750; letter-spacing: -.04em; }
.hero h1 .hl { position: relative; color: var(--emerald); white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .hl path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; animation: draw 1.4s .4s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 8px; font-size: .9rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

/* orbit visual */
.orbit-card { position: relative; border-radius: 28px; aspect-ratio: 1 / 1; max-width: 100%; width: 100%; background:
  radial-gradient(circle at 50% 50%, #12806B 0%, #0D5A4B 38%, var(--forest) 72%);
  box-shadow: 0 40px 80px -40px rgba(10, 61, 52, .65), inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.orbit-card::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 75%); pointer-events: none; }
.orbit-card svg.orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { fill: none; stroke: rgba(245, 241, 232, .18); stroke-width: 1.2; }
.ring.dash { stroke-dasharray: 3 9; stroke: rgba(243, 215, 156, .45); }
.spin { transform-origin: 260px 260px; animation: spin 48s linear infinite; }
.spin.slow { animation-duration: 90s; animation-direction: reverse; }
.counter { transform-box: fill-box; transform-origin: center; animation: spin 48s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip rect { fill: rgba(255, 255, 255, .96); }
.chip text { font-family: var(--f-body); font-weight: 650; font-size: 15px; fill: var(--forest); }
.chip circle { fill: var(--gold); }
.core-glow { animation: pulse 3.6s ease-in-out infinite; transform-origin: 260px 260px; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.08); } }
.orbit-label { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.orbit-label b { color: var(--gold-soft); font-weight: 500; }

/* ---------- marquee ---------- */
.marquee { background: var(--forest); color: var(--on-dark); overflow: hidden; border-block: 1px solid rgba(255,255,255,.06); }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; padding-block: 18px; }
.marquee span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.marquee span::after { content: ""; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid > * { min-width: 0; }
.about-copy { display: grid; gap: 18px; font-size: var(--step-1); color: var(--muted); }
.about-copy strong { color: var(--ink); font-weight: 600; }
.name-key { display: grid; gap: 2px; padding: 26px 28px; background: var(--cream); border-radius: var(--radius); }
.name-key .row { display: grid; grid-template-columns: 54px 1fr; align-items: baseline; gap: 10px; padding-block: 8px; border-bottom: 1px dashed rgba(10, 61, 52, .16); }
.name-key .row:last-child { border-bottom: 0; }
.name-key .l { font-size: 2rem; font-weight: 800; color: var(--emerald); letter-spacing: -.03em; line-height: 1; }
.name-key .w { font-size: 1.15rem; font-weight: 600; color: var(--forest); }
.name-key .w small { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.pillars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: var(--step-0); }
.pillars li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.pillars svg { width: 20px; height: 20px; color: var(--emerald); flex: none; margin-top: 3px; }

/* ---------- services ---------- */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px 24px 26px; display: grid; gap: 12px; align-content: start; border: 1px solid rgba(10, 61, 52, .08); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(227, 169, 59, .18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10, 61, 52, .45); }
.card:hover::before { opacity: 1; }
.card .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(15, 107, 90, .09); display: grid; place-items: center; color: var(--emerald); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .97rem; }

/* ---------- channels ---------- */
.channels-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.channel { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; align-content: start; min-width: 0; }
.channel.main { grid-row: span 2; background: linear-gradient(160deg, var(--forest), #0E5446); color: var(--on-dark); border: 0; position: relative; overflow: hidden; }
.channel.main h3 { color: #fff; font-size: var(--step-3); }
.channel.main p { color: var(--on-dark-muted); font-size: var(--step-1); max-width: 40ch; }
.channel.main .bars { position: absolute; right: -10px; bottom: -10px; width: 52%; opacity: .9; }
.status { justify-self: start; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(15, 107, 90, .1); color: var(--emerald); }
.channel.main .status { background: var(--gold); color: var(--forest); }
.channel h3 { font-size: 1.25rem; }
.channel p { color: var(--muted); }
.channel-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.channel-list span { padding: 8px 14px; border-radius: 10px; background: var(--cream); font-weight: 600; color: var(--forest); font-size: .95rem; }

/* ---------- process ---------- */
.process { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 80% 0%, rgba(19, 138, 115, .45), transparent 70%); pointer-events: none; }
.process .wrap { position: relative; }
.process .eyebrow { color: var(--gold-soft); }
.process h2 { color: #fff; }
.process .section-head p { color: var(--on-dark-muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(227,169,59,.15), var(--gold), rgba(227,169,59,.15)); }
.steps::after { content: ""; position: absolute; top: 22px; left: 4%; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 18px 6px rgba(227, 169, 59, .6); animation: travel 6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes travel { 0% { left: 4%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(96% - 12px); opacity: 0; } }
.step { position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); border: 2px solid var(--gold); font-family: var(--f-mono); font-weight: 500; color: var(--gold-soft); position: relative; z-index: 1; }
.step h3 { color: #fff; font-size: 1.12rem; }
.step p { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- standards ---------- */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.standard { padding: 28px 24px 8px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.standard + .standard { padding-left: 24px; border-left: 1px solid var(--line); }
.standard .k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; filter: brightness(.82); }
.standard h3 { font-size: 1.12rem; }
.standard p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta-band { padding-block: 0 clamp(64px, 9vw, 120px); }
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 64px); background: linear-gradient(120deg, var(--emerald), var(--forest)); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 1px solid rgba(243, 215, 156, .35); box-shadow: 0 0 0 60px rgba(243, 215, 156, .05), 0 0 0 120px rgba(243, 215, 156, .04); pointer-events: none; }
.cta h2 { color: #fff; font-size: var(--step-3); }
.cta p { color: var(--on-dark-muted); margin-top: 12px; font-size: var(--step-1); }
.cta-actions { display: grid; gap: 12px; justify-items: start; position: relative; z-index: 1; }
.mail-line { font-family: var(--f-mono); font-size: .92rem; color: var(--gold-soft); user-select: all; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding-block: 56px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
.site-footer img { height: 36px; width: auto; }
.site-footer p { margin-top: 14px; max-width: 42ch; font-size: .95rem; }
.site-footer h4 { margin: 0 0 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }

/* ---------- inner pages ---------- */
.page-hero { background: radial-gradient(700px 300px at 85% 0%, rgba(19, 138, 115, .14), transparent 65%), var(--cream); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.035em; }
.page-hero p { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.legal .wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 72px); }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; display: grid; gap: 4px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--emerald); border-left-color: var(--gold); }
.prose { max-width: 70ch; min-width: 0; display: grid; gap: 14px; color: #263B36; }
.prose h2 { font-size: 1.45rem; margin-top: 26px; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.1rem; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .meta { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.prose .note { background: var(--cream); border-radius: 14px; padding: 18px 20px; }

/* contact */
.contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 80px); }
.contact .wrap > * { min-width: 0; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 16px; background: var(--cream); }
.info-item .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--emerald); }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1rem; letter-spacing: -.01em; }
.info-item p { color: var(--muted); font-size: .95rem; word-break: break-word; }
.copy-btn { margin-top: 6px; font: 600 .85rem var(--f-body); color: var(--emerald); background: none; border: 1px solid rgba(15,107,90,.3); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(10, 61, 52, .35); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--forest); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid rgba(10, 61, 52, .16); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(15, 107, 90, .14); }
.field .err { color: #A4332A; font-size: .85rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--emerald); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: rgba(15, 107, 90, .1); color: var(--forest); }
.form-status.bad { background: rgba(164, 51, 42, .08); color: #7E271F; }

/* reveal: transform only, content always visible */
.js .reveal { transform: translateY(18px); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { transform: none; }


/* =========================================================== motion layer v2 */
/* scroll progress */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--emerald), var(--gold)); box-shadow: 0 0 12px rgba(227, 169, 59, .6); }

/* back to top with progress ring */
.to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: var(--gold-soft); display: grid; place-items: center; z-index: 40; box-shadow: 0 12px 30px -10px rgba(10, 61, 52, .6); opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .3s, transform .3s; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 52px; height: 52px; }
.to-top .track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2.5; }
.to-top .bar { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); transform: rotate(-90deg); transform-origin: 24px 24px; }
.to-top path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* hero intro sequence (runs once on load, ends fully visible) */
.intro { animation: rise .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.hero h1 .w { display: inline-block; animation: wordUp .9s cubic-bezier(.2, .7, .2, 1) calc(.12s + var(--i) * .09s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordUp { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* cursor spotlight in hero */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--sx, 70%) var(--sy, 30%), rgba(19, 138, 115, .12), transparent 65%); transition: background .1s; }

/* orbit: 3D tilt, radar sweep, ripples, data beams */
.orbit-wrap { perspective: 1200px; min-width: 0; }
.orbit-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.orbit-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(243, 215, 156, .9) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: border-spin 6s linear infinite; pointer-events: none; z-index: 2; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes border-spin { to { --a: 360deg; } }
.radar { transform-origin: 260px 260px; animation: spin 7s linear infinite; mix-blend-mode: screen; }
.ripple { fill: none; stroke: rgba(243, 215, 156, .55); stroke-width: 1.5; transform-origin: 260px 260px; animation: ripple 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.ripple.r2 { animation-delay: 1.5s; } .ripple.r3 { animation-delay: 3s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.beam { stroke: #F3D79C; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite, beamfade 3.6s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes beamfade { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
.chip rect { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }

/* stats band with count-up */
.stats-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 38px; }
.stat { display: grid; gap: 4px; padding-inline: 24px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--forest) 30%, var(--emerald-2) 60%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .t { color: var(--muted); font-size: .95rem; }

/* eyebrow decode caret */
.eyebrow.decoding { color: var(--gold); }
.eyebrow::before { transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in .eyebrow::before, .eyebrow.intro::before { width: 30px; }

/* cards: 3D tilt + animated gradient edge */
.cards { perspective: 1000px; }
.card { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.card:hover { transform: translateY(-6px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--gold) 75%, var(--emerald-2) 85%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::after { opacity: 1; animation: border-spin 3s linear infinite; }
.card .ico { transition: transform .4s cubic-bezier(.2, .7, .2, 1), background .3s, color .3s; }
.card:hover .ico { transform: translateY(-3px) rotate(-6deg); background: var(--emerald); color: #fff; }

/* process: each step lights up as the light passes */
.step .num { animation: stepGlow 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.08s + .3s); }
@keyframes stepGlow { 0%, 22%, 100% { box-shadow: 0 0 0 0 rgba(227, 169, 59, 0); background: var(--forest); color: var(--gold-soft); } 8% { box-shadow: 0 0 0 8px rgba(227, 169, 59, .18), 0 0 28px 4px rgba(227, 169, 59, .55); background: var(--gold); color: var(--forest); } }

/* channel main: floating knight + shimmer */
.channel.main .bars { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.channel.main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(243, 215, 156, .12) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

/* CTA aurora */
.cta::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg at 30% 60%, rgba(227, 169, 59, .0), rgba(227, 169, 59, .22), rgba(19, 138, 115, .35), rgba(227, 169, 59, 0)); filter: blur(40px); animation: spin 18s linear infinite; pointer-events: none; }
.cta > * { position: relative; z-index: 1; }

/* buttons: light sweep */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-primary:hover::after, .btn-gold:hover::after { transform: translateX(120%); }

/* marquee pause on hover */
.marquee:hover .track { animation-play-state: paused; }

/* 404 */
.nf .wrap { padding-block: clamp(80px, 12vw, 160px); }

@media (max-width: 1020px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .stat { padding-inline: 14px; }
  .stat .t { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-card, .card { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(227,169,59,.15), var(--gold), rgba(227,169,59,.15)); }
  .steps::after { display: none; }
  .step { grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step .num { grid-row: span 2; }
  .standards { grid-template-columns: 1fr 1fr; }
  .standard:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 880px) {
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav[data-open="false"] { display: none; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .menu-btn { display: inline-flex; }
  .hero .wrap, .about-grid, .channels-grid, .cta, .contact .wrap, .legal .wrap, .foot-grid { grid-template-columns: 1fr; }
  .orbit-card { max-width: 520px; justify-self: center; }
  .channel.main { grid-row: auto; }
  .toc { position: static; grid-auto-flow: row; }
}
@media (max-width: 560px) {
  .cards, .pillars, .form-grid, .standards { grid-template-columns: 1fr; }
  .standard + .standard { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero h1 .hl { white-space: normal; }
  .hero h1 .hl svg { display: none; }
  .hero h1 .hl { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .08em; text-underline-offset: .12em; }
  .brand img { height: 32px; }
  .orbit-label { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
}

/* keep tilt + hover working after the reveal transform settles */
.js .card.reveal.in { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease, box-shadow .25s ease; }
.js .card.reveal.in:hover { transform: translateY(-6px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.hero .wrap { z-index: 1; }
