/* ==========================================================================
   Atanor Labs — Studio Dark kit (v3)
   Coal #0B0F0E · Chalk #F4F2EC · Mint #2EE59D · Amber #F4B740
   Layout ideas adapted from the Krijo examples (Orbit Labs, Akademia Kod,
   Flowbase, Studio Nord, Leka). Generated pages: brendi/site-builder/build_platforma.py
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --coal: #0B0F0E;
  --coal-2: #0F1412;
  --surface: #131917;
  --surface-2: #18201D;
  --line: rgba(244, 242, 236, 0.10);
  --line-strong: rgba(244, 242, 236, 0.18);
  --chalk: #F4F2EC;
  --muted: #A3ADA8;
  --muted-2: #7C8782;
  --mint: #2EE59D;
  --mint-hover: #5BEEB4;
  --mint-soft: rgba(46, 229, 157, 0.12);
  --amber: #F4B740;
  --amber-soft: rgba(244, 183, 64, 0.13);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-lang="sq"] [lang-en] { display: none !important; }
html[data-lang="en"] [lang-sq] { display: none !important; }
html { scroll-behavior: smooth; background: var(--coal); color-scheme: dark; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--chalk); background: var(--coal); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--mint); color: var(--coal); }
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; color: var(--mint); background: var(--mint-soft); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.sec { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec-tight { padding: clamp(56px, 7vw, 88px) 0; }
.k { font-family: var(--mono); font-size: .78rem; color: var(--mint); letter-spacing: .04em; display: inline-block; }
.k.amber { color: var(--amber); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 14px 0 18px; max-width: 18ch; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 56ch; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mint { color: var(--mint); }
.amber-t { color: var(--amber); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }

/* Reveal on scroll (Orbit / Akademia) -------------------------------- */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
[data-tilt] { transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Curtain preloader (Flowbase / Leka) -------------------------------- */
.pre { position: fixed; inset: 0; z-index: 999; background: var(--coal); display: grid; place-items: center; clip-path: inset(0 0 0 0); transition: clip-path .75s cubic-bezier(.77,0,.175,1); }
.pre.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.pre-in { display: grid; place-items: center; gap: 14px; }
.pre-word { font-family: var(--mono); font-size: .95rem; letter-spacing: .32em; text-transform: uppercase; }
.pre-line { width: 140px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.pre-line i { display: block; height: 100%; background: var(--mint); transform-origin: left; animation: preLine .7s var(--ease) forwards; }
@keyframes preLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Floating pill nav (Flowbase / Leka) -------------------------------- */
.pnav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(11, 15, 14, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); white-space: nowrap; max-width: calc(100vw - 24px); transition: background .3s, border-color .3s; }
.pnav.scrolled { background: rgba(11, 15, 14, .9); border-color: var(--line-strong); }
.brand-logo { display: inline-flex; align-items: center; gap: 9px; margin-right: 8px; }
.brand-mark-svg { width: 28px; height: 28px; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.02; }
.brand-word strong { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.brand-word small { font-family: var(--mono); font-size: 9px; letter-spacing: .26em; color: var(--mint); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { font-size: 14px; color: var(--muted); padding: 7px 11px; border-radius: 999px; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--chalk); background: rgba(244, 242, 236, .06); }
.main-nav a.active { color: var(--mint); background: var(--mint-soft); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.lang-pill { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(244, 242, 236, .03); }
.lang-btn { border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 999px; cursor: pointer; }
.lang-btn.active { background: var(--chalk); color: var(--coal); }
.menu-toggle { display: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.menu-toggle span { width: 15px; height: 1.5px; background: var(--chalk); border-radius: 2px; }

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-mint, .btn-blu { background: var(--mint); color: var(--coal); box-shadow: 0 0 34px rgba(46, 229, 157, .28); }
.btn-mint:hover, .btn-blu:hover { background: var(--mint-hover); }
.btn-chalk, .btn-navy { background: var(--chalk); color: var(--coal); }
.btn-amber, .btn-baker { background: var(--amber); color: var(--coal); }
.btn-ghost, .btn-outline-light, .btn-outline-dark { background: rgba(244, 242, 236, .03); color: var(--chalk); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-outline-light:hover, .btn-outline-dark:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { padding: 8px 15px; font-size: .84rem; }
.btn-full { width: 100%; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pills & marquee ------------------------------------------------------ */
.trust { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(244, 242, 236, .05); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.trust b { color: var(--mint); font-weight: 600; }
.marq { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq > div { display: flex; gap: 52px; width: max-content; animation: mq 36s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); color: #56615C; }
.marq span::after { content: "◆"; color: var(--mint); font-size: .55em; margin-left: 52px; vertical-align: middle; opacity: .7; }
@keyframes mq { to { transform: translateX(-50%); } }

/* Cards with pointer spotlight (Orbit) --------------------------------- */
.card { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(244, 242, 236, .045), rgba(244, 242, 236, .012)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgba(46, 229, 157, .16), transparent 42%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
a.card:hover { border-color: rgba(46, 229, 157, .45); }
.card .ico { width: 26px; height: 26px; stroke: var(--mint); fill: none; stroke-width: 1.6; margin-bottom: 8px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .9rem; color: var(--chalk); }
a.card:hover .more { color: var(--mint); }
.card .tag { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .06em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.badge { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); width: fit-content; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.solid { background: var(--mint); color: var(--coal); }

/* Steps (Orbit) -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.step { padding: 28px 24px 0 0; }
.step b { font-family: var(--mono); color: var(--mint); font-size: .8rem; }
.step h3 { margin: 14px 0 8px; font-size: 1.3rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* Bento with photos (Flowbase) ------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bcard { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.bcard.wide { grid-column: span 3; }
.bcard .ph { aspect-ratio: 16 / 10; overflow: hidden; background: #060908; position: relative; }
.bcard .ph img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .7s var(--ease), opacity .4s; }
.bcard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 15, 14, .7)); }
.bcard:hover .ph img { transform: scale(1.045); opacity: .95; }
.bcard .bt { padding: 22px; display: grid; gap: 8px; }
.bcard h3 { font-size: 1.2rem; }
.bcard p { color: var(--muted); font-size: .92rem; }

/* Engagement cards ------------------------------------------------------ */
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { background: linear-gradient(180deg, rgba(46, 229, 157, .09), transparent 60%), var(--surface-2); border-color: rgba(46, 229, 157, .6); }
.price-card h3 { font-size: 1.45rem; }
.price-card p, .price-card li { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; font-size: .94rem; flex: 1; }
.price-card li::before { content: "◆ "; color: var(--mint); font-size: .7em; vertical-align: middle; }

/* CTA band -------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px); border: 1px solid var(--line-strong); background: radial-gradient(600px 300px at 100% 0%, rgba(46, 229, 157, .16), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(244, 183, 64, .08), transparent 70%), var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.cta p { color: var(--muted); margin-top: 12px; max-width: 50ch; }

/* Starter box ------------------------------------------------------------ */
.starter-box { background: rgba(19, 25, 23, .9); border: 1px solid var(--line-strong); border-radius: 22px; padding: 18px; display: grid; gap: 14px; transition: border-color .2s, box-shadow .2s; }
.starter-box:focus-within { border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.starter-box textarea { width: 100%; background: transparent; border: 0; color: var(--chalk); font-size: 1.05rem; line-height: 1.5; resize: none; min-height: 64px; outline: none; }
.starter-box textarea::placeholder { color: var(--muted-2); }
.starter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.starter-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 13px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--mint); color: var(--chalk); background: var(--mint-soft); }

/* Forms, lab, faq (shared by /lab/ and /kontakt/) ------------------------ */
.workbench { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: start; }
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--coal); color: var(--chalk); font-size: 14.5px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.form-status { font-size: 13px; color: var(--amber); min-height: 1em; }
.output-panel { background: var(--coal); border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.output-head { padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.output-code { margin: 0; padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.65; white-space: pre-wrap; min-height: 280px; color: #D9E2DD; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 12px; }
.info-card h3 { font-size: 1.6rem; }
.info-card p { color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* Simple page hero (lab, kontakt) ---------------------------------------- */
.page-hero { position: relative; padding: 150px 0 64px; overflow: hidden; background: radial-gradient(700px 360px at 80% 0%, rgba(46, 229, 157, .12), transparent 65%), linear-gradient(rgba(244, 242, 236, .03) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(244, 242, 236, .03) 1px, transparent 1px) 0 0 / 44px 44px, var(--coal); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 16px 0 18px; max-width: 16ch; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--mint); }

/* Footer with giant wordmark (Leka) -------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 28px; background: #080B0A; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.foot-grid a:hover { color: var(--chalk); }
.foot-about { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 14px; }
.giant { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 21vw, 19rem); line-height: .8; letter-spacing: -.06em; text-align: center; margin: 64px 0 18px; background: linear-gradient(180deg, var(--chalk) 30%, rgba(244, 242, 236, .08) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 22px; }

/* ===================== HOME (3D atanor) ===================== */
.home-hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--coal); }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero .hin { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px; max-width: 640px; }
.home-hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .94; margin: 20px 0 24px; }
.home-hero h1 .l2 { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mint); letter-spacing: -.01em; }
.home-hero p { color: #C3CBC7; font-size: 1.12rem; max-width: 48ch; margin-bottom: 32px; }
.scroll-hint { position: absolute; z-index: 2; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .28em; color: var(--muted-2); }
.home-hero .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 15, 14, .85) 0%, rgba(11, 15, 14, .35) 45%, transparent 70%), linear-gradient(0deg, var(--coal) 0%, transparent 22%); }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work figure { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work .wm { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.work img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .8s var(--ease); }
.work figure:hover img { transform: scale(1.04); }
.work figcaption { padding: 20px 22px; display: grid; gap: 6px; }
.work figcaption strong { font-family: var(--display); font-size: 1.2rem; }
.work figcaption > span { color: var(--muted); font-size: .93rem; }
.work .tagp { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 15, 14, .82); color: var(--mint); }

/* ===================== SOFTUER (Orbit) ===================== */
.orbit-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: radial-gradient(circle at 70% 50%, #0E2A20, var(--coal) 60%); }
.orbit-hero .hin { position: absolute; z-index: 2; left: max(clamp(18px, 4vw, 40px), calc((100vw - 1200px) / 2 + 40px)); top: 50%; transform: translateY(-50%); max-width: 620px; padding-right: 18px; }
.kicker { font-family: var(--mono); font-size: .78rem; color: var(--mint); letter-spacing: .06em; }
.kicker::before { content: "● "; color: var(--amber); }
.orbit-hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .98; margin: 18px 0; }
.orbit-hero h1 .ln { display: block; }
.orbit-hero h1 .ln:last-child { background: linear-gradient(90deg, var(--mint), var(--chalk) 65%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.orbit-hero p { color: #B9C3BE; font-size: 1.08rem; line-height: 1.65; margin: 0 0 30px; text-shadow: 0 1px 14px rgba(5,8,7,.95), 0 0 2px rgba(5,8,7,.9); }

/* ===================== AKADEMIA (Akademia Kod) ===================== */
.kod-hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: 130px 0 70px; }
.kod-hero .gl { opacity: .9; }
.kod-hero .hgrid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kod-hero h1 { font-size: clamp(2.9rem, 6.8vw, 5.6rem); line-height: .95; margin: 20px 0; }
.kod-hero h1 .ln { display: block; }
.kod-hero h1 .ln:last-child { background: linear-gradient(90deg, var(--mint), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kod-hero p { color: #C3CBC7; font-size: 1.08rem; max-width: 50ch; margin-bottom: 30px; text-shadow: 0 1px 14px rgba(5,8,7,.95), 0 0 2px rgba(5,8,7,.9); }
.term { border-radius: 16px; background: rgba(8, 11, 10, .86); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; backdrop-filter: blur(10px); }
.term .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A3330; }
.term .bar i:first-child { background: #FF6B5E; } .term .bar i:nth-child(2) { background: var(--amber); } .term .bar i:nth-child(3) { background: var(--mint); }
.term pre { margin: 0; padding: 20px; min-height: 190px; font-family: var(--mono); font-size: .92rem; line-height: 1.8; color: #D9E2DD; white-space: pre-wrap; }
.term .ok { color: var(--mint); }
.term .cur { display: inline-block; width: 8px; height: 1.1em; background: var(--mint); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -40px; position: relative; z-index: 3; }
.fmt { padding: 22px; border-radius: 18px; background: rgba(19, 25, 23, .92); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.fmt b { display: block; font-family: var(--display); font-size: 1.25rem; margin-bottom: 4px; }
.fmt span { color: var(--muted); font-size: .9rem; }
.course .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--coal); background: linear-gradient(135deg, var(--mint), var(--amber)); margin-bottom: 8px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.f-tab { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.f-tab.active { background: var(--chalk); color: var(--coal); border-color: var(--chalk); }
details.curriculum { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
details.curriculum summary { cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--mint); font-weight: 600; }
details.curriculum ol { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }
.prog { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.prog details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.prog summary { cursor: pointer; font-family: var(--display); font-size: 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.prog summary::after { content: "+"; color: var(--mint); font-family: var(--mono); }
.prog details[open] summary::after { content: "–"; }
.prog details p { color: var(--muted); margin-top: 10px; }

/* ===================== AUTOMATIZIME (Flowbase) ===================== */
.flow-hero { position: relative; min-height: 96svh; display: grid; place-items: center; text-align: center; padding: 140px 24px 72px; overflow: hidden; background: radial-gradient(ellipse 70% 52% at 50% 16%, rgba(46, 229, 157, .26) 0%, transparent 68%), var(--coal); }
.flow-hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .09; z-index: 0; filter: saturate(.4) hue-rotate(40deg) blur(3px); transform: scale(1.04); }
.flow-hero .hin { position: relative; z-index: 2; max-width: 860px; }
.flow-hero h1 { font-size: clamp(3rem, 6.8vw, 5.6rem); line-height: .96; margin: 22px 0 20px; background: linear-gradient(180deg, #fff 40%, #B8C4BF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow-hero p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.pipe { max-width: 760px; margin: 52px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.pipe-node { background: rgba(19, 25, 23, .85); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px; position: relative; backdrop-filter: blur(8px); }
.pipe-node strong { display: block; font-size: .95rem; margin: 8px 0 4px; }
.pipe-node small { color: var(--muted); font-size: .82rem; }
.pipe-node:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--mint); font-family: var(--mono); z-index: 2; }

/* ===================== MARKETING (Studio Nord) ===================== */
.nord-hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 130px 24px 90px; overflow: hidden; }
.nord-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.nord-hero .vig { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(11, 15, 14, .15) 0%, rgba(11, 15, 14, .86) 78%, var(--coal) 100%); }
.nord-hero .hin { position: relative; z-index: 2; max-width: 1000px; }
.eyebrow-wide { display: inline-block; font-size: .74rem; text-transform: uppercase; letter-spacing: .26em; color: rgba(244, 242, 236, .56); margin-bottom: 22px; }
.plat { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; background: linear-gradient(100deg, #8E9A95 0%, #F4F2EC 28%, #FFFFFF 46%, #BFD9CC 64%, #F4F2EC 82%, #8E9A95 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nord-hero h1 { font-size: clamp(3.6rem, 10vw, 9.4rem); line-height: .9; margin: 0 0 26px; }
.nord-hero p { font-size: 1.1rem; color: rgba(244, 242, 236, .74); max-width: 540px; margin: 0 auto 34px; }
.dive { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(244, 242, 236, .46); }
.sec-h-xl { font-size: clamp(2.8rem, 6.8vw, 6.2rem); line-height: .92; margin: 10px 0 48px; }
.nb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.nbcard { grid-column: span 2; background: rgba(244, 242, 236, .03); border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 290px; transition: background .3s, border-color .3s; }
.nbcard:hover { background: rgba(244, 242, 236, .05); border-color: rgba(46, 229, 157, .4); }
.nbcard.wide { grid-column: span 6; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; min-height: 250px; }
.nbcard.half { grid-column: span 3; }
.nbcard .idx { font-size: .75rem; letter-spacing: .2em; color: rgba(244, 242, 236, .44); }
.nbcard h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); line-height: .95; margin: 14px 0 12px; letter-spacing: -.01em; }
.nbcard p { color: var(--muted); font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pills span { font-size: .74rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: rgba(244, 242, 236, .7); }
.glyph { font-family: var(--serif); font-size: clamp(5rem, 11vw, 9rem); text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(46, 229, 157, .55); line-height: 1; }

/* ===================== VIDEO (Leka) ===================== */
.leka-hero { padding: 150px 0 40px; text-align: center; overflow: hidden; background: radial-gradient(800px 420px at 50% 0%, rgba(244, 183, 64, .1), transparent 70%), var(--coal); }
.leka-hero .sub { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; }
.leka-hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); line-height: .96; letter-spacing: -.04em; margin: 18px auto; max-width: 900px; }
.leka-hero h1 .mu { color: #59645F; }
.leka-hero p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.fan { display: flex; justify-content: center; align-items: center; margin: 60px auto 10px; max-width: 1040px; }
.fcard { width: 260px; flex-shrink: 0; background: var(--surface); padding: 10px; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); margin: 0 -24px; transition: transform .45s var(--ease); position: relative; }
.fcard:nth-child(1) { transform: rotate(-8deg) translateY(22px); }
.fcard:nth-child(2) { transform: rotate(-3deg); }
.fcard:nth-child(3) { transform: rotate(3deg); }
.fcard:nth-child(4) { transform: rotate(8deg) translateY(22px); }
.fcard:hover { transform: rotate(0) translateY(-14px) scale(1.05); z-index: 5; }
.fcard .fm { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; position: relative; }
.fcard img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.fcard .fmt-card { width: 100%; height: 100%; display: grid; place-content: center; gap: 10px; text-align: center; padding: 18px; background: radial-gradient(circle at 50% 30%, rgba(46, 229, 157, .22), transparent 60%), #0E1412; }
.fcard .fmt-card.amber { background: radial-gradient(circle at 50% 30%, rgba(244, 183, 64, .24), transparent 60%), #13110C; }
.fcard .fmt-card b { font-family: var(--display); font-size: 2.6rem; letter-spacing: -.04em; }
.fcard .fmt-card span { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.fcard .cap { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding: 10px 4px 2px; text-align: left; }
.lrows { border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 70px 1fr 1.3fr 140px; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.lrow:hover { background: linear-gradient(90deg, transparent, rgba(244, 183, 64, .05), transparent); }
.lrow .n { font-family: var(--mono); color: var(--muted-2); }
.lrow h3 { font-size: 1.45rem; }
.lrow p { color: var(--muted); }
.lrow .fmtx { font-family: var(--mono); font-size: .78rem; color: var(--amber); text-align: right; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 7px 8px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
  .grid-3, .grid-4, .formats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .workbench, .prog, .kod-hero .hgrid, .foot-grid { grid-template-columns: 1fr; }
  .bcard, .bcard.wide { grid-column: span 3; }
  .nbcard, .nbcard.half { grid-column: span 3; }
  .nbcard.wide { grid-template-columns: 1fr; }
  .glyph { display: none; }
  .lrow { grid-template-columns: 50px 1fr; }
  .lrow p, .lrow .fmtx { grid-column: 2; text-align: left; }
}
@media (max-width: 920px) {
  .pnav { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .main-nav { display: none; position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; border-radius: 22px; background: rgba(11, 15, 14, .96); border: 1px solid var(--line-strong); backdrop-filter: blur(18px); }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 16px; padding: 12px 14px; }
  .menu-toggle { display: inline-flex; }
  .home-hero .shade { background: linear-gradient(0deg, var(--coal) 8%, rgba(11, 15, 14, .55) 55%, rgba(11, 15, 14, .2) 100%); }
  .home-hero .hin { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .grid-3, .grid-4, .grid-2, .work, .formats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .bento, .nb { grid-template-columns: 1fr; }
  .bcard, .bcard.wide, .nbcard, .nbcard.half, .nbcard.wide { grid-column: auto; }
  .pipe { grid-template-columns: 1fr; }
  .pipe-node:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
  .orbit-hero .hin { top: auto; bottom: 48px; transform: none; }
  .orbit-hero .gl { opacity: .5; }
  .fan { flex-wrap: wrap; gap: 12px; }
  .fcard { margin: 0; transform: none !important; width: 46%; }
  .formats { margin-top: 24px; }
  .nav-actions .btn-sm { padding: 7px 11px; font-size: .78rem; }
  .brand-word small { display: none; }
}
@media (max-width: 380px) {
  .nav-actions .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marq > div { animation: none; }
  .pre { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Narrow widths: dim the 3D behind hero text so copy stays readable */
@media (max-width: 1000px) {
  .orbit-hero .gl { opacity: .55; }
  .kod-hero .gl { opacity: .6; }
  .home-hero .gl { opacity: .75; }
}
