:root {
  --black: #000;
  --steel-50: #f2f3f1;
  --steel-100: #d9dcd8;
  --steel-300: #a3a8a5;
  --steel-500: #6c7370;
  --steel-700: #383d3b;
  --teal: #8fe3da;
  --teal-soft: #5fb8ae;
  --teal-core: #e6fffb;
  --copper: #e8a27c;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; color: var(--steel-100); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; overflow-x: hidden; font: 300 16px/1.65 var(--sans); }
body::after { /* grain */
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: rgba(143, 227, 218, .25); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .08); border-radius: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 1px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); text-transform: uppercase; }
em { font-style: normal; color: var(--teal); }

.steel {
  font-weight: 500;
  background: linear-gradient(180deg, #fff 0%, #d4d8d5 45%, #6f7673 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.teal-text {
  background: linear-gradient(180deg, var(--teal-core) 0%, var(--teal) 55%, #3d8d85 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015) 45%, rgba(255,255,255,.024));
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.025), 0 40px 120px -40px rgba(0,0,0,.9);
}
.glass::before { /* refracted rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 22%, rgba(255,255,255,.02) 50%, rgba(143,227,218,.14) 78%, rgba(255,255,255,.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after { /* cursor light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, -20%), rgba(143,227,218,.07), rgba(255,255,255,.025) 30%, transparent 60%);
  opacity: var(--spot, 0); transition: opacity .6s var(--ease);
}
.grid-bg {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
}

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 16px 16px 0; opacity: 0; translate: 0 -12px; transition: opacity 1.6s var(--ease), translate 1.6s var(--ease); }
.ready .nav-wrap { opacity: 1; translate: 0 0; }
.nav {
  position: relative; width: 100%; max-width: 1150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px 22px; border-radius: 999px; transition: background .7s var(--ease), box-shadow .7s var(--ease);
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(10,10,12,.72), rgba(4,4,5,.62));
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 60px -20px rgba(0,0,0,.9);
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { width: 0; height: 22px; opacity: 0; transition: width .7s var(--ease), opacity .7s var(--ease); }
.scrolled .brand-mark { width: 29px; opacity: 1; }
.brand-word { font: 400 11px/1 var(--display); letter-spacing: .5em; color: var(--steel-100); }
.nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav ul a, .nav-cta { font: 400 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--steel-500); transition: color .3s; }
.nav ul a:hover { color: var(--steel-50); }
.nav-cta { color: var(--teal); }
.nav-cta:hover { color: var(--teal-core); }
.nav-r { justify-self: end; display: flex; align-items: center; gap: 22px; }
/* EN/TR switch: two pads on a trace, the active one lit */
.lang { display: flex; align-items: center; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.lang button {
  font: 400 9px/1 var(--mono); letter-spacing: .22em; padding: 6px 8px 6px 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--steel-500); cursor: pointer; transition: color .3s, background .3s;
}
.lang button:hover { color: var(--steel-50); }
.lang button[aria-pressed="true"] { color: #000; background: var(--teal); }
/* first paint for a non-English visitor waits for i18n.js (inline head script adds this; failsafe removes it) */
.i18n-wait body { visibility: hidden; }
@media (max-width: 760px) { .nav ul { display: none; } .nav { grid-template-columns: 1fr auto; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #000; }
#traces {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, #000 45%, transparent 100%);
  opacity: 0; transition: opacity 3s var(--ease) .6s;
}
.ready #traces { opacity: 1; }
.stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.head {
  position: relative; width: min(64vw, 50svh, 600px); aspect-ratio: 140 / 110; translate: 0 -8%;
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  --blur: 30px; --jx: 0px; --jy: 0px; --split: 0px; --o: 0;
}
.head svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.head .core { opacity: var(--o); filter: blur(var(--blur)) brightness(calc(.4 + var(--o) * .6)); transform: translate(var(--jx), var(--jy)); }
.head .ghost { mix-blend-mode: screen; opacity: calc(var(--o) * .8); filter: blur(calc(var(--blur) * 1.2)); }
.ga { fill: var(--teal); transform: translate(calc(var(--jx) - var(--split)), var(--jy)); }
.gb { fill: var(--copper); transform: translate(calc(var(--jx) + var(--split)), calc(var(--jy) * -1)); }
.head .eye { fill: #070807; transition: fill 1.2s var(--ease); }
.head.lit .eye { fill: var(--teal-core); }
.head.lit .core .eye { animation: blink 7s 2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }

/* specular sweep across the head */
.head .sheen {
  mix-blend-mode: overlay; opacity: 0;
  -webkit-mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%); mask-image: linear-gradient(105deg, transparent 42%, #000 50%, transparent 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 120% 0; mask-position: 120% 0;
}
.head.lit .sheen { opacity: .9; animation: sheen 9s var(--ease) 1.5s infinite; }
@keyframes sheen { 0% { -webkit-mask-position: 120% 0; mask-position: 120% 0; } 38%, 100% { -webkit-mask-position: -20% 0; mask-position: -20% 0; } }

/* eye light + anamorphic flare */
.eye-glow { position: absolute; top: 46.8%; width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(230,255,251,.55) 0%, rgba(143,227,218,.22) 22%, transparent 65%);
  opacity: 0; scale: .3; transition: opacity 1.6s var(--ease), scale 1.6s var(--ease); }
.eye-glow.l { left: 40%; } .eye-glow.r { left: 60%; }
.head.lit .eye-glow { opacity: 1; scale: 1; animation: breathe 5s ease-in-out 2s infinite; }
@keyframes breathe { 50% { opacity: .65; scale: .92; } }
.flare { position: absolute; left: 50%; top: 46.8%; width: 300vw; margin-left: -150vw; translate: var(--fx, 0px) -50%; z-index: 3; pointer-events: none; transform: scaleX(0); opacity: 0; transition: transform 3.2s var(--ease), opacity 3.2s var(--ease); }
.head.lit .flare { transform: scaleX(1); opacity: 1; }
.flare i { display: block; height: 1px; background: linear-gradient(90deg, transparent 10%, rgba(143,227,218,.08) 35%, rgba(230,255,251,.55) 50%, rgba(143,227,218,.08) 65%, transparent 90%); }
.flare b { position: absolute; inset: 50% 0 auto; height: 6px; translate: 0 -50%; filter: blur(3px); background: linear-gradient(90deg, transparent 25%, rgba(143,227,218,.12) 45%, rgba(230,255,251,.25) 50%, rgba(143,227,218,.12) 55%, transparent 75%); }

.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.85) 100%); }

.hero-text { position: absolute; inset: auto 0 8svh; z-index: 30; display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center; }
.wordmark { display: flex; margin-right: -.62em; font: 300 clamp(1.35rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: .62em; }
.wordmark span {
  display: inline-block; opacity: 0; translate: 0 14px; filter: blur(12px);
  transition: opacity 1.6s var(--ease), translate 1.6s var(--ease), filter 1.6s var(--ease);
  transition-delay: calc(2.4s + var(--i) * .09s);
  background: linear-gradient(180deg, #fff 0%, #d4d8d5 45%, #7a807d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark span.t { background: linear-gradient(180deg, var(--teal-core), var(--teal) 55%, #3d8d85); -webkit-background-clip: text; background-clip: text; }
.ready .wordmark span { opacity: 1; translate: 0 0; filter: blur(0); }
.rule { margin-top: 24px; width: 160px; height: 1px; background: linear-gradient(90deg, transparent, rgba(143,227,218,.6), transparent); transform: scaleX(0); opacity: 0; transition: transform 1.8s var(--ease) 3.2s, opacity 1.8s var(--ease) 3.2s; }
.ready .rule { transform: scaleX(1); opacity: 1; }
/* hero components: five board parts wired to the head */
.chips { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
/* translucent, teal-tinted bodies and pads in the trace colour, so the parts read as part of the board */
.chip {
  --pin: rgba(143,227,218,.26);
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; isolation: isolate; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 124px; padding: 12px 18px 11px;
  border-radius: 4px; color: var(--steel-300);
  background: radial-gradient(circle at 9px 9px, rgba(143,227,218,.22) 1.8px, transparent 2.4px), linear-gradient(180deg, rgba(18,24,23,.62), rgba(4,6,6,.72));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(143,227,218,.12);
  opacity: 0; scale: .9; transition: opacity 1.2s var(--ease), scale 1.2s var(--ease), box-shadow .35s, color .35s;
  transition-delay: calc(3.4s + var(--i, 0) * .12s), calc(3.4s + var(--i, 0) * .12s), 0s, 0s;
}
.ready .chip { opacity: 1; scale: 1; }
.measuring .chip { scale: 1; transition: none; } /* main.js measures chips at rest size */
.chip b { font-size: 10px; font-weight: 400; letter-spacing: .3em; margin-right: -.3em; }
.chip .ref { font-size: 8px; letter-spacing: .2em; color: var(--steel-700); }
.chip::before, .chip::after { content: ""; position: absolute; z-index: -1; pointer-events: none; transition: filter .35s; }
.chip.hit, .chip:hover { --pin: var(--teal); color: var(--teal-core); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(143,227,218,.42), 0 0 26px -6px rgba(143,227,218,.4); }
/* DIP: legs top and bottom */
.dip::before { inset: -7px 12px; background: repeating-linear-gradient(90deg, var(--pin) 0 3px, transparent 3px 11px) top / 100% 7px no-repeat, repeating-linear-gradient(90deg, var(--pin) 0 3px, transparent 3px 11px) bottom / 100% 7px no-repeat; }
/* SOIC: gull-wing pins left and right */
.soic::before { inset: 9px -6px; background: repeating-linear-gradient(180deg, var(--pin) 0 2px, transparent 2px 7px) left / 6px 100% no-repeat, repeating-linear-gradient(180deg, var(--pin) 0 2px, transparent 2px 7px) right / 6px 100% no-repeat; }
/* QFP: fine pins on all four sides */
.qfp { min-width: 92px; padding: 16px 20px 14px; }
.qfp::before { inset: -6px 10px; background: repeating-linear-gradient(90deg, var(--pin) 0 2px, transparent 2px 6px) top / 100% 6px no-repeat, repeating-linear-gradient(90deg, var(--pin) 0 2px, transparent 2px 6px) bottom / 100% 6px no-repeat; }
.qfp::after { inset: 10px -6px; background: repeating-linear-gradient(180deg, var(--pin) 0 2px, transparent 2px 6px) left / 6px 100% no-repeat, repeating-linear-gradient(180deg, var(--pin) 0 2px, transparent 2px 6px) right / 6px 100% no-repeat; }
/* pin header: square posts along the top */
.hdr { background: linear-gradient(180deg, rgba(14,18,17,.6), rgba(3,4,4,.72)); }
.hdr::before { left: 14px; right: 14px; top: -9px; height: 9px; background: repeating-linear-gradient(90deg, var(--pin) 0 4px, transparent 4px 11px); }
/* crystal: the "bubble", metal can on two legs */
.xtal { border-radius: 999px; background: linear-gradient(180deg, rgba(70,82,79,.45), rgba(14,18,17,.6) 55%, rgba(4,6,6,.72)); }
.xtal::before { left: 32%; right: 32%; bottom: -12px; height: 12px; background: linear-gradient(var(--pin), var(--pin)) left / 2px 100% no-repeat, linear-gradient(var(--pin), var(--pin)) right / 2px 100% no-repeat; }
@media (max-width: 760px) {
  .chips { inset: auto 0 calc(8svh + 64px); display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; padding: 0 16px; }
  .chip { position: relative; left: auto; top: auto; translate: none; min-width: 0; padding: 9px 12px; }
  .chip .ref { display: none; }
}

.hud { position: absolute; inset: 0; z-index: 30; pointer-events: none; font-size: 9px; letter-spacing: .3em; color: var(--steel-500); opacity: 0; transition: opacity 2s 3.9s; }
.ready .hud { opacity: 1; }
.hud-br { position: absolute; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 10px; }
.hud .dim { color: var(--steel-700); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 760px) { .hud { display: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(110px, 16vw, 200px) 24px; }
.wrap { position: relative; max-width: 1150px; margin: 0 auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.label { display: inline-flex; align-items: center; gap: 16px; font: 400 10px/1 var(--mono); letter-spacing: .38em; text-transform: uppercase; color: var(--steel-500); }
.label::before, .label::after { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, transparent, rgba(108,115,112,.6)); }
.label::after { transform: scaleX(-1); }
h2 { margin-top: 32px; font: 300 clamp(2.2rem, 5vw, 4.2rem)/1.04 var(--display); letter-spacing: -.03em; color: var(--steel-50); }
h2.xl { font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; }
.sub { max-width: 520px; margin-top: 28px; font-size: 15px; color: var(--steel-500); }
.idx { font-size: 10px; letter-spacing: .32em; color: rgba(143,227,218,.8); }

/* manifesto */
.manifesto { max-width: 1020px; margin-top: 48px; font: 300 clamp(1.8rem, 4.2vw, 3.9rem)/1.14 var(--display); letter-spacing: -.02em; color: var(--steel-50); }
.manifesto .w { display: inline-block; margin-right: .26em; opacity: .1; filter: blur(4px); transition: opacity .25s linear, filter .25s linear; }
.manifesto .w:last-child { margin-right: 0; }
.manifesto .w.a { background: linear-gradient(180deg, var(--teal-core), var(--teal) 55%, #3d8d85); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blk h3, .job h3, .work h3 { margin-top: 22px; font: 400 1.3rem/1.2 var(--display); letter-spacing: -.01em; color: var(--steel-50); }

/* principles as a schematic sheet */
.sheet {
  --w: rgba(163,168,165,.55); /* wire colour */
  position: relative; width: 100%; margin-top: 110px; padding: 34px 40px 74px; border: 1px solid rgba(255,255,255,.09); border-radius: 6px;
  background: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1.2px) 0 0 / 20px 20px;
}
.sheet::before { /* inner drawing frame */ content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.05); pointer-events: none; }
.schem { position: relative; display: flex; align-items: stretch; padding: 58px 0 66px; }
.schem::before { /* +24V rail */ content: ""; position: absolute; left: 0; right: 120px; top: 22px; height: 1px; background: var(--w); }
.rail-label { position: absolute; left: 0; top: 4px; font-size: 9px; letter-spacing: .2em; color: var(--teal); }
.blk { position: relative; flex: 1; min-width: 0; padding: 34px 30px 30px; border: 1px solid rgba(255,255,255,.2); background: #030404; transition: border-color .4s, box-shadow .4s; }
.blk::before { /* drop from rail, with junction dot */
  content: ""; position: absolute; left: calc(50% - 3.5px); top: -39.5px; width: 7px; height: 39.5px;
  background: radial-gradient(circle at 50% 3.5px, var(--steel-300) 2.4px, transparent 2.9px), linear-gradient(var(--w), var(--w)) center 3.5px / 1px 100% no-repeat;
}
.blk::after { /* ground symbol */
  content: ""; position: absolute; left: calc(50% - 12px); bottom: -42px; width: 24px; height: 42px;
  background: linear-gradient(var(--w), var(--w)) center 0 / 1px 28px no-repeat, linear-gradient(var(--w), var(--w)) center 28px / 24px 1px no-repeat,
    linear-gradient(var(--w), var(--w)) center 33px / 15px 1px no-repeat, linear-gradient(var(--w), var(--w)) center 38px / 6px 1px no-repeat;
}
.blk .ref { position: absolute; left: 10px; top: 8px; font-size: 9px; letter-spacing: .2em; color: var(--teal); }
.blk .pin { position: absolute; top: calc(50% - 14px); font-size: 7px; letter-spacing: .15em; color: var(--steel-500); }
.blk .pin.l { left: 7px; } .blk .pin.r { right: 7px; }
.blk h3 { margin-top: 6px; }
.blk p { margin: 12px auto 0; max-width: 290px; font-size: 14px; color: var(--steel-500); }
.net { position: relative; flex: none; width: 76px; }
.net::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--w); }
.net > span:not(.port) { position: absolute; left: 0; right: 0; top: calc(50% - 18px); font-size: 8px; letter-spacing: .2em; color: var(--steel-500); }
.net i { position: absolute; left: 0; top: calc(50% - 1px); width: 16px; height: 3px; border-radius: 2px; background: var(--teal-core); box-shadow: 0 0 10px 2px rgba(143,227,218,.7); opacity: 0; }
.net.out { width: 120px; }
.net.out::before { right: 64px; }
.port { position: absolute; right: 0; top: calc(50% - 11px); width: 66px; height: 22px; display: grid; place-items: center; font-size: 8px; letter-spacing: .2em; color: var(--teal);
  background: rgba(143,227,218,.1); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%); }
.titleblock { position: absolute; right: 8px; bottom: 8px; display: flex; font-size: 8px; letter-spacing: .2em; color: var(--steel-500); border-top: 1px solid rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.08); }
.titleblock span { padding: 8px 14px; border-right: 1px solid rgba(255,255,255,.06); }
.titleblock span:first-child { color: var(--steel-300); }
/* one signal walks U1 → U2 → U3 → FLOOR, each block lights as it arrives (4.8s loop) */
.sheet.in .blk { animation: blkhit 4.8s infinite; }
/* children: label, U1, net, U2, net, U3, out */
.sheet.in .blk:nth-child(2) { animation-delay: .1s; }
.sheet.in .blk:nth-child(4) { animation-delay: 1.7s; }
.sheet.in .blk:nth-child(6) { animation-delay: 2.9s; }
.sheet.in .net i { animation: sig 4.8s linear infinite; }
.sheet.in .net:nth-child(3) i { animation-delay: 1s; }
.sheet.in .net:nth-child(5) i { animation-delay: 2.2s; }
.sheet.in .net:nth-child(7) i { animation-delay: 3.4s; }
@keyframes sig { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 14% { left: calc(100% - 16px); opacity: 1; } 16%, 100% { left: calc(100% - 16px); opacity: 0; } }
@keyframes blkhit { 0% { border-color: rgba(143,227,218,.8); box-shadow: 0 0 40px -10px rgba(143,227,218,.45), inset 0 0 30px -18px rgba(143,227,218,.6); } 20%, 100% { border-color: rgba(255,255,255,.2); box-shadow: none; } }
@media (max-width: 860px) {
  .sheet { padding: 24px 18px 70px; }
  .schem { flex-direction: column; padding: 0; }
  .schem::before, .rail-label, .blk::before, .blk::after, .blk .pin, .net i { display: none; }
  .net, .net.out { width: auto; height: 48px; }
  .net::before, .net.out::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .net > span:not(.port) { left: calc(50% + 12px); right: auto; top: calc(50% - 5px); }
  .net.out { height: 70px; } .net.out::before { bottom: 26px; }
  .port { right: auto; left: calc(50% - 33px); top: auto; bottom: 0; }
  .titleblock { left: 8px; flex-wrap: wrap; }
}

/* disciplines */
.halo { position: absolute; left: 50%; top: 50%; width: min(1100px, 90vw); height: 560px; translate: -50% -10%; border-radius: 50%; pointer-events: none; filter: blur(40px);
  background: radial-gradient(ellipse, rgba(143,227,218,.10), transparent 65%); }
/* disciplines: sticky 3D printer, scroll = print progress */
.print-sec { position: relative; height: 340vh; }
.sticky { position: sticky; top: 0; height: 100vh; min-height: 660px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 84px 24px 24px; }
.ptitle { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.pgrid { position: relative; width: 100%; max-width: 1280px; margin: 26px auto 0; display: grid; grid-template-columns: 1fr minmax(280px, 430px) 1fr; gap: 32px; align-items: center; }
.printer svg { display: block; width: 100%; max-height: calc(100vh - 250px); overflow: visible; }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.queue.l { text-align: right; }
.queue.l .jhead { flex-direction: row-reverse; }
.job { padding: 18px 22px 20px; border-radius: 16px; opacity: .38; transition: opacity .6s var(--ease), box-shadow .6s var(--ease); }
.job > * { position: relative; z-index: 2; }
.job.done { opacity: .75; }
.job.picked { opacity: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(143,227,218,.65), 0 0 70px -12px rgba(143,227,218,.6); }
.job.on { opacity: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(143,227,218,.28), 0 0 50px -16px rgba(143,227,218,.4); }
.jhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job .ic { width: 30px; height: 30px; margin: 0; }
.st { font-size: 9px; letter-spacing: .28em; color: var(--steel-500); }
.on .st { color: var(--teal); }
.on .st::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--teal); vertical-align: 1px; animation: pulse 1s ease-in-out infinite; }
.done .st { color: var(--teal-soft); }
.job h3 { margin-top: 12px; font-size: 1.12rem; }
.job p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--steel-500); }
/* printer drawing */
.fil { fill: none; stroke: rgba(232,162,124,.6); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.face { stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.face.front { fill: url(#gFront); }
.face.top { fill: #1d2321; }
.face.side { fill: #070909; }
.plate { fill: url(#plateTex); stroke: rgba(143,227,218,.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pside { fill: #232726; }
.ptop { fill: #474d49; }
.spindle { stroke: #2a302e; stroke-width: 8; stroke-linecap: round; }
.spindle-cap { fill: #1d2321; stroke: rgba(255,255,255,.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.flange { fill: rgba(15,18,17,.92); stroke: rgba(255,255,255,.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wound { fill: none; stroke: url(#gWound); opacity: .55; }
.hub { fill: #0a0c0c; stroke: rgba(255,255,255,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hub2 { fill: #000; stroke: rgba(255,255,255,.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.railline { stroke: rgba(143,227,218,.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.led { stroke: var(--teal); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(143,227,218,.9)); }
.heater { fill: #2a2420; stroke: rgba(255,255,255,.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.nozzle { fill: #c9a56d; }
.nglow { mix-blend-mode: screen; opacity: 0; transition: opacity .3s; }
.printing .nglow { opacity: 1; }
.molten { stroke: #ffd7a8; stroke-width: 1.4; opacity: 0; filter: drop-shadow(0 0 3px rgba(255,160,90,.9)); }
.printing .molten { opacity: 1; }
.peye { fill: #070807; transition: fill 1.2s var(--ease); }
.finished .peye { fill: var(--teal-core); filter: drop-shadow(0 0 3px rgba(143,227,218,.9)); }
.screw { stroke-dasharray: 2 4; }
.lcdbox { fill: rgba(143,227,218,.05); stroke: rgba(143,227,218,.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lcd { font: 400 5.6px var(--mono); letter-spacing: .1em; fill: var(--teal); text-anchor: middle; }
.lcd.dimt { fill: var(--teal-soft); opacity: .7; }
@media (max-width: 960px) {
  .print-sec { height: auto; }
  .sticky { position: relative; height: auto; min-height: 0; padding: 110px 24px; }
  .pgrid { grid-template-columns: 1fr; gap: 14px; }
  .printer { order: -1; width: 100%; max-width: 420px; margin: 0 auto 20px; }
  .queue.l { text-align: left; } .queue.l .jhead { flex-direction: row; }
  .job { opacity: .6; }
}
.ic { width: 48px; height: 48px; margin-bottom: 18px; overflow: visible; }
.ln { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ln.dim { stroke: rgba(255,255,255,.16); }
.ln.acs { stroke: var(--teal); }
.ac { fill: var(--teal); }

/* work */
.works { width: 100%; margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.work { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.work.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.viz { position: relative; z-index: 2; aspect-ratio: 16 / 10; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.06);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, rgba(0,0,0,.35)); mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 55%, rgba(0,0,0,.35)); }
.wide .viz { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.06); }
.viz svg { width: 86%; height: auto; max-height: 100%; overflow: visible; }
.tx { font: 400 9px var(--mono); letter-spacing: .15em; fill: var(--teal); }
.tx.big { font: 300 22px var(--display); letter-spacing: 0; fill: var(--steel-50); }
.work-body { position: relative; z-index: 2; padding: 32px 34px 36px; display: flex; flex-direction: column; }
.wide .work-body { justify-content: center; padding: 48px; }
.work h3 { margin-top: 14px; font-size: 1.55rem; }
.wide h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.work-body > p:not(.idx):not(.tags) { margin-top: 12px; font-size: 14px; color: var(--steel-500); }
.tags { margin-top: 22px; font-size: 9px; letter-spacing: .28em; color: var(--steel-300); }
.trace { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .trace { animation: draw 6s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
.dash { stroke-dasharray: 3 4; }
.in .pulse { animation: pulse 1.8s ease-in-out infinite; }
.bars { stroke-width: 6; stroke-linecap: butt; }
.in .bars { animation: grow 4s var(--ease) infinite; transform-origin: 0 140px; }
@keyframes grow { 0% { transform: scaleY(0); } 40%, 100% { transform: scaleY(1); } }
@media (max-width: 860px) {
  .works { grid-template-columns: 1fr; }
  .work.wide { grid-template-columns: 1fr; }
  .wide .viz { min-height: 0; aspect-ratio: 3 / 2; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .wide .work-body { padding: 32px 34px 36px; }
}

/* brands & partners: one monochrome logo wall, logos light up on hover */
.partners-sec { padding-top: 60px; padding-bottom: 40px; }
.partners { width: 100%; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 22px; padding: 40px 24px 22px; border-radius: 20px; transition: box-shadow .5s var(--ease); }
.partner > * { position: relative; z-index: 2; }
.plogo { height: 96px; width: 100%; display: grid; place-items: center; }
.plogo img { height: var(--lh, 48px); width: auto; max-width: 88%; object-fit: contain; opacity: .62; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.pword { font: 500 1.75rem/1 var(--display); letter-spacing: -.01em; color: #fff; opacity: .62; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.pword i { font-style: normal; font-weight: 300; }
.pdom { font-size: 9px; letter-spacing: .26em; text-transform: lowercase; color: var(--steel-500); transition: color .4s; }
.partner:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(143,227,218,.3), 0 0 60px -18px rgba(143,227,218,.45); }
.partner:hover .plogo img, .partner:hover .pword { opacity: 1; filter: drop-shadow(0 0 14px rgba(143,227,218,.35)); }
.partner:hover .pdom { color: var(--teal); }
@media (max-width: 960px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .partners { gap: 10px; } .partner { padding: 28px 12px 16px; } .plogo { height: 72px; } .plogo img { height: calc(var(--lh, 48px) * .75); } .pword { font-size: 1.3rem; } }

/* closing */
.closing { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 180px) 24px 0; }
.mail { margin-top: 48px; display: inline-flex; align-items: center; gap: 18px; padding: 8px 8px 8px 28px; border-radius: 999px; transition: box-shadow .5s var(--ease); }
.mail:hover { box-shadow: 0 0 60px -10px rgba(143,227,218,.35); }
.mail .mono { position: relative; z-index: 2; font-size: 12px; letter-spacing: .18em; text-transform: none; color: var(--steel-100); transition: color .3s; }
.mail:hover .mono { color: var(--teal-core); }
.go { position: relative; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #000; transition: transform .5s var(--ease); }
.mail:hover .go { transform: rotate(-45deg); }
.go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* sized so only the crown and the top edge of the eyes clear the "horizon" */
.horizon { position: relative; margin-top: 70px; height: max(28vw, 224px); overflow: hidden; }
.rise { position: absolute; left: 50%; top: 0; width: max(80vw, 640px); translate: -50% 18%; opacity: 0; overflow: visible; transition: translate 2.8s var(--ease), opacity 2.8s var(--ease); }
.horizon.in .rise { translate: -50% 0; opacity: 1; }
.rim { fill: #000; stroke: rgba(230,255,251,.45); stroke-width: .18; }
.rim-glow { fill: none; stroke: rgba(143,227,218,.35); stroke-width: .9; }
.h-eye { fill: rgba(143,227,218,0); transition: fill 2s var(--ease) 1.6s; }
.horizon.in .h-eye { fill: rgba(143,227,218,.5); filter: drop-shadow(0 0 4px rgba(143,227,218,.8)); }
.footer { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; padding: 28px 24px 36px; border-top: 1px solid rgba(255,255,255,.05);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 10px; letter-spacing: .28em; color: rgba(255,255,255,.86); }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--teal); }
@media (max-width: 760px) { .footer { justify-content: center; text-align: center; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; translate: 0 28px; filter: blur(10px); transition: opacity 1.4s var(--ease), translate 1.4s var(--ease), filter 1.4s var(--ease); }
.js .rv-nb { opacity: 0; translate: 0 40px; transition: opacity 1.4s var(--ease), translate 1.4s var(--ease); } /* no filter: it would break backdrop-filter */
.js .rv.in, .js .rv-nb.in { opacity: 1; translate: 0 0; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-nb, .manifesto .w { opacity: 1; translate: none; filter: none; }
  .trace { stroke-dashoffset: 0; }
}
