/* ============================================================
   Arthur Romanov · Professional Studio — public site
   Monochrome luxe. Silver-on-black, thin wide-tracked geometric
   type, aurora light streaks + floating ghost-words atmosphere.
   ============================================================ */

:root{
  --bg:        #060607;
  --bg-2:      #0a0a0c;
  --panel:     #0e0e11;
  --raise:     rgba(255,255,255,.022);
  --text:      #f2f2f5;
  --silver:    #c7c8cd;
  --muted:     rgba(242,242,245,.52);
  --faint:     rgba(242,242,245,.30);
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.055);
  --glow-cool: rgba(168,196,232,.16);
  --glow-violet:rgba(150,150,210,.12);

  --radius:    16px;
  --radius-sm: 11px;
  --ease:      cubic-bezier(.22,1,.36,1);
  --maxw:      1180px;

  --display:   "Montserrat", system-ui, sans-serif;
  --sans:      "Inter", system-ui, -apple-system, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, Menlo, monospace;
  --track:     .26em;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:clip; }
body{
  font-family:var(--sans); background:var(--bg); color:var(--text);
  line-height:1.6; overflow-x:clip; width:100%; max-width:100%; min-height:100vh; opacity:1;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button{ font-family:inherit; cursor:pointer; color:inherit; }
::selection{ background:rgba(255,255,255,.18); }
:focus-visible{ outline:1px solid rgba(255,255,255,.6); outline-offset:3px; }
body.leaving{ opacity:0; transition:opacity .24s var(--ease); }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 clamp(20px,5vw,44px); }

/* ---------- Atmospheric background ---------- */
.bg{ position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;
  background:radial-gradient(125% 80% at 50% -12%, #141419 0%, #0a0a0c 42%, #060607 72%); }
.aurora{ position:absolute; inset:0; }
.aurora i{
  position:absolute; top:-12%; height:124%; width:clamp(90px,12vw,180px);
  filter:blur(46px); mix-blend-mode:screen; opacity:.55; border-radius:50%;
  background:linear-gradient(180deg, transparent, rgba(196,210,234,.22) 45%, rgba(196,210,234,.05) 70%, transparent);
  animation:streak 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1){ left:8%;  animation-delay:0s;   opacity:.5; }
.aurora i:nth-child(2){ left:24%; animation-delay:-4s;  height:110%; background:linear-gradient(180deg,transparent,rgba(150,150,210,.18),transparent); }
.aurora i:nth-child(3){ left:42%; animation-delay:-8s;  opacity:.65; width:clamp(120px,16vw,240px); }
.aurora i:nth-child(4){ left:62%; animation-delay:-2s;  background:linear-gradient(180deg,transparent,rgba(168,196,232,.2),transparent); }
.aurora i:nth-child(5){ left:80%; animation-delay:-6s;  opacity:.45; }
.aurora::after{ content:""; position:absolute; right:-8%; top:8%; width:46vmax; height:46vmax;
  background:radial-gradient(circle, var(--glow-violet), transparent 62%); filter:blur(20px); }
@keyframes streak{ from{ transform:translateY(-3%) scaleY(1); opacity:.4; } to{ transform:translateY(3%) scaleY(1.08); opacity:.7; } }

.ghosts{ position:absolute; inset:0; }
.ghost{
  position:absolute; font-family:var(--display); font-weight:300; white-space:nowrap;
  color:#fff; opacity:.05; filter:blur(1.4px); letter-spacing:.06em; user-select:none;
  animation:floaty 22s ease-in-out infinite alternate;
}
.ghost.far{ opacity:.034; filter:blur(3px); }
.ghost.near{ opacity:.07; filter:blur(.6px); }
@keyframes floaty{ from{ transform:translateY(8px); } to{ transform:translateY(-8px); } }
@media (prefers-reduced-motion:reduce){ .aurora i,.ghost{ animation:none; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:46px; padding:0 24px; border:1px solid transparent; border-radius:100px;
  font-family:var(--display); font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  background:var(--text); color:#08080a; transition:transform .22s var(--ease), background .22s, color .22s, border-color .22s, opacity .22s;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-1px); background:#fff; }
.btn svg{ width:15px; height:15px; }
.btn.ghost{ background:transparent; color:var(--text); border-color:var(--line); }
.btn.ghost:hover{ background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.35); }
.btn.sm{ height:38px; padding:0 17px; font-size:11px; }
.btn.lg{ height:52px; padding:0 30px; font-size:12.5px; }
.btn.block{ width:100%; }

/* ---------- Top nav ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:100; height:74px; display:flex; align-items:center;
  transition:background .3s, border-color .3s, height .3s; border-bottom:1px solid transparent; }
.nav .wrap{ display:flex; align-items:center; gap:24px; }
.nav.scrolled{ height:62px; background:rgba(6,6,7,.72); backdrop-filter:blur(18px) saturate(130%); -webkit-backdrop-filter:blur(18px) saturate(130%); border-bottom:1px solid var(--line-2); }
.brand{ display:flex; align-items:center; flex-shrink:0; color:var(--text); }
.brand .lockup{ height:30px; width:auto; }
/* theme-aware signature: white on dark theme, dark signature on light theme */
.lockup-themed .sig-l{ display:none; }
.lockup-themed .sig-d{ display:block; }
[data-theme="light"] .lockup-themed .sig-d{ display:none; }
[data-theme="light"] .lockup-themed .sig-l{ display:block; }
.brand .txt{ display:flex; flex-direction:column; line-height:1; margin-left:11px; }
.brand .txt b{ font-family:var(--display); font-weight:400; font-size:15px; letter-spacing:.2em; text-transform:uppercase; }
.brand .txt span{ font-size:8.5px; letter-spacing:.34em; text-transform:uppercase; color:var(--muted); margin-top:4px; }
.nav-links{ display:flex; align-items:center; gap:2px; margin:0 auto; }
.nav-links a{ font-family:var(--display); font-size:12px; font-weight:400; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); padding:10px 16px; border-radius:8px; transition:color .2s, background .2s; }
.nav-links a:hover{ color:var(--text); }
.nav-right{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.nav-right .tel{ font-size:12.5px; color:var(--muted); font-family:var(--mono); }
.nav-right .tel:hover{ color:var(--text); }
.nav-toggle{ display:none; width:42px; height:42px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--text); align-items:center; justify-content:center; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:96vh; min-height:96svh; display:flex; align-items:center; justify-content:center; text-align:center; padding:140px 0 90px; }
.hero .wrap{ position:relative; z-index:3; }
.hero .mark{ width:66px; height:66px; margin:0 auto 30px; color:var(--text); opacity:.92; }
.hero .mark svg{ width:66px; height:66px; }
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:var(--display); font-size:11.5px; font-weight:500; letter-spacing:var(--track); text-transform:uppercase; color:var(--silver); margin-bottom:30px; }
.eyebrow .ln{ width:34px; height:1px; background:linear-gradient(90deg,transparent,var(--silver)); }
.eyebrow .ln.r{ background:linear-gradient(90deg,var(--silver),transparent); }
h1.head{ font-family:var(--display); font-weight:200; font-size:clamp(38px,6.6vw,82px); line-height:1.06; letter-spacing:-.01em; max-width:18ch; margin:0 auto 26px; }
h1.head b{ font-weight:500; }
h1.head .thin{ color:var(--silver); }
.hero .sub{ font-size:clamp(15px,1.55vw,18.5px); color:var(--muted); line-height:1.65; max-width:58ch; margin:0 auto 38px; font-weight:300; }
.hero .cta{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; }
.scroll-cue{ position:absolute; bottom:30px; left:50%; transform:translateX(-50%); z-index:3; display:flex; flex-direction:column; align-items:center; gap:9px;
  font-family:var(--display); font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:var(--faint); }
.scroll-cue .d{ width:1px; height:34px; background:linear-gradient(180deg,var(--silver),transparent); animation:cue 2.2s var(--ease) infinite; }
@keyframes cue{ 0%,100%{ opacity:.3; transform:scaleY(.7); } 50%{ opacity:1; transform:scaleY(1); } }

/* ---------- Sections ---------- */
.section{ position:relative; z-index:2; padding:clamp(76px,12vh,160px) 0; }
.section.tight{ padding:clamp(46px,7vh,84px) 0; }
.sec-head{ max-width:60ch; margin-bottom:58px; }
.sec-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.kicker{ display:inline-block; font-family:var(--display); font-size:11px; font-weight:500; letter-spacing:var(--track); text-transform:uppercase; color:var(--silver); margin-bottom:20px; }
h2.sec{ font-family:var(--display); font-weight:200; font-size:clamp(27px,4vw,46px); line-height:1.12; letter-spacing:-.01em; margin-bottom:18px; }
h2.sec b{ font-weight:500; }
.section .dek{ color:var(--muted); font-size:clamp(15px,1.5vw,17.5px); line-height:1.65; font-weight:300; }

/* divider line accent */
.rule{ width:100%; height:1px; background:linear-gradient(90deg,transparent,var(--line),transparent); }

/* trust strip */
.trust{ border-top:1px solid var(--line-2); border-bottom:1px solid var(--line-2); }
.trust .wrap{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.trust .t{ text-align:center; padding:6px 0; }
.trust .t b{ display:block; font-family:var(--display); font-weight:200; font-size:clamp(28px,3.6vw,42px); letter-spacing:.01em; }
.trust .t span{ font-family:var(--display); font-size:10.5px; font-weight:400; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-top:8px; display:block; }
@media (max-width:640px){ .trust .wrap{ grid-template-columns:1fr 1fr; gap:30px 20px; } }

/* card grids */
.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-2); border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden; }
.grid3 .card{ border-radius:0; border:0; background:var(--bg); }
.grid2{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
@media (max-width:900px){ .grid3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid3{ grid-template-columns:1fr; } .grid2{ grid-template-columns:1fr; } }

.card{ position:relative; padding:32px 30px; background:var(--raise); border:1px solid var(--line); border-radius:var(--radius);
  transition:background .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.card:hover{ background:rgba(255,255,255,.045); }
.grid2 .card:hover{ transform:translateY(-3px); border-color:rgba(255,255,255,.2); }
.card .ic{ width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--line); border-radius:11px; color:var(--text); margin-bottom:22px; }
.card .ic svg{ width:21px; height:21px; }
.card h3{ font-family:var(--display); font-weight:400; font-size:17px; letter-spacing:.02em; margin-bottom:11px; }
.card p{ color:var(--muted); font-size:14px; line-height:1.65; font-weight:300; }
.card .meta{ font-family:var(--display); font-size:10.5px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--silver); margin-bottom:14px; }
.card .tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.card .tags span{ font-family:var(--mono); font-size:10.5px; color:var(--muted); padding:4px 10px; border-radius:100px; border:1px solid var(--line); }
.card .arrow{ display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-family:var(--mono); font-size:12px; color:var(--silver); }
a.card{ display:block; }
.card{ overflow:hidden; }
.card-cover{ margin:-32px -30px 22px; height:176px; background:#0c0c0f center/cover no-repeat; border-bottom:1px solid var(--line); }

/* split feature */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,5vw,72px); align-items:center; }
@media (max-width:880px){ .split{ grid-template-columns:1fr; gap:38px; } }
.feat-list{ margin-top:32px; display:flex; flex-direction:column; gap:2px; }
.feat-list .f{ display:flex; gap:16px; padding:18px 0; border-top:1px solid var(--line-2); }
.feat-list .f:last-child{ border-bottom:1px solid var(--line-2); }
.feat-list .f .fi{ width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; color:var(--silver); }
.feat-list .f .fi svg{ width:19px; height:19px; }
.feat-list .f h4{ font-family:var(--display); font-weight:400; font-size:15px; letter-spacing:.02em; margin-bottom:4px; }
.feat-list .f p{ color:var(--muted); font-size:13.6px; line-height:1.6; font-weight:300; }

.panel-card{ position:relative; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:linear-gradient(180deg,#0d0d10,#08080a); padding:34px 32px; }
.panel-card::before{ content:""; position:absolute; right:-30%; top:-40%; width:80%; height:120%; background:radial-gradient(circle,var(--glow-cool),transparent 60%); pointer-events:none; }
.panel-card .pc-mark{ position:absolute; right:24px; top:22px; width:30px; height:30px; color:rgba(255,255,255,.16); }
.metric-row{ position:relative; display:flex; gap:14px; margin-bottom:24px; }
.metric{ flex:1; text-align:left; }
.metric b{ display:block; font-family:var(--display); font-weight:200; font-size:30px; letter-spacing:.01em; }
.metric span{ font-family:var(--display); font-size:9.5px; font-weight:400; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-top:6px; display:block; }
.stat-line{ position:relative; font-family:var(--mono); font-size:12.5px; color:var(--muted); padding:11px 0; border-top:1px solid var(--line-2); display:flex; gap:12px; align-items:center; }
.stat-line .ok{ color:var(--silver); }

/* process steps */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-2); border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden; }
@media (max-width:760px){ .steps{ grid-template-columns:1fr; } }
.step{ padding:34px 30px; background:var(--bg); }
.step .n{ font-family:var(--display); font-weight:200; font-size:34px; color:var(--silver); margin-bottom:18px; letter-spacing:.02em; }
.step h4{ font-family:var(--display); font-weight:400; font-size:16px; letter-spacing:.02em; margin-bottom:10px; }
.step p{ color:var(--muted); font-size:13.8px; line-height:1.65; font-weight:300; }

/* new age of tech */
.na-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:8px; }
@media (max-width:900px){ .na-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .na-grid{ grid-template-columns:1fr; } }
.na-card{ position:relative; padding:30px 28px; border:1px solid var(--line); border-radius:var(--radius); background:var(--raise); transition:background .3s, border-color .3s, transform .3s var(--ease); overflow:hidden; }
.na-card::after{ content:""; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(420px 200px at 18% -10%, rgba(255,255,255,.06), transparent 70%); opacity:0; transition:opacity .4s; pointer-events:none; }
.na-card:hover{ transform:translateY(-4px); border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.045); }
.na-card:hover::after{ opacity:1; }
.na-ic{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--line-2); color:var(--text); margin-bottom:18px; transition:border-color .3s; }
.na-ic svg{ width:21px; height:21px; }
.na-card:hover .na-ic{ border-color:rgba(255,255,255,.35); }
.na-card h4{ font-family:var(--display); font-weight:400; font-size:16px; letter-spacing:.02em; margin-bottom:9px; }
.na-card p{ color:var(--muted); font-size:13.8px; line-height:1.66; font-weight:300; }
.na-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:34px; }

/* engage bar (thumbs + share) — shared by article + project pages */
.art-engage{ display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; margin:30px 0 0; padding-top:22px; border-top:1px solid var(--line-2); }
.vote{ display:flex; align-items:center; gap:10px; }
.vote-l,.share-l{ font-size:12.5px; color:var(--faint); }
.vbtn{ display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--silver); background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:100px; padding:7px 13px; cursor:pointer; transition:.15s; }
.vbtn:hover{ border-color:rgba(255,255,255,.4); color:var(--text); }
.vbtn.on{ background:var(--text); color:#08080a; border-color:var(--text); }
.vbtn svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.share{ display:flex; align-items:center; gap:8px; }
.sh{ width:34px; height:34px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line); color:var(--silver); font-family:var(--display); font-size:14px; text-decoration:none; transition:.15s; cursor:pointer; }
.sh:hover{ border-color:rgba(255,255,255,.45); color:var(--text); transform:translateY(-1px); }
.sh.copied{ background:var(--text); color:#08080a; }
[data-theme="light"] .vbtn{ background:rgba(0,0,0,.03); }
[data-theme="light"] .vbtn:hover{ border-color:rgba(0,0,0,.4); }
[data-theme="light"] .vbtn.on{ color:#fff; }
[data-theme="light"] .sh:hover{ border-color:rgba(0,0,0,.45); }
[data-theme="light"] .sh.copied{ color:#fff; }
[data-theme="light"] .na-card:hover{ background:rgba(0,0,0,.03); border-color:rgba(0,0,0,.2); }
[data-theme="light"] .na-card::after{ background:radial-gradient(420px 200px at 18% -10%, rgba(0,0,0,.05), transparent 70%); }
[data-theme="light"] .na-card:hover .na-ic,[data-theme="light"] .na-ic{ border-color:var(--line-2); }

/* posts */
.posts{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .posts{ grid-template-columns:1fr; } }
.post{ display:flex; flex-direction:column; padding:30px; border:1px solid var(--line); border-radius:var(--radius); background:var(--raise); transition:background .3s, border-color .3s, transform .25s; }
.post:hover{ background:rgba(255,255,255,.045); border-color:rgba(255,255,255,.2); transform:translateY(-3px); }
.post .pc{ font-family:var(--display); font-size:10px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--silver); }
.post h3{ font-family:var(--display); font-weight:400; font-size:18px; letter-spacing:.01em; margin:14px 0 12px; line-height:1.35; }
.post p{ color:var(--muted); font-size:13.6px; line-height:1.6; flex:1; font-weight:300; }
.post .by{ font-family:var(--mono); font-size:11.5px; color:var(--faint); margin-top:18px; }
.post{ overflow:hidden; }
.post-cover{ margin:-30px -30px 18px; height:160px; background:#0c0c0f center/cover no-repeat; border-bottom:1px solid var(--line); }

/* big CTA */
.cta-block{ position:relative; border:1px solid var(--line); border-radius:22px; overflow:hidden; padding:clamp(48px,8vw,90px) 30px; text-align:center; background:linear-gradient(180deg,#0d0d10,#08080a); }
.cta-block::before{ content:""; position:absolute; inset:0; background:radial-gradient(60% 80% at 50% 0%, var(--glow-cool), transparent 65%); pointer-events:none; }
.cta-block > *{ position:relative; z-index:2; }
.cta-block .mk{ width:54px; height:54px; margin:0 auto 24px; color:var(--text); opacity:.9; }
.cta-block h2{ font-family:var(--display); font-weight:200; font-size:clamp(28px,4.4vw,48px); letter-spacing:-.01em; line-height:1.1; margin-bottom:16px; }
.cta-block h2 b{ font-weight:500; }
.cta-block p{ color:var(--muted); font-size:16.5px; max-width:48ch; margin:0 auto 30px; font-weight:300; }
.cta-block .cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Slide-in sheets ---------- */
.scrim{ position:fixed; inset:0; z-index:200; background:rgba(3,3,4,.66); backdrop-filter:blur(5px); opacity:0; pointer-events:none; transition:opacity .35s var(--ease); }
.scrim.on{ opacity:1; pointer-events:auto; }
.sheet-wrap{ position:fixed; inset:0; z-index:210; display:flex; justify-content:flex-end; pointer-events:none; overflow:hidden; }
.sheet{ width:min(640px,100%); height:100%; overflow-y:auto; background:var(--bg-2); border-left:1px solid var(--line); transform:translateX(100%); transition:transform .5s var(--ease); padding:32px clamp(20px,3.4vw,42px) 60px; }
.sheet-wrap.on{ pointer-events:auto; }
.sheet-wrap.on .sheet{ transform:translateX(0); }
.sheet-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:28px; padding-bottom:24px; border-bottom:1px solid var(--line-2); }
.sheet-head .k{ font-family:var(--display); font-size:10.5px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--silver); margin-bottom:12px; }
.sheet-head h3{ font-family:var(--display); font-weight:200; font-size:clamp(22px,3.2vw,30px); line-height:1.15; letter-spacing:-.01em; }
.sheet-head p{ color:var(--muted); margin-top:11px; line-height:1.6; font-size:14px; font-weight:300; }
.sheet-head .x{ flex-shrink:0; width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--text); font-size:15px; display:grid; place-items:center; transition:background .2s, transform .2s; }
.sheet-head .x:hover{ background:rgba(255,255,255,.08); transform:rotate(90deg); }

/* forms */
.field{ margin-bottom:15px; }
.field label{ display:block; font-family:var(--display); font-size:10.5px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:9px; }
.field input,.field select,.field textarea{ width:100%; background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:11px; padding:13px 15px; font-size:14.5px; font-family:var(--sans); color:var(--text); transition:border-color .2s, box-shadow .2s, background .2s; -webkit-appearance:none; appearance:none; }
.field textarea{ min-height:120px; resize:vertical; }
.field input::placeholder,.field textarea::placeholder{ color:var(--faint); }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.055); box-shadow:0 0 0 3px rgba(255,255,255,.06); }
.field select{ background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path stroke='%23999' stroke-width='1.5' d='m1 1 5 5 5-5'/></svg>"); background-repeat:no-repeat; background-position:right 15px center; padding-right:38px; }
.frow{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .frow{ grid-template-columns:1fr; } }
.note-ok{ padding:14px 16px; border-radius:12px; background:rgba(255,255,255,.05); border:1px solid var(--line); margin-bottom:16px; font-size:14px; }
.contact-meta{ display:flex; gap:28px; flex-wrap:wrap; margin-top:26px; padding-top:24px; border-top:1px solid var(--line-2); font-size:13.5px; color:var(--muted); }
.contact-meta .l{ font-family:var(--display); font-size:10px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); margin-bottom:6px; }

/* reveal */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; } }

/* ---------- Footer ---------- */
.foot{ position:relative; z-index:2; border-top:1px solid var(--line-2); padding:70px 0 40px; margin-top:30px; }
.foot-cols{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:38px; padding-bottom:44px; border-bottom:1px solid var(--line-2); }
@media (max-width:760px){
  .foot-cols{ grid-template-columns:1fr 1fr; gap:32px 24px; }
  .foot-col:first-child{ grid-column:1 / -1; }
  .foot-nl{ max-width:none; width:100%; }
}
@media (max-width:460px){
  .foot-cols{ grid-template-columns:1fr; gap:30px; }
  .foot-bottom{ flex-direction:column; align-items:flex-start; gap:14px; }
}
.foot-col .brand{ margin-bottom:6px; }
.foot-col h5{ font-family:var(--display); font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--faint); margin-bottom:18px; font-weight:500; }
.foot-col a,.foot-col p{ display:block; color:var(--muted); font-size:13.6px; line-height:2.05; transition:color .2s; }
.foot-col a:hover{ color:var(--text); }
.foot-about{ color:var(--muted); font-size:13.6px; line-height:1.7; margin:16px 0; max-width:34ch; font-weight:300; }
.foot-nl{ display:flex; gap:8px; max-width:340px; margin-top:6px; }
.foot-nl input{ flex:1; background:rgba(255,255,255,.04); border:1px solid var(--line); border-radius:100px; padding:11px 16px; color:var(--text); font-size:13.5px; }
.foot-nl input:focus{ outline:none; border-color:rgba(255,255,255,.4); }
.parent-co{ font-family:var(--mono); font-size:11px; color:var(--faint); margin-top:10px; }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-top:28px; font-size:12.5px; color:var(--faint); }
.foot-bottom .links{ display:flex; gap:20px; flex-wrap:wrap; }
.foot-bottom a:hover{ color:var(--text); }

/* ---------- Lenis momentum scroll (desktop only) ---------- */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }
.lenis.lenis-smooth [data-lenis-prevent]{ overscroll-behavior:contain; }
.lenis.lenis-stopped{ overflow:hidden; }
.lenis.lenis-smooth iframe{ pointer-events:none; }

/* ---------- responsive nav ---------- */
@media (max-width:860px){
  .nav .wrap{ gap:12px; }
  .nav-right{ margin-left:auto; }
  .nav-links{ position:fixed; top:62px; left:0; right:0; flex-direction:column; gap:2px; padding:16px 22px 24px; margin:0;
    background:rgba(6,6,7,.97); backdrop-filter:blur(18px); border-bottom:1px solid var(--line);
    transform:translateY(-130%); transition:transform .35s var(--ease); }
  .nav-links.open{ transform:none; }
  .nav-links a{ width:100%; padding:14px; font-size:13px; }
  .nav-right .tel{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- mobile polish ---------- */
@media (max-width:680px){
  .hero{ min-height:auto; padding:128px 0 70px; }
  .hero .mark, .hero .mark svg{ width:56px; height:56px; }
  .eyebrow{ margin-bottom:24px; }
  .eyebrow .ln{ width:22px; }
  h1.head{ font-size:clamp(32px,9vw,46px); }
  .card{ padding:26px 24px; }
  .card-cover{ margin:-26px -24px 18px; height:150px; }
  .panel-card{ padding:26px 22px; }
  .metric-row{ flex-wrap:wrap; gap:18px 14px; }
  .metric{ flex:1 1 40%; }
  .metric b{ font-size:26px; }
  /* tame the ghost-words so they never crowd small screens */
  .ghost{ font-size:18px !important; opacity:.045; filter:blur(2px); }
  .ghost.near{ opacity:.06; }
  .ghost.far{ opacity:.03; }
  .sheet{ padding:26px 18px 50px; }
  .cta-block{ padding:44px 22px; }
}
@media (max-width:380px){
  .nav-right .btn.sm{ padding:0 13px; font-size:10px; letter-spacing:.1em; }
  .brand .lockup{ height:24px; }
  h1.head{ font-size:clamp(28px,8.6vw,40px); }
}

/* ---------- Project detail page ---------- */
.pd-wrap{ position:relative; z-index:2; max-width:960px; margin:0 auto; padding:130px clamp(20px,5vw,40px) 90px; }
.pd-back{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:12px; letter-spacing:.06em; color:var(--muted); margin-bottom:30px; }
.pd-back:hover{ color:var(--text); }
.pd-kicker{ display:block; font-family:var(--display); font-size:11px; font-weight:500; letter-spacing:var(--track); text-transform:uppercase; color:var(--silver); margin-bottom:16px; }
.pd-title{ font-family:var(--display); font-weight:200; font-size:clamp(32px,5.6vw,60px); line-height:1.05; letter-spacing:-.01em; margin-bottom:18px; }
.pd-blurb{ color:var(--muted); font-size:clamp(15px,1.7vw,19px); font-weight:300; line-height:1.65; max-width:62ch; }
.pd-meta{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; margin:28px 0 40px; }
.pd-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.pd-tags span{ font-family:var(--mono); font-size:11px; color:var(--muted); padding:6px 12px; border-radius:100px; border:1px solid var(--line); }
.pd-lead{ width:100%; aspect-ratio:16/9; border-radius:var(--radius); border:1px solid var(--line); background:#0c0c0f center/cover no-repeat; cursor:zoom-in; }
.pd-gallery{ display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin-top:14px; }
.pd-thumb{ aspect-ratio:4/3; border-radius:12px; border:1px solid var(--line); background:#0c0c0f center/cover no-repeat; cursor:zoom-in; transition:border-color .2s, transform .2s; }
.pd-thumb:hover{ border-color:rgba(255,255,255,.4); transform:translateY(-2px); }
.pd-noimg{ text-align:center; padding:70px 20px; border:1px solid var(--line-2); border-radius:var(--radius); color:var(--faint); }
.pd-noimg svg{ margin:0 auto 16px; opacity:.5; }
.pd-noimg p{ font-weight:300; }
.pd-cta{ text-align:center; margin-top:70px; padding-top:50px; border-top:1px solid var(--line-2); }
.pd-cta h2{ font-family:var(--display); font-weight:200; font-size:clamp(24px,3.4vw,38px); letter-spacing:-.01em; }

/* ---------- Lightbox ---------- */
.lightbox{ position:fixed; inset:0; z-index:300; background:rgba(4,4,6,.92); display:flex; align-items:center; justify-content:center; padding:30px; opacity:0; pointer-events:none; transition:opacity .3s var(--ease); }
.lightbox.on{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:10px; box-shadow:0 40px 100px -30px rgba(0,0,0,.9); }
.lb-close{ position:absolute; top:22px; right:24px; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:rgba(255,255,255,.05); color:var(--text); font-size:17px; display:grid; place-items:center; transition:background .2s; }
.lb-close:hover{ background:rgba(255,255,255,.14); }
@media (max-width:560px){ .pd-lead{ aspect-ratio:4/3; } }

/* ---------- Floating assistant launcher ---------- */
.ag-launch{ position:fixed; right:22px; bottom:22px; z-index:120; display:inline-flex; align-items:center; gap:9px; height:50px; padding:0 22px 0 16px; border-radius:100px; background:var(--text); color:#08080a; font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; box-shadow:0 16px 40px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); transition:transform .2s var(--ease); }
.ag-launch:hover{ transform:translateY(-2px); }
.ag-launch-ic{ width:22px; height:22px; display:grid; place-items:center; }
.ag-launch-ic svg{ width:20px; height:20px; }
@media (max-width:560px){ .ag-launch{ right:16px; bottom:16px; height:52px; width:52px; padding:0; justify-content:center; } .ag-launch-tx{ display:none; } }

/* ============================================================
   Custom vertical scrollbar — monochrome, slim, on-brand
   ============================================================ */
html{ scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.20) transparent; }
::-webkit-scrollbar{ width:12px; height:12px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.10));
  border-radius:100px; border:3px solid transparent; background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,rgba(255,255,255,.40),rgba(255,255,255,.20));
  background-clip:padding-box;
}
::-webkit-scrollbar-corner{ background:transparent; }

/* ============================================================
   Theme toggle control (injected into the nav by site.js)
   ============================================================ */
.theme-toggle{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  border:1px solid var(--line); background:transparent; color:var(--muted);
  display:grid; place-items:center;
  transition:color .2s, border-color .2s, background .2s, transform .5s var(--ease);
}
.theme-toggle:hover{ color:var(--text); border-color:rgba(255,255,255,.34); background:rgba(255,255,255,.05); transform:rotate(18deg); }
.theme-toggle svg{ width:17px; height:17px; }
.theme-toggle .ic-sun{ display:none; }
[data-theme="light"] .theme-toggle .ic-sun{ display:block; }
[data-theme="light"] .theme-toggle .ic-moon{ display:none; }
@media (max-width:380px){ .theme-toggle{ width:34px; height:34px; } }

/* ============================================================
   LIGHT THEME VARIATION  — [data-theme="light"]
   A soft, paper-bright counterpart to the dark monochrome.
   ============================================================ */
:root[data-theme="light"]{
  --bg:        #f3f3f6;
  --bg-2:      #ececed;
  --panel:     #ffffff;
  --raise:     rgba(0,0,0,.022);
  --text:      #15161a;
  --silver:    #3b3c44;
  --muted:     rgba(21,22,26,.60);
  --faint:     rgba(21,22,26,.40);
  --line:      rgba(0,0,0,.13);
  --line-2:    rgba(0,0,0,.07);
  --glow-cool: rgba(120,150,200,.16);
  --glow-violet:rgba(120,120,180,.12);
}
[data-theme="light"] .bg{
  background:radial-gradient(125% 80% at 50% -12%, #ffffff 0%, #eef0f4 44%, #e6e7ec 74%);
}
[data-theme="light"] .aurora i{ opacity:.30; mix-blend-mode:multiply; filter:blur(50px); }
[data-theme="light"] .aurora i:nth-child(1),
[data-theme="light"] .aurora i:nth-child(3),
[data-theme="light"] .aurora i:nth-child(5){ opacity:.22; }
[data-theme="light"] .aurora::after{ opacity:.5; }
[data-theme="light"] .ghost{ color:#0b0c12; opacity:.05; }
[data-theme="light"] .ghost.far{ opacity:.035; }
[data-theme="light"] .ghost.near{ opacity:.07; }
[data-theme="light"] ::selection{ background:rgba(0,0,0,.14); }
[data-theme="light"] :focus-visible{ outline-color:rgba(0,0,0,.6); }

/* buttons invert cleanly: dark fill + light text on light page */
[data-theme="light"] .btn{ color:#fff; }
[data-theme="light"] .btn:hover{ background:#000; color:#fff; }
[data-theme="light"] .btn.ghost{ color:var(--text); border-color:var(--line); }
[data-theme="light"] .btn.ghost:hover{ background:rgba(0,0,0,.05); border-color:rgba(0,0,0,.34); }
[data-theme="light"] .ag-launch{ color:#fff; }

/* nav */
[data-theme="light"] .nav.scrolled{ background:rgba(255,255,255,.78); border-bottom-color:var(--line-2); }
[data-theme="light"] .theme-toggle:hover{ border-color:rgba(0,0,0,.34); background:rgba(0,0,0,.05); }
@media (max-width:860px){
  [data-theme="light"] .nav-links{ background:rgba(255,255,255,.97); border-bottom-color:var(--line); }
}

/* form fields */
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea,
[data-theme="light"] .foot-nl input{ background:rgba(0,0,0,.03); }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus{ border-color:rgba(0,0,0,.4); background:rgba(0,0,0,.05); box-shadow:0 0 0 3px rgba(0,0,0,.05); }
[data-theme="light"] .field select{ background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path stroke='%23666' stroke-width='1.5' d='m1 1 5 5 5-5'/></svg>"); }
[data-theme="light"] .note-ok{ background:rgba(0,0,0,.04); }

/* cards / surfaces that hardcoded dark fills */
[data-theme="light"] .pd-lead,
[data-theme="light"] .pd-thumb{ background-color:#e6e7ec; }
[data-theme="light"] .lightbox{ background:rgba(230,231,236,.94); }
[data-theme="light"] .lb-close{ background:rgba(0,0,0,.06); }
[data-theme="light"] .lb-close:hover{ background:rgba(0,0,0,.14); }
[data-theme="light"] .ag-launch{ box-shadow:0 16px 40px -14px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.10); }
[data-theme="light"] .sheet-head .x:hover{ background:rgba(0,0,0,.08); }

/* hover tints & borders flip to dark on a light page */
[data-theme="light"] .card:hover,
[data-theme="light"] .post:hover{ background:rgba(0,0,0,.03); }
[data-theme="light"] .grid2 .card:hover,
[data-theme="light"] .post:hover{ border-color:rgba(0,0,0,.2); }
[data-theme="light"] .pd-thumb:hover{ border-color:rgba(0,0,0,.42); }
[data-theme="light"] .card-cover,
[data-theme="light"] .post-cover{ background-color:#e6e7ec; }
[data-theme="light"] .foot-nl input:focus{ border-color:rgba(0,0,0,.4); }
[data-theme="light"] .nav-toggle{ border-color:var(--line); }

/* dark accent panels stay dark in both themes — keep their interior light */
[data-theme="light"] .panel-card,
[data-theme="light"] .cta-block{ color:#f3f3f6; border-color:rgba(255,255,255,.10); }
[data-theme="light"] .panel-card .metric span,
[data-theme="light"] .panel-card .stat-line,
[data-theme="light"] .cta-block p{ color:rgba(243,243,246,.62); }
[data-theme="light"] .panel-card .stat-line .ok{ color:#c7c8cd; }
[data-theme="light"] .cta-block .mk{ color:#f3f3f6; }
[data-theme="light"] .panel-card .pc-mark{ color:rgba(255,255,255,.18); }
/* buttons that sit on the dark panels behave like the dark-theme pill */
[data-theme="light"] .cta-block .btn{ background:#f3f3f6; color:#08080a; border-color:#f3f3f6; }
[data-theme="light"] .cta-block .btn:hover{ background:#fff; }
[data-theme="light"] .cta-block .btn.ghost{ background:transparent; color:#f3f3f6; border-color:rgba(255,255,255,.26); }
[data-theme="light"] .cta-block .btn.ghost:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.5); }

/* light scrollbar */
[data-theme="light"]{ scrollbar-color:rgba(0,0,0,.26) transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb{ background:linear-gradient(180deg,rgba(0,0,0,.26),rgba(0,0,0,.12)); background-clip:padding-box; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.22)); background-clip:padding-box; }

/* ============================================================
   OFFICE SPACE — image-forward editorial skin for romanov.solutions
   Cinematic full-bleed hero + full-screen photo "scene" headers,
   full-coverage spotlight, vibrant electric-blue accents (borrowed
   from the Tetri portal), interior photo mastheads, section snap.
   LUX (default) stays imageless.  Photos: /assets/img/home/opt/
   ============================================================ */

:root{
  --ph-hero: image-set(url('/assets/img/home/opt/4.webp') type('image/webp'), url('/assets/img/home/opt/4.jpg') type('image/jpeg'));
  --ph-svc:  image-set(url('/assets/img/home/opt/2.webp') type('image/webp'), url('/assets/img/home/opt/2.jpg') type('image/jpeg'));
  --ph-new:  image-set(url('/assets/img/home/opt/romanov-solutions_home_1.webp') type('image/webp'), url('/assets/img/home/opt/romanov-solutions_home_1.jpg') type('image/jpeg'));
  --ph-work: image-set(url('/assets/img/home/opt/1.webp') type('image/webp'), url('/assets/img/home/opt/1.jpg') type('image/jpeg'));
  --ph-appr: image-set(url('/assets/img/home/opt/3.webp') type('image/webp'), url('/assets/img/home/opt/3.jpg') type('image/jpeg'));
  --ph-cta:  image-set(url('/assets/img/home/opt/5.webp') type('image/webp'), url('/assets/img/home/opt/5.jpg') type('image/jpeg'));
  --scene-h: 100svh;
  --gutter:  clamp(28px, 6vw, 96px);
  --text-col: min(40vw, 560px);
  /* vibrant accent (Tetri electric blue) */
  --rs-accent:   #8fb4ff;
  --rs-accent-2: #5d7fc7;
  --rs-accent-d: #3a5694;
  --edge-line:   rgba(143,180,255,.55);
}

.bg .ghost{ opacity:.20 !important; }
.bg{ background:radial-gradient(125% 80% at 50% -12%, #14161f 0%, #0a0a0d 46%, #060607 76%); }

/* site-wide spotlight — soft inner shadow on ALL sides and corners */
body::after{
  content:''; position:fixed; inset:0; z-index:40; pointer-events:none;
  background:radial-gradient(118% 118% at 50% 48%, transparent 46%, rgba(2,3,6,.5) 100%);
  box-shadow: inset 0 0 240px 60px rgba(2,3,6,.6);
}
[data-theme="light"] body::after{
  background:radial-gradient(118% 118% at 50% 48%, transparent 52%, rgba(10,16,30,.16) 100%);
  box-shadow: inset 0 0 200px 50px rgba(10,16,30,.12);
}

/* vibrant accents site-wide */
a:hover{ color:var(--rs-accent); }
.kicker{ color:var(--rs-accent) !important; }
.eyebrow{ color:var(--rs-accent); }
.eyebrow .ln{ background:linear-gradient(90deg, transparent, var(--rs-accent)) !important; }
.eyebrow .ln.r{ background:linear-gradient(90deg, var(--rs-accent), transparent) !important; }
.sec b, .head b, .cta-block h2 b{
  background:linear-gradient(118deg, var(--cream,#fff) 18%, var(--rs-accent));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.trust .t b{
  background:linear-gradient(120deg, var(--cream,#fff) 30%, var(--rs-accent));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.card .ic, .na-card .na-ic, .step .n{ color:var(--rs-accent); border-color:rgba(143,180,255,.28); }
.card:hover, .na-card:hover{ border-color:rgba(143,180,255,.4); }

/* ============================================================
   HERO — full-bleed cinematic photo, text ALWAYS white
   ============================================================ */
.hero{ position:relative; overflow:hidden; min-height:100svh; isolation:isolate; }
.hero > *{ position:relative; z-index:3; }
.hero::before{
  content:''; position:absolute; inset:0; z-index:1;
  background-image:url('/assets/img/home/opt/4.jpg');
  background-image:var(--ph-hero);
  background-size:cover; background-position:center;
  transform:scale(1.04); animation:atelier-kenburns 24s ease-in-out infinite alternate;
}
.hero::after{
  content:''; position:absolute; inset:0; z-index:2;
  background:
    linear-gradient(180deg, rgba(6,6,9,.78) 0%, rgba(6,6,9,.42) 36%, rgba(6,6,9,.54) 64%, rgba(6,6,9,.94) 100%),
    radial-gradient(120% 80% at 50% 28%, transparent 40%, rgba(6,6,9,.5) 100%);
}
@keyframes atelier-kenburns{ from{ transform:scale(1.04) } to{ transform:scale(1.12) } }
@media (prefers-reduced-motion: reduce){ .hero::before{ animation:none; transform:none; } }

/* hero text white in BOTH themes (it sits over the photo) */
.hero .head, .hero .head .thin, .hero .head b, .hero .mark{ color:#fff !important; }
.hero .sub{ color:rgba(255,255,255,.88) !important; }
.hero .eyebrow{ color:rgba(255,255,255,.9) !important; }
.hero .eyebrow .ln, .hero .eyebrow .ln.r{ opacity:.9; }

/* nav — brighter, higher-contrast over the hero photo */
.nav .nav-links a, .nav .brand{ color:rgba(255,255,255,.92) !important; }
.nav .nav-links a:hover{ color:#fff !important; }
.nav::before{
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg, rgba(6,6,9,.66), transparent);
  transition:opacity .4s var(--ease);
}
.nav.scrolled::before{ opacity:0; }

/* ============================================================
   SCENE HEADERS — full-screen photo / text split (homepage)
   max-width:none is essential (LUX caps .sec-head at 60ch).
   ============================================================ */
#services .sec-head,
#newage   .sec-head,
#work     .sec-head,
#approach .sec-head{
  position:relative; isolation:isolate; overflow:hidden;
  max-width:none;
  width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  min-height:var(--scene-h);
  display:flex; flex-direction:column; justify-content:center; gap:16px;
  text-align:left;
  margin-bottom:clamp(40px, 5vw, 72px);
}
#services .sec-head::before,
#newage   .sec-head::before,
#work     .sec-head::before,
#approach .sec-head::before{
  content:''; position:absolute; top:0; bottom:0; width:50vw; z-index:-2;
  background-size:cover; background-position:center;
}
#services .sec-head::after,
#newage   .sec-head::after,
#work     .sec-head::after,
#approach .sec-head::after{
  content:''; position:absolute; top:0; bottom:0; width:2px; z-index:-1;
  background:var(--edge-line); box-shadow:0 0 22px 1px rgba(143,180,255,.5);
}
#services .sec-head > *, #newage .sec-head > *,
#work     .sec-head > *, #approach .sec-head > *{ max-width:var(--text-col); width:100%; }

#services .sec-head, #work .sec-head{ align-items:flex-start; padding:48px max(var(--gutter), calc(50vw - 640px)); }
#services .sec-head::before, #work .sec-head::before{ right:0; }
#services .sec-head::after,  #work .sec-head::after{ left:50vw; }
#services .sec-head::before{ background-image:url('/assets/img/home/opt/2.jpg'); background-image:var(--ph-svc); }
#work     .sec-head::before{ background-image:url('/assets/img/home/opt/1.jpg'); background-image:var(--ph-work); }

#newage .sec-head, #approach .sec-head{ align-items:flex-end; padding:48px max(var(--gutter), calc(50vw - 640px)); }
#newage .sec-head::before, #approach .sec-head::before{ left:0; }
#newage .sec-head::after,  #approach .sec-head::after{ right:50vw; }
#newage   .sec-head::before{ background-image:url('/assets/img/home/opt/romanov-solutions_home_1.jpg'); background-image:var(--ph-new); }
#approach .sec-head::before{ background-image:url('/assets/img/home/opt/3.jpg'); background-image:var(--ph-appr); }

.section .sec-head .sec{ font-size:clamp(30px,3.2vw,48px); line-height:1.06; }
.section .sec-head .dek{ font-size:clamp(15px,1.4vw,17px); }

/* ============================================================
   INTERIOR PAGE MASTHEAD — text always white over the photo
   ============================================================ */
.section.page-scene{ padding-top:0 !important; }
.section.page-scene .sec-head{
  position:relative; isolation:isolate; overflow:hidden; max-width:none;
  width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  min-height:clamp(340px, 50vh, 520px);
  display:flex; flex-direction:column; justify-content:center; gap:14px;
  text-align:left;
  padding:clamp(96px,16vh,150px) max(var(--gutter), calc(50vw - 590px)) clamp(40px,7vh,72px);
  margin-bottom:clamp(44px,6vw,80px);
}
.section.page-scene .sec-head::before{
  content:''; position:absolute; inset:0; z-index:-2;
  background-image:var(--page-photo, var(--ph-hero));
  background-size:cover; background-position:center;
}
.section.page-scene .sec-head::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(6,6,9,.82), rgba(6,6,9,.6) 45%, rgba(6,6,9,.9));
}
.section.page-scene .sec-head .sec,
.section.page-scene .sec-head .sec b,
.section.page-scene .sec-head .sec .thin{ color:#fff !important; -webkit-text-fill-color:#fff; }
.section.page-scene .sec-head .kicker{ color:var(--rs-accent) !important; }
.section.page-scene .sec-head .dek{ color:rgba(255,255,255,.86); max-width:62ch; }
.section.page-scene .sec-head > *{ max-width:820px; width:100%; position:relative; z-index:2; text-shadow:0 2px 26px rgba(0,0,0,.55); }

/* ---------- numbered scene kickers ---------- */
body{ counter-reset: rs-scene; }
.kicker{ counter-increment: rs-scene; }
.kicker::before{
  content: counter(rs-scene, decimal-leading-zero) "  /  ";
  font-family:var(--mono); letter-spacing:.04em; opacity:.85;
}

/* ============================================================
   FINAL CTA — full-bleed photo band, white text
   ============================================================ */
.section:has(.cta-block){ position:relative; overflow:hidden; isolation:isolate; }
.section:has(.cta-block) .cta-block{
  position:relative; z-index:3;
  background:rgba(8,9,14,.46); backdrop-filter:blur(7px) saturate(120%);
  border:1px solid rgba(143,180,255,.2); border-radius:calc(var(--radius) + 4px);
  padding:clamp(40px,6vw,80px) clamp(28px,5vw,64px);
}
.section:has(.cta-block) .cta-block h2,
.section:has(.cta-block) .cta-block p{ color:#fff !important; }
.section:has(.cta-block) .cta-block p{ color:rgba(255,255,255,.85) !important; }
.section:has(.cta-block)::before{
  content:''; position:absolute; inset:0; z-index:1;
  background-image:url('/assets/img/home/opt/5.jpg');
  background-image:var(--ph-cta);
  background-size:cover; background-position:center; background-attachment:fixed;
}
.section:has(.cta-block)::after{
  content:''; position:absolute; inset:0; z-index:2;
  background:linear-gradient(180deg, rgba(6,6,9,.88), rgba(6,6,9,.66) 45%, rgba(6,6,9,.92));
}

/* ============================================================
   LIGHT MODE tweaks
   ============================================================ */
[data-theme="light"] .nav::before{ background:linear-gradient(180deg, rgba(6,6,9,.55), transparent); }
[data-theme="light"] .nav .nav-links a, [data-theme="light"] .nav .brand{ color:rgba(255,255,255,.92) !important; }
[data-theme="light"] .nav.scrolled .nav-links a, [data-theme="light"] .nav.scrolled .brand{ color:var(--text) !important; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px){
  .hero{ min-height:88svh; }
  #services .sec-head, #newage .sec-head, #work .sec-head, #approach .sec-head{
    min-height:auto; align-items:flex-start !important;
    padding:230px clamp(20px,6vw,30px) 8px !important;
    margin-bottom:clamp(30px,7vw,48px);
  }
  #services .sec-head::before, #newage .sec-head::before,
  #work .sec-head::before, #approach .sec-head::before{
    top:0; left:0; right:0; bottom:auto; width:auto; height:210px;
  }
  #services .sec-head::after, #newage .sec-head::after,
  #work .sec-head::after, #approach .sec-head::after{
    left:0; right:0; top:auto; bottom:210px; width:auto; height:2px;
  }
  #services .sec-head > *, #newage .sec-head > *,
  #work .sec-head > *, #approach .sec-head > *{ max-width:none; }
  .section.page-scene .sec-head{ min-height:clamp(300px,46vh,420px); padding:120px clamp(20px,6vw,30px) 30px; }
  .section.page-scene .sec-head > *{ max-width:none; }
  .section:has(.cta-block)::before{ background-attachment:scroll; }
}
