/* BhavCore 3D Semicon Technologies */

:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #15171c;
  --ink-2: #353a43;
  --muted: #6b717c;
  --line: #e5e2da;
  --line-2: #d3cfc4;
  --accent: #b0501d;
  --accent-soft: #f5e9df;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
  --header: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter, 32px); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Links & buttons */
.ln {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.ln:hover { color: var(--accent); }
.ln-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ink); }
.ln-arrow span { transition: transform 0.25s var(--ease); }
.ln-arrow:hover { color: var(--accent); }
.ln-arrow:hover span { transform: translateX(3px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: #000; }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: transparent; border-color: var(--ink); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; line-height: 1.2; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; position: relative; padding: 6px 0; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav .nav-contact { border: 1px solid var(--line-2); border-radius: 4px; padding: 7px 14px; }
.nav .nav-contact::after { display: none; }
.nav .nav-contact:hover { border-color: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 4px; font: 500 14px var(--sans); color: var(--ink); padding: 8px 14px; cursor: pointer; }

.nav-quick { display: none; }
@media (max-width: 1120px) {
  .menu-btn { display: block; min-width: 72px; min-height: 40px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header)); height: calc(100dvh - var(--header));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 6px var(--gutter, 32px) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; counter-reset: nav;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0.25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.menu-open { overflow: hidden; }
  .nav > a { counter-increment: nav; display: flex; align-items: baseline; gap: 16px; font-size: 25px; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav > a::before { content: counter(nav, decimal-leading-zero); font: 500 12px var(--mono); letter-spacing: 0; color: var(--accent); }
  .nav > a::after { display: none; }
  .nav > a.active { color: var(--accent); }
  .nav .nav-contact { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 0; }
  .menu-open .nav > a, .menu-open .nav-quick { animation: nav-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 9) * 35ms + 60ms); }
  .nav-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 28px; }
  .nav-quick a { display: flex; align-items: center; justify-content: center; min-height: 48px; font: 500 14.5px var(--sans); color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
  .nav-quick a:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(12px); } }

/* Hero */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; align-items: center; }
.kicker { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--accent); margin-bottom: 22px; display: block; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.figure { margin: 0; }
@keyframes fade { from { opacity: 0; } }

/* Hero: interactive exploded chip package */
.xv { position: relative; margin-right: -28px; }
.xv-stage { position: relative; }
.xv-svg { display: block; width: 100%; height: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
.xv .xl, .xv .xlab { transform: translateY(calc((var(--lift, 0) + var(--pop, 0)) * 1px)); transition: transform 0.7s var(--ease), opacity 0.35s ease; }
.xv .xd { transition: opacity 0.35s ease; }
.xv .xin { animation: chip-in 0.9s var(--ease) both; animation-delay: calc(var(--o) * 0.11s + 0.1s); }
.xv .xlab { animation: fade 0.7s ease both; animation-delay: calc(var(--o) * 0.08s + 0.9s); cursor: pointer; outline: none; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-30px); } }
.xv .xl { cursor: pointer; }
.xv .hit { fill: transparent; pointer-events: all; }
.xv .edge { transition: stroke 0.25s; }
.xlab text { font: 400 12.5px var(--mono); fill: var(--ink-2); transition: fill 0.25s; }
.xlab .leader { fill: none; stroke: var(--ink); stroke-width: 0.8; stroke-dasharray: 2 3; transition: stroke 0.25s; }
.xlab .adot { fill: var(--ink); transition: fill 0.25s; }
@media (hover: hover) { .xv-stage:hover .xl, .xv-stage:hover .xlab { --lift: var(--e); } }
.xv.has-active .xl:not(.on) > .xd { opacity: 0.2; }
.xv.has-active .xlab:not(.on) { opacity: 0.3; }
.xv .xl.on, .xv .xlab.on { --pop: -6; }
.xv .xl.on .edge { stroke: var(--accent); }
.xlab.on text { fill: var(--accent); font-weight: 500; }
.xlab.on .leader { stroke: var(--accent); stroke-dasharray: none; }
.xlab.on .adot { fill: var(--accent); }
.xlab:focus-visible text { text-decoration: underline; }
.xv-cap { font: 12px/1.55 var(--mono); color: var(--muted); margin: 4px 0 0; text-align: right; min-height: 3.2em; }
.xv-desc b { color: var(--accent); font-weight: 500; }
.xv-tap { display: none; }
@media (hover: none) { .xv-hover { display: none; } .xv-tap { display: inline; } }
.xv-legend { display: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--line); }
.fact { padding: 26px 24px 30px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }


:root {
  --dark: #0d0f13;
  --dark-line: rgba(255, 255, 255, 0.1);
  --on-dark: #f3f0ea;
  --on-dark-2: #b9bfc8;
  --on-dark-muted: #8a929c;
  --accent-light: #eaa77d;
  --radius: 6px;
}

/* Sections ---------------------------------------------------------------- */
.sec { padding: 112px 0; border-top: 1px solid var(--line); }
.sec-dark + .sec { border-top: 0; }
.sec h2 { font-size: clamp(2rem, 3.5vw, 2.95rem); line-height: 1.08; letter-spacing: -0.032em; }
.sec h2 em { font-style: normal; color: var(--muted); }
h3 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.25; }
.kick { display: inline-flex; gap: 12px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--muted); margin-bottom: 22px; }
.kick i { font-style: normal; color: var(--accent); }
.tagline { display: block; font: 500 12.5px/1.4 var(--mono); color: var(--accent); letter-spacing: 0.02em; }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.head h2 { max-width: 700px; }
.head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 440px; padding-bottom: 4px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
#contact h2 { margin-bottom: 18px; max-width: 520px; }
.intro { font-size: 17.5px; color: var(--ink-2); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 12px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 12px; }

/* Media frames ------------------------------------------------------------- */
.media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #e8e5de; aspect-ratio: 4 / 3; isolation: isolate; }
.media > img, .media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media > img { transition: transform 1.3s var(--ease), opacity 0.9s ease; }
.media.panel { background: #0f1216; }
.js .reveal .media > img { opacity: 0; transform: scale(1.05); }
.js .reveal.in .media > img { opacity: 1; transform: none; }
@media (hover: hover) {
  .hover-zoom:hover .media > img, .js .reveal.in .hover-zoom:hover .media > img,
  .js .reveal.in.hover-zoom:hover .media > img, .js .dc.reveal.in:hover .media > img { transform: scale(1.04); }
}

/* About -------------------------------------------------------------------- */
.fronts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.front-body { padding: 26px 4px 0; }
.front h3 { font-size: 25px; letter-spacing: -0.025em; margin: 10px 0 12px; max-width: 460px; }
.front p { color: var(--ink-2); font-size: 16px; max-width: 470px; margin-bottom: 18px; }
.front .chips { margin-bottom: 24px; }

.evo2 { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 2fr); gap: 56px; align-items: center; margin-top: 96px; padding-top: 56px; border-top: 1px solid var(--line); }
.evo2-text { font-size: 21px; line-height: 1.45; letter-spacing: -0.015em; margin: 0; }
.evo2-text em { font-style: normal; color: var(--accent); }
.evo2-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.evo2-item { text-align: center; }
.evo2-art { position: relative; aspect-ratio: 216 / 150; margin-bottom: 34px; }
.evo2-art svg { width: 100%; height: 100%; }
.evo2-art::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); z-index: 1; }
.evo2-item.now .evo2-art::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.evo2-item:not(:last-child) .evo2-art::before { content: ""; position: absolute; left: 50%; bottom: -20px; width: calc(100% + 20px); border-top: 1.5px dashed var(--line-2); transform-origin: left; }
.evo2-item .mono { display: block; font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.evo2-item b { display: block; font-weight: 500; font-size: 15.5px; }
.evo2-item small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.js .draw .evo2-art::before { transform: scaleX(0); transition: transform 0.9s var(--ease); }
.js .draw.in .evo2-item:nth-child(1) .evo2-art::before { transform: none; transition-delay: 0.1s; }
.js .draw.in .evo2-item:nth-child(2) .evo2-art::before { transform: none; transition-delay: 0.45s; }
.js .draw.in .evo2-item:nth-child(3) .evo2-art::before { transform: none; transition-delay: 0.8s; }
.js .draw .evo2-art svg { opacity: 0; transform: translateY(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .draw.in .evo2-art svg { opacity: 1; transform: none; }
.js .draw.in .evo2-item:nth-child(2) .evo2-art svg { transition-delay: 0.35s; }
.js .draw.in .evo2-item:nth-child(3) .evo2-art svg { transition-delay: 0.7s; }
.js .draw.in .evo2-item:nth-child(4) .evo2-art svg { transition-delay: 1.05s; }

/* Why (dark) --------------------------------------------------------------- */
.sec-dark { background: var(--dark); color: var(--on-dark); padding: 0 0 112px; }
.sec-dark .kick { color: var(--on-dark-muted); }
.sec-dark .kick i { color: var(--accent-light); }
.why-hero { position: relative; min-height: clamp(420px, 40vw, 560px); display: flex; align-items: center; overflow: hidden; }
.why-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.why-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 19, 0.96) 0%, rgba(13, 15, 19, 0.86) 34%, rgba(13, 15, 19, 0.35) 66%, rgba(13, 15, 19, 0.15) 100%),
    linear-gradient(0deg, var(--dark) 0%, rgba(13, 15, 19, 0) 38%);
}
.why-copy { position: relative; z-index: 1; width: 100%; padding-top: 88px; padding-bottom: 72px; }
.why-statement { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.036em; font-weight: 500; max-width: 760px; margin: 0 0 22px; }
.why-statement span { color: var(--accent-light); }
.why-sub { color: var(--on-dark-2); font-size: 17.5px; max-width: 470px; margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar .media { border: 1px solid var(--dark-line); }
.pillar .n { display: block; font: 500 12.5px var(--mono); color: var(--accent-light); margin: 24px 0 10px; }
.pillar h3 { color: var(--on-dark); font-size: 21px; }
.pillar p { color: var(--on-dark-muted); font-size: 15.5px; margin: 0; max-width: 330px; }

/* Ecosystem ---------------------------------------------------------------- */
.eco { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; padding-top: 40px; }
.eco::before { content: ""; position: absolute; top: 11px; left: calc((100% - 80px) / 10); right: calc((100% - 80px) / 10); border-top: 1.5px dashed var(--line-2); transform-origin: left; }
.js .eco::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.2s; }
.js .eco.in::before { transform: none; }
.eco-item { position: relative; }
.eco-dot { position: absolute; top: -36px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); z-index: 1; }
.eco-item.focus .eco-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.eco-item .media { aspect-ratio: 3 / 4; background: #111; }
.eco-text { padding: 18px 2px 0; }
.eco-text .mono { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.eco-text b { display: block; font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.3; }
.eco-text small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.eco-text em { display: inline-block; font: normal 500 11.5px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 3px; margin-top: 12px; }

/* Roadmap (metro) ---------------------------------------------------------- */
.metro { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 44px 40px 30px; }
.metro-h { display: block; width: 100%; height: auto; overflow: visible; }
.js .metro-h .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .metro-h .st, .js .metro-h .lb { opacity: 0; }
.js .metro-h .st { transform: scale(0.3); transform-box: fill-box; transform-origin: center; }
.js .metro.in .metro-h .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) var(--d); }
.js .metro.in .metro-h .st { opacity: 1; transform: none; transition: opacity 0.3s ease var(--d), transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d); }
.js .metro.in .metro-h .lb { opacity: 1; transition: opacity 0.6s ease calc(var(--d) + 0.12s); }
.metro-v { display: none; }
.metro-cta { margin: 28px 0 0; text-align: center; }
.metro-cta .ln-arrow { display: inline; }
.metro-cta .ln-arrow span { display: inline-block; margin-left: 6px; }

/* Courses ------------------------------------------------------------------ */
.flag { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); background: var(--dark); color: var(--on-dark); border-radius: 8px; overflow: hidden; margin-bottom: 56px; }
.flag-media { aspect-ratio: auto; border-radius: 0; min-height: 420px; }
.flag-body { padding: 48px 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.flag .tagline { color: var(--accent-light); }
.flag h3 { font-size: 30px; letter-spacing: -0.03em; margin: 12px 0 12px; }
.flag p { color: var(--on-dark-2); font-size: 16px; max-width: 440px; margin-bottom: 26px; }
.flag .btn { align-self: flex-start; margin-top: 30px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f1ede6; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: f; font: 12.5px/1 var(--mono); }
.flow li { counter-increment: f; padding: 10px 10px 11px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: #d7dbe1; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-size: 10.5px; color: var(--on-dark-muted); margin-bottom: 7px; }
.flow li:last-child { background: var(--accent-light); border-color: var(--accent-light); color: #1a0d02; }
.flow li:last-child::before { color: rgba(26, 13, 2, 0.6); }
.flow-light li { border-color: var(--line); background: var(--paper); color: var(--ink-2); }
.flow-light li::before { color: var(--muted); }
.flow-light li:last-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow-light li:last-child::before { color: rgba(255, 255, 255, 0.55); }

.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 22px; }
.dc { appearance: none; background: none; border: 0; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; display: block; width: 100%; }
.dc .media { aspect-ratio: 4 / 3; }
.dc-name { display: block; font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; margin-top: 16px; }
.dc-meta { display: flex; justify-content: space-between; gap: 12px; font: 12.5px var(--mono); color: var(--muted); margin-top: 5px; }
.dc-meta .go { color: var(--ink); transition: transform 0.25s var(--ease), color 0.2s; }
@media (hover: hover) {
  .dc:hover .dc-name, .dc:hover .go { color: var(--accent); }
  .dc:hover .go { transform: translateX(3px); }
}
.dc-corp .media::after { content: "Corporate"; position: absolute; left: 12px; top: 12px; font: 500 11px/1 var(--mono); color: #fff; background: rgba(13, 15, 19, 0.82); padding: 6px 8px; border-radius: 3px; }

/* Dialogs ------------------------------------------------------------------ */
.dlg { border: 0; padding: 0; width: min(600px, calc(100vw - 32px)); max-height: min(80vh, 760px); border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.45); }
.dlg-wide { width: min(980px, calc(100vw - 32px)); }
.dlg[open] { display: flex; flex-direction: column; animation: dlg-in 0.35s var(--ease); }
.dlg::backdrop { background: rgba(13, 15, 19, 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } }
html:has(.dlg[open]) { overflow: hidden; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px 30px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h3 { font-size: 24px; margin: 8px 0 0; letter-spacing: -0.02em; }
.dlg-x { background: none; border: 1px solid var(--line-2); border-radius: 4px; font: 500 13px var(--sans); color: var(--ink); padding: 7px 12px; cursor: pointer; }
.dlg-x:hover { border-color: var(--ink); }
.dlg-body { padding: 6px 30px 10px; overflow-y: auto; flex: 1; }
.dlg-foot { padding: 18px 30px 24px; border-top: 1px solid var(--line); }
.dlg-list li { display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.dlg-list li:last-child { border-bottom: 0; }
.dlg-list .mono { font-size: 12px; color: var(--muted); padding-top: 3px; }
.dlg-list .sub { display: block; font-size: 13.5px; color: var(--muted); }
.lib { columns: 3; column-gap: 36px; padding: 18px 0 8px; }
.lib-group { break-inside: avoid; margin-bottom: 26px; }
.lib-group h4 { display: flex; justify-content: space-between; font: 500 12.5px var(--mono); color: var(--accent); padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; letter-spacing: 0.01em; }
.lib-group h4 span { color: var(--muted); }
.lib-group li { display: grid; grid-template-columns: 30px 1fr; font-size: 14px; line-height: 1.45; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lib-group .mono { font-size: 11.5px; color: var(--muted); padding-top: 2px; }

/* Workshops ---------------------------------------------------------------- */
.ws { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: stretch; }
.ws-media { aspect-ratio: auto; min-height: 560px; }
.ws-lead { font-size: 17.5px; color: var(--ink-2); max-width: 470px; margin: 22px 0 0; }
.fmts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin: 38px 0 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.fmts svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.fmts b { display: block; font-weight: 500; font-size: 16px; }
.fmts span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.ws .chips { margin-bottom: 34px; }

/* Projects ----------------------------------------------------------------- */
.pj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pj-card { display: flex; flex-direction: column; }
.pj-card .lvl { display: block; font: 500 12.5px var(--mono); color: var(--accent); margin: 24px 0 8px; }
.pj-card h3 { font-size: 21px; margin-bottom: 14px; }
.pj-card p { color: var(--ink-2); font-size: 15.5px; }
.pj-card .btn { align-self: flex-start; margin-top: 6px; }
.pj-list li { display: grid; grid-template-columns: 30px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pj-list li:first-child { border-top: 1px solid var(--line); }
.pj-list .mono { font-size: 11.5px; color: var(--muted); padding-top: 3px; }
.wafer-media { background: #f1eee7; }
.wafer-media > svg { inset: 5% 0; height: 90%; }
.wafer .die { fill: url(#wgrad); stroke: rgba(21, 23, 28, 0.28); stroke-width: 0.6; transition: fill 0.2s; }
.wafer .die:hover { fill: var(--ink); }
.js .draw .wafer .die { opacity: 0; transition: opacity 0.5s ease var(--d), fill 0.2s; }
.js .draw.in .wafer .die { opacity: 1; }

/* Blog --------------------------------------------------------------------- */
.posts3, .posts2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.posts2 { grid-template-columns: repeat(2, 1fr); }
.post a { display: block; text-decoration: none; color: inherit; }
.post .meta { display: flex; gap: 16px; font: 12.5px var(--mono); color: var(--muted); margin: 20px 0 10px; }
.post h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.018em; transition: color 0.2s; margin-bottom: 14px; }
.post .read { display: inline-flex; gap: 8px; font-size: 14.5px; font-weight: 500; }
.post .read span { transition: transform 0.25s var(--ease); }
@media (hover: hover) {
  .post a:hover h3, .post a:hover .read { color: var(--accent); }
  .post a:hover .read span { transform: translateX(3px); }
}
/* touch feedback */
a, button { -webkit-tap-highlight-color: transparent; }
.dc .media, .post .media, .btn { transition-property: transform, background, border-color, color; transition-duration: 0.2s; }
.dc:active .media, .post a:active .media { transform: scale(0.985); }
.btn:active { transform: scale(0.98); }
.rail-bar { display: none; }
/* Contact */
.contact-list { border-top: 1px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.contact-list .mono { font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.contact-list li > .ln { justify-self: start; align-self: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  font: 400 15.5px var(--sans); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper);
  padding: 12px 13px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 28, 0.06); }
.form-foot { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13.5px; }
.form-status { margin: 18px 0 0; padding: 13px 15px; border-radius: 6px; font-size: 14.5px; line-height: 1.5; background: var(--accent-soft); color: var(--ink); }
.form-status.is-ok { background: #e6f2ea; color: #1c5536; }
.form-status.is-err { background: #fbede3; color: #7a3a14; }
.btn:disabled { opacity: 0.72; cursor: progress; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 30;
  right: calc(22px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 90, 0.6), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.25s;
  animation: wa-in 0.6s var(--ease) 1.2s both;
}
.wa-float svg { width: 31px; height: 31px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); animation: wa-ring 2.4s ease-out 2.2s 2; }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font: 500 13.5px/1 var(--sans); color: #fff; background: var(--ink);
  padding: 9px 12px; border-radius: 6px; transition: opacity 0.2s, transform 0.25s var(--ease);
}
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -10px rgba(18, 140, 90, 0.7), 0 2px 6px rgba(0, 0, 0, 0.12); }
  .wa-float:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
}
.wa-float:active { transform: scale(0.94); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(14px) scale(0.85); } }
@keyframes wa-ring { to { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-tag { font-family: var(--mono); font-size: 12.5px; }


/* Article pages ------------------------------------------------------------ */
.a-head { padding: 72px 0 44px; }
.a-head .wrap, .article .wrap { max-width: 800px; }
.a-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.034em; line-height: 1.06; margin: 0 0 20px; }
.a-head p { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 640px; }
.article-meta { font: 12.5px var(--mono); color: var(--muted); margin-top: 26px; display: flex; gap: 20px; }
.back { font: 500 13px var(--mono); color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 30px; }
.back:hover { color: var(--ink); }
.a-cover { margin: 0 auto; max-width: 1124px; }
.a-cover .media { aspect-ratio: 16 / 8; }
.a-cover figcaption, .afig figcaption { font: 12.5px/1.5 var(--mono); color: var(--muted); margin-top: 12px; }
.article { padding: 64px 0 104px; }
.article h2 { font-size: 26px; margin: 52px 0 14px; letter-spacing: -0.022em; }
.article .wrap > p, .article .wrap > ul > li, .article .wrap > ol > li, .article .callout p { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.article strong { color: var(--ink); font-weight: 600; }
.article .wrap > ul { margin: 0 0 1.2em; }
.article .wrap > ul > li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.article .wrap > ul > li::before { content: "\2013"; position: absolute; left: 0; top: 0; color: var(--accent); }
.article .wrap > ol { list-style: decimal; padding-left: 22px; margin: 0 0 1.2em; }
.article .wrap > ol > li { margin-bottom: 8px; padding-left: 4px; }
.article .callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; margin: 36px 0; }
.article .callout p { margin: 0; }
.article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.article a:hover { text-decoration-color: var(--accent); }
.afig { margin: 40px 0 44px; }
.afig.wide { margin-left: -80px; margin-right: -80px; }
.afig.narrow .media { max-width: 440px; }
.afig .media.panel { aspect-ratio: 4 / 3; max-width: 560px; }
.afig-wide { aspect-ratio: 16 / 9; }
.afig-tall { aspect-ratio: 3 / 4; }
.afig .metro { padding: 32px 28px 22px; }
.afig-evo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 20px; text-align: center; }
.afig-evo .evo2-art { margin-bottom: 10px; }
.afig-evo .evo2-art::after, .afig-evo .evo2-art::before { display: none; }
.afig-evo .mono { font-size: 12px; color: var(--accent); }
.a-more { border-top: 1px solid var(--line); padding: 72px 0 88px; }
.a-more .kick { margin-bottom: 28px; }

/* Reveal ------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dgrid { gap: 32px 18px; }
  .evo2 { grid-template-columns: 1fr; gap: 36px; }
  .evo2-text { max-width: 640px; }
  .eco { gap: 14px; }
  .eco::before { left: calc((100% - 56px) / 10); right: calc((100% - 56px) / 10); }
  .flag-body { padding: 40px 36px; }
  .afig.wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid, .cols-2, .fronts, .ws, .flag { grid-template-columns: minmax(0, 1fr); }
  .xv { margin: 8px 0 0; }
  .xv-stage { overflow: hidden; }
  .xv-svg { width: 164.9%; max-width: none; margin-left: -31.1%; }
  .xv-labels { display: none; }
  .xv-legend { display: flex; gap: 8px; margin: 16px calc(var(--gutter, 32px) * -1) 0; padding: 0 var(--gutter, 32px) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter, 32px); scrollbar-width: none; }
  .xv-legend::-webkit-scrollbar { display: none; }
  .xv-legend li { flex: none; scroll-snap-align: start; }
  .xv-legend button { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font: 500 13.5px/1 var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
  .xv-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.2); }
  .xv-legend button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .xv-cap { text-align: left; margin-top: 14px; min-height: 4.6em; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 80px 0; }
  .sec-dark { padding-bottom: 80px; }
  .head { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
  .dgrid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .fronts { gap: 48px; }
  .evo2 { margin-top: 72px; }
  .pillars, .pj, .posts3 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rail-m { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 380px); gap: 16px; align-items: start;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 32px);
    margin: 0 calc(var(--gutter, 32px) * -1); padding: 0 var(--gutter, 32px) 4px; scrollbar-width: none; }
  .rail-m::-webkit-scrollbar { display: none; }
  .rail-m > * { scroll-snap-align: start; }
  .rail-bar { display: block; position: relative; height: 2px; margin-top: 22px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .rail-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 30%); background: var(--ink); border-radius: 2px; transition: width 0.15s linear; }
  .sec-dark .rail-bar { background: rgba(255, 255, 255, 0.14); }
  .sec-dark .rail-bar span { background: var(--on-dark); }
  .field input, .field textarea { font-size: 16px; }
  .posts2 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .why-hero { min-height: 480px; }
  .why-hero > img { object-position: 70% 50%; }
  .why-hero::after { background: linear-gradient(0deg, var(--dark) 0%, rgba(13, 15, 19, 0.82) 45%, rgba(13, 15, 19, 0.55) 100%); }
  .why-copy { padding-top: 120px; padding-bottom: 48px; }

  .eco { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 0 30px; }
  .eco::before { top: 20px; bottom: 20px; left: 6px; right: auto; border-top: 0; border-left: 1.5px dashed var(--line-2); }
  .js .eco::before { transform: scaleY(0); transform-origin: top; }
  .js .eco.in::before { transform: none; }
  .eco-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; }
  .eco-dot { top: 50%; left: -30px; margin: -7px 0 0; }
  .eco-text { padding: 0; }

  .metro { padding: 30px 22px 10px; }
  .metro-h { display: none; }
  .metro-v { display: block; padding-left: 34px; }
  .mv-st { position: relative; padding-bottom: 26px; }
  .mv-st::before { content: ""; position: absolute; left: -34px; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-sizing: border-box; z-index: 1; }
  .mv-st:not(:last-child)::after { content: ""; position: absolute; left: -27px; top: 10px; bottom: -10px; width: 3px; background: var(--ink); }
  .mv-start::before { background: var(--ink); }
  .mv-j::before { width: 23px; height: 23px; left: -37px; top: -2px; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--ink); }
  .mv-end::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 7px #fff; }
  .mv-st > .mono { display: block; font-size: 11.5px; color: var(--accent); margin-bottom: 2px; }
  .mv-st > b { display: block; font-weight: 500; font-size: 16.5px; line-height: 1.3; }
  .mv-st > small { display: block; font: 12px var(--mono); color: var(--muted); margin-top: 3px; }
  .mv-tracks { display: grid; gap: 12px; margin: 16px 0 6px; padding: 16px 16px; background: var(--bg); border-radius: 6px; }
  .mv-tracks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .mv-tracks li::before { content: ""; grid-row: 1 / span 2; width: 26px; height: 4px; border-radius: 2px; background: var(--c); }
  .mv-tracks b { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
  .mv-tracks small { font: 11.5px var(--mono); color: var(--muted); }

  .flag-media { min-height: 0; aspect-ratio: 16 / 10; }
  .flag-body { padding: 32px 26px 34px; }
  .ws { gap: 36px; }
  .ws-media { aspect-ratio: 4 / 3; min-height: 0; }
  .lib { columns: 2; }
  .a-cover { padding: 0 20px; }
  .a-cover .media { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .wa-float { width: 54px; height: 54px; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 29px; height: 29px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-lead { font-size: 17px; }
  .dlg, .dlg-wide { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88vh; max-height: 88dvh; border-radius: 16px 16px 0 0; }
  .dlg[open] { animation: sheet-up 0.42s var(--ease); }
  .dlg-head { position: relative; padding-top: 30px; }
  .dlg-head::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .dlg-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .dlg-foot .btn { width: 100%; justify-content: center; }
  .brand small { display: none; }
  .fact b { font-size: 24px; }
  .fact { padding-right: 12px; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(3) { padding-left: 0; }
  .evo2-row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .evo2-item:nth-child(2) .evo2-art::before { display: none; }
  .dgrid { gap: 28px 14px; }
  .dc-name { font-size: 15px; margin-top: 12px; }
  .dc-meta { font-size: 11.5px; flex-direction: column; gap: 2px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .fmts { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .posts2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .lib { columns: 1; }
  .dlg-head, .dlg-body, .dlg-foot { padding-left: 20px; padding-right: 20px; }
  .afig-evo { grid-template-columns: 1fr 1fr; }
  .eco-item { grid-template-columns: 92px minmax(0, 1fr); }
}

@keyframes sheet-up { from { transform: translateY(60px); opacity: 0.4; } }
