/* Self-hosted fonts (SIL Open Font License, see /fonts) */
@font-face { font-family: "Clarity City"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ClarityCity-Light.woff2") format("woff2"); }
@font-face { font-family: "Clarity City"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ClarityCity-Regular.woff2") format("woff2"); }
@font-face { font-family: "Clarity City"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ClarityCity-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
    --bg: #0B0C0E;
    --bg-2: #0F1114;
    --surface: #14171B;
    --slate: #26292E;
    --line: rgba(244, 246, 247, 0.08);
    --line-strong: rgba(244, 246, 247, 0.16);
    --text: #F4F6F7;
    --muted: rgba(244, 246, 247, 0.62);
    --faint: rgba(244, 246, 247, 0.52);
    --accent: #7FD7E4;
    --glow: 30, 79, 208;
    --warm: #E9BC98;
    --da: #2A9DB0;
    --rt: #D06F38;
    --good: #6FD39A;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --max: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --frame: clamp(10px, 1.6vw, 20px);
    --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Clarity City", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, svg, canvas { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(88px, 12vw, 150px) 0; }
/* Anchor jumps skip most of the section's top padding, landing the heading just below the nav */
section[id] { scroll-margin-top: calc(32px - clamp(88px, 12vw, 150px)); }
.mono { font-family: var(--mono); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.74rem; font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    font-weight: 300; line-height: 1.06; letter-spacing: -0.025em;
    margin-top: 20px; max-width: 18ch;
}
/* Large text only: 3:1 is enough here, so it can stay dimmer than --faint */
.dim { color: rgba(244, 246, 247, 0.38); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 54ch; margin-top: 20px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 56px; }
.section-head .lede { margin-top: 0; max-width: 46ch; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    font-size: 0.95rem; font-weight: 500;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 24px rgba(127, 215, 228, 0.18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(111, 211, 154, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 154, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(111, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 211, 154, 0); } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open {
    background: rgba(11, 12, 14, 0.8);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; padding: 0 calc(var(--frame) + clamp(8px, 2vw, 24px)); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: 0.01em; }
.brand svg { width: 42px; height: auto; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.93rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .ext::after { content: " ↗"; font-size: 0.8em; }
.nav-links .btn { padding: 9px 18px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-frame { padding: 72px var(--frame) 0; }
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: calc(100vh - 72px - var(--frame)); min-height: calc(100svh - 72px - var(--frame));
    /* One clip for all layers: rounding each layer separately leaves a light fringe on the corners */
    clip-path: inset(0 round 24px);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 50px;
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Narrow screens crop the sides: keep the turbine (right of centre in the footage) in frame */
@media (max-width: 760px) { .hero video { object-position: 82% center; } }
/* The poster is the hero's background; the video (or its animated-image stand-in) fades in only once it plays,
   so a browser that blocks autoplay never shows its own play button */
.hero { background: var(--bg) url("windmill2-hero-poster.jpg") center / cover no-repeat padding-box; }
.hero .hero-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero video, .hero .hero-anim { pointer-events: none; }
.js .hero video, .js .hero .hero-anim { opacity: 0; transition: opacity .6s ease; }
.js .hero video.is-playing, .js .hero .hero-anim.is-playing { opacity: 1; }
@media (max-width: 760px) { .hero { background-position: 82% center; padding-top: 50px; } .hero .hero-anim { object-position: 82% center; } }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,12,14,0.45) 0%, rgba(11,12,14,0.12) 32%, rgba(11,12,14,0.5) 70%, rgba(11,12,14,0.9) 100%),
        linear-gradient(90deg, rgba(11,12,14,0.72) 0%, rgba(11,12,14,0) 68%);
}
.hero-content { padding: clamp(28px, 5vw, 72px); padding-bottom: calc(clamp(36px, 5vw, 56px) + 20px); }
.hero .eyebrow { color: var(--text); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 300; line-height: 1.02; letter-spacing: -0.035em;
    margin-top: 22px; text-wrap: balance;
}
.hero h1 .dim { color: rgba(244, 246, 247, 0.55); }
.hero p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 52ch; margin-top: 24px; color: rgba(244, 246, 247, 0.85); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta .btn-ghost { background: rgba(11, 12, 14, 0.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-strong);
    background: rgba(11, 12, 14, 0.42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-family: var(--mono);
}
.hero-bar > div { padding: 16px clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 4px; }
.hero-bar > div + div { border-left: 1px solid var(--line); }
.hero-bar small { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hero-bar span { font-size: 0.9rem; color: var(--text); display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }

/* ---------- The trade ---------- */
.trade { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(20px, 3vw, 28px); position: relative; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chart-head h3 { font-size: 1rem; font-weight: 500; }
.chart-head p { font-size: 0.82rem; color: var(--faint); margin-top: 2px; }
.legend { display: flex; gap: 18px; font-size: 0.82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
#chart { margin-top: 18px; position: relative; }
#chart svg { width: 100%; overflow: visible; }
#chart text { font-family: var(--mono); font-size: 10.5px; fill: var(--faint); }
#chart .lbl { font-family: "Clarity City", sans-serif; font-size: 12px; fill: var(--muted); }
.tip {
    position: absolute; pointer-events: none; z-index: 2;
    background: rgba(20, 23, 27, 0.96); border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 10px 12px; font-size: 0.8rem; min-width: 150px;
    opacity: 0; transition: opacity .12s; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.tip b { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.72rem; color: var(--faint); margin-bottom: 6px; letter-spacing: 0.06em; }
.tip div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.tip div span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chart-table { margin-top: 14px; font-size: 0.8rem; color: var(--faint); }
.chart-table summary { cursor: pointer; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--mono); font-size: 0.74rem; }
.chart-table th, .chart-table td { text-align: right; padding: 3px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.sides > div { padding: 20px 20px 0 0; }
.sides > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sides b { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.sides p { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* ---------- Rigor ---------- */
#rigor { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--glow), 0.14), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
#weather { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.stat {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
    padding: 26px 24px 28px; min-height: 260px; display: flex; flex-direction: column;
    transition: border-color .3s;
}
.stat:hover { border-color: var(--line-strong); }
.stat small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat b {
    display: block; margin: 0 0 18px; padding-top: 40px;
    font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1;
    color: var(--accent); text-shadow: 0 0 40px rgba(127, 215, 228, 0.25);
}
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: auto; }

/* ---------- Weather ---------- */
.wx { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 64px; align-items: center; }
.wx-map {
    border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 26px);
    background: radial-gradient(ellipse 70% 70% at 60% 40%, rgba(var(--glow), 0.16), transparent 70%), var(--bg);
}
.wx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-scale { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.wx-scale i { width: 8px; height: 8px; border-radius: 50%; }
.wx-scale i:nth-child(1) { background: rgba(244, 246, 247, 0.18); transform: scale(.5); }
.wx-scale i:nth-child(2) { background: rgba(127, 215, 228, 0.45); transform: scale(.65); }
.wx-scale i:nth-child(3) { background: rgba(127, 215, 228, 0.8); transform: scale(.8); }
.wx-scale i:nth-child(4) { background: #B9CDBE; transform: scale(.9); }
.wx-scale i:nth-child(5) { background: var(--warm); }
.wx-canvas { position: relative; aspect-ratio: 1.08; margin-top: 12px; }
.wx-canvas canvas { width: 100%; height: 100%; }
.wx-map figcaption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--faint); margin-top: 8px; }
.wx-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.wx-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.wx-list b { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--accent); padding-top: 4px; }
.wx-list h3 { font-size: 1.15rem; font-weight: 500; }
.wx-list p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* Weather, US map variant: full-width map, four columns below */
.wx-us { margin-top: 64px; }
.wx-us .wx-map { padding: clamp(18px, 2.5vw, 28px); }
.wx-us .wx-canvas { aspect-ratio: 1000 / 628; margin-top: 16px; }
.wx-us .wx-list { grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: 40px; border-top: 0; }
.wx-us .wx-list li { grid-template-columns: 1fr; gap: 10px; padding: 22px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
.wx-us .wx-list b { padding-top: 0; }
@media (max-width: 960px) {
    .wx-us .wx-list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 640px) {
    .wx-us .wx-list { grid-template-columns: 1fr; }
}

/* ---------- Technology ---------- */
.nn-panel {
    margin-top: 64px; padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(127, 215, 228, 0.06), transparent 70%), var(--bg-2);
    display: grid; grid-template-columns: minmax(150px, 190px) 1fr minmax(150px, 190px);
    gap: clamp(16px, 3vw, 40px); align-items: stretch;
}
.nn-col { display: flex; flex-direction: column; justify-content: space-around; height: 380px; }
.nn-col li { list-style: none; font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.nn-col.in li { text-align: right; }
.nn-col.in li.more { color: var(--accent); font-family: var(--mono); font-size: 0.78rem; }
.nn-col.out li { color: var(--text); }
.nn-col.out li small { display: block; color: var(--faint); font-size: 0.78rem; margin-top: 2px; }
.nn-canvas { position: relative; height: 380px; min-width: 0; margin-inline: -32px; }
.nn-canvas canvas { width: 100%; height: 100%; }
.nn-caption {
    grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px;
    padding-top: 20px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.step { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step b { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em; color: var(--accent); }
.step h3 { font-size: 1.2rem; font-weight: 500; margin-top: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* ---------- Infrastructure ---------- */
#infrastructure { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.term {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    padding: 22px 20px; display: flex; flex-direction: column; min-height: 380px;
}
.term h3 { font-size: 1.1rem; font-weight: 400; }
.term-head {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.term-head em { font-style: normal; color: var(--accent); }
.term-body { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); padding-top: 12px; font-variant-numeric: tabular-nums; }
.term-foot { margin-top: auto; padding-top: 24px; font-size: 0.85rem; color: var(--faint); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; white-space: nowrap; }
.row .r { color: var(--text); }
.row.hi { color: var(--text); }
.row.more { color: var(--faint); }
.ok { color: var(--good); }
.no { color: var(--rt); }
.clock-big { font-size: 2rem; color: var(--text); letter-spacing: -0.02em; margin: 6px 0 2px; }
.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 14px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--warm)); border-radius: 3px; }
.code .row { justify-content: flex-start; gap: 0; }
.code .row > span:first-child { color: var(--accent); width: 1.2em; flex: none; }
.code .row > span:nth-child(2) { width: 6.2em; flex: none; color: var(--text); }
.code .row > span:nth-child(3) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Track record ---------- */
.record { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.record-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: clamp(22px, 3vw, 32px); }
.record-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.record-count { margin-top: 28px; display: flex; align-items: baseline; gap: 14px; }
.record-count b { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.record-count span { color: var(--muted); }
.days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
.days i { width: 12px; height: 12px; border-radius: 3px; background: rgba(127, 215, 228, 0.28); }
.days i:last-child { background: var(--accent); box-shadow: 0 0 12px rgba(127, 215, 228, 0.7); }
.days-axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.record-list { margin-top: 26px; border-top: 1px solid var(--line); }
.record-list .row { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); white-space: normal; }
.record-list .row span:last-child { font-family: var(--mono); font-size: 0.78rem; text-align: right; }
.fine { font-size: 0.8rem; color: var(--faint); margin-top: 18px; }

/* ---------- Markets ---------- */
#markets { background: var(--bg-2); border-top: 1px solid var(--line); }
.isos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.iso { background: var(--bg-2); padding: 28px 26px 32px; }
.iso-code { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; }
.iso-region { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.iso p { color: var(--faint); font-size: 0.92rem; margin-top: 14px; }
.iso .tag { margin-bottom: 18px; }
.iso.now {
    grid-column: span 2; grid-row: span 2;
    background: radial-gradient(ellipse 80% 70% at 85% 0%, rgba(var(--glow), 0.25), transparent 70%), radial-gradient(ellipse 60% 60% at 0% 100%, rgba(127, 215, 228, 0.1), transparent 70%), var(--surface);
    display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 44px);
}
.iso.now .tag { color: var(--text); align-self: flex-start; }
.iso.now .iso-code { font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin-top: auto; padding-top: 40px; }
.iso.now .iso-region { color: var(--accent); }
.iso.now p { color: var(--muted); font-size: 1rem; max-width: 40ch; }
.iso-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.iso-facts span { font-family: var(--mono); font-size: 0.72rem; padding: 6px 10px; border-radius: 8px; background: rgba(244, 246, 247, 0.05); color: var(--muted); }
.iso.note { grid-column: span 2; display: flex; align-items: center; background: var(--bg); }
.iso.note p { color: var(--muted); margin: 0; font-size: 1.05rem; max-width: 36ch; }
.iso.next .iso-code { color: var(--muted); }

/* ---------- Management ---------- */
#management { border-top: 1px solid var(--line); }
.team { display: grid; gap: 16px; margin-top: 64px; }
.person {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.person-photo {
    width: clamp(150px, 17vw, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000;
    border: 1px solid var(--line-strong); box-shadow: 0 0 0 8px rgba(127, 215, 228, 0.05), 0 0 60px rgba(var(--glow), 0.25);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.person:hover .person-photo img { transform: scale(1.04); }
.person-body { max-width: 68ch; }
.person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.person h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.015em; }
.person-role { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.person-link { flex: none; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; transition: color .2s, border-color .2s; }
.person-link svg { width: 13px; height: 13px; }
.person-link:hover { color: var(--text); border-color: var(--accent); }
.person p { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; isolation: isolate; text-align: center;
    border-radius: 24px; border: 1px solid var(--line);
    padding: clamp(64px, 10vw, 128px) clamp(24px, 6vw, 80px);
    background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(var(--glow), 0.45), transparent 70%), radial-gradient(ellipse 40% 50% at 50% 110%, rgba(127, 215, 228, 0.18), transparent 70%), var(--bg-2);
}
.cta h2 { margin: 18px auto 0; max-width: 16ch; }
.cta .lede { margin: 20px auto 0; }
.cta .hero-cta { justify-content: center; }
.audiences { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.audiences span { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer { padding: 24px 0 40px; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; border-top: 1px solid var(--line); }
.foot .brand svg { width: 54px; }
.entities { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 20px; }
.foot address { font-style: normal; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.foot address small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.foot address small:first-of-type { margin-top: 8px; }
.foot h2 { margin: 0; max-width: none; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.foot ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.foot ul a { color: var(--muted); transition: color .2s; }
.foot ul a:hover { color: var(--text); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8rem; }
.legal p { max-width: 70ch; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .pulse, .cursor { animation: none; }
    .person-photo img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stats, .terms { grid-template-columns: repeat(2, 1fr); }
    .isos { grid-template-columns: repeat(2, 1fr); }
    .iso.now { grid-row: span 1; }
}
@media (max-width: 960px) {
    .trade, .record, .wx { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .nn-panel { grid-template-columns: 1fr; }
    .nn-col { height: auto; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .nn-col li, .nn-col.in li { text-align: left; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; }
    .nn-col.out li small { display: none; }
    .nn-canvas { height: 280px; margin-inline: -16px; }
    .foot { grid-template-columns: repeat(3, 1fr); }
    .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
    .menu-btn { display: inline-flex; }
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 24px;
        background: rgba(11, 12, 14, 0.97); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav.open .nav-links { display: flex; }
    .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-links .btn { margin-top: 20px; justify-content: center; padding: 14px 18px; }
}
@media (max-width: 860px) {
    .hero-bar { grid-template-columns: 1fr; }
    .hero-bar > div { flex-direction: row; justify-content: space-between; align-items: center; padding: 11px 20px; }
    .hero-bar > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .stats, .terms, .steps { grid-template-columns: 1fr; }
    .stat { min-height: 0; }
    .stat b { padding-top: 24px; }
    .term { min-height: 0; }
    .isos { grid-template-columns: 1fr; }
    .iso.now, .iso.note { grid-column: span 1; }
    .sides { grid-template-columns: 1fr; }
    .sides > div, .sides > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .nn-caption { flex-direction: column; gap: 4px; }
    .foot { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .person { grid-template-columns: 1fr; gap: 24px; }
    .person-photo { width: 132px; }
    .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
    .hero h1 br { display: none; }
    .hero-bar small { letter-spacing: 0.08em; }
}

/* ---------- Contact page ---------- */
.contact-page { padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); position: relative; }
.contact-page::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 75% 0%, rgba(var(--glow), 0.22), transparent 70%);
}
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.7rem);
    font-weight: 300; line-height: 1.05; letter-spacing: -0.03em;
    margin-top: 20px; text-wrap: balance;
}
.contact-info { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-info > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.contact-info address, .contact-info p { font-style: normal; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.contact-info a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.contact-info a:hover { border-color: var(--accent); }
.clocks { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--mono); font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; }
.clocks span span { color: var(--faint); }

.form-card {
    border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2);
    padding: clamp(24px, 3.5vw, 40px); position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-head h2 { font-size: 1.15rem; font-weight: 400; letter-spacing: 0; margin: 0; max-width: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend {
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.field label i, .field legend i { font-style: normal; color: var(--accent); }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 246, 247, 0.28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(127, 215, 228, 0.14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rt); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; }
.chips label {
    font-family: inherit; font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--muted);
    padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.chips label:hover { color: var(--text); border-color: rgba(244, 246, 247, 0.3); }
.chips input:checked + label { color: var(--text); border-color: var(--accent); background: rgba(127, 215, 228, 0.1); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-foot p { font-size: 0.8rem; color: var(--faint); max-width: 36ch; }
.form-foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: progress; }
.turnstile:not(:empty) { margin-top: 22px; }
.form-error { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(208, 111, 56, 0.5); background: rgba(208, 111, 56, 0.08); color: var(--text); font-size: 0.9rem; }
.form-error.show { display: block; }
.form-done { display: none; text-align: center; padding: clamp(32px, 6vw, 64px) 8px; }
.form-done .check {
    width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(111, 211, 154, 0.5); color: var(--good); box-shadow: 0 0 40px rgba(111, 211, 154, 0.2);
}
.form-done .check svg { width: 24px; height: 24px; }
.form-done h2 { font-size: 1.8rem; margin: 0 auto; max-width: none; }
.form-done p { color: var(--muted); margin-top: 12px; }
.form-card.sent form, .form-card.sent .form-head { display: none; }
.form-card.sent .form-done { display: block; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--text); }

@media (max-width: 960px) {
    .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-info > div { grid-template-columns: 1fr; gap: 6px; }
    .form-foot .btn { width: 100%; justify-content: center; }
}

/* ---------- Legal pages ---------- */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { color: var(--faint); transition: color .2s; }
.legal-links a:hover { color: var(--text); }
.legal-page { padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); }
.legal-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-nav { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 2px; }
.legal-nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-size: 0.95rem; transition: color .2s, background .2s; }
.legal-nav a:hover { color: var(--text); }
.legal-nav a[aria-current="page"] { color: var(--text); background: rgba(244, 246, 247, 0.06); }
.legal-page h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; margin-top: 18px; }
.updated { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 18px; }
.prose { max-width: 70ch; margin-top: 48px; color: var(--muted); font-size: 1rem; }
.prose h2 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--text); max-width: none; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose dl { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.prose a:hover { border-color: var(--accent); }
.prose dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; }
.prose dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.prose dd { margin: 0; color: var(--text); }

@media (max-width: 860px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .legal-nav a { border: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .prose dl { grid-template-columns: 1fr; gap: 2px; }
    .prose dd { margin-bottom: 12px; }
}

/* Technology: ranking illustration; the four steps follow the animation */
.nn-canvas{position:relative}
.nn-phase{position:absolute;left:12px;bottom:10px;font:11px/1 "IBM Plex Mono",ui-monospace,monospace;color:rgba(244,246,247,.72);letter-spacing:.02em;pointer-events:none;display:flex;align-items:center;gap:8px}
.nn-phase i{width:6px;height:6px;border-radius:50%;background:#7FD7E4;box-shadow:0 0 8px #7FD7E4;display:inline-block;transition:background .4s,box-shadow .4s}
.nn-phase.is-settle i{background:#E9BC98;box-shadow:0 0 8px #E9BC98}
#technology .steps .step b,#technology .steps .step h3{transition:color .35s}
#technology .steps.is-sync .step:not(.is-active) h3{color:rgba(244,246,247,.62)}
#technology .steps.is-sync .step.is-active b{color:#7FD7E4}
#technology .steps.is-sync .step.is-active.is-settle b{color:#E9BC98}
/* Near-square canvas for the ranking illustration. Scoped to the panel that carries the phase caption,
   so index.html keeps the wide 380px canvas of its neural-net drawing. */
.nn-canvas:has(> .nn-phase){height:auto;aspect-ratio:1/1.02;min-height:300px}
.nn-panel:has(.nn-phase) .nn-col{height:auto}
@media (min-width:961px){.nn-canvas:has(> .nn-phase){min-height:420px}}

/* Technology v2: the scanner on the left, a model glyph on each step */
.nn-col li{transition:color .3s,border-color .3s,opacity .3s}
.nn-col.in li .sig{display:block;font-family:var(--mono);font-size:.68rem;letter-spacing:.02em;color:var(--faint);margin-top:3px;min-height:1.1em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nn-panel.is-sync .nn-col.in li{color:var(--faint)}
.nn-panel.is-sync .nn-col.in li.is-scan{color:var(--text)}
.nn-panel.is-sync .nn-col.in li.is-scan .sig{color:var(--accent)}
.nn-panel.is-sync .nn-col.in li.is-on{color:var(--text)}
.nn-panel.is-sync .nn-col.in li.is-on .sig{color:var(--muted)}
.nn-panel.is-sync .nn-col.in li.more{color:var(--accent);opacity:.5}
.nn-panel.is-sync .nn-col.in li.more.is-on{opacity:1}
.nn-panel.is-sync .nn-col.out li{color:var(--muted)}
.nn-panel.is-sync .nn-col.out li.is-on{color:var(--text)}
@media (max-width:960px){.nn-col.in li .sig{display:none}.nn-panel.is-sync .nn-col li.is-scan,.nn-panel.is-sync .nn-col li.is-on{border-color:rgba(127,215,228,.55)}}
#technology .step{position:relative;padding-right:46px}
.step-glyph{position:absolute;top:22px;right:0;width:34px;height:34px;color:var(--faint);transition:color .35s}
.step-glyph svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.step-glyph [data-draw]{stroke-dasharray:64;stroke-dashoffset:64}
.step-glyph [data-rise]{fill:currentColor;stroke:none;transform:scaleY(.12);transform-origin:bottom;transform-box:fill-box}
.step-glyph [data-dim]{opacity:.35}
.step-glyph [data-fill]{fill:currentColor;stroke:none;opacity:0}
.step-glyph [data-grid] rect{fill:currentColor;stroke:none;opacity:.3}
#technology .steps.is-sync .step.is-active .step-glyph{color:#7FD7E4}
#technology .steps.is-sync .step.is-active.is-settle .step-glyph{color:#E9BC98}
#technology .step.is-active .step-glyph [data-draw]{animation:nn-draw 1.1s ease-out forwards}
#technology .step.is-active .step-glyph [data-rise]{animation:nn-rise .8s cubic-bezier(.2,.8,.2,1) forwards}
#technology .step.is-active .step-glyph [data-fill]{animation:nn-fill .5s ease-out .6s forwards}
@keyframes nn-draw{to{stroke-dashoffset:0}}
@keyframes nn-rise{to{transform:scaleY(1)}}
@keyframes nn-fill{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.step-glyph [data-draw]{stroke-dashoffset:0}.step-glyph [data-rise]{transform:none}.step-glyph [data-fill]{opacity:1}#technology .step.is-active .step-glyph *{animation:none}}

/* Technology v3: lists on the left, the map centre-right, the model panel beside it */
.nn-side{display:flex;flex-direction:column;justify-content:center;gap:26px;min-width:0}
.nn-side .nn-col{height:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:14px}
.nn-side .nn-col.in li{text-align:left}
.nn-side .nn-col.out{border-top:1px solid var(--line);padding-top:24px}
@media (min-width:961px){.nn-panel:has(.nn-side){grid-template-columns:minmax(220px,268px) 1fr}.nn-panel:has(.nn-side) .nn-canvas{aspect-ratio:4/3;max-height:700px;margin-inline:-8px -32px}}
@media (max-width:960px){.nn-side{gap:12px}.nn-side .nn-col{flex-direction:row;flex-wrap:wrap;gap:8px}.nn-side .nn-col.out{border-top:0;padding-top:0}}

/* Technology v4: dashboard strip under the map; status line top-left */
.nn-canvas:has(> .nn-phase) .nn-phase{top:12px;bottom:auto;left:14px}
@media (min-width:961px){.nn-panel:has(.nn-side) .nn-canvas{aspect-ratio:5/4;max-height:760px}}
@media (max-width:960px){.nn-canvas:has(> .nn-phase){aspect-ratio:4/5;min-height:360px}}
@media (max-width:560px){.nn-canvas:has(> .nn-phase) .nn-phase{font-size:10px;right:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
