/* =====================================================================
   AkaGen — Option B: "Interactive Fab Console"
   Dark, product-led, app-like. Palette from the AkaGen logo.
   ===================================================================== */
:root {
  --bg: #060d1c;
  --bg-2: #0a1428;
  --panel: #0e1b34;
  --panel-2: #12223f;
  --line: rgba(140, 175, 230, 0.16);
  --line-2: rgba(140, 175, 230, 0.3);
  --text: #e7eef9;
  --muted: #9fb0cb;
  --dim: #6f819f;
  --blue: #2f8ae0;
  --blue-d: #0074d9;
  --sky: #7fb8eb;
  --cyan: #5fd4e8;
  --green: #3ccf91;
  --amber: #f3b24a;
  --red: #f0646b;
  --radius: 16px;
  --font: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; }
a { color: var(--sky); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 100; background: #fff; color: #000; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.15rem, 4vw, 2rem); }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-d), var(--cyan)); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem;
  border-radius: 12px; border: 1px solid transparent; background: var(--blue-d); color: #fff;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0, 116, 217, .8); transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #0a84f0; transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; }
.link { color: var(--sky); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* header */
.header { position: fixed; inset: 3px 0 auto 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.header.is-solid { background: rgba(6, 13, 28, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand img { height: 28px; width: auto; }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 550; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.is-active { color: #fff; background: rgba(47,138,224,.16); }
.header__cta { display: none; }
.burger { margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: rgba(6,13,28,.97); border-bottom: 1px solid var(--line); padding: .75rem clamp(1.15rem,4vw,2rem) 1.25rem; display: grid; gap: .25rem; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { color: var(--text); text-decoration: none; padding: .8rem .5rem; border-radius: 8px; font-weight: 600; }
.mobile-menu a:not(.btn):hover { background: rgba(255,255,255,.06); }
.mobile-menu .btn { justify-content: center; margin-top: .5rem; }
@media (min-width: 1020px) {
  .nav, .header__cta { display: block; }
  .header__cta { display: inline-flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* kicker / heads */
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--sky); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(60,207,145,.18); }
.sec-head { max-width: 46rem; display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.6rem); }
.sub { color: var(--muted); font-size: 1.1rem; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* in-page navigation offset: when a menu link is clicked, skip the section's top padding so the
   section title lands just below the fixed header (header ~76px + 1.5rem breathing room). */
.section[id], .faq-light[id] { scroll-margin-top: calc(76px + 1.5rem - clamp(4.5rem, 9vw, 7.5rem)); }

/* hero */
.hero { position: relative; padding: calc(72px + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(127,184,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(127,184,235,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -250px; top: -300px; background: radial-gradient(circle, rgba(0,116,217,.35), transparent 60%); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1020px) { .hero__grid { grid-template-columns: 1fr 1fr; } }
.hero__copy { display: grid; gap: 1.4rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); font-weight: 700; letter-spacing: -.035em; }
.grad { background: linear-gradient(90deg, var(--sky), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c3d0e4; font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem); max-width: 38rem; }
.lead strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* wafer card */
.wafer-card { background: linear-gradient(180deg, rgba(18,34,63,.9), rgba(10,20,40,.9)); border: 1px solid var(--line-2); border-radius: 20px; padding: 1.25rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.wafer-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .25rem 1rem; border-bottom: 1px solid var(--line); }
.wafer-card__head h2 { font-size: 1rem; font-weight: 600; }
.tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(243,178,74,.4); background: rgba(243,178,74,.08); padding: .2rem .55rem; border-radius: 6px; }
.wafer-card__body { display: grid; gap: 1.25rem; padding-top: 1.1rem; }
@media (min-width: 560px) { .wafer-card__body { grid-template-columns: 1.45fr 1fr; align-items: center; } }
.wafer-stage { position: relative; }
#wafer { width: 100%; aspect-ratio: 1; cursor: crosshair; }
.wafer-tip { position: absolute; pointer-events: none; background: rgba(6,13,28,.95); border: 1px solid var(--line-2); padding: .3rem .55rem; border-radius: 6px; font: 600 .75rem var(--mono); color: #fff; white-space: nowrap; transform: translate(-50%, -130%); }
.wafer-hint { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.seg button { padding: .55rem .5rem; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.seg button:hover { color: #fff; border-color: var(--sky); }
.seg button[aria-checked="true"] { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.wafer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 0; }
.wafer-stats div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.wafer-stats dt { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.wafer-stats dd { margin: 0; font: 650 1.05rem var(--mono); color: #fff; }
.wafer-card__foot { font-size: .78rem; color: var(--dim); margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }

/* facts */
.facts { list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.02); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: 1.4rem 1.5rem; display: grid; gap: .2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts strong { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.facts li > span { color: var(--muted); font-size: .88rem; }

/* switcher */
.switch__tabs { display: inline-flex; gap: .35rem; padding: .35rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 2rem; flex-wrap: wrap; }
.switch__tabs button { padding: .7rem 1.2rem; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; display: inline-flex; gap: .6rem; align-items: center; }
.switch__tabs button:hover { color: #fff; }
.switch__tabs button[aria-selected="true"] { background: var(--blue-d); color: #fff; box-shadow: 0 8px 22px -10px rgba(0,116,217,.9); }
.switch__num { font: 600 .75rem var(--mono); opacity: .7; }
.switch__panel { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; animation: fadeUp .45s var(--ease); }
.switch__panel[hidden] { display: none; }
@media (min-width: 960px) { .switch__panel { grid-template-columns: 1fr 1.15fr; } }
.switch__text { display: grid; gap: 1.1rem; justify-items: start; }
.switch__text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.switch__text > p { color: var(--muted); }
.badge { font-size: .78rem; font-weight: 650; color: var(--sky); border: 1px solid rgba(127,184,235,.35); background: rgba(127,184,235,.08); padding: .25rem .7rem; border-radius: 999px; }
.badge--green { color: var(--green); border-color: rgba(60,207,145,.4); background: rgba(60,207,145,.08); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: #d3deee; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; border-radius: 50%; background: rgba(47,138,224,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237fb8eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.mini-cards { display: grid; gap: .75rem; width: 100%; }
@media (min-width: 640px) { .mini-cards { grid-template-columns: 1fr 1fr; } }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.mini h4 { font-size: 1rem; margin-bottom: .35rem; }
.mini p { color: var(--muted); font-size: .9rem; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); background: #fff; }
.shot--tilt { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease); }
.shot--tilt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

/* ecosystem diagram */
.eco { display: grid; justify-items: center; gap: 1rem; }
.eco__ring { position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-2); display: grid; place-items: center; }
.eco__ring::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid var(--line); }
.eco__core { width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 700; background: radial-gradient(circle at 30% 30%, var(--blue), var(--blue-d)); box-shadow: 0 0 0 10px rgba(0,116,217,.12), 0 20px 60px -10px rgba(0,116,217,.7); }
.eco__node { position: absolute; padding: .45rem .8rem; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.n1 { top: 4%; left: 50%; transform: translateX(-50%); }
.n2 { right: -2%; top: 50%; transform: translateY(-50%); animation-delay: -1.5s; }
.n3 { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: -3s; }
.n4 { left: -2%; top: 50%; transform: translateY(-50%); animation-delay: -4.5s; }
.eco__cap { color: var(--muted); font-size: .9rem; text-align: center; }
@keyframes float { 50% { margin-top: -6px; } }

/* tour */
.tour { display: grid; gap: 1.5rem; }
.tour__stage { position: relative; }
.tour__figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 50px 100px -50px rgba(0,0,0,.9); }
.tour__figure img { width: 100%; transition: opacity .25s; }
.tour__figure img.is-fading { opacity: 0; }
.tour__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6,13,28,.85); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.tour__nav:hover { background: var(--blue-d); }
.tour__nav.prev { left: -14px; } .tour__nav.next { right: -14px; }
@media (max-width: 640px) { .tour__nav.prev { left: 6px; } .tour__nav.next { right: 6px; } }
.tour__info { display: grid; gap: .4rem; max-width: 52rem; }
.tour__count { font: 600 .8rem var(--mono); color: var(--sky); }
.tour__info h3 { font-size: 1.4rem; }
.tour__info p:last-child { color: var(--muted); }
.tour__thumbs { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.tour__thumbs button { padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.tour__thumbs button:hover { opacity: .9; }
.tour__thumbs button[aria-selected="true"] { border-color: var(--blue); opacity: 1; }
.tour__thumbs img { aspect-ratio: 16/9; object-fit: cover; object-position: top left; width: 100%; }

/* capabilities */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip:hover { color: #fff; }
.chip.is-on { background: #fff; color: var(--bg); border-color: #fff; }
.caps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.caps li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; display: grid; gap: .45rem; align-content: start; transition: transform .25s var(--ease), border-color .25s, opacity .25s; }
.caps li:hover { transform: translateY(-3px); border-color: var(--line-2); }
.caps li.is-hidden { display: none; }
.caps h3 { font-size: 1.05rem; }
.caps p { color: var(--muted); font-size: .9rem; }
.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,138,224,.15); color: var(--sky); font-size: 1.1rem; }

/* finder */
.finder { display: grid; gap: 1rem; max-width: 52rem; }
.finder fieldset { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem 1.25rem; background: var(--panel); display: flex; flex-wrap: wrap; gap: .5rem; }
.finder legend { float: left; width: 100%; font-weight: 650; margin-bottom: .75rem; display: flex; gap: .7rem; align-items: center; }
.finder legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-d); display: grid; place-items: center; font-size: .8rem; flex: none; }
.finder label { position: relative; }
.finder input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.finder label { padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; color: var(--muted); font-size: .93rem; font-weight: 550; transition: all .2s; }
.finder label:hover { color: #fff; border-color: var(--sky); }
.finder label:has(input:checked) { background: rgba(47,138,224,.2); border-color: var(--blue); color: #fff; }
.finder label:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.finder .btn { justify-self: start; }
.finder-result { margin-top: 1.5rem; max-width: 52rem; border-radius: 16px; padding: 1.5rem; border: 1px solid var(--blue); background: linear-gradient(135deg, rgba(0,116,217,.18), rgba(95,212,232,.06)); display: grid; gap: .6rem; animation: fadeUp .4s var(--ease); }
.finder-result h3 { font-size: 1.35rem; }
.finder-result p { color: #c9d6ea; }
.finder-result .btn { justify-self: start; margin-top: .4rem; }

.team { margin-top: 0; display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--panel), var(--bg-2)); }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.team h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.team p { color: var(--muted); }
.team__bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.team__bars li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .9rem; align-items: center; font-size: .9rem; }
.team__bars li::after { content: ""; grid-column: 2; grid-row: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-d), var(--cyan)); width: calc(var(--y) / 26 * 100%); transform-origin: left; transition: transform 1.1s var(--ease); }
@media (scripting: enabled) {
  .team__bars li::after { transform: scaleX(0); }
  .team.is-visible .team__bars li::after { transform: scaleX(1); }
}
/* Bar lengths (years) set here instead of inline style attributes, so the CSP needs no 'unsafe-inline'. */
.team__bars li[data-y="26"] { --y: 26; }
.team__bars li[data-y="21"] { --y: 21; }
.team__bars li[data-y="20"] { --y: 20; }
.team__bars li[data-y="19"] { --y: 19; }
.team__bars b { grid-column: 3; font: 600 .8rem var(--mono); color: var(--sky); }
@media (max-width: 520px) { .team__bars li { grid-template-columns: 7.5rem 1fr auto; } }

/* FAQ: light editorial style (warm paper background, serif questions, hairline dividers) */
.faq-light {
  --fq-paper: #f3f1ec; --fq-ink: #14213d; --fq-muted: #5d6779; --fq-line: #d3cec4; --fq-blue: #006cc9;
  --fq-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background: var(--fq-paper); color: var(--fq-ink); padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.faq-light :focus-visible { outline-color: var(--fq-blue); }
.faq-light__grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-light__grid { grid-template-columns: .8fr 1.4fr; gap: 4rem; } .faq-light__head { position: sticky; top: 110px; align-self: start; } }
.faq-light__eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--fq-blue); margin-bottom: 1rem; }
.faq-light__head h2 { font-family: var(--fq-serif); font-weight: 500; color: var(--fq-ink); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.015em; }
.faq-light__list { border-top: 1px solid var(--fq-line); }
.faq-light__list details { border-bottom: 1px solid var(--fq-line); }
.faq-light__list summary { list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; font-family: var(--fq-serif); font-size: 1.3rem; line-height: 1.35; color: var(--fq-ink); }
.faq-light__list summary::-webkit-details-marker { display: none; }
.faq-light__list summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 300 1.8rem var(--font); color: var(--fq-blue); transition: transform .25s var(--ease); }
.faq-light__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-light__list summary:hover { color: var(--fq-blue); }
.faq-light__list details p { padding: 0 0 1.5rem; color: var(--fq-muted); max-width: 44rem; font-size: 1rem; animation: fadeUp .35s var(--ease); }
@media (max-width: 600px) { .faq-light__list summary { font-size: 1.15rem; } }

/* video */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.3fr; } }
.video { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16/9; background: #000; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.3fr; } }
.contact__intro { display: grid; gap: 1rem; align-content: start; }
.contact__intro h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); }
.mail { font-size: 1.15rem; font-weight: 650; color: #fff; text-decoration: none; border-bottom: 2px solid var(--blue); justify-self: start; }
.form { display: grid; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 4vw, 2rem); }
.row { display: grid; gap: 1rem; }
@media (min-width: 620px) { .row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: #cdd8ea; }
.form em { font-style: normal; color: var(--dim); font-weight: 400; }
.form input, .form select, .form textarea { min-height: 46px; padding: .65rem .85rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: .95rem; }
.form select option { background: var(--bg-2); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,138,224,.2); }
.form [aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-weight: 500; min-height: 1em; }
.hp { position: absolute; left: -9999px; }
.status { display: none; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; }
.status.is-info { display: block; background: rgba(47,138,224,.14); border: 1px solid rgba(47,138,224,.45); }
.status.is-error { display: block; background: rgba(240,100,107,.12); border: 1px solid rgba(240,100,107,.45); color: #ffc9cc; }
.status.is-ok { display: block; background: rgba(60,207,145,.12); border: 1px solid rgba(60,207,145,.45); }
.form .btn { justify-self: start; }
.note { font-size: .8rem; color: var(--dim); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--dim); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.footer img { height: 24px; width: auto; }
.footer .small { margin-left: auto; font-size: .8rem; }

/* reveal + motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Hide-until-revealed only when scripting is on: no inline script needed (CSP-friendly). */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .team__bars li::after { transform: none !important; }
  .shot--tilt { transform: none; }
}

/* ---------- Preview sign-in ---------- */
.signin-page { min-height: 100vh; min-height: 100dvh; }
.signin { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem); max-width: 1280px; margin: 0 auto; }
@media (min-width: 1000px) { .signin { grid-template-columns: 1.15fr 1fr; } }
.signin__grid-bg { position: fixed; inset: 0; z-index: -2; background-image: linear-gradient(rgba(127,184,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(127,184,235,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 25%, transparent 80%); }
.signin__glow { position: fixed; z-index: -1; width: 900px; height: 900px; left: 15%; top: 10%; background: radial-gradient(circle, rgba(0,116,217,.30), transparent 60%); pointer-events: none; }

/* showcase */
.signin__showcase { display: none; gap: 1.4rem; align-content: center; }
@media (min-width: 1000px) { .signin__showcase { display: grid; } }
.signin__brand { height: 30px; width: auto; }
.signin__headline { font-size: clamp(2.2rem, 1.4rem + 2vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.signin__shot { margin: .5rem 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 50px 100px -40px rgba(0,0,0,.95), 0 0 0 6px rgba(47,138,224,.08); transform: perspective(1400px) rotateY(6deg) rotateX(2deg); transform-origin: left center; max-width: 620px; }
.signin__shot img { width: 100%; }
.signin__shot figcaption { background: var(--panel); color: var(--dim); font: 600 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .65rem .9rem; border-top: 1px solid var(--line); }
.signin__points { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 560px; }
.signin__points li { display: grid; grid-template-columns: 1.6rem 1fr; column-gap: .75rem; }
.signin__points li::before { content: ""; grid-row: span 2; width: 1.1rem; height: 1.1rem; margin-top: .25rem; border-radius: 50%; background: rgba(47,138,224,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%237fb8eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.signin__points b { font-weight: 650; }
.signin__points span { color: var(--muted); font-size: .92rem; }

/* card */
.signin__side { display: grid; justify-items: center; gap: 1.25rem; }
.signin__card { width: 100%; max-width: 440px; display: grid; gap: 1rem; padding: clamp(1.6rem, 5vw, 2.4rem); border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(18,34,63,.94), rgba(9,18,36,.94)); backdrop-filter: blur(10px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05); }
.signin__card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.signin__logo { height: 28px; width: auto; }
.signin__badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 650; color: var(--green); border: 1px solid rgba(60,207,145,.35); background: rgba(60,207,145,.08); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.signin__badge svg { width: 13px; height: 13px; }
.signin__card h1 { font-size: 1.65rem; }
.signin__intro { color: var(--muted); font-size: .95rem; margin-top: -.25rem; }
.signin__form { display: grid; gap: 1rem; margin-top: .25rem; }
.signin__field { display: grid; gap: .4rem; }
.signin__field label { font-size: .85rem; font-weight: 600; color: #cdd8ea; }
.signin__input { position: relative; display: block; }
.signin__input > svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; transition: color .2s; }
.signin__input:focus-within > svg { color: var(--sky); }
.signin__input input { width: 100%; min-height: 50px; padding: .7rem 4.8rem .7rem 2.7rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(6,13,28,.7); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.signin__input input::placeholder { color: var(--dim); }
.signin__input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,138,224,.22); }
.signin__input input[aria-invalid="true"] { border-color: var(--red); }
.signin__show { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); min-height: 36px; min-width: 58px; padding: 0 .75rem; border: 0; border-radius: 9px; background: rgba(255,255,255,.07); color: var(--text); font-size: .8rem; font-weight: 600; cursor: pointer; }
.signin__show:hover { background: rgba(255,255,255,.14); }
.signin__caps { font-size: .8rem; color: var(--amber); }
.signin__submit { width: 100%; justify-content: center; min-height: 52px; font-size: 1rem; position: relative; }
.signin__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.signin__submit.is-busy .signin__spinner { display: inline-block; }
.signin__submit.is-busy .signin__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-status { display: none; padding: .75rem .9rem; border-radius: 10px; font-size: .9rem; }
.login-status.is-error { display: block; background: rgba(240,100,107,.12); border: 1px solid rgba(240,100,107,.45); color: #ffc9cc; }
.login-status.is-ok { display: block; background: rgba(60,207,145,.12); border: 1px solid rgba(60,207,145,.45); color: #b8f5d8; }
.login-status.is-info { display: block; background: rgba(47,138,224,.14); border: 1px solid rgba(47,138,224,.45); color: #cfe3f8; }
.login-status:empty { display: none; }
.signin__note { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--dim); }
.signin__note svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: var(--sky); }
.signin__help { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.signin__foot { font-size: .78rem; color: var(--dim); text-align: center; max-width: 440px; }
.signin__noscript { position: fixed; inset: auto 0 0 0; background: var(--red); color: #fff; text-align: center; padding: .75rem; }

/* sign-out buttons */
.signout { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 8px; padding: .4rem .9rem; min-height: 36px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.signout:hover { color: #fff; border-color: var(--sky); }
.signout svg { width: 15px; height: 15px; }
.header__signout { display: none; }
@media (min-width: 1020px) { .header__signout { display: inline-flex; } }
.mobile-menu .signout { justify-content: center; min-height: 44px; margin-top: .25rem; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .signin__shot { transform: none; } }

/* =====================================================================
   Light theme (header button). Dark remains the default.
   ===================================================================== */
html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb; --bg-2: #eaeff7; --panel: #ffffff; --panel-2: #f1f5fb;
  --line: rgba(20, 40, 80, .12); --line-2: rgba(20, 40, 80, .22);
  --text: #14213d; --muted: #4a5872; --dim: #5a6780;
  --blue: #0074d9; --blue-d: #0068c3; --sky: #0062b8; --cyan: #0891b2;
  --green: #0b7a50; --amber: #8a5200; --red: #b42330;
}
/* The wafer explorer stays a dark "instrument screen" in both themes */
html[data-theme="light"] .wafer-card {
  --line: rgba(140, 175, 230, 0.16); --line-2: rgba(140, 175, 230, 0.3);
  --text: #e7eef9; --muted: #9fb0cb; --dim: #8496b3; --sky: #7fb8eb; --amber: #f3b24a;
  color: var(--text);
}
/* Logos: light logo on dark theme, dark logo on light theme */
.logo-for-light { display: none; }
html[data-theme="light"] .logo-for-dark { display: none; }
html[data-theme="light"] .logo-for-light { display: block; }
html[data-theme="light"] .header.is-solid, html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, .9); }
html[data-theme="light"] .nav a:hover { color: var(--text); background: rgba(20, 40, 80, .05); }
html[data-theme="light"] .nav a.is-active { color: var(--text); background: rgba(0, 116, 217, .1); }
html[data-theme="light"] .burger span { background: var(--text); }
html[data-theme="light"] .mobile-menu a:not(.btn):hover { background: rgba(20, 40, 80, .05); }
html[data-theme="light"] .btn--ghost { color: var(--text); background: rgba(20, 40, 80, .04); }
html[data-theme="light"] .btn--ghost:hover { background: rgba(20, 40, 80, .08); }
html[data-theme="light"] .btn { box-shadow: 0 10px 24px -14px rgba(0, 104, 195, .7); }
html[data-theme="light"] .hero::before { background-image: linear-gradient(rgba(0, 80, 160, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 80, 160, .07) 1px, transparent 1px); }
html[data-theme="light"] .hero__glow { background: radial-gradient(circle, rgba(0, 116, 217, .16), transparent 60%); }
html[data-theme="light"] .grad { background-image: linear-gradient(90deg, #0068c3, #0a7fa3); }
html[data-theme="light"] .lead { color: var(--muted); }
html[data-theme="light"] .lead strong, html[data-theme="light"] .mail { color: var(--text); }
html[data-theme="light"] .facts { background: var(--panel); }
html[data-theme="light"] .switch__tabs button:hover,
html[data-theme="light"] .chip:hover,
html[data-theme="light"] .finder label:hover { color: var(--text); }
html[data-theme="light"] .ticks li { color: var(--text); }
html[data-theme="light"] .ticks li::before { background-color: rgba(0, 104, 195, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230068c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.eco__core, .finder legend span { color: #fff; }
html[data-theme="light"] .chip.is-on { background: var(--text); border-color: var(--text); color: #fff; }
html[data-theme="light"] .finder label:has(input:checked) { color: var(--text); background: rgba(0, 104, 195, .12); }
html[data-theme="light"] .finder-result p { color: var(--muted); }
html[data-theme="light"] .form label { color: var(--text); }
html[data-theme="light"] .status.is-error { color: var(--red); }
html[data-theme="light"] .shot, html[data-theme="light"] .tour__figure { box-shadow: 0 30px 60px -35px rgba(20, 40, 80, .45); }
html[data-theme="light"] .team { background: linear-gradient(135deg, #ffffff, var(--bg-2)); }
html[data-theme="light"] .footer { background: var(--bg-2); }

/* Theme toggle button */
.theme-toggle {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.theme-toggle:hover { border-color: var(--sky); background: rgba(127, 184, 235, .1); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
/* mobile: toggle sits next to the menu button */
.theme-toggle { margin-left: auto; }
.theme-toggle + .burger { margin-left: -0.75rem; }
@media (min-width: 1020px) { .theme-toggle { margin-left: 0; } }
@media (prefers-reduced-motion: no-preference) {
  body, .header, .section--alt, .facts, .caps li, .mini, .form, .switch__tabs { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
}
