/* Arham Oil demo: dark premium theme */
:root {
  --bg: #05080F;
  --bg-2: #0A1120;
  --ink: #E9EEF5;
  --ink-soft: #8D99AA;
  --ink-faint: #56627A;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --blue: #0070D8;
  --blue-hi: #3A96FF;
  --green: #22B573;
  --accent: var(--blue-hi);
  --studio: #EEF1F5;
  --blueprint: #07111F;
  --f-display: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
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: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; background: linear-gradient(100deg, var(--blue-hi), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ambient layers: static, so they cost nothing per frame */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 10%, rgba(0, 112, 216, .16), transparent 70%),
    radial-gradient(40% 35% at 10% 90%, rgba(34, 181, 115, .10), transparent 70%);
}

/* top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gut);
  background: linear-gradient(to bottom, rgba(5, 8, 15, .85), rgba(5, 8, 15, 0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.brand b { color: var(--green); font-weight: 700; }
.brand__mark { width: 18px; height: 23px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(160deg, var(--blue) 15%, var(--green) 95%); box-shadow: 0 0 18px rgba(0, 112, 216, .5); }
.nav { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 17, 32, .7); }
.nav a { text-decoration: none; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-soft); padding: 7px 14px; border-radius: 999px; transition: color .25s, background .25s; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--bg); background: var(--ink); }
.bar__cta { text-decoration: none; font-weight: 500; font-size: .88rem; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.bar__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--green)); }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.lede { color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 44ch; margin: 18px 0 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.chips li { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); }

/* HERO */
.hero { position: relative; height: 190vh; z-index: 1; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 15, .96) 0%, rgba(5, 8, 15, .78) 38%, rgba(5, 8, 15, .25) 72%, rgba(5, 8, 15, .35) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(5, 8, 15, 0) 35%);
}
.hero__copy { position: absolute; left: var(--gut); bottom: 18vh; max-width: 680px; will-change: transform, opacity; }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.7rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -.03em; margin: 22px 0 0; }
.hero__cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.hero__cue i { width: 1px; height: 44px; background: linear-gradient(var(--ink-soft), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ROBOT CHAPTER */
.chapter { position: relative; height: 400vh; z-index: 1; }
.chapter__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr; align-items: center; gap: clamp(28px, 4vw, 64px);
  padding: 90px var(--gut) 40px;
}
.copy { position: relative; z-index: 2; }
.copy__num { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; color: var(--ink-faint); }
.copy__num b { color: var(--accent); font-weight: 500; }
.copy h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; margin: 14px 0 0; }
.copy .lede { margin-top: 14px; font-size: 1rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 0; border-top: 1px solid var(--line-2); }
.specs div { padding: 12px 0 11px; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 14px; }
.specs div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.specs dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.specs dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.gallery { display: flex; gap: 10px; margin-top: 18px; }
.gallery button { padding: 0; width: 76px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; cursor: zoom-in; opacity: .85; transition: opacity .2s, border-color .2s; }
.gallery button:hover { opacity: 1; border-color: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.note { margin: 14px 0 0; font-size: .7rem; color: var(--ink-faint); font-style: italic; }
.copy .btns { margin-top: 22px; }

/* hero shot: spotlight behind the case + screen vignette (opacity driven by scroll) */
.spot { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(38% 46% at 50% 52%, rgba(58, 150, 255, .22), rgba(58, 150, 255, .06) 45%, transparent 70%); }
.cine { position: fixed; inset: 0; z-index: 40; opacity: 0; pointer-events: none;
  background: radial-gradient(75% 70% at 50% 52%, transparent 55%, rgba(0, 0, 0, .75) 100%); }
.bar { transition: none; }
.case-wrap { z-index: 3; }
.case__hud { will-change: opacity; }

/* the display case */
.case-wrap { position: relative; min-width: 0; will-change: transform, opacity; }
.case__hud { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 12px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.case__mode { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.case__mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); transition: background .3s, box-shadow .3s; }
.case-wrap.is-diagram .case__mode i { background: var(--ink); box-shadow: 0 0 10px var(--ink); }
.case {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #F1F3F7 0%, #E4E8EE 100%);
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 112, 216, .35), 0 30px 60px -30px rgba(0, 0, 0, .8);
  isolation: isolate;
}
.case canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__diagram {
  position: absolute; inset: 0; z-index: 2; clip-path: inset(0 100% 0 0);
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: center;
}
.case__diagram img { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callout path { fill: none; stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.callout circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.callout text { font-family: var(--f-mono); font-size: 17px; letter-spacing: .1em; fill: var(--ink); text-transform: uppercase; }
.callout text tspan.v { fill: var(--accent); }
.case__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 3; opacity: 0; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 18px 3px var(--accent), 0 0 60px 10px rgba(58, 150, 255, .35);
  will-change: transform, opacity;
}
.case__corner { position: absolute; z-index: 4; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; color: rgba(10, 26, 47, .55); transition: color .3s; }
.case__corner--tl { top: 14px; left: 16px; } .case__corner--br { bottom: 12px; right: 16px; }
.case-wrap.is-diagram .case__corner { opacity: 0; }   /* callouts own the corners in technical view */
.case__corner { transition: color .3s, opacity .3s; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { text-decoration: none; font-weight: 500; font-size: .92rem; padding: 13px 24px; border-radius: 999px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(100deg, var(--blue), #0A86E8); color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 112, 216, .7); }
.btn--ghost { border: 1px solid var(--line-2); }

/* CONTACT */
.contact { position: relative; z-index: 1; padding: 16vh var(--gut) 28px; }
.contact__card {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: linear-gradient(160deg, rgba(0, 112, 216, .14), rgba(34, 181, 115, .06) 60%, rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2);
}
.contact h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.03em; margin: 18px 0 0; }
.contact__info { margin: 0; display: grid; gap: 20px; }
.contact__info dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.contact__info dd { margin: 4px 0 0; font-size: 1.02rem; }
.foot { max-width: 1180px; margin: 64px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .76rem; color: var(--ink-faint); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4vw; background: rgba(5, 8, 15, .9); cursor: zoom-out; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lightbox button { position: absolute; top: 18px; right: 24px; font-size: 2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* tablet */
@media (max-width: 1100px) {
  .chapter__sticky { grid-template-columns: 320px 1fr; }
  .copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
  .copy .lede { display: none; }
}

/* phones: case on top, copy below */
@media (max-width: 860px) {
  .nav { display: none; }
  .bar { padding: 14px 16px; }
  .hero__copy { left: 16px; right: 16px; bottom: 14vh; }
  .hero__shade { background: linear-gradient(to top, var(--bg) 8%, rgba(5, 8, 15, .82) 45%, rgba(5, 8, 15, .35) 100%); }
  .chapter { height: 340vh; }
  .chapter__sticky { grid-template-columns: 1fr; align-content: start; gap: 18px; padding: 72px 16px 20px; }
  .case-wrap { order: -1; }
  .case { border-radius: 16px; }
  .case__hud { margin-bottom: 8px; }
  .case__corner, .hero__cue { display: none; }
  .chips { margin-top: 18px; }
  .copy h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-top: 8px; }
  .copy .lede { display: block; font-size: .92rem; margin-top: 8px; }
  .specs { margin-top: 14px; }
  .specs div { padding: 8px 0 7px; }
  .specs dd { font-size: .9rem; }
  .gallery, .note { display: none; }
  .copy .btns { margin-top: 14px; }
  .contact__card { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) and (max-height: 700px) { .copy .lede { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__cue i { animation: none; }
}
