/* ============ TERPSTAR STUDIOS ============ */
:root {
  --bg: #040705;
  --bg-2: #07110b;
  --ink: #eef3ec;
  --muted: #93a598;
  --code: #1fe37f;
  --code-dim: #0f6b3c;
  --green: #0f5a32;
  --gold: #f4b93a;
  --gold-2: #ffd978;
  --warm: #e8913a;
  --warm-bg: #140a04;
  --cream: #f6ead2;
  --line: rgba(31, 227, 127, .16);
  --radius: 18px;
  --gutter: clamp(16px, 5vw, 72px);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .9s ease;
}
body.is-intro { overflow: hidden; }
body.warm { background: var(--warm-bg); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(38px, 6.2vw, 92px); }
h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.small { font-size: 12px; color: var(--muted); }
.gold { color: var(--gold); }
.tag { color: var(--code); text-transform: lowercase; margin-bottom: 22px; }
.tag.warm { color: var(--warm); }
::selection { background: var(--code); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  --c: var(--code);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  background: var(--c); color: #03140a;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--c) 70%, transparent); }
.btn:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(238,243,236,.28); }
.btn-ghost:hover { border-color: var(--code); color: var(--code); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-warm { --c: var(--warm); color: #1e0d02; }
.btn-big { padding: 22px 34px; font-size: 18px; }
.btn-big svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- intro ---------- */
#intro { position: fixed; inset: 0; z-index: 60; background: #000; pointer-events: none; }
#intro.gone { opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; color: var(--code);
}
.skip { pointer-events: auto; background: none; border: 1px solid var(--line); color: var(--code); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.skip:hover { background: var(--code); color: #000; }
#bootline::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 61; pointer-events: none; }
#gl.behind { z-index: 2; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--code); transition: transform .25s ease; }
.cursor.hover span { transform: scale(3.2); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--gutter);
  transform: translateY(-110%); transition: transform .8s cubic-bezier(.2,.8,.2,1), background .4s;
}
body.ready .nav { transform: none; }
.nav.solid { background: rgba(4,7,5,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body.warm .nav.solid { background: rgba(20,10,4,.72); border-color: rgba(232,145,58,.18); }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 34px; font-family: var(--f-mono); font-size: 13px; }
.nav-links a { color: var(--muted); transition: color .3s; }
.nav-links a:hover { color: var(--code); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-logo img { height: 34px; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 260vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,5,.92) 0%, rgba(4,7,5,.55) 42%, rgba(4,7,5,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  opacity: 0;
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(70px, 14vh, 150px); max-width: 640px; z-index: 3; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--code); margin-bottom: 22px; opacity: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--code); box-shadow: 0 0 12px var(--code); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero-title { font-size: clamp(52px, 8.4vw, 132px); font-weight: 900; line-height: .95; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-sub { font-size: clamp(16px, 1.3vw, 19px); color: #c7d3ca; max-width: 480px; margin-bottom: 32px; opacity: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3; }
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(var(--code), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- manifesto ---------- */
.manifesto { position: relative; z-index: 3; padding: 22vh var(--gutter) 18vh; max-width: 1400px; margin: 0 auto; }
.manifesto-text { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.6vw, 70px); line-height: 1.12; letter-spacing: -.02em; }
.manifesto-text .w { opacity: .12; transition: none; }

/* ---------- services ---------- */
.services { position: relative; z-index: 3; }
.services-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.services-head { padding: 0 var(--gutter); margin-bottom: 5vh; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.services-head .tag { grid-column: 1 / -1; margin-bottom: 0; }
.services-head h2 { font-size: clamp(36px, 5vw, 76px); }
.rail-progress { width: min(260px, 30vw); height: 2px; background: var(--line); margin-bottom: 14px; }
.rail-progress span { display: block; height: 100%; width: 100%; background: var(--code); transform-origin: left; transform: scaleX(0); }
.rail { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card { width: min(400px, 78vw); perspective: 1000px; }
.card-inner {
  position: relative; height: 100%; min-height: 470px; padding: 32px 30px 28px;
  display: flex; flex-direction: column;
  border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(31,227,127,.14), transparent 55%),
    linear-gradient(160deg, #0a1a10, #050b07);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s;
  overflow: hidden;
}
.card-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(31,227,127,.04) 0 1px, transparent 1px 28px);
}
.card:hover .card-inner { border-color: rgba(31,227,127,.5); }
.card-num { color: var(--code); position: absolute; top: 28px; right: 30px; }
.card-icon { width: 64px; height: 64px; margin-bottom: 34px; transform: translateZ(40px); }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 14px; transform: translateZ(30px); font-size: 26px; }
.card p { color: #b9c8bd; margin-bottom: 22px; transform: translateZ(20px); }
.card ul { list-style: none; padding: 0; margin: 0 0 auto; color: var(--muted); }
.card li { padding: 8px 0; border-top: 1px dashed var(--line); }
.card li::before { content: "> "; color: var(--code); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { color: var(--gold); }
.card-link { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--code); }

/* ---------- pricing ---------- */
.pricing { position: relative; z-index: 3; padding: 18vh var(--gutter) 12vh; max-width: 1400px; margin: 0 auto; }
.pricing-head { max-width: 760px; margin-bottom: 48px; }
.pricing-head h2 { font-size: clamp(38px, 5.4vw, 80px); margin-bottom: 22px; }
.pricing-sub { color: #b9c8bd; font-size: 18px; max-width: 560px; }
.tabs {
  display: flex; gap: 6px; padding: 6px; width: max-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(7,17,11,.7);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 13px; transition: background .3s, color .3s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--code); color: #03140a; font-weight: 600; }
.pricing-note { color: var(--muted); margin: 22px 0 34px; min-height: 1.6em; }
.plans-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plans-panel[hidden] { display: none; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(165deg, #0a1a10, #050b07);
}
.plan.featured {
  border-color: rgba(244,185,58,.55);
  background: radial-gradient(120% 70% at 50% 0%, rgba(244,185,58,.13), transparent 60%), linear-gradient(165deg, #10180d, #060a05);
  box-shadow: 0 30px 70px -40px rgba(244,185,58,.5);
}
.plan-badge { position: absolute; top: -12px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: #1c1302; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.plan h3 { font-size: 22px; margin-bottom: 10px; }
.plan-descr { color: #aebdb2; font-size: 15px; margin-bottom: 24px; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price .amount { font-family: var(--f-display); font-weight: 900; font-size: 58px; line-height: 1; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .3s; }
.plan-price .cur { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--gold); }
.plan-price .per { color: var(--muted); margin-left: 6px; }
.plan-price .from { color: var(--gold); font-size: 15px; margin-right: 2px; align-self: center; }
.plan-price.quote .amount { font-size: 30px; color: var(--gold); letter-spacing: -.02em; }
.plan.has-extra .plan-price .amount { color: var(--gold-2); }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; color: #c7d3ca; }
.plan-list li { padding: 7px 0 7px 24px; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--code); }
.opt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; margin-bottom: 12px; border-radius: 12px; border: 1px dashed rgba(31,227,127,.28); cursor: pointer; transition: border-color .3s, background .3s; }
.opt:hover { border-color: rgba(31,227,127,.6); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #1a2a20; position: relative; transition: background .3s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.opt input:checked + .switch { background: var(--code); }
.opt input:checked + .switch::after { transform: translateX(18px); background: #03140a; }
.opt input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt:has(input:checked) { border-style: solid; background: rgba(31,227,127,.06); }
.opt-text { font-size: 14px; line-height: 1.45; }
.opt-text b { font-weight: 700; }
.opt-text em { font-style: normal; color: var(--gold); font-family: var(--f-mono); font-size: 13px; margin-left: 4px; }
.opt-text small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.plan-btn { margin-top: auto; justify-content: center; }
.opt:last-of-type { margin-bottom: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 30px); opacity: 0;
  padding: 14px 22px; border-radius: 999px; background: var(--code); color: #03140a; font-weight: 600;
  box-shadow: 0 20px 50px -10px rgba(31,227,127,.5); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.own-banner {
  display: flex; align-items: center; gap: 20px; margin: 0 0 40px; padding: 22px 28px;
  border-radius: var(--radius); border: 1px solid rgba(244,185,58,.6);
  background: linear-gradient(100deg, rgba(244,185,58,.16), rgba(244,185,58,.03) 70%);
  box-shadow: 0 20px 60px -35px rgba(244,185,58,.7);
}
.own-banner p { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; color: var(--cream); }
.own-banner strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; color: var(--gold); margin-bottom: 6px; letter-spacing: -.02em; }
.own-icon { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); }
.own-icon svg { width: 30px; height: 30px; fill: none; stroke: #1c1302; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .own-banner { flex-direction: column; align-items: flex-start; padding: 22px; } }

/* ---------- demo ---------- */
.demo { position: relative; z-index: 3; padding: 20vh var(--gutter); }
.demo-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.demo-copy h2 { font-size: clamp(36px, 4.8vw, 72px); margin-bottom: 26px; }
.demo-copy p:last-child { color: #b9c8bd; max-width: 470px; font-size: 18px; }
.terminal { border-radius: 14px; border: 1px solid var(--line); background: #020403; box-shadow: 0 30px 80px -30px rgba(31,227,127,.35); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #1c2a21; }
.terminal-bar i:first-child { background: #e0574f; } .terminal-bar i:nth-child(2) { background: var(--gold); } .terminal-bar i:nth-child(3) { background: var(--code); }
.terminal-bar span { margin-left: 10px; }
#term { margin: 0; padding: 22px 20px; min-height: 330px; color: var(--code); white-space: pre-wrap; line-height: 1.75; font-size: 13.5px; }
#term .ok { color: var(--gold); }
#term .dim { color: var(--muted); }
#term .caret { display: inline-block; width: 8px; height: 1.1em; background: var(--code); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- talks ---------- */
.talks { position: relative; z-index: 3; color: var(--cream); }
.talks-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.talks-bg {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 55%, rgba(232,145,58,.22), transparent 70%);
}
.big4k {
  font-family: var(--f-display); font-weight: 900; font-size: 58vw; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232,145,58,.28);
  transform: scale(.6); opacity: 0; will-change: transform;
}
.viewfinder { position: absolute; inset: clamp(70px, 10vh, 110px) var(--gutter) clamp(28px, 6vh, 60px); pointer-events: none; opacity: 0; }
.viewfinder .c { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(246,234,210,.55); }
.viewfinder .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-rec { position: absolute; top: 14px; left: 50px; display: flex; align-items: center; gap: 8px; color: var(--cream); }
.vf-tc { position: absolute; top: 14px; right: 50px; color: var(--cream); }
.vf-info { position: absolute; bottom: 14px; right: 50px; color: rgba(246,234,210,.6); }
@media (max-width: 600px) { .vf-info { display: none; } }
.talks-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.talks-title h2 { font-size: clamp(26px, min(8.2vw, 11vh), 118px); font-weight: 900; line-height: .95; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.talks-title h2 span { display: block; }
.talks-title .t1 { color: var(--cream); }
.talks-title .tx { color: var(--warm); font-size: .55em; margin: .1em 0; font-weight: 400; }
.talks-title .t2 { color: var(--gold-2); }
.talks-claim { margin-top: clamp(22px, 5vh, 56px); opacity: 0; }
.claim-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 40px); line-height: 1.15; max-width: 900px; margin: 0 auto; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.claim-big span { color: var(--warm); }

.talks-body { max-width: 1300px; margin: 0 auto; padding: 18vh var(--gutter) 10vh; }
.talks-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: 12vh; }
.lead { font-size: clamp(20px, 2vw, 30px); line-height: 1.4; font-weight: 500; }
.talks-status { display: inline-flex; align-items: center; gap: 12px; justify-self: end; padding: 12px 18px; border: 1px solid rgba(232,145,58,.35); border-radius: 999px; color: var(--warm); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 14px #ff3b2f; animation: pulse 1.2s infinite; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(232,145,58,.2); border: 1px solid rgba(232,145,58,.2); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--warm-bg); padding: 40px 32px 46px; }
.pillar span { color: var(--warm); display: block; margin-bottom: 40px; }
.pillar h3 { margin-bottom: 12px; color: var(--gold-2); }
.pillar p { color: #d6c6aa; }
@media (max-width: 860px) {
  .talks-intro { grid-template-columns: 1fr; } .talks-status { justify-self: start; }
  .pillars { grid-template-columns: 1fr; }
}

.marquee { padding: 4vh 0 8vh; overflow: hidden; border-block: 1px solid rgba(232,145,58,.18); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; will-change: transform; padding-top: 4vh; }
.marquee span { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 7vw, 110px); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--gold-2); white-space: nowrap; transition: color .4s; }
.marquee span:hover { color: var(--gold-2); }
.marquee i { font-style: normal; color: var(--warm); font-size: clamp(22px, 3vw, 44px); }

.talks-cta { text-align: center; padding: 8vh var(--gutter) 20vh; max-width: 760px; margin: 0 auto; }
.talks-cta h3 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 800; margin-bottom: 18px; color: var(--gold-2); }
.talks-cta p { color: #d6c6aa; margin-bottom: 34px; font-size: 18px; }

/* ---------- method ---------- */
.method { position: relative; z-index: 3; padding: 20vh var(--gutter) 16vh; max-width: 1400px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 9vh 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: var(--p, 0%); background: var(--code); box-shadow: 0 0 10px var(--code); }
.steps span { color: var(--code); display: block; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: #a9b9ad; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 3; padding: 12vh var(--gutter) 14vh; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 90%; background: radial-gradient(closest-side, rgba(31,227,127,.16), transparent); pointer-events: none; }
.contact-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; position: relative; }
.contact-copy h2 { margin-bottom: 26px; }
.contact-copy > p { color: #b9c8bd; max-width: 520px; margin-bottom: 38px; font-size: 18px; }
#tg-note { margin-top: 16px; }
.contact-mascot { perspective: 900px; }
.contact-mascot img { width: 100%; height: auto; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(31,227,127,.25)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-mascot img { max-width: 340px; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 3; padding: 60px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 54px; width: auto; max-width: none; }
.footer-links { display: flex; gap: 26px; }
.footer-links a:hover { color: var(--code); }
.footer .small { width: 100%; }

/* ---------- reveal helper ---------- */
.rv { opacity: 0; transform: translateY(40px); }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .hero-video, .hero-shade, .eyebrow, .hero-sub, .hero-cta { opacity: 1 !important; transform: none !important; }
  .hero-title .line > span { transform: none !important; }
  .big4k, .viewfinder { opacity: 1 !important; transform: none !important; }
  .talks-claim { opacity: 1; }
  .manifesto-text .w { opacity: 1 !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- menu telefono ---------- */
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(4,7,5,.6); position: relative; cursor: pointer; margin-left: 10px; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s cubic-bezier(.2,.8,.2,1), top .4s; }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center; gap: 44px;
  padding: 100px var(--gutter) 40px; background: rgba(4,7,5,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s cubic-bezier(.7,0,.2,1);
}
body.warm .mmenu { background: rgba(20,10,4,.96); }
.mmenu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mmenu nav { display: flex; flex-direction: column; gap: 6px; }
.mmenu nav a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 9vw, 48px); letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mmenu nav a span { color: var(--code); font-size: 12px; font-weight: 400; }
.mmenu nav a[aria-current="page"] { color: var(--gold); }
.mmenu .btn { align-self: flex-start; }
body.menu-open { overflow: hidden; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { padding: 14px var(--gutter); }
  .nav > .btn-sm { display: none; }
}

/* ---------- rifiniture telefono (9:16) ---------- */
@media (max-aspect-ratio: 4/5) {
  .hero-video { object-position: 50% 0%; transform-origin: 50% 20%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(4,7,5,.9) 30%, rgba(4,7,5,.35) 58%, rgba(4,7,5,0) 75%); }
  .hero-copy { left: var(--gutter); right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom)); }
  .eyebrow { margin-bottom: 14px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 64px); margin-bottom: 14px; }
  .hero-sub { font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 13px 18px; font-size: 13px; }
  .scroll-hint { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .services-head { grid-template-columns: 1fr; margin-bottom: 3svh; }
  .rail-progress { width: 100%; margin: 6px 0 0; }
  .rail { gap: 14px; }
  .card { width: 82vw; }
  .card-inner { min-height: 0; padding: 26px 22px 22px; }
  .card-icon { width: 48px; height: 48px; margin-bottom: 22px; }
  .pricing { padding-top: 12vh; }
  .own-banner strong { font-size: 24px; }
  .plan { padding: 30px 22px 24px; }
  .plan-price .amount { font-size: 50px; }
  .plan-descr { min-height: 0; }
  .demo { padding: 12vh var(--gutter); }
  #term { font-size: 12px; min-height: 290px; padding: 18px 14px; }
  .method { padding: 12vh var(--gutter) 10vh; }
  .steps { margin-top: 6vh; }
  .contact { padding-top: 8vh; }
  .contact-mascot img { max-width: 300px; }
  .btn-big { padding: 18px 26px; font-size: 16px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .talks-body { padding-top: 10vh; }
  .talks-intro { margin-bottom: 7vh; }
  .vf-rec, .vf-tc { top: 10px; } .vf-rec { left: 44px; } .vf-tc { right: 44px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .card ul { display: none; }
  .card p { margin-bottom: 10px; }
  .services-head h2 { font-size: 32px; }
}
/* tap senza ritardo e senza evidenziazione grigia */
a, button, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (max-aspect-ratio: 4/5) and (max-height: 620px) { .eyebrow { display: none; } }
