/* ============ fonts (all inside the site) ============ */
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("assets/fonts/Lalezar.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FAFBF8; --dot: #D5DAD2; --surface: #FFFFFF; --surface-2: #F2F5F0;
  --text: #17212B; --muted: #5B6673; --line: #E4E8E1;
  --green: #20A563; --green-d: #137A48; --green-l: #E3F5EB;
  --orange: #F26A4B; --orange-d: #D44F31; --orange-l: #FDECE7;
  --ink: #0F2A1E;
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --font-fun: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --radius: 22px;
  --shadow: 0 2px 6px rgba(20,40,30,.05), 0 18px 50px rgba(20,40,30,.08);
  --wrap: min(1180px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 17.5px; line-height: 1.9;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 24px 24px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
b { font-weight: 700; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 10px; }

section { width: var(--wrap); margin-inline: auto; padding-block: clamp(64px, 9vw, 120px); position: relative; }

/* ---------- highlight words ---------- */
.hl { font-family: var(--font-fun); font-weight: 400; color: var(--green); }
.hl--o { color: var(--orange); }
.hl--light { color: #7CE3A8; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--orange-d); background: var(--orange-l); padding: 4px 14px; border-radius: 999px; font-size: .92rem; margin-bottom: 18px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242,106,75,.5); animation: ping 2.4s infinite; }
.kicker--light { background: rgba(255,255,255,.12); color: #FFC9B8; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242,106,75,.55); } 70% { box-shadow: 0 0 0 10px rgba(242,106,75,0); } 100% { box-shadow: 0 0 0 0 rgba(242,106,75,0); } }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sub { color: var(--muted); font-size: 1.08rem; }
.sub--light { color: #C9DED3; }
.tag { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; margin-inline-start: 6px; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { font-family: var(--font); font-weight: 700; border-radius: 999px; padding: .8em 1.6em; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(32,165,99,.32); }
.btn--primary:hover { background: var(--green-d); transform: translateY(-2px); }
.btn--ghost { color: var(--text); border: 2px solid var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.btn--light { background: #fff; color: var(--orange-d); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,251,248,.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav__in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 900; font-size: 1.05rem; }
.brand img { width: 28px; height: auto; }
.brand small { font-weight: 400; color: var(--orange); font-size: .85rem; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: .95rem; }
.nav__links a:not(.btn):hover { background: var(--green-l); color: var(--green-d); }
.nav__cta { min-height: 42px; padding: .5em 1.2em; margin-inline-start: 8px; font-size: .95rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- signature: circuit lines ---------- */
.circuit { position: absolute; pointer-events: none; z-index: -1; }
.circuit path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .35; stroke-dasharray: 8 10; animation: flow 6s linear infinite; }
.circuit .o { stroke: var(--orange); }
.circuit circle { fill: var(--green); opacity: .6; } .circuit circle.o { fill: var(--orange); }
@keyframes flow { to { stroke-dashoffset: -180; } }
.circuit--hero { width: 560px; inset-inline-end: -120px; top: 20px; }
.circuit--iot { width: 100%; height: 300px; inset-inline: 0; top: 40px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-top: clamp(40px, 6vw, 80px); min-height: calc(100vh - 68px); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.35; letter-spacing: 0; }
.hero h1 .hl { font-size: 1.08em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.blob { position: absolute; inset: 6%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, #D8F3E4, #BDE8D0 60%, #FAD6CB); animation: morph 14s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(8deg); } }
.hero__art img { position: relative; width: 88%; margin: 6% auto 0; border-radius: 34px; box-shadow: 0 30px 80px rgba(15,42,30,.25); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.chip { position: absolute; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); white-space: nowrap; }
.chip--a { top: 8%; inset-inline-start: 0; color: var(--green-d); direction: ltr; }
.chip--b { bottom: 14%; inset-inline-end: -2%; color: var(--orange-d); }
.chip--c { bottom: 2%; inset-inline-start: 10%; }

/* ---------- strip ---------- */
.strip { padding-block: 0; }
.strip ul { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: var(--ink); border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.strip li { padding: 8px 18px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.strip li:first-child { border: 0; }
.strip b { display: block; font-family: var(--font-fun); font-weight: 400; font-size: 1.7rem; color: #7CE3A8; line-height: 1.5; }
.strip li:nth-child(even) b { color: #FF9B83; }
.strip span { font-size: .9rem; color: #C9DED3; line-height: 1.7; display: block; }

/* ---------- what ---------- */
.what__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.body-map { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.body-map li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; display: flex; gap: 12px; align-items: center; }
.body-map i { font-style: normal; font-size: 1.4rem; }
.code-card { margin: 0; background: #12241B; color: #E6F2EA; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(15,42,30,.28); position: sticky; top: 100px; }
.code-card__bar { display: flex; gap: 7px; align-items: center; padding: 14px 18px; background: #0C1A13; direction: ltr; }
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: #F26A4B; } .code-card__bar span:nth-child(2) { background: #F5C04A; } .code-card__bar span:nth-child(3) { background: #20A563; }
.code-card__bar em { font-style: normal; margin-inline-start: auto; color: #8FB3A0; font-size: .85rem; }
.code-card pre { margin: 0; padding: 22px 24px; font: 15px/1.75 Consolas, "Courier New", monospace; overflow-x: auto; text-align: left; }
.code-card .k { color: #7CE3A8; } .code-card .n { color: #FFB199; } .code-card .s { color: #F5C04A; }
.code-card figcaption { padding: 14px 22px 20px; color: #A9C7B6; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- iot bento ---------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.bento__c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .3s; }
.bento__c:hover { transform: translateY(-4px); }
.bento__c p { color: var(--muted); margin: 0; }
.bento__c--big { grid-row: span 2; display: flex; flex-direction: column; }
.bento__c--big img { margin-top: auto; border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-block-start: 18px; }
.bento__c--o { background: var(--orange-l); border-color: #F8D3C8; }
.bento__c--g { background: var(--green-l); border-color: #C8EBD6; }

/* ---------- why ---------- */
.why__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why__col { background: var(--surface); border-radius: var(--radius); padding: 30px 30px 20px; border-top: 6px solid var(--green); box-shadow: var(--shadow); }
.why__col--o { border-top-color: var(--orange); }
.why__col h3 { font-size: 1.5rem; }
.why__col ol { padding: 0; margin: 0; list-style: none; counter-reset: w; }
.why__col li { counter-increment: w; position: relative; padding-inline-start: 46px; margin-bottom: 16px; color: var(--muted); }
.why__col li b { color: var(--text); }
.why__col li::before { content: counter(w, persian); position: absolute; inset-inline-start: 0; top: 2px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--green-l); color: var(--green-d); font-weight: 900; }
.why__col--o li::before { background: var(--orange-l); color: var(--orange-d); }

/* ---------- console (dark band) ---------- */
.console { width: 100%; max-width: none; background: var(--ink); color: #fff; padding-inline: max(20px, calc((100% - 1180px) / 2)); border-radius: 40px; }
.console h2, .console h3 { color: #fff; }
.console__head { max-width: 780px; margin-bottom: 40px; }
.console__show { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; margin-bottom: 56px; }
.console__video { margin: 0; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.4); position: relative; }
.console__video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; max-height: 720px; }
.console__video figcaption, .mini-video figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; background: rgba(8,8,15,.6); backdrop-filter: blur(10px); padding: 4px 12px; border-radius: 10px; font-size: .88rem; }
.uses { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.uses li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 12px 16px; color: #C9DED3; line-height: 1.75; }
.uses li b { color: #fff; }
.uses i { font-style: normal; font-size: 1.4rem; }
.mini-video { margin: 0; position: relative; border-radius: 20px; overflow: hidden; max-width: 300px; }
.mini-video video { aspect-ratio: 9/16; object-fit: cover; width: 100%; max-height: 360px; }
.parts { margin-bottom: 56px; }
.parts__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.parts__grid li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px 16px; transition: background .3s, transform .3s; }
.parts__grid li:hover { background: rgba(32,165,99,.18); transform: translateY(-3px); }
.parts__grid b { display: block; color: #7CE3A8; }
.parts__grid li:nth-child(3n+2) b { color: #FF9B83; }
.parts__grid span { color: #B5CCBF; font-size: .92rem; line-height: 1.7; display: block; }
.evo__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: v; }
.evo figure { margin: 0; background: #fff; color: var(--text); border-radius: 24px; overflow: hidden; position: relative; }
.evo img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.evo figcaption { padding: 14px 18px; line-height: 1.8; }
.evo figure + figure::before { content: ""; }

/* ---------- learn ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; inset-inline: 8%; border-top: 3px dashed #BFE6CF; z-index: -1; }
.steps li { background: var(--surface); border-radius: 20px; padding: 18px; border: 1px solid var(--line); text-align: center; }
.steps span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green); color: #fff; font-family: var(--font-fun); font-size: 1.6rem; margin-top: -42px; margin-bottom: 8px; box-shadow: 0 8px 20px rgba(32,165,99,.35); }
.steps li:nth-child(even) span { background: var(--orange); box-shadow: 0 8px 20px rgba(242,106,75,.35); }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; line-height: 1.8; }
.learn__photos { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 16px; }
.learn__photos figure, .world__photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.learn__photos img, .world__photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.learn__photos figure:last-child img { aspect-ratio: auto; }
.learn__photos figcaption, .world__photos figcaption { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.9); padding: 3px 12px; border-radius: 10px; font-size: .88rem; font-weight: 700; }

/* ---------- projects masonry ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.card { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: auto; }
.card figcaption { padding: 16px 18px 18px; }
.card figcaption b { font-size: 1.08rem; }
.card figcaption span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.8; margin-top: 4px; }
.more { text-align: center; color: var(--muted); margin-top: 20px; }

/* ---------- journey timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 118px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--green), var(--orange)); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 40px; margin-bottom: 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 110px; top: 10px; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 4px solid var(--green); }
.timeline li:nth-child(even)::before { border-color: var(--orange); }
.timeline time { font-family: var(--font-fun); font-size: 1.15rem; color: var(--green-d); text-align: start; padding-top: 2px; line-height: 1.6; }
.timeline li:nth-child(even) time { color: var(--orange-d); }
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--muted); margin: 0; }
.timeline li > :not(time) { grid-column: 2; }
.timeline li h3, .timeline li p { background: none; }

/* ---------- awards ---------- */
.awards__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.award { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.award img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.award > div { padding: 20px 22px; }
.award p { color: var(--muted); margin: 0; }
.award--gold { grid-column: span 2; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto; }
.award--gold img { height: 100%; aspect-ratio: auto; }
.award--gold > div { align-self: center; padding: 32px; }
.medal { display: inline-block; font-weight: 900; color: var(--orange-d); background: var(--orange-l); padding: 2px 14px; border-radius: 999px; margin-bottom: 10px; }
.award--gold .medal { background: #FFF2C7; color: #A06A00; }

/* ---------- world ---------- */
.world { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.world__text p { color: var(--muted); }
.world__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.world__photos figure:first-child { grid-column: span 2; }
.world__photos figure:not(:first-child) img { aspect-ratio: 3/4; }

/* ---------- CTA ---------- */
.cta { padding-top: 0; }
.cta__in { background: linear-gradient(120deg, var(--orange) 0%, #F58B4E 100%); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta__in::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1.2px, transparent 1.3px); background-size: 24px 24px; pointer-events: none; }
.cta h2 { color: #fff; } .cta h2 span { font-family: var(--font-fun); font-weight: 400; }
.cta p { color: #FFE8E0; font-size: 1.1rem; }
.cta .btn { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot__in { width: var(--wrap); margin-inline: auto; display: flex; gap: 24px; align-items: center; padding-block: 34px; }
.foot__in img { width: 70px; height: auto; }
.foot p { margin: 0 0 4px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav__links { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px 20px 22px; gap: 2px; box-shadow: 0 20px 40px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 12px; }
  .nav__cta { margin: 10px 0 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: start; }
  .hero__art { max-width: 460px; margin-inline: auto; width: 100%; }
  .circuit--hero { width: 300px; top: auto; bottom: 0; opacity: .6; }
  .circuit--iot { display: none; }
  .what__grid, .why__cols, .console__show, .world { grid-template-columns: 1fr; }
  .code-card { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__c--big { grid-column: span 2; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(3) { border: 0; }
  .mini-video { max-width: 240px; }
  .award--gold { grid-template-columns: 1fr; }
  .award--gold img { aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  section { padding-block: 56px; }
  .chip { font-size: .78rem; padding: 4px 10px; }
  .bento { grid-template-columns: 1fr; }
  .bento__c--big { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .learn__photos { grid-template-columns: 1fr 1fr; }
  .learn__photos figure:first-child { grid-column: span 2; }
  .evo__row { grid-template-columns: 1fr; }
  .awards__grid { grid-template-columns: 1fr; }
  .award--gold { grid-column: auto; }
  .timeline::before { inset-inline-start: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-inline-start: 34px; }
  .timeline li::before { inset-inline-start: 0; }
  .timeline li > :not(time) { grid-column: 1; }
  .console { border-radius: 26px; }
  .foot__in { flex-direction: column; text-align: center; }
  .strip li { padding: 8px 10px; }
  .strip b { font-size: 1.35rem; }
}

/* hero shows at once (no scroll trigger), with a short CSS intro */
.intro { animation: intro .9s cubic-bezier(.2,.7,.2,1) both; }
.intro--2 { animation-delay: .15s; }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =================== v2 additions =================== */
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(242,106,75,.32); }
.btn--orange:hover { background: var(--orange-d); transform: translateY(-2px); }
.btn--outline-light { color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn--outline-light:hover { background: rgba(255,255,255,.15); }
.small { font-size: .88rem; }

/* floating tech bubbles around the hero */
.bubble { position: absolute; width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; padding: 10px; animation: bob 6s ease-in-out infinite; z-index: 2; }
.bubble img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b1 { top: 2%; inset-inline-start: 4%; animation-delay: -1s; }
.b2 { top: 30%; inset-inline-start: -4%; animation-delay: -3s; width: 56px; height: 56px; }
.b3 { bottom: 10%; inset-inline-start: 2%; animation-delay: -2s; width: 74px; }
.b4 { top: 4%; inset-inline-end: 6%; animation-delay: -4s; }
.b5 { bottom: 26%; inset-inline-end: -5%; animation-delay: -.5s; }
.b6 { bottom: 0; inset-inline-end: 22%; animation-delay: -2.5s; width: 56px; height: 56px; }
@keyframes bob { 0%,100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(6px,-12px) rotate(4deg); } 66% { transform: translate(-6px,6px) rotate(-3deg); } }

/* logo marquee */
.logos { padding-block: 10px 40px; width: 100%; max-width: none; }
.logos__title { text-align: center; color: var(--muted); font-weight: 700; font-size: .95rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 18px; height: 72px; box-shadow: 0 2px 8px rgba(20,40,30,.05); }
.marquee__track img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.marquee__track b { font-family: system-ui, sans-serif; font-weight: 700; color: #34404c; }
@keyframes slide { to { transform: translateX(-50%); } }

.body-map { margin: 0; }
.body-map li { padding: 14px 18px; }

/* ===== LAB ===== */
.lab__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }
.editor { background: #12241B; color: #E6F2EA; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(15,42,30,.28); position: sticky; top: 90px; }
.editor__tabs { display: flex; gap: 6px; padding: 10px; background: #0C1A13; overflow-x: auto; }
.editor__tabs button { flex: 1 0 auto; border: 0; border-radius: 12px; padding: 9px 14px; background: transparent; color: #9FC2AF; font: 700 .92rem var(--font); cursor: pointer; min-height: 44px; }
.editor__tabs button[aria-selected="true"] { background: #1E3A2C; color: #fff; }
.editor__bar { display: flex; gap: 7px; align-items: center; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.editor__bar span { width: 11px; height: 11px; border-radius: 50%; background: #F26A4B; } .editor__bar span:nth-child(2) { background: #F5C04A; } .editor__bar span:nth-child(3) { background: #20A563; }
.editor__bar em { font-style: normal; margin-inline-start: auto; color: #8FB3A0; font-size: .85rem; }
.editor__code { margin: 0; padding: 14px 0; font: 14.5px/1.8 Consolas, "Courier New", monospace; overflow-x: auto; min-height: 300px; text-align: left; counter-reset: ln; }
.editor__code .ln { display: block; padding: 0 18px 0 46px; position: relative; transition: background .2s; white-space: pre; }
.editor__code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 12px; width: 22px; text-align: right; color: #4E6B5C; }
.editor__code .ln.hot { background: rgba(124,227,168,.16); box-shadow: inset 3px 0 0 #7CE3A8; }
.editor__code .k { color: #7CE3A8; } .editor__code .n { color: #FFB199; } .editor__code .s { color: #F5C04A; } .editor__code .c { color: #6E8F7E; } .editor__code .f { color: #8CC8FF; }
.editor__opts { padding: 4px 18px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #A9C7B6; font-size: .92rem; }
.editor__opts input { width: 150px; background: #0C1A13; border: 1px solid #2B4A3A; color: #fff; border-radius: 10px; padding: 6px 10px; font: 15px Consolas, monospace; direction: ltr; }
.editor__opts button { border: 2px solid transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: 700 .85rem var(--font); min-height: 36px; }
.editor__opts button.on { border-color: #fff; }
.editor__run { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #0C1A13; flex-wrap: wrap; }
.run { border: 0; border-radius: 999px; padding: 10px 22px; background: var(--green); color: #fff; font: 900 1rem var(--font); cursor: pointer; min-height: 46px; display: inline-flex; gap: 8px; align-items: center; }
.run:not(:disabled) { animation: pulse 1.8s infinite; }
.run:disabled { background: #2B4A3A; color: #6E8F7E; cursor: not-allowed; }
.run.busy { animation: none; background: var(--orange); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(32,165,99,.6); } 70% { box-shadow: 0 0 0 14px rgba(32,165,99,0); } 100% { box-shadow: 0 0 0 0 rgba(32,165,99,0); } }
.stop { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #2B4A3A; background: transparent; color: #A9C7B6; cursor: pointer; font-size: 1rem; }
.status { color: #A9C7B6; font-size: .92rem; }
.console-out { padding: 10px 18px 16px; font: 13.5px/1.7 Consolas, monospace; color: #7CE3A8; min-height: 64px; max-height: 110px; overflow: auto; border-top: 1px solid rgba(255,255,255,.06); }
.console-out .muted { color: #4E6B5C; }
.board-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.board { width: 100%; height: auto; display: block; }
.board .lbl { font: 700 13px var(--font); fill: #5B6673; }
.board .part, .board .wire { transition: opacity .4s; }
.board .part.dim { opacity: .35; }
.board .wire.dim { opacity: .18; }
.board-cap { text-align: center; color: var(--muted); margin: 8px 0 0; }
#ledGlow { transition: opacity .15s; }

/* ===== videos inside the console band ===== */
.wide-video { margin: 0 0 56px; position: relative; border-radius: 28px; overflow: hidden; background: #000; }
.wide-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wide-video figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; background: rgba(8,8,15,.6); backdrop-filter: blur(10px); padding: 4px 12px; border-radius: 10px; font-size: .9rem; }
.buy-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-top: 56px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 24px; }
.buy-band img { border-radius: 20px; background: #fff; }
.buy-band h3 { font-size: 1.6rem; }
.price { font-size: 1.1rem; color: #C9DED3; }
.price b { font-family: var(--font-fun); font-weight: 400; font-size: 2.4rem; color: #FF9B83; margin-inline-end: 6px; }

/* ===== class space ===== */
.space { display: grid; grid-template-columns: 1.1fr .9fr .9fr; grid-template-rows: auto auto; gap: 16px; align-items: stretch; }
.space__text { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.space__text p { color: var(--muted); }
.space figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.space video, .space img { width: 100%; height: 100%; object-fit: cover; }
.space__v1 { grid-column: 2; grid-row: 1 / span 2; }
.space__img { grid-column: 3; grid-row: 1; }
.space__v2 { grid-column: 3; grid-row: 2; }
.space figcaption { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(255,255,255,.9); padding: 3px 12px; border-radius: 10px; font-size: .88rem; font-weight: 700; }

/* ===== certificate ===== */
.cert { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.cert__img { margin: 0; transform: rotate(-2deg); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(15,42,30,.2); transition: transform .5s; }
.cert__img:hover { transform: rotate(0) scale(1.02); }
.cert__text p { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--green-l); color: var(--green-d); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .88rem; }
.chips li:nth-child(3n) { background: var(--orange-l); color: var(--orange-d); }
.why__col h3 { display: flex; align-items: center; gap: 10px; }
.why__col h3 img { width: 34px; height: 34px; object-fit: contain; }
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.fab { display: none; }

/* ===== IoT image cards (replace old bento) ===== */
.iot .bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.bc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.bc:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(20,40,30,.14); }
.bc__t { padding: 20px 22px 14px; }
.bc__t h3 { font-size: 1.12rem; margin-bottom: .35em; }
.bc__t p { color: var(--muted); margin: 0; font-size: .96rem; line-height: 1.85; }
.bc img { margin-top: auto; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s; }
.bc:hover img { transform: scale(1.04); }
.bc img.contain { object-fit: contain; padding: 10px 14px 18px; aspect-ratio: 3/2; }
.bc--tall { grid-row: span 2; }
.bc--tall img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.bc--g { background: var(--green-l); border-color: #C8EBD6; }
.bc--o { background: var(--orange-l); border-color: #F8D3C8; }
.bc--wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; background: var(--ink); color: #fff; border: 0; }
.bc--wide h3 { color: #fff; font-size: 1.5rem; }
.bc--wide .bc__t { padding: 32px; }
.bc--wide .bc__t p { color: #C9DED3; }
.bc--wide img { aspect-ratio: auto; height: 100%; object-fit: cover; object-position: right top; border-radius: 0; }
.bc--light { background: var(--surface); color: var(--text); border: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
.bc--light h3 { color: var(--text); }
.bc--light .bc__t p { color: var(--muted); }
.bc--light img { max-height: 380px; object-position: center 60%; }
@media (max-width: 1000px) {
  .iot .bento { grid-template-columns: 1fr 1fr; }
  .bc--tall { grid-row: auto; }
  .bc--tall img { min-height: 0; aspect-ratio: 3/4; }
  .bc--wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .iot .bento { grid-template-columns: 1fr; }
  .bc--wide .bc__t { padding: 22px; }
}

/* ===== contact card ===== */
.contact { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; max-width: 980px; }
.contact__photo { margin: 0; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 70px rgba(15,42,30,.2); position: relative; }
.contact__photo::after { content: ""; position: absolute; inset: 0; border-radius: 30px; box-shadow: inset 0 0 0 6px rgba(255,255,255,.6); }
.contact__photo img { width: 100%; aspect-ratio: 360/545; object-fit: cover; }
.contact .role { color: var(--orange-d); font-weight: 700; font-size: 1.08rem; }
.contact__text p { color: var(--muted); }
.contact__btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact__photo { max-width: 240px; margin-inline: auto; }
  .contact__btns { justify-content: center; }
}

@media (max-width: 1000px) {
  .lab__grid, .cert, .buy-band { grid-template-columns: 1fr; }
  .editor { position: static; }
  .board-wrap { order: -1; padding: 8px; }
  .board-cap { font-size: .85rem; margin-top: 2px; }
  .space { grid-template-columns: 1fr 1fr; }
  .space__text { grid-column: 1 / -1; grid-row: auto; }
  .space__v1 { grid-column: 1; grid-row: auto; }
  .space__img { grid-column: 2; grid-row: auto; }
  .space__v2 { grid-column: 1 / -1; grid-row: auto; }
  .space__v1 video { aspect-ratio: 9/16; }
  .space__v2 video { aspect-ratio: 16/9; }
  .bubble { width: 50px; height: 50px; padding: 8px; border-radius: 14px; }
  .b3, .b5 { width: 60px; }
  .fab { display: inline-flex; position: fixed; bottom: 16px; left: 16px; z-index: 60; background: var(--orange); color: #fff; text-decoration: none; font-weight: 900; border-radius: 999px; padding: 12px 18px; min-height: 48px; align-items: center; box-shadow: 0 10px 30px rgba(242,106,75,.45); }
}
@media (max-width: 640px) {
  .marquee__track span { height: 58px; padding: 8px 12px; }
  .marquee__track img { height: 34px; }
  .editor__code { font-size: 12.5px; min-height: 260px; }
  .editor__code .ln { padding: 0 12px 0 38px; }
  .space__img img { aspect-ratio: 3/4; }
  .price b { font-size: 2rem; }
}

/* ===== trophy shelf ===== */
.shelf { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(18px, 3vw, 32px); margin-bottom: 24px; box-shadow: 0 30px 70px rgba(15,42,30,.22); }
.shelf__img { margin: 0; border-radius: 22px; overflow: hidden; }
.shelf__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s; }
.shelf:hover .shelf__img img { transform: scale(1.03); }
.shelf h3 { color: #fff; font-size: 1.7rem; }
.shelf p { color: #C9DED3; }
.medals { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.medals li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 10px 14px; }
.medals b { font-size: 1.5rem; }
@media (max-width: 1000px) { .shelf { grid-template-columns: 1fr; } .shelf__img img { aspect-ratio: 4/4.5; } }
