/* WONE Lighting — site styles. Tokens: docs/art/art-direction.md */

@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #0b0e0d;
  --surface: #121715;
  --raised: #1a201e;
  --raised-2: #222a27;
  --ink: #edf0ea;
  --ink-2: #a7b1ab;
  --ink-3: #7d8882;
  --rule: #26302c;
  --rule-2: #34403b;
  --emerald: #3ecf98;
  --emerald-2: #6fe0b4;
  --emerald-deep: #1f8f68;
  --paper: #f2f3ef;
  --paper-2: #e6e9e2;
  --paper-ink: #0f1412;
  --paper-ink-2: #4a5550;
  --paper-rule: #cfd5cd;
  --s450: #4f6df5;
  --s520: #4fbf73;
  --s660: #d9463b;
  --s730: #7d2333;
  --white-led: #f4efe4;
  --warn: #e3b26a;
  --alert: #e98a7e;

  --font: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1280px;
  --narrow: 760px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 10px;
  --space: clamp(80px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 0;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--emerald-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
p, li { text-wrap: pretty; }
sup, sub { line-height: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--emerald-deep); color: #fff; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--emerald); color: var(--paper-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.75rem; font-weight: 620; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 22px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--s450) 0 25%, var(--s520) 25% 50%, var(--s660) 50% 75%, var(--s730) 75%); }
.paper .eyebrow { color: var(--paper-ink-2); }
.display { font-size: clamp(2.6rem, 6.6vw, 6.4rem); overflow-wrap: break-word; font-weight: 380; letter-spacing: -0.042em; line-height: 0.96; }
.h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.0; }
.h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 430; letter-spacing: -0.03em; line-height: 1.04; }
.h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-weight: 560; letter-spacing: -0.015em; line-height: 1.2; }
.h4 { font-size: 1.05rem; font-weight: 620; letter-spacing: -0.005em; line-height: 1.3; }
.lead { font-size: clamp(1.15rem, 1.55vw, 1.38rem); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.paper .lead { color: var(--paper-ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.5; }
.tiny { font-size: 0.78rem; line-height: 1.45; }
.num { font-variant-numeric: tabular-nums; }
.unit { font-size: 0.84em; color: var(--ink-2); font-weight: 400; margin-left: 0.2em; white-space: nowrap; }
.prose { max-width: 68ch; }
.prose h2 { margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.stack > * + * { margin-top: var(--stack, 1.2rem); }

/* Buttons */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em; text-decoration: none; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--emerald); color: #04130d; }
.btn-primary:hover { background: var(--emerald-2); color: #04130d; }
.btn-ghost { border-color: rgba(237, 240, 234, 0.42); color: var(--ink); background: rgba(11, 14, 13, 0.18); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(237, 240, 234, 0.08); }
.paper .btn-ghost { border-color: rgba(15, 20, 18, 0.35); color: var(--paper-ink); background: transparent; }
.paper .btn-ghost:hover { border-color: var(--paper-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--emerald-2); }
.paper .link-arrow { color: var(--emerald-deep); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header.no-hero { background: rgba(11, 14, 13, 0.86); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a.nav-link, .nav button.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 540; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav a.nav-link:hover, .nav button.nav-link:hover, .nav .is-current > .nav-link { background: rgba(237, 240, 234, 0.08); color: var(--ink); }
.nav .is-current > .nav-link { box-shadow: inset 0 -2px 0 var(--emerald); border-radius: 0; }
.has-sub { position: relative; }
.has-sub svg { width: 12px; height: 12px; transition: transform 0.2s; }
.has-sub[data-open] svg { transform: rotate(180deg); }
.subnav { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px; padding: 10px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.has-sub[data-open] .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 0.92rem; }
.subnav a small { display: block; color: var(--ink-2); font-size: 0.8rem; margin-top: 2px; }
.subnav a:hover { background: var(--raised); color: var(--ink); }
.header-cta { margin-left: 8px; min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; background: transparent; font-size: 0.82rem; font-weight: 620; letter-spacing: 0.06em; cursor: pointer; }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius-lg); padding: 6px; list-style: none; margin: 0; min-width: 170px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 0.92rem; }
.lang-menu a[aria-current='true'] { color: var(--emerald-2); }
.lang-menu a:hover { background: var(--raised); color: var(--ink); }
.lang-menu small { color: var(--ink-3); letter-spacing: 0.08em; }
.menu-btn { display: none; margin-left: auto; height: 42px; width: 42px; border-radius: 999px; border: 1px solid var(--rule-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--ground); padding: 18px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; }
.mobile-nav .top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 26px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > nav > ul > li { border-bottom: 1px solid var(--rule); }
.mobile-nav > nav > ul > li > a { display: block; padding: 16px 0; font-size: 1.5rem; font-weight: 420; letter-spacing: -0.02em; text-decoration: none; }
.mobile-nav .sub a { display: block; padding: 8px 0 8px 14px; color: var(--ink-2); text-decoration: none; }
.mobile-nav .sub { padding-bottom: 12px; }
.mobile-nav .langs { display: flex; gap: 10px; margin: 26px 0; }
.mobile-nav .langs a { padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.mobile-nav .langs a[aria-current='true'] { border-color: var(--emerald); color: var(--emerald-2); }
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* Sections */
main { display: block; }
.section { padding: var(--space) 0; position: relative; }
.section.tight { padding: calc(var(--space) * 0.6) 0; }
.section.paper { background: var(--paper); color: var(--paper-ink); }
.section.surface { background: var(--surface); }
.paper a:hover { color: var(--emerald-deep); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }
.rule-top { border-top: 1px solid var(--rule); }
.paper .rule-top { border-top-color: var(--paper-rule); }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 13, 0.92) 0%, rgba(11, 14, 13, 0.66) 38%, rgba(11, 14, 13, 0.12) 70%, rgba(11, 14, 13, 0.25) 100%), linear-gradient(0deg, rgba(11, 14, 13, 0.95) 0%, rgba(11, 14, 13, 0) 42%); }
.hero-inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 8vh, 96px); width: 100%; }
.hero h1 { max-width: 13ch; margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--emerald-2); font-weight: 340; }
.hero .lead { max-width: 46ch; color: rgba(237, 240, 234, 0.82); margin-bottom: 36px; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(40px, 7vh, 80px); padding-top: 22px; border-top: 1px solid rgba(237, 240, 234, 0.16); }
.hero-foot .tiny { color: var(--ink-2); max-width: 52ch; margin: 0; }
.film-toggle { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(237, 240, 234, 0.3); border-radius: 999px; height: 34px; padding: 0 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.film-toggle svg { width: 12px; height: 12px; }
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 10vw, 128px)) 0 clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate; }
.page-hero.has-media { min-height: min(86svh, 820px); display: flex; align-items: flex-end; }
.page-hero .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 14, 13, 0.94) 0%, rgba(11, 14, 13, 0.72) 42%, rgba(11, 14, 13, 0.2) 100%), linear-gradient(0deg, rgba(11, 14, 13, 1) 0%, rgba(11, 14, 13, 0) 50%); }
.page-hero h1 { max-width: 16ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 52ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: 0.82rem; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Figures, captions and labels */
figure { margin: 0; }
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1 { aspect-ratio: 1; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.concept-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(11, 14, 13, 0.62); color: rgba(237, 240, 234, 0.86); backdrop-filter: blur(6px); pointer-events: none; }
figcaption { font-size: 0.82rem; color: var(--ink-2); margin-top: 10px; }
.paper figcaption { color: var(--paper-ink-2); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 640; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.concept { color: #c9b6ff; border-color: rgba(201, 182, 255, 0.35); }
.tag.development { color: var(--warn); border-color: rgba(227, 178, 106, 0.4); }
.tag.simulated { color: var(--emerald-2); border-color: rgba(111, 224, 180, 0.35); }
.tag.literature { color: #9fc3ff; border-color: rgba(159, 195, 255, 0.35); }
.tag.measured { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.tag.assumption { color: var(--ink-2); }
.tag.established { color: var(--emerald-2); border-color: rgba(111, 224, 180, 0.35); }
.tag.emerging { color: #9fc3ff; border-color: rgba(159, 195, 255, 0.35); }
.tag.experimental { color: var(--warn); border-color: rgba(227, 178, 106, 0.4); }
.tag.weak { color: var(--ink-3); }
.paper .tag { border-color: var(--paper-rule); color: var(--paper-ink-2); }
.paper .tag.development { color: #8a5a12; }
.paper .tag.concept { color: #5a3fb0; }
.paper .tag.simulated, .paper .tag.established { color: var(--emerald-deep); }
.paper .tag.literature, .paper .tag.emerging { color: #2b56b5; }
.paper .tag.experimental { color: #8a5a12; }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.paper .cap-grid { border-top-color: var(--paper-rule); }
.cap { padding: 34px 34px 38px 0; border-bottom: 1px solid var(--rule); }
.paper .cap { border-bottom-color: var(--paper-rule); }
.cap:not(:nth-child(3n + 1)) { padding-left: 34px; border-left: 1px solid var(--rule); }
.paper .cap:not(:nth-child(3n + 1)) { border-left-color: var(--paper-rule); }
.cap svg { width: 34px; height: 34px; margin-bottom: 26px; color: var(--emerald); }
.paper .cap svg { color: var(--emerald-deep); }
.cap h3 { margin-bottom: 10px; }
.cap p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.paper .cap p { color: var(--paper-ink-2); }
@media (max-width: 980px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .cap:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--rule); }
  .paper .cap:nth-child(2n) { border-left-color: var(--paper-rule); }
}
@media (max-width: 620px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap:nth-child(2n) { padding-left: 0; border-left: 0; }
  .cap { padding-right: 0; }
}

/* Application cards */
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.app-card { grid-column: span 4; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; isolation: isolate; background: var(--surface); }
.app-card.wide { grid-column: span 8; }
.app-card.half { grid-column: span 6; }
.app-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.app-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 13, 0) 30%, rgba(11, 14, 13, 0.9) 100%); }
.app-card:hover img { transform: scale(1.04); }
.app-card:hover { color: var(--ink); }
.app-card .body { padding: 26px; }
.app-card h3 { margin: 10px 0 8px; }
.app-card p { color: rgba(237, 240, 234, 0.8); margin: 0; font-size: 0.95rem; max-width: 42ch; }
.app-card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card .meta .tag { background: rgba(11, 14, 13, 0.5); backdrop-filter: blur(4px); }
.app-card .go { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(237, 240, 234, 0.4); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s; }
.app-card:hover .go { background: var(--emerald); border-color: var(--emerald); color: #04130d; }
.app-card .go svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .app-card, .app-card.wide, .app-card.half { grid-column: span 6; } }
@media (max-width: 640px) { .app-card, .app-card.wide, .app-card.half { grid-column: span 12; min-height: 380px; } }

/* Split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split.r-wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.split.l-wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
@media (max-width: 900px) { .split, .split.r-wide, .split.l-wide { grid-template-columns: 1fr; } }

/* Steps (methodology) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px 24px 30px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--ground)); }
.paper .step { background: #fff; border-color: var(--paper-rule); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; color: var(--emerald); margin-bottom: 40px; }
.paper .step::before { color: var(--emerald-deep); }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.paper .step p { color: var(--paper-ink-2); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Units strip */
.units { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
.paper .units { border-color: var(--paper-rule); background: #fff; }
.units div { padding: 18px 18px 20px; border-right: 1px solid var(--rule); }
.paper .units div { border-right-color: var(--paper-rule); }
.units div:last-child { border-right: 0; }
.units b { display: block; font-size: 1.05rem; font-weight: 640; }
.units span { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--emerald-2); margin: 2px 0 6px; }
.paper .units span { color: var(--emerald-deep); }
.units small { color: var(--ink-2); font-size: 0.78rem; line-height: 1.4; display: block; }
.paper .units small { color: var(--paper-ink-2); }
@media (max-width: 980px) { .units { grid-template-columns: repeat(3, minmax(0, 1fr)); } .units div:nth-child(3n) { border-right: 0; } .units div:nth-child(-n + 3) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } .units div { border-bottom: 1px solid var(--rule); } .units div:nth-child(3n) { border-right: 1px solid var(--rule); } .units div:nth-child(2n) { border-right: 0; } }

/* Lists of solutions / products */
.rows { border-top: 1px solid var(--rule); }
.paper .rows { border-top-color: var(--paper-rule); }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.paper .row { border-bottom-color: var(--paper-rule); }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--ink-2); }
.paper .row p { color: var(--paper-ink-2); }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 10px; } .row .tags { justify-content: flex-start; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); }
.paper .card { background: #fff; border-color: var(--paper-rule); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); }
.paper .card p { color: var(--paper-ink-2); }
@media (max-width: 980px) { .cards { --cols: 2 !important; } }
@media (max-width: 620px) { .cards { --cols: 1 !important; } }

/* Key figures (crop parameter boxes) */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.paper .figs { border-color: var(--paper-rule); background: #fff; }
.fig { padding: 20px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-right: -1px; margin-bottom: -1px; }
.paper .fig { border-color: var(--paper-rule); }
.fig dt { font-size: 0.75rem; font-weight: 640; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.paper .fig dt { color: var(--paper-ink-2); }
.fig dd { margin: 0; font-size: 1.45rem; font-weight: 520; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.fig dd small { display: block; font-size: 0.8rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.paper .fig dd small { color: var(--paper-ink-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.paper .table-wrap { border-color: var(--paper-rule); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.paper th, .paper td { border-bottom-color: var(--paper-rule); }
th { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); position: sticky; top: 0; }
.paper th { background: var(--paper-2); color: var(--paper-ink-2); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Notes / evidence */
.note { border-left: 2px solid var(--emerald); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 0.94rem; }
.paper .note { border-left-color: var(--emerald-deep); color: var(--paper-ink-2); }
.refs { font-size: 0.82rem; color: var(--ink-2); padding-left: 1.2em; }
.refs li { margin: 0.4em 0; }
.paper .refs { color: var(--paper-ink-2); }
details.more { border-top: 1px solid var(--rule); padding: 18px 0; }
.paper details.more { border-top-color: var(--paper-rule); }
details.more summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--emerald); }
details.more[open] summary::after { content: '–'; }
details.more > div { padding-top: 14px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.tabs [role='tab'], .chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule-2); background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 560; color: var(--ink-2); text-decoration: none; }
.tabs [role='tab']:hover, .chip:hover { color: var(--ink); border-color: var(--ink-3); }
.tabs [role='tab'][aria-selected='true'], .chip[aria-pressed='true'] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.paper .tabs [role='tab'], .paper .chip { border-color: var(--paper-rule); color: var(--paper-ink-2); }
.paper .tabs [role='tab'][aria-selected='true'], .paper .chip[aria-pressed='true'] { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 18px; padding: clamp(40px, 7vw, 96px); background: radial-gradient(120% 140% at 100% 0%, rgba(62, 207, 152, 0.18), rgba(62, 207, 152, 0) 55%), var(--surface); border: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--ink-2); max-width: 52ch; margin: 18px 0 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 72px 0 40px; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.foot-grid h2 { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.foot-grid a { text-decoration: none; color: var(--ink); opacity: 0.86; }
.foot-grid a:hover { opacity: 1; color: var(--emerald-2); }
.foot-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.foot-brand p { color: var(--ink-2); max-width: 34ch; }
.foot-brand address { font-style: normal; color: var(--ink-2); margin-top: 18px; line-height: 1.6; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.82rem; }
.foot-base a { color: var(--ink-2); }
.spectral-rule { height: 2px; background: linear-gradient(90deg, var(--s450) 0 25%, var(--s520) 25% 50%, var(--s660) 50% 75%, var(--s730) 75%); opacity: 0.85; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid='true'] { border-color: var(--alert); }
.field .err { color: var(--alert); font-size: 0.84rem; margin-top: 6px; min-height: 1em; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; border-radius: 10px; padding: 16px 18px; font-size: 0.95rem; }
.form-status.ok { background: rgba(62, 207, 152, 0.12); border: 1px solid rgba(62, 207, 152, 0.4); }
.form-status.error { background: rgba(233, 138, 126, 0.1); border: 1px solid rgba(233, 138, 126, 0.45); }
.form-status.info { background: var(--raised); border: 1px solid var(--rule-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Crop library */
.lib-tools { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; margin-bottom: 28px; }
.lib-tools fieldset { border: 0; padding: 0; margin: 0; }
.lib-tools legend { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.lib-tools .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-tools input[type='search'] { min-height: 40px; border-radius: 999px; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); padding: 0 16px; font: inherit; min-width: 240px; }
.lib-count { font-size: 0.86rem; color: var(--ink-2); margin: 0 0 14px; }
.lib-table td:first-child { font-weight: 600; }
.lib-table td .tag { margin: 0 4px 4px 0; }
.lib-table tr[hidden] { display: none; }

/* Status legend */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.86rem; color: var(--ink-2); }

/* Utility spacing */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-s { margin-bottom: 16px; } .mb-m { margin-bottom: 32px; } .mb-l { margin-bottom: 64px; }

/* Development status scale */
.status-scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.status-scale li { position: relative; padding: 34px 12px 14px; border-top: 3px solid var(--paper-rule); font-size: 0.86rem; color: var(--paper-ink-2); line-height: 1.3; }
.status-scale li::before { counter-increment: st; content: counter(st); position: absolute; top: 8px; left: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.status-scale li.is-concept { border-top-color: #b9a7ea; color: var(--paper-ink); }
.status-scale li.is-here { border-top-color: #c88a2a; color: var(--paper-ink); font-weight: 600; }
@media (max-width: 760px) { .status-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twin-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.twin-block { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--header-h) + 16px); }
.twin-block + .twin-block { border-top: 1px solid var(--rule); margin-top: clamp(56px, 7vw, 96px); }
.twin-head { max-width: 760px; }
.img-missing { background: linear-gradient(135deg, var(--surface), var(--raised)); width: 100%; height: 100%; }

/* Text-only page heroes: faint measurement grid and a soft light pool */
.page-hero:not(.has-media)::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 85% 0%, rgba(62, 207, 152, 0.14), rgba(62, 207, 152, 0) 60%),
  radial-gradient(40% 60% at 70% 10%, rgba(217, 70, 59, 0.08), rgba(217, 70, 59, 0) 70%),
  linear-gradient(rgba(237, 240, 234, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(90deg, rgba(237, 240, 234, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
