/* =========================================================
   IN Cubed site — design system
   Styles (data-style): aurora · ocean · emerald · graphite
   Modes  (data-mode):  dark · light
   Every style defines raw colors; the mode blocks turn them into tokens.
   .dark-zone forces dark tokens (hero, highlight band, modern footer).
   ========================================================= */

/* ---------- style palettes ---------- */
:root, [data-style="aurora"] {
  --a1: #22d3ee; --a2: #818cf8; --a3: #c084fc;          /* accents on dark */
  --a1l: #0891b2; --a2l: #4f46e5; --a3l: #9333ea;       /* accents on light */
  --dk0: #060912; --dk1: #0a0f1d; --dk2: #0e1528;
  --lt0: #f7f9fd; --lt1: #eef2fa;
}
[data-style="ocean"] {
  --a1: #3ba3ff; --a2: #53d1f7; --a3: #6d8bff;
  --a1l: #0068b5; --a2l: #2574e8; --a3l: #0b8fd6;
  --dk0: #051226; --dk1: #081a34; --dk2: #0b2244;
  --lt0: #ffffff; --lt1: #f2f7fd;
}
[data-style="emerald"] {
  --a1: #34d399; --a2: #a3e635; --a3: #22d3ee;
  --a1l: #059669; --a2l: #4d7c0f; --a3l: #0e7490;
  --dk0: #04100c; --dk1: #071812; --dk2: #0a2019;
  --lt0: #f6fbf8; --lt1: #ebf5ef;
}
[data-style="graphite"] {
  --a1: #fb923c; --a2: #fbbf24; --a3: #f87171;
  --a1l: #ea580c; --a2l: #b45309; --a3l: #dc2626;
  --dk0: #0a0a0b; --dk1: #121214; --dk2: #19191c;
  --lt0: #fafaf9; --lt1: #f1f1ef;
}

/* ---------- mode tokens ---------- */
:root, [data-mode="dark"], .dark-zone {
  color-scheme: dark;
  --bg: var(--dk0); --bg-2: var(--dk1); --solid: var(--dk2);
  --surface: rgba(255, 255, 255, .035); --surface-2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .085); --border-2: rgba(255, 255, 255, .18);
  --heading: #f2f5fb; --text: #b3bdd0; --muted: #7b869b;
  --accent: var(--a1); --accent-2: var(--a2); --accent-3: var(--a3); --on-accent: #050810;
  --fx-1: var(--a1); --fx-2: var(--a2);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  --glow: color-mix(in srgb, var(--a1) 32%, transparent);
  --nav-bg: color-mix(in srgb, var(--dk0) 72%, transparent);
  --input: rgba(255, 255, 255, .04);
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
}
[data-mode="light"] {
  color-scheme: light;
  --bg: var(--lt0); --bg-2: var(--lt1); --solid: #fff;
  --surface: #ffffff; --surface-2: #f5f7fb;
  --border: rgba(15, 23, 42, .085); --border-2: rgba(15, 23, 42, .18);
  --heading: #0a1222; --text: #3c4759; --muted: #6b7587;
  --accent: var(--a1l); --accent-2: var(--a2l); --accent-3: var(--a3l); --on-accent: #fff;
  --fx-1: var(--a1l); --fx-2: var(--a2l);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 32px -16px rgba(15, 23, 42, .16);
  --shadow-lg: 0 40px 80px -30px rgba(15, 23, 42, .28);
  --glow: color-mix(in srgb, var(--a1l) 22%, transparent);
  --nav-bg: color-mix(in srgb, var(--lt0) 78%, transparent);
  --input: #fff;
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
}
[data-mode="light"] .dark-zone { color-scheme: dark; }

:root {
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Inter, "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-head: "Space Grotesk", Inter, "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 72px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 4px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.theme-anim body, .theme-anim body * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0; font-family: var(--font-head); letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--heading); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.dark-zone { background: var(--bg); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; border: 0; isolation: isolate;
  font-weight: 650; font-size: 15.5px; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: var(--on-accent); background: var(--grad); background-size: 160% 100%; box-shadow: 0 10px 30px -10px var(--glow), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent) inset; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px -12px var(--glow); }
.btn-primary .icon { transition: transform .25s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) -100% 0 / 220% 100% no-repeat;
}
.btn-primary:hover::after { opacity: 1; animation: sheen .9s ease; }
@keyframes sheen { to { background-position: 200% 0; } }
.btn-ghost { color: var(--heading); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- top progress + nav ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad); box-shadow: 0 0 12px var(--glow);
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  transition: background .35s ease, border-color .35s ease, height .35s var(--ease), box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
  --nav-h: 62px; height: 62px; background: var(--nav-bg); border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
/* over the dark hero the nav uses light text */
.nav:not(.scrolled):not(.open) { --heading: #f2f5fb; --text: #c4cde0; --border-2: rgba(255, 255, 255, .2); --surface: rgba(255, 255, 255, .06); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; margin-left: -6px; transition: height .35s var(--ease); }
.nav.scrolled .brand-logo { height: 44px; }
.logo-on-light { display: none; }
[data-mode="light"] .nav.scrolled .logo-on-light, [data-mode="light"] .nav.open .logo-on-light { display: block; }
[data-mode="light"] .nav.scrolled .logo-on-dark, [data-mode="light"] .nav.open .logo-on-dark { display: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none;
  font-weight: 550; font-size: 14.5px; white-space: nowrap; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--heading); background: var(--surface-2); }
.nav-links a.active { color: var(--heading); }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px;
  border-radius: 10px; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2);
}
.lang select { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--heading); cursor: pointer; outline: none; }
.lang select option { color: #111; }
.tool-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--heading); box-shadow: inset 0 0 0 1px var(--border-2); transition: color .2s, box-shadow .2s;
}
.tool-btn:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
[data-mode="dark"] .i-moon, [data-mode="light"] .i-sun { display: none; }
.tool-btn span { display: grid; }
.menu-btn { display: none; flex-direction: column; gap: 4px; place-items: initial; justify-content: center; align-items: center; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 0; min-height: min(100vh, 980px); display: flex; flex-direction: column; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(900px 560px at 82% 18%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 62%),
    radial-gradient(760px 520px at 8% 92%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero.has-img .hero-bg {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 94%, transparent)), var(--hero-img) center / cover no-repeat;
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 55%, var(--bg) 100%), linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}
.hero-inner { position: relative; flex: 1; display: grid; align-items: center; gap: 48px; padding-bottom: 40px; }
.hero-split .hero-inner { grid-template-columns: 1.08fr .92fr; }
.hero-center .hero-inner { text-align: center; justify-items: center; }
.hero-center .hero-copy { max-width: 900px; }
.hero-center .hero-cta, .hero-center .hero-badge { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; margin-bottom: 26px;
  border-radius: 999px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--heading);
  background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  animation: rise .8s var(--ease) both;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.typer { min-height: 1.2em; }
.caret { width: 7px; height: 15px; background: var(--accent); margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
[data-anim="off"] .caret { display: none; }
.hero-title {
  font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06;
  background: linear-gradient(100deg, var(--heading) 0%, var(--heading) 40%, var(--accent) 62%, var(--accent-2) 80%, var(--heading) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s .08s var(--ease) both, shimmer 9s 1.2s ease-in-out infinite;
}
html[lang="zh-Hant"] .hero-title, html[lang="ja"] .hero-title { letter-spacing: -.01em; line-height: 1.18; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text); animation: rise .9s .18s var(--ease) both; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; animation: rise .9s .28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; display: grid; place-items: center; animation: fadeScale 1.2s .2s var(--ease) both; }
@keyframes fadeScale { from { opacity: 0; transform: scale(.94); } }
.hero-photo { width: 100%; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-2); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.chip { width: min(100%, 520px); height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.chip-orbit { fill: none; stroke: var(--border-2); stroke-dasharray: 2 10; transform-origin: 260px 260px; animation: spin 60s linear infinite; }
.chip-orbit.o2 { stroke-dasharray: 60 14 4 14; opacity: .6; animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-halo { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.chip .traces path { fill: none; stroke: color-mix(in srgb, var(--accent) 28%, transparent); stroke-width: 1.6; }
.chip .pulses path { fill: none; stroke: url(#chipGrad); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 14 86; stroke-dashoffset: 100; animation: signal 3.6s linear infinite; filter: drop-shadow(0 0 4px var(--accent)); }
@keyframes signal { to { stroke-dashoffset: 0; } }
.chip .pads circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.chip .pins rect { fill: color-mix(in srgb, var(--accent) 55%, var(--heading)); opacity: .75; }
.chip-body { fill: var(--solid); stroke: url(#chipGrad); stroke-width: 2; }
.chip-die { fill: color-mix(in srgb, var(--accent) 10%, var(--solid)); stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip-lines path { stroke: color-mix(in srgb, var(--accent) 16%, transparent); stroke-width: 1; fill: none; }
.chip-text { font-family: var(--font-head); font-weight: 700; font-size: 44px; fill: url(#chipGrad); letter-spacing: -1px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 72px; }
.stat {
  position: relative; padding: 24px 24px 22px; border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--grad); opacity: .9; }
.stat-value {
  font-family: var(--font-head); font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(100deg, var(--heading), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--muted); opacity: .8; }
.mouse { display: block; width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; }
.mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- reveal on scroll ---------- */
/* "backwards" fill: after the entrance the element's own transform (hover, tilt) applies again */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revealUp .9s var(--ease) var(--d, 0s) backwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(var(--rise, 26px)); } }
[data-anim="subtle"] { --rise: 10px; }
[data-anim="off"] .reveal { opacity: 1; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 120px 0; }
.sec + .sec:not(.sec-band):not(.sec-slim)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(1140px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow i { font-style: normal; color: var(--muted); }
.eyebrow i::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--border-2); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.03em; }
html[lang="zh-Hant"] .sec-head h2, html[lang="ja"] .sec-head h2 { letter-spacing: 0; }
.sec-intro { margin-top: 16px; font-size: 18px; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* cards with cursor spotlight */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), border-color .3s ease, box-shadow .45s var(--ease);
}
.spot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s ease;
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 70%);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
button.card, a.card { text-align: left; cursor: pointer; padding: 0; width: 100%; font: inherit; color: inherit; text-decoration: none; }
.card.reveal.in:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tilt.reveal.in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .15s ease-out, border-color .3s, box-shadow .45s; }

.icon-tile {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; flex-shrink: 0; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); overflow: hidden;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%), var(--bg-2); }
.ph-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.ph .icon { position: relative; filter: drop-shadow(0 0 14px var(--accent)); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--heading);
  background: var(--nav-bg); box-shadow: inset 0 0 0 1px var(--border-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tag.static { position: static; display: inline-block; margin-bottom: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* about */
.about-solo { max-width: 860px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-text p { font-size: 17.5px; margin-bottom: 18px; }
.about-text p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.55; color: var(--heading); font-weight: 500; letter-spacing: -.01em; }
.about-img .frame { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img .frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border-2); }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* services */
.service { padding: 28px; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.idx { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.service p { color: var(--heading); font-weight: 550; font-size: 17px; line-height: 1.55; }

/* process timeline */
.process { position: relative; }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; }
.process-line { position: absolute; top: 27px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 2px; background: var(--border); }
.process-line span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); box-shadow: 0 0 12px var(--glow); }
[data-anim="off"] .process-line span { transform: none; }
.step { position: relative; text-align: center; padding: 0 4px; }
.step-node {
  position: relative; width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 16px;
  color: var(--accent); background: var(--solid); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 6px var(--bg), 0 0 24px -4px var(--glow);
}
.step-num { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* products */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 32px; }
.chip-btn {
  padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-2); transition: all .25s ease;
}
.chip-btn:hover { color: var(--heading); }
.chip-btn.on { color: var(--on-accent); background: var(--grad); box-shadow: 0 8px 20px -10px var(--glow); }
.product { display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; }
.product[hidden] { display: none; }
.product.pop { animation: pop .5s var(--ease); }
.product-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--border); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 19px; letter-spacing: -.01em; }
.product-body p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; font-size: 14.5px; }
.more .icon { transition: transform .3s var(--ease); }
.product:hover .more .icon { transform: translateX(4px); }

/* cases */
.case { overflow: hidden; display: flex; flex-direction: column; }
.case-img { aspect-ratio: 16 / 10; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 26px; position: relative; }
.case-num {
  display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 14px; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent);
}
.case.has-img .case-num { font-size: 15px; -webkit-text-stroke: 0; color: var(--accent); font-family: var(--font-mono); margin-bottom: 8px; }
.case h3 { font-size: 17.5px; line-height: 1.45; letter-spacing: -.01em; }
.case p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* advantages band */
.sec-band { overflow: hidden; background: var(--bg); }
.sec-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 85% 0%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 65%),
    radial-gradient(600px 360px at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
}
.sec-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.sec-band .wrap { position: relative; z-index: 1; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-item {
  position: relative; padding: 30px 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: transform .45s var(--ease), border-color .3s;
}
.bento-item:first-child { grid-column: span 2; }
.bento-item:first-child p { font-size: 20px; max-width: 640px; }
/* fill the last row: the first card is double width, so the last card stretches when a gap would remain */
.bento-item:last-child:nth-child(3n) { grid-column: 1 / -1; }
.bento-item:last-child:nth-child(3n+1):not(:first-child) { grid-column: span 2; }
.bento-item:hover { border-color: var(--border-2); }
.bento-num { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-item p { position: relative; z-index: 2; font-size: 16.5px; color: var(--heading); line-height: 1.6; }

/* partners marquee */
.sec-slim { padding: 64px 0; }
.partners-title { text-align: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: flex; align-items: center; height: 48px; color: var(--muted); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; white-space: nowrap; opacity: .75; transition: opacity .3s, color .3s; }
.partner:hover { opacity: 1; color: var(--heading); }
.partner img { max-height: 44px; max-width: 160px; width: auto; filter: grayscale(1); transition: filter .3s; }
[data-mode="dark"] .partner img { filter: grayscale(1) brightness(1.6); }
.partner:hover img { filter: none; }
[data-anim="off"] .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
[data-anim="off"] .marquee-group[aria-hidden] { display: none; }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert { padding: 28px 18px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
button.cert { text-align: center; padding: 28px 18px 24px; }
.cert-img { height: 84px; width: 100%; display: grid; place-items: center; margin-bottom: 12px; }
.cert-img img { max-height: 84px; width: auto; object-fit: contain; }
.cert-badge {
  width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: var(--accent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 30px -8px var(--glow);
}
.cert strong { font-family: var(--font-head); font-size: 18px; color: var(--heading); letter-spacing: -.01em; }
.cert > span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* news */
.news { display: grid; gap: 14px; }
.news-item { display: flex; align-items: stretch; overflow: hidden; }
.news-img { width: 260px; flex-shrink: 0; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-item:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 26px 28px; flex: 1; min-width: 0; }
.news-body time, .nm time { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.news-body h3 { margin: 8px 0 8px; font-size: 20px; letter-spacing: -.01em; }
.news-body p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-go { align-self: center; margin-right: 26px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--heading); box-shadow: inset 0 0 0 1px var(--border-2); transition: all .3s var(--ease); flex-shrink: 0; }
.news-item:hover .news-go { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 20px -4px var(--glow); transform: rotate(-45deg); }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
a.dl { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.dl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-text strong { color: var(--heading); font-size: 16px; }
.dl-text span { color: var(--muted); font-size: 14px; }
.dl-ext { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-2); }
.dl-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); transition: all .3s; }
.dl:hover .dl-btn { color: var(--on-accent); background: var(--accent); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-solo { max-width: 760px; }
.contact-info .sec-head { margin-bottom: 32px; }
.c-rows { display: grid; gap: 14px; }
.c-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.c-label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.c-value { display: block; color: var(--heading); font-weight: 600; font-size: 16px; word-break: break-word; line-height: 1.45; }
.c-value a { color: inherit; text-decoration: none; }
.c-value a:hover { color: var(--accent); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.inquiry { padding: 36px; display: grid; gap: 16px; overflow: hidden; }
.inquiry::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); }
.inquiry h3 { font-size: 24px; margin-bottom: 4px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry label { display: grid; gap: 6px; }
.inquiry label span { font-size: 13.5px; font-weight: 600; color: var(--text); }
.inquiry input, .inquiry textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--input);
  color: var(--heading); font: inherit; font-size: 15.5px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.inquiry input:focus, .inquiry textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.inquiry label.invalid input, .inquiry label.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.f-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.f-note { color: var(--muted); font-size: 13px; }
.f-status:empty { display: none; }
.f-status { padding: 12px 14px; border-radius: 11px; font-size: 15px; font-weight: 550; }
.f-status.ok { color: #10b981; background: rgba(16, 185, 129, .1); }
.f-status.err { color: #ef4444; background: rgba(239, 68, 68, .1); }

/* footer */
.footer-banner { line-height: 0; max-height: 200px; overflow: hidden; }
.footer-banner img { width: 100%; height: auto; object-fit: cover; }
.footer-modern { position: relative; padding: 72px 0 28px; border-top: 1px solid var(--border); font-size: 14.5px; }
.footer-modern::before { content: ""; position: absolute; top: -1px; left: 50%; width: 40%; height: 1px; transform: translateX(-50%); background: var(--grad); }
.f-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.f-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.f-brand p { color: var(--muted); max-width: 380px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f-col a, .f-col span { color: var(--text); text-decoration: none; }
.f-col a:hover { color: var(--accent); }
.f-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.f-bottom strong { color: var(--heading); font-weight: 600; }
/* classic footer: same look as the original site */
.footer-classic { background: #0c1b2a; color: #bcc3d1; padding: 20px 12px; border-top: 1.5px solid #28374c; font-size: 14px; }
.footer-classic-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-bottom: 6px; text-align: center; }
.footer-classic-row img { height: 48px; width: auto; object-fit: contain; filter: brightness(1.1); }
.footer-classic-row strong { font-weight: 600; }
.footer-classic-address { font-size: 13px; text-align: center; opacity: .78; }

/* back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--heading); background: var(--nav-bg); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--border-2); stroke-width: 2; }
.to-top .ring .ring-fill { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); stroke-linecap: round; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 14, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; background: var(--solid); border: 1px solid var(--border-2); border-radius: 24px; width: min(940px, 100%); max-height: 90vh; overflow: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5); animation: pop .4s var(--ease);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: var(--nav-bg); color: var(--heading); box-shadow: inset 0 0 0 1px var(--border-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pm { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm.no-img { grid-template-columns: 1fr; }
.pm-media { background: var(--bg-2); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pm-main { border-radius: 16px; overflow: hidden; flex: 1; min-height: 300px; background: var(--bg); }
.pm-main img { width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease; }
.pm-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pm-thumbs button { width: 68px; height: 52px; flex-shrink: 0; padding: 0; border-radius: 9px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .65; background: none; }
.pm-thumbs button.on { border-color: var(--accent); opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-body, .cm, .nm { padding: 44px 40px 40px; }
.pm-body h3, .cm h3, .nm h3 { font-size: 27px; padding-right: 40px; }
.pm-body > p { margin-top: 12px; color: var(--muted); }
.pm-body h4 { margin: 28px 0 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.specs { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.specs li { display: flex; gap: 10px; align-items: flex-start; color: var(--heading); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.specs .icon { color: var(--accent); margin-top: 4px; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cm-img img, .nm-img img { width: 100%; max-height: 440px; object-fit: contain; border-radius: 14px; margin-bottom: 24px; background: var(--bg-2); }
.cm-sub { color: var(--accent); font-weight: 600; margin: 6px 0 18px; }
.cm p, .nm p { margin-bottom: 14px; }
.nm h3 { margin: 8px 0 16px; }

.content-error {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; padding: 16px 20px;
  border-radius: 12px; background: #b3261e; color: #fff; font-size: 16px;
}
.content-error[hidden] { display: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; padding: 10px 16px; border-radius: 10px; background: var(--solid); color: var(--heading); }
.skip:focus { left: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .certs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1060px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0;
    padding: 12px 20px 22px; background: var(--solid); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 62px); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .nav-tools { margin-left: auto; }
  .hero-split .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-split .hero-cta, .hero-split .hero-badge { justify-content: center; }
  .hero-split .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 420px; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .pm { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item:last-child:nth-child(n) { grid-column: auto; }
  .bento-item:first-child, .bento-item:last-child:nth-child(even) { grid-column: 1 / -1; }
  .process ol { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-line { display: none; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { padding: 0 18px; }
  .brand-logo { height: 34px; }
  .lang { padding: 0 8px; }
  .lang .icon { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); min-height: 0; }
  .hero-visual { max-width: 300px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 36px; }
  .grid-3, .downloads, .bento { grid-template-columns: 1fr; }
  .bento-item:first-child, .bento-item:last-child:nth-child(n) { grid-column: auto; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 18px 16px; }
  .stats { gap: 10px; margin-bottom: 56px; }
  .service { display: flex; align-items: center; gap: 16px; padding: 18px; }
  .service-top { margin: 0; }
  .service .idx { display: none; }
  .service p { font-size: 16px; }
  .process ol { grid-template-columns: 1fr; gap: 0; }
  .process-line { display: block; top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .process-line span { transform-origin: 50% 0; transform: scaleY(var(--fill, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0 0 28px; }
  .step-node { grid-row: span 3; margin: 0; }
  .news-item { flex-direction: column; }
  .news-img { width: 100%; aspect-ratio: 16 / 9; }
  .news-go { display: none; }
  .f-row { grid-template-columns: 1fr; }
  .inquiry { padding: 26px 20px; }
  .pm-body, .cm, .nm { padding: 30px 22px; }
  .f-cols { grid-template-columns: 1fr; gap: 32px; }
  .scroll-hint { display: none; }
  .to-top { right: 14px; bottom: 14px; }
}

/* live preview inside the editor: no entrance animations on every keystroke */
.preview *, .preview *::before, .preview *::after { animation-duration: 0s !important; animation-delay: 0s !important; }
.preview .reveal { opacity: 1; }
.preview .chip-orbit, .preview .chip .pulses path, .preview .marquee-track { animation: none !important; }

[data-anim="off"] *, [data-anim="off"] *::before, [data-anim="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
