@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #e9ecef;
  --bg-2: #dfe3e7;
  --bg-3: #d3d8de;
  --card: #f6f7f8;
  --field: #fff;
  --line: rgba(22, 27, 33, .12);
  --line-2: rgba(22, 27, 33, .24);
  --text: #171b20;
  --text-2: #49525c;
  --text-3: #79828c;
  --accent: #0b7fb9;
  --accent-2: #0a6d9f;
  --accent-ink: #fff;
  --env-a: #0b8fd0;
  --env-b: #e0861c;
  --shade: 34, 39, 45;
  --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
  color-scheme: light;
}
.dark, .site-header, .page-head, .hero, .stats-band, .cta, .site-footer, .work, .lightbox, .message {
  --bg: #262b31;
  --bg-2: #2e343b;
  --bg-3: #39414a;
  --card: #2e343b;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .24);
  --text: #f2f4f6;
  --text-2: #b9c1ca;
  --text-3: #8d96a0;
  --accent: #2bb0ee;
  --accent-2: #74cff8;
  --accent-ink: #04131c;
  color-scheme: dark;
  color: var(--text);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent-2); text-underline-offset: .2em; }
h1, h2, h3 { font-stretch: 110%; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.9vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; z-index: 200; }
.skip:focus { left: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; max-width: 60ch; color: var(--text-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 500 .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 1.4rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(30, 167, 234, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 167, 234, .55); } 70% { box-shadow: 0 0 0 10px rgba(30, 167, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 167, 234, 0); } }
.note { font: 400 .9rem/1.55 var(--mono); color: var(--text-3); max-width: 70ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }

/* ---------- Buttons & links ---------- */
.btn { --bg-btn: transparent; display: inline-flex; align-items: center; gap: .7em; min-height: 52px; padding: .8em 1.5em; border: 1px solid transparent; border-radius: 999px; font: 600 1rem/1.1 var(--sans); font-stretch: 108%; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(127, 127, 127, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }
.btn-sm { min-height: 42px; padding: .55em 1.15em; font-size: .92rem; }
.btn-lg { min-height: 62px; padding: 1em 2em; font-size: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: .3em; transition: border-color .3s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--accent); gap: .8em; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(var(--shade), .82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 112px; transition: height .4s var(--ease); }
.site-header.is-solid .header-in { height: var(--header-h); }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 66px; width: auto; transition: height .4s var(--ease); }
.site-header.is-solid .logo img { height: 42px; }
@media (max-width: 640px) { .header-in { height: 88px; } .logo img { height: 50px; } .site-header.is-solid .logo img { height: 38px; } }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(var(--shade), .55), transparent); transition: opacity .35s; }
.site-header.is-solid::before { opacity: 0; }
.nav-cta { white-space: nowrap; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-main a { display: block; position: relative; padding: .6em .75em; white-space: nowrap; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .97rem; transition: color .25s; }
.nav-main a::after { content: ""; position: absolute; left: .75em; right: .75em; bottom: .3em; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-main a:hover, .nav-main a[aria-current] { color: var(--text); }
.nav-main a:hover::after, .nav-main a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-n { display: none; }
.langs a { display: block; padding: .4em .45em; font: 500 .78rem/1 var(--mono); color: var(--text-2); text-decoration: none; letter-spacing: .06em; }
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; position: relative; z-index: 2; }
.menu-bars { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; }
.menu-bars i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 1340px) {
  .menu-btn { display: block; }
  .no-js .site-nav { position: static; }
  .site-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem; background: var(--bg); clip-path: circle(0 at calc(100% - 48px) 38px); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
  .site-nav.open { clip-path: circle(150% at calc(100% - 48px) 38px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav-main { flex-direction: column; gap: 0; width: 100%; }
  .nav-main li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
  .site-nav.open .nav-main li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .06s); }
  .nav-main a { font-size: clamp(1.6rem, 7vw, 2.3rem); font-weight: 750; font-stretch: 118%; letter-spacing: -.02em; color: var(--text); padding: .2em 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: .8rem; }
  .nav-main a::after { display: none; }
  .nav-main a[aria-current] { color: var(--accent-2); }
  .nav-n { display: inline; font: 500 .8rem/1 var(--mono); color: var(--text-3); letter-spacing: .1em; }
  .langs a { font-size: 1rem; padding: .5em .7em .5em 0; }
  .nav-cta { min-height: 56px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { transform: none; backdrop-filter: none; background: transparent; border-color: transparent; }
}

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

/* ---------- Hero ---------- */
.hero { background: var(--bg); position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 6vh, 4.5rem); }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; transform: scale(1.12); filter: saturate(.92); }
@media (prefers-reduced-motion: no-preference) { .hero-media img { animation: kenburns 22s var(--ease) forwards; } }
@keyframes kenburns { from { transform: scale(1.18) translate3d(2%, 1%, 0); } to { transform: scale(1.04) translate3d(0, 0, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(var(--shade), .38) 0%, rgba(var(--shade), .04) 28%, rgba(var(--shade), .22) 62%, rgba(var(--shade), .7) 88%, var(--bg) 100%), linear-gradient(90deg, rgba(var(--shade), .55) 0%, rgba(var(--shade), 0) 62%); }
.hero-in, .page-head-in { text-shadow: 0 1px 22px rgba(0, 0, 0, .35); }
.hero-in .btn, .page-head-in .btn { text-shadow: none; }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 0%, transparent 75%); opacity: .5; }
.hero-dims { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-dims path { fill: none; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .9s forwards; }
.hero-dims path + path { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-in { position: relative; display: grid; gap: 2rem; }
.hero-title { font-size: clamp(2.1rem, 5.1vw, 4.6rem); line-height: .98; letter-spacing: -.035em; font-stretch: 112%; font-weight: 800; margin: 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .accent { color: transparent; -webkit-text-stroke: 1.5px var(--text); background: linear-gradient(90deg, var(--accent-2), var(--accent)) no-repeat 0 0 / 0 100%; -webkit-background-clip: text; background-clip: text; animation: fillText 1.6s var(--ease) 1.3s forwards; }
.js .hero-title .line > span.accent { animation: rise 1.1s var(--ease) calc(.15s + var(--d) * .12s) forwards, fillText 1.6s var(--ease) 1.4s forwards; }
@keyframes fillText { to { background-size: 100% 100%; -webkit-text-stroke-color: transparent; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--d) * .12s); }
}
@media (prefers-reduced-motion: reduce) { .hero-title .accent { animation: none; color: var(--accent-2); -webkit-text-stroke: 0; } }
@keyframes rise { to { transform: none; } }
.hero-foot { display: grid; gap: 1rem 3rem; align-items: end; }
.hero-foot .lead { margin: 0; color: #c9d0d7; }
.hero-foot .actions { margin: 0; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: minmax(0, 1fr) auto; } }
.readout { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0 0; border-top: 1px solid var(--line); }
.readout::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform-origin: left; animation: grow 1.8s var(--ease) 1s both; }
@keyframes grow { from { transform: scaleX(0); } }
.readout > div { padding: 1rem 1rem 0 0; }
.readout > div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.readout dt { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.readout dt b { color: var(--accent-2); font-weight: 500; margin-right: .3em; }
.readout dd { margin: .3rem 0 0; font: 500 clamp(1.4rem, 3.6vw, 2.6rem)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.readout small { font-size: .45em; color: var(--text-3); letter-spacing: 0; }
.hero-caption { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 1.5rem); margin: 0; font: 400 .72rem/1.3 var(--mono); color: var(--text-3); letter-spacing: .06em; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: .5rem; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); text-decoration: none; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--accent) 0 0) no-repeat 0 -36px / 1px 36px, var(--line-2); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { background-position: 0 36px, 0 0; } }
@media (min-width: 900px) and (min-height: 760px) { .scroll-cue { display: flex; } }
@media (max-width: 640px) {
  .hero-caption { display: none; }
  .readout dd { font-size: 1.25rem; }
  .readout > div + div { padding-left: .7rem; }
  .readout dt { font-size: .62rem; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { display: inline-flex; align-items: center; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 650; font-stretch: 118%; letter-spacing: -.01em; white-space: nowrap; color: var(--text-2); }
.marquee span::after { content: ""; width: 9px; height: 9px; margin: 0 2rem; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }
.section-tight { padding-top: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 900px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin: 0; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head-row h2 { max-width: 18ch; }

/* ---------- Scale (isometric envelope) ---------- */
.scale { background: radial-gradient(ellipse 60% 50% at 75% 50%, rgba(11, 127, 185, .08), transparent 70%), var(--bg); }
.scale-in { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .scale-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.scale-copy > p:not(.eyebrow):not(.note) { color: var(--text-2); font-size: 1.1rem; max-width: 52ch; }
.env-switch { display: grid; gap: .6rem; margin: 2rem 0 1.5rem; }
.env-switch-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; margin-top: 0; }
.env-switch button { --c: var(--env-a); position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; text-align: left; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text-2); cursor: pointer; font: inherit; transition: border-color .3s, background .3s, color .3s; }
.env-switch button[data-env-btn="cme"] { --c: var(--env-b); }
.env-switch button::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); align-self: center; }
.env-switch button:hover { border-color: var(--line-2); color: var(--text); }
.env-switch button[aria-pressed="true"] { border-color: var(--c); color: var(--text); box-shadow: inset 0 0 0 1px var(--c); }
.env-switch button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--c); }
.env-switch.is-auto button[aria-pressed="true"]::after { animation: envbar var(--env-t, 4.5s) linear forwards; }
@keyframes envbar { to { width: 100%; } }
.env-name { font-weight: 650; flex: 1; }
.env-size { font: 500 .88rem/1.3 var(--mono); color: var(--text-2); }
.scale-fig { margin: 0; }
.scale-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; font: 400 .78rem/1.3 var(--mono); color: var(--text-3); letter-spacing: .04em; }
.legend-box, .legend-person { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: -.4rem; }
.legend-box { border: 1.5px solid var(--env-a); background: linear-gradient(135deg, rgba(11, 143, 208, .25) 50%, rgba(224, 134, 28, .3) 50%); }
.legend-person { background: var(--text); border-radius: 50%; }
.envelope { width: 100%; height: auto; overflow: visible; }
.envelope path, .envelope circle, .envelope ellipse { vector-effect: non-scaling-stroke; }
.env-box { --c: var(--env-a); opacity: 0; transition: opacity .7s var(--ease); }
.env-box[data-env="cme"] { --c: var(--env-b); }
.env-box.is-active { opacity: 1; }
.env-floor { fill: var(--c); fill-opacity: .06; stroke: none; }
.env-hidden { fill: none; stroke: var(--c); stroke-width: 1; stroke-dasharray: 6 6; opacity: .5; }
.env-face { fill: var(--c); stroke: var(--c); stroke-width: 1.6; stroke-linejoin: round; transition: fill-opacity 1s .9s; }
.env-top { fill-opacity: .26; }
.env-front { fill-opacity: .15; }
.env-side { fill-opacity: .08; }
.env-dim { fill: none; stroke: var(--text-3); stroke-width: 1; }
.env-label { font: 500 230px/1 var(--mono); fill: var(--text); letter-spacing: -.02em; }
.env-label-sm { font-size: 190px; fill: var(--text-2); }
.env-person { fill: var(--text); }
.env-shadow { fill: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .js [data-draw] .env-face { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease), fill-opacity 1s .9s; }
  .js [data-draw]:not(.in) .env-face { fill-opacity: 0; }
  .js [data-draw].in .env-face { stroke-dashoffset: 0; }
  .js [data-draw] .env-dim, .js [data-draw] .env-label, .js [data-draw] .env-hidden { opacity: 0; transition: opacity .8s 1.2s; }
  .js [data-draw].in .env-dim, .js [data-draw].in .env-label { opacity: 1; }
  .js [data-draw].in .env-hidden { opacity: .5; }
  .js [data-draw] .env-person { opacity: 0; transform: translateY(300px); transition: opacity .8s 1.5s, transform 1s var(--ease) 1.5s; }
  .js [data-draw].in .env-person { opacity: 1; transform: none; }
}
.scale-compact .scale-fig { max-width: 1000px; margin-inline: auto; }
.scale-compact .note { margin: 2rem auto 0; text-align: center; }

/* ---------- Capabilities ---------- */
.caps-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 640px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .caps-grid { grid-template-columns: repeat(4, 1fr); } }
.cap { background: var(--card); display: flex; flex-direction: column; position: relative; }
.cap-img { aspect-ratio: 4 / 3.4; overflow: hidden; position: relative; }
.cap-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, var(--card)); }
.cap-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s; }
.cap:hover .cap-img img { transform: scale(1.12); filter: grayscale(0) contrast(1.05); }
.cap-body { padding: 0 1.6rem 2rem; margin-top: -1.5rem; position: relative; }
.cap-n { display: inline-block; font: 500 .78rem/1 var(--mono); color: var(--accent-2); letter-spacing: .1em; margin-bottom: 1rem; }
.cap h3 { font-size: 1.2rem; font-stretch: 110%; }
.cap p { color: var(--text-2); font-size: .98rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats > div { padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1rem, 2vw, 1.5rem); border-left: 1px solid var(--line); }
.stats > div:nth-child(2n + 1) { border-left: 0; }
@media (min-width: 900px) { .stats > div:nth-child(2n + 1) { border-left: 1px solid var(--line); } .stats > div:first-child { border-left: 0; } }
@media (max-width: 899px) { .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.stats dt { font-size: clamp(1.7rem, 6vw, 3.2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .stats dt { font-size: min(3vw, 3.2rem); } }
.stats dt small { font-size: .42em; font-weight: 600; color: var(--accent-2); margin-left: .12em; letter-spacing: -.01em; }
.stats dd { margin: .8rem 0 0; color: var(--text-2); font-size: .95rem; max-width: 22ch; }

/* ---------- Works (bento) ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; }
  .bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento > :nth-child(4) { grid-column: span 2; }
  .bento-all { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; grid-auto-flow: dense; }
  .bento-all > :nth-child(4) { grid-column: auto; }
  .bento-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
  .bento-3 > :nth-child(n) { grid-column: auto; grid-row: auto; }
}
.work { position: relative; display: block; overflow: hidden; border-radius: 18px; background: var(--bg-3); color: var(--text); text-decoration: none; min-height: 280px; isolation: isolate; }
.work-img, .work-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.work-img img { object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.work:hover .work-img img { transform: scale(1.09); filter: saturate(1); }
.work::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 23, 27, .78)); transition: opacity .5s; }
.work-info { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.4rem 1.5rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .2rem 1rem; }
.work-meta { grid-column: 1; font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.work-name { grid-column: 1; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 700; font-stretch: 115%; line-height: 1.12; letter-spacing: -.015em; }
.work-go { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .35s, color .35s, transform .5s var(--ease), border-color .35s; }
.work:hover .work-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

/* ---------- Process (light section) ---------- */
.process { background: var(--card); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 2rem 1.6rem 2rem 0; border-top: 1px solid rgba(17, 21, 26, .18); }
@media (min-width: 1100px) { .step + .step { padding-left: 1.6rem; border-left: 1px solid rgba(17, 21, 26, .12); } }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 1.2s var(--ease) calc(var(--d, 0) * 200ms + 300ms); }
.step.in::before, .no-js .step::before { width: 100%; }
.step-n { display: block; font: 500 clamp(2.4rem, 4vw, 3.4rem)/1 var(--mono); letter-spacing: -.04em; color: var(--text-3); opacity: .55; margin-bottom: 1.4rem; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--text-2); margin: 0; font-size: 1rem; }
.sectors { margin: clamp(3rem, 6vw, 5rem) 0 0; font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 650; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.25; max-width: 32ch; text-wrap: balance; }

/* ---------- About ---------- */
.about-in { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .about-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; } .about-img { position: sticky; top: calc(var(--header-h) + 2rem); } }
.about-img { position: relative; border-radius: 22px; overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-years { position: absolute; left: 1.2rem; bottom: .4rem; font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.about-copy > p:not(.eyebrow) { color: var(--text-2); font-size: 1.08rem; }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.timeline-y { font: 500 1rem/1.6 var(--mono); color: var(--accent-2); }
.cert-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; color: var(--text-2); font-size: .95rem; }
.badge { font: 500 .75rem/1 var(--mono); padding: .5em .8em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }

/* ---------- CTA ---------- */
.cta { background: var(--bg); position: relative; overflow: hidden; isolation: isolate; padding: clamp(6rem, 14vw, 11rem) 0; border-top: 1px solid var(--line); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; opacity: .7; filter: grayscale(.5); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--shade), .82) 0%, rgba(var(--shade), .45) 45%, rgba(var(--shade), 0) 85%), linear-gradient(180deg, rgba(var(--shade), .5), transparent 20%, transparent 80%, rgba(var(--shade), .5)); }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-stretch: 112%; letter-spacing: -.035em; line-height: 1.02; max-width: 18ch; }
.cta .lead { margin-bottom: 2.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.5rem; }
.cta-line { display: grid; color: var(--text); text-decoration: none; font: 500 clamp(1.05rem, 1.8vw, 1.3rem)/1.3 var(--mono); letter-spacing: -.01em; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.cta-line small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }
.cta-line:hover { color: var(--accent-2); border-color: var(--accent); }

/* ---------- Page head ---------- */
.page-head { background: var(--bg); position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(180deg, #000, transparent 90%); opacity: .45; }
.page-head-img { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.page-head-img::before { background: linear-gradient(180deg, rgba(var(--shade), .35) 0%, rgba(var(--shade), .05) 35%, rgba(var(--shade), .55) 85%, var(--bg) 100%), linear-gradient(90deg, rgba(var(--shade), .55), transparent 65%); mask-image: none; opacity: 1; }
.page-head-media { position: absolute; inset: 0; z-index: -2; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
@media (prefers-reduced-motion: no-preference) { .page-head-media img { animation: kenburns 20s var(--ease) forwards; } }
.page-head-in { width: 100%; }
.page-title { font-size: clamp(2rem, 4.3vw, 3.6rem); font-stretch: 112%; letter-spacing: -.035em; line-height: 1; max-width: 20ch; }
.page-head .lead { color: #c4cbd2; }

/* ---------- Services ---------- */
.service-list { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.service { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .service { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
  .service:nth-child(even) .service-img { order: 2; }
}
.service-img { border-radius: 22px; overflow: hidden; }
.service-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.4s var(--ease); }
.service:hover .service-img img { transform: scale(1.05); }
.service-copy h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.service-copy > p { color: var(--text-2); font-size: 1.08rem; max-width: 52ch; }
.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line); font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 1.5px solid var(--accent); transform: rotate(45deg); }

/* ---------- Machines ---------- */
.pieces { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0; }
.pieces-title { font-size: 1rem; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.pieces-list { display: grid; gap: 1px; margin: 1.5rem 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 900px) { .pieces-list { grid-template-columns: 1.15fr 1.15fr 1fr; } }
.pieces-list > div { background: var(--card); padding: 1.6rem; }
.pieces-list dt { color: var(--text-2); font-size: .95rem; margin-bottom: .6rem; }
.pieces-list dd { margin: 0; white-space: nowrap; font: 500 clamp(1.1rem, 2vw, 1.75rem)/1.1 var(--mono); letter-spacing: -.03em; }
.pieces-list dd small { font-size: .5em; color: var(--text-3); }
.pieces-list .dd-text { white-space: normal; font-family: var(--sans); font-weight: 700; font-stretch: 115%; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.01em; }
.machine-group + .machine-group { padding-top: 0; }
.count { font: 500 clamp(2rem, 4vw, 3.2rem)/1 var(--mono); color: var(--text-3); letter-spacing: -.04em; }
.machine-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .machine-grid { grid-template-columns: repeat(3, 1fr); } .machine-grid-small { grid-template-columns: repeat(4, 1fr); } }
.machine { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s, transform .5s var(--ease); }
.machine:hover { border-color: var(--line-2); transform: translateY(-4px); }
.machine-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.machine-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.machine:hover .machine-img img { transform: scale(1.06); }
.machine-body { padding: 1.4rem 1.4rem 1.6rem; }
.machine h3 { font-size: 1.08rem; line-height: 1.3; font-stretch: 105%; margin-bottom: 1rem; }
.machine-grid-small .machine h3 { font-size: 1rem; margin-bottom: .5rem; }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: .5rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 450; color: var(--text-2); padding-right: 1rem; }
.specs td { font-family: var(--mono); font-size: .86rem; }
.specs td[colspan] { font-family: var(--sans); font-size: .9rem; color: var(--text-2); }

/* ---------- Project detail ---------- */
.back { margin-bottom: 2.5rem; }
.photo-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } .photo-grid figure:first-child:nth-last-child(n + 3) { grid-column: span 2; } }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; border-radius: 16px; background: var(--bg-3); cursor: zoom-in; }
.photo-grid img { width: 100%; max-height: 80vh; object-fit: cover; transition: transform 1s var(--ease); }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { display: flex; gap: .8rem; margin-top: .7rem; font-size: .92rem; color: var(--text-2); }
.photo-grid figcaption span { font-family: var(--mono); color: var(--accent-2); font-size: .8rem; padding-top: .1rem; }
.video-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 800px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-grid video { width: 100%; border-radius: 16px; background: #000; }
.more-works { border-top: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 23, 27, .96); color: var(--text); }
.lightbox::backdrop { background: rgba(20, 23, 27, .8); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.lightbox-in { display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem var(--gutter) 5.5rem; }
.lightbox-in figure { margin: 0; display: grid; justify-items: center; }
.lightbox-in img { max-width: 100%; max-height: calc(100vh - 11rem); width: auto; object-fit: contain; border-radius: 8px; }
.lightbox-in p { margin: 1rem 0 0; color: var(--text-2); font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; border: 1px solid var(--line-2); background: rgba(17, 20, 25, .8); color: var(--text); font: 500 .85rem/1 var(--mono); padding: .9em 1.2em; border-radius: 999px; cursor: pointer; }
.lightbox button:hover { border-color: var(--accent); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { bottom: 1.2rem; left: var(--gutter); }
.lb-next { bottom: 1.2rem; right: var(--gutter); }

/* ---------- Quality ---------- */
.cert { display: grid; gap: 2rem; padding: clamp(1.6rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 22px; background: var(--card); margin-bottom: 3rem; }
@media (min-width: 900px) { .cert { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.cert h2 { font-family: var(--mono); font-weight: 500; letter-spacing: -.04em; }
.cert p { color: var(--text-2); }
.cert-empty { grid-template-columns: 1fr !important; max-width: 760px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(5, 1fr); } }
.values li { background: var(--card); padding: 1.6rem 1.4rem; font-weight: 650; font-stretch: 110%; font-size: 1.1rem; line-height: 1.25; }
.values li::before { content: ""; display: block; width: 12px; height: 12px; border: 1.5px solid var(--accent); transform: rotate(45deg); margin-bottom: 1.4rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 5rem; } }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .45rem; font-size: .9rem; color: var(--text-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: .95em 1.05em; transition: border-color .25s, background .25s; }
.form input:hover, .form textarea:hover { border-color: var(--line-2); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 127, 185, .15); }
.form textarea { resize: vertical; min-height: 9rem; }
.form .check { display: flex; gap: .7rem; align-items: flex-start; }
.form .check input { width: 18px; height: 18px; margin-top: .2em; accent-color: var(--accent); }
.form .btn { justify-self: start; margin-top: .5rem; }
.req { color: var(--accent-2); }
.hp { position: absolute; left: -9999px; }
.contact-side { border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--card); align-self: start; }
.contact-side h2 { font-size: 2rem; }
.contact-side p, .contact-side address { color: var(--text-2); }
.contact-lines { font: 500 1.05rem/2 var(--mono); }
.contact-lines a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-lines a:hover { color: var(--accent-2); border-color: var(--accent); }
.map { border-top: 1px solid var(--line); }
.map-inner { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.map-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; filter: grayscale(.4); }
.map-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.5); }
.map-prompt { text-align: center; padding: 2rem var(--gutter); display: grid; justify-items: center; gap: 1rem; }
.map-prompt h2 { margin: 0; }
.map-note { font-size: .82rem; color: var(--text-3); max-width: 46ch; margin: 0; }

/* ---------- Legal / messages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.6rem; font-stretch: 110%; }
.prose p { color: var(--text-2); }
.message { background: var(--bg); min-height: 80svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 4rem); }
.message h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 112%; letter-spacing: -.04em; max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: clamp(3rem, 6vw, 5rem) 0 1.5rem; overflow: hidden; }
.footer-big { aspect-ratio: 2920 / 390; margin: 0 0 clamp(2.5rem, 5vw, 4rem); background: rgba(255, 255, 255, .07); -webkit-mask: url("comema-wordmark.png") no-repeat center / contain; mask: url("comema-wordmark.png") no-repeat center / contain; user-select: none; }
.footer-in { display: grid; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-name { font-weight: 650; margin-bottom: .3rem; }
.footer-tag, .site-footer address { color: var(--text-2); font-size: .95rem; }
.footer-contact { font: 500 .95rem/1.9 var(--mono); }
.footer-contact a, .footer-nav a { color: var(--text); text-decoration: none; }
.footer-contact a:hover, .footer-nav a:hover { color: var(--accent-2); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; font: 400 .75rem/1.4 var(--mono); color: var(--text-3); letter-spacing: .04em; }

/* ---------- Bakery spare parts (warm palette) ---------- */
.warm { --bg: #f2ece3; --card: #faf7f2; --field: #fff; --line: rgba(60, 40, 20, .13); --line-2: rgba(60, 40, 20, .26); --text: #251c15; --text-2: #5d5046; --text-3: #8c7d70; --accent: #b4592a; --accent-2: #9a4a22; --accent-ink: #fff; background: var(--bg); color: var(--text); }
.warm-dark { --bg: #2c241e; --bg-2: #362d26; --card: #362d26; --line: rgba(255, 240, 220, .12); --line-2: rgba(255, 240, 220, .24); --text: #f6efe6; --text-2: #cdbfb1; --text-3: #9d8e80; --accent: #e08a4f; --accent-2: #f0aa78; --accent-ink: #24170e; color-scheme: dark; background: var(--bg); color: var(--text); }
.warm-dark .eyebrow .dot { background: var(--accent); }
.sp-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sp-dust i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 238, 214, .55); filter: blur(.5px); animation: dust var(--t) linear var(--dl) infinite; }
@keyframes dust { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(40px, -110vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-dust { display: none; } }
.sp-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(ellipse 55% 60% at 75% 55%, rgba(224, 138, 79, .28), transparent 70%), var(--bg); }
.sp-hero-in { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 980px) { .sp-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }
.sp-hero .lead { color: var(--text-2); }
.sp-stage, .sp-teaser-stage { position: relative; aspect-ratio: 6 / 4.6; display: block; }
.sp-word { position: absolute; inset: auto 0 18% 0; text-align: center; font-size: clamp(3.5rem, 11vw, 9rem); font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 238, 214, .22); user-select: none; }
.sp-float { position: absolute; height: auto; filter: drop-shadow(0 30px 25px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
.sp-float.st-a { width: 54%; left: 0; bottom: 4%; animation-delay: -2s; z-index: 2; }
.sp-float.st-b { width: 50%; left: 27%; top: 0; z-index: 1; }
.sp-float.st-c { width: 44%; right: 0; bottom: 10%; animation-delay: -4s; z-index: 3; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .sp-float { animation: none; } }
.sp-models-text { max-width: 36ch; color: var(--text-2); margin: 0; }
.sp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.sp-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.sp-card:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -24px rgba(60, 35, 15, .35); }
.sp-card-img { aspect-ratio: 6 / 5; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(ellipse 60% 14% at 50% 88%, rgba(60, 35, 15, .18), transparent 70%), radial-gradient(circle at 50% 40%, #fff, transparent 70%); }
.sp-card-img img { width: 88%; height: auto; transition: transform .7s var(--ease); }
.sp-card:hover .sp-card-img img { transform: translateY(-8px) scale(1.03); }
.sp-card h3 { font-size: 1.08rem; margin: 0; flex: 1; }
.sp-card .link-arrow { align-self: flex-start; font-size: .95rem; }
.sp-how { padding-top: 0; }
.sp-how-in { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 980px) { .sp-how-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; } }
.sp-steps { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.sp-steps li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.sp-steps .step-n { font: 500 1.6rem/1 var(--mono); color: var(--accent); opacity: 1; margin: 0; }
.sp-steps h3 { margin-bottom: .3rem; }
.sp-steps p { margin: 0; color: var(--text-2); }
.sp-form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.4rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.sp-form h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0; }
.sp-form-lead { color: var(--text-2); margin: 0 0 .4rem; }
.form select { appearance: none; padding: .95em 2.6em .95em 1.05em; border: 1px solid var(--line); border-radius: 12px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23776' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1.1em center; cursor: pointer; }
.sp-form.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(180, 89, 42, .35); } }
.sp-teaser { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 8vw, 7rem) 0; background: radial-gradient(ellipse 50% 70% at 78% 50%, rgba(224, 138, 79, .25), transparent 70%), var(--bg); }
.sp-teaser-in { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .sp-teaser-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.sp-teaser .lead { color: var(--text-2); }
.sp-teaser-stage { max-width: 620px; width: 100%; justify-self: center; }
@media (max-width: 560px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-card { padding: .8rem .9rem 1rem; border-radius: 16px; }
  .sp-card h3 { font-size: .95rem; }
  .sp-card .link-arrow { font-size: .85rem; }
}

/* ---------- Legal pages ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.legal-table thead th { border-top: 0; font-weight: 650; background: var(--bg-2); }
.legal-table td { color: var(--text-2); }
.legal-table .mono { font-family: var(--mono); font-size: .85rem; color: var(--text); white-space: nowrap; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-legal a, .footer-legal button { color: var(--text-3); text-decoration: none; font: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--text); }

/* ---------- Cookie banner ---------- */
.consent { --bg: #262b31; --line-2: rgba(255, 255, 255, .24); --text: #f2f4f6; --text-2: #b9c1ca; --accent: #2bb0ee; --accent-2: #74cff8; --accent-ink: #04131c; color-scheme: dark; position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; padding: 1.3rem 1.4rem; border-radius: 18px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.consent[hidden] { display: none; }
.consent.in { animation: consentIn .6s var(--ease); }
@keyframes consentIn { from { opacity: 0; transform: translateY(24px); } }
.consent-title { font-weight: 700; font-stretch: 110%; margin: 0 0 .3rem; }
.consent-text { color: var(--text-2); font-size: .93rem; line-height: 1.5; margin: 0 0 1rem; }
.consent-text a { color: var(--accent-2); }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.consent-actions .btn { flex: 1 1 140px; justify-content: center; }
@media (min-width: 700px) { .consent { left: 24px; bottom: 24px; } }

/* ---------- Certification mark ---------- */
.cert-mark { width: min(100%, 300px); height: auto; margin-bottom: 1.6rem; border-radius: 6px; }
.cert-chip-mark { width: 150px; height: auto; border-radius: 4px; }
.footer-cert { display: inline-block; margin-top: 1rem; padding: 8px; background: #fff; border-radius: 8px; }
.footer-cert img { width: 140px; height: auto; display: block; }
.cert-iso { align-items: center; }
@media (min-width: 900px) { .cert-iso { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.cert-iso .cert-mark { width: 100%; max-width: 420px; margin: 0; }
