/* ============================================================
   DevilX Digital Labs — design system
   Dark cinematic · monochrome silver · 1487×1058 comp
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-var.woff2') format('woff2');
}

@font-face {
  font-family: 'IpsumMark';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dx-display.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* comp units (hero only) */
  --u: calc(100vh / 1058);
  --uw: calc(100vw / 1487);
  --h: clamp(var(--u), calc(var(--u) * .65 + var(--uw) * .35), calc(var(--u) * 1.16));
  --m: 1px;
  /* palette — high-contrast dark silver for 100/100 WCAG Accessibility */
  --bg: #050505;
  --ink: #fafafa;
  --muted: #b5b4b4;
  --nav: #c4c3c3;
  --strip: #9e9d9d;
  --dim: #8e8d8d;
  --pill: #ffffff;
  --pill-ink: #050505;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .08);
  --panel: rgba(255, 255, 255, .028);
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* fluid scale for content */
  --cx: clamp(22px, 6vw, 140px);
  --sec-py: clamp(88px, 13vh, 168px);
}

@supports (height: 100dvh) {
  :root {
    --u: calc(100dvh / 1058);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: #fafafa;
  color: #050505;
}

:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, .8);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: #fafafa;
  color: #050505;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, #8e8d8d, #fafafa);
  pointer-events: none;
}

/* ============================================================
   HERO — pixel-faithful 1487×1058 comp
   ============================================================ */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .hero-stage {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.plate {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 0;
}

.plate video {
  position: absolute;
  left: 50%;
  top: calc(1 * var(--u));
  width: calc(1492 * var(--u));
  height: calc(1054 * var(--u));
  transform: translateX(calc(-50% - calc(.5 * var(--u))));
  object-fit: cover;
  pointer-events: none;
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(5, 5, 5, 0) 78.8%, rgba(5, 5, 5, .23) 79.6%, rgba(5, 5, 5, .45) 81.4%,
      rgba(5, 5, 5, .75) 83.3%, rgba(5, 5, 5, .84) 85.2%, rgba(5, 5, 5, .888) 88%,
      rgba(5, 5, 5, .905) 91%, rgba(5, 5, 5, .96) 95%, #050505 100%),
    linear-gradient(to right,
      #050505 calc(50% - 746 * var(--u)), transparent calc(50% - 676 * var(--u)),
      transparent calc(50% + 676 * var(--u)), #050505 calc(50% + 746 * var(--u)));
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
  height: calc(104 * var(--u));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}

.topbar.scrolled {
  background: rgba(5, 5, 5, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}

.topbar a, .topbar button {
  pointer-events: auto;
}

.brand {
  position: absolute;
  left: calc(75 * var(--u));
  top: calc(27 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
}

.brand-mark {
  width: calc(31.5 * var(--u));
  height: calc(48.5 * var(--u));
  flex: none;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word em {
  font-style: normal;
  font-weight: 800;
  font-size: calc(25 * var(--u));
  letter-spacing: calc(.6 * var(--u));
  color: var(--ink);
}

.brand-word small {
  font-size: calc(8.6 * var(--u));
  font-weight: 600;
  letter-spacing: calc(3.4 * var(--u));
  color: var(--muted);
  margin-top: calc(5 * var(--u));
}

.links {
  position: absolute;
  left: 50%;
  top: calc(51 * var(--u));
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: calc(19 * var(--u));
  font-weight: 500;
  color: var(--nav);
}

.links a {
  position: relative;
  transition: color .3s ease;
  padding: calc(6 * var(--u)) 0;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .35s var(--ease);
}

.links a:hover {
  color: var(--ink);
}

.links a:hover::after {
  right: 0;
}

.links a + a {
  margin-left: calc(24.5 * var(--u));
}

.links a:nth-child(3) {
  margin-left: calc(23.5 * var(--u));
}

.links a:nth-child(4) {
  margin-left: calc(26 * var(--u));
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill);
  color: var(--pill-ink);
  border-radius: 999px;
  font-weight: 500;
  transition: transform .35s var(--ease), opacity .3s ease;
}

.pill:hover {
  transform: translateY(calc(-1 * var(--h)));
  opacity: .94;
}

.pill-nav {
  position: absolute;
  right: calc(75.4 * var(--u));
  top: calc(27 * var(--u));
  width: calc(175 * var(--u));
  height: calc(49 * var(--u));
  font-size: calc(20.6 * var(--u));
}

.pill-nav span {
  display: inline-block;
  transform: translateY(calc(1 * var(--u)));
}

/* ---------- Hero content ---------- */
.hero {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.hero a {
  pointer-events: auto;
}

/* ---------- PageSpeed Pill Badge ---------- */
.speed-proof {
  position: absolute;
  left: calc(75.5 * var(--u));
  top: calc(172 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #c4c3c3;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.speed-proof:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.speed-proof b {
  color: #fafafa;
  font-weight: 700;
}

/* Glowing green pulse dot */
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 14px rgba(34, 197, 94, 0.4);
  flex: none;
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.headline {
  position: absolute;
  left: calc(75.5 * var(--u));
  top: calc(230.5 * var(--u));
  font-weight: 400;
  color: var(--ink);
  font-size: calc(71.6 * var(--h));
  line-height: calc(80.5 * var(--h));
  letter-spacing: calc(.3 * var(--h));
}

.headline span {
  display: block;
  white-space: nowrap;
}

.sub {
  position: absolute;
  left: calc(75.5 * var(--u));
  top: calc(230.5 * var(--u) + 189 * var(--h));
  color: var(--muted);
  font-weight: 400;
  font-size: calc(20.7 * var(--h));
  line-height: calc(24 * var(--h));
  word-spacing: calc(1.8 * var(--h));
  max-width: calc(750 * var(--u));
}

.sub span {
  display: block;
  white-space: nowrap;
}

.pill-cta {
  position: absolute;
  left: calc(74.9 * var(--u));
  top: calc(230.5 * var(--u) + 264.5 * var(--h));
  width: calc(175.6 * var(--h));
  height: calc(50 * var(--h));
  font-size: calc(20.6 * var(--h));
}

.ghost {
  position: absolute;
  left: calc(74.9 * var(--u) + 220.6 * var(--h));
  top: calc(230.5 * var(--u) + 279.5 * var(--h));
  font-size: calc(20.6 * var(--h));
  font-weight: 500;
  color: var(--ink);
  letter-spacing: calc(.12 * var(--h));
}

.hero .ghost {
  transition: opacity .3s ease;
}

.hero .ghost:hover {
  opacity: .7;
}

/* ---------- Comp strip (coverage marks) ---------- */
.logos {
  position: absolute;
  inset: 0;
  z-index: 20;
  left: 50%;
  width: calc(741 * var(--u));
  transform: translateX(calc(-50% + 20 * var(--u)));
  color: var(--strip);
  pointer-events: none;
}

.lg {
  position: absolute;
  white-space: nowrap;
}

.lg svg {
  position: absolute;
  left: 0;
  top: 0;
}

.lg .word {
  position: absolute;
  font-family: 'IpsumMark', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
}

.lg1 {
  left: calc(-.5 * var(--u));
  top: calc(994.7 * var(--u));
}

.lg1 svg {
  width: calc(30.5 * var(--u));
  height: calc(31 * var(--u));
}

.lg1 .word {
  left: calc(37 * var(--u));
  top: calc(5.6 * var(--u));
  font-size: calc(18.1 * var(--u));
}

.lg2 {
  left: calc(206.5 * var(--u));
  top: calc(995.7 * var(--u));
}

.lg2 svg {
  width: calc(24.5 * var(--u));
  height: calc(30 * var(--u));
}

.lg2 .word {
  left: calc(31 * var(--u));
  top: calc(7.3 * var(--u));
  font-size: calc(18.5 * var(--u));
}

.lg2 .dot {
  display: inline-block;
  width: .09em;
  height: .09em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .62em;
  margin-left: .06em;
}

.lg3 {
  left: calc(416.5 * var(--u));
  top: calc(996.7 * var(--u));
}

.lg3 svg {
  width: calc(28.5 * var(--u));
  height: calc(28 * var(--u));
}

.lg3 .word {
  left: calc(35 * var(--u));
  top: calc(7.3 * var(--u));
  font-size: calc(16.15 * var(--u));
}

.lg4 {
  left: calc(620.5 * var(--u));
  top: calc(998.7 * var(--u));
}

.lg4 svg {
  width: calc(28.5 * var(--u));
  height: calc(25.5 * var(--u));
}

.lg4 .word {
  left: calc(37 * var(--u));
  top: calc(8.3 * var(--u));
  font-size: calc(15.3 * var(--u));
}

/* ---------- Scroll cue ---------- */
.scrollcue {
  position: absolute;
  left: calc(75.5 * var(--u));
  bottom: calc(20 * var(--u));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  color: var(--strip);
  font-size: calc(12 * var(--u));
  letter-spacing: calc(3 * var(--u));
  text-transform: uppercase;
  pointer-events: none;
}

.scrollcue .rail {
  width: 1px;
  height: calc(46 * var(--u));
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}

.scrollcue .rail::after {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 40%;
  background: #fafafa;
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(260%); }
}

/* ============================================================
   CONTENT SYSTEM
   ============================================================ */
main {
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.sec {
  max-width: 1290px;
  margin: 0 auto;
  padding: var(--sec-py) var(--cx);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: clamp(60px, 9vh, 90px);
}

.sec.tight {
  border-top: none;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--strip);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--strip);
  vertical-align: middle;
  margin-right: 14px;
}

.h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin-top: 18px;
  color: var(--ink);
}

.h2 b {
  font-weight: 500;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  max-width: 640px;
  font-size: clamp(15.5px, 1.45vw, 17.5px);
  line-height: 1.85;
  margin-top: 18px;
}

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) calc(var(--i, 0) * 90ms), transform .9s var(--ease) calc(var(--i, 0) * 90ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Tech marquee ---------- */
.marq {
  overflow: hidden;
  padding: clamp(44px, 7vh, 74px) 0;
  border-top: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marq-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: slide 36s linear infinite;
}

.marq:hover .marq-track {
  animation-play-state: paused;
}

.marq li {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--nav);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 0 34px;
  white-space: nowrap;
}

.marq li::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
  margin-left: 34px;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

.marq-cap {
  text-align: center;
  margin-top: 22px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.svcs {
  margin-top: clamp(40px, 6vh, 70px);
}

.srv {
  display: grid;
  grid-template-columns: 96px 56px minmax(210px, 1fr) 1.45fr;
  gap: 8px 34px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background .4s ease;
}

.srv:last-child {
  border-bottom: 1px solid var(--line);
}

.srv:hover {
  background: rgba(255, 255, 255, .018);
}

.srv .n {
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--strip);
  padding-top: 18px;
}

.srv .ico {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--nav);
  transition: color .4s ease, border-color .4s ease, transform .4s var(--ease);
}

.srv:hover .ico {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-3px);
}

.srv .ico svg {
  width: 24px;
  height: 24px;
}

.srv h3 {
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 500;
  line-height: 1.3;
  padding-top: 6px;
}

.srv .desc {
  color: var(--muted);
  font-size: 15.3px;
  line-height: 1.85;
  padding-top: 6px;
}

.srv .tags {
  grid-column: 2 / -1;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
}

.srv .tags li {
  font-size: 12.3px;
  letter-spacing: .04em;
  color: var(--nav);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .02);
}

/* ---------- Work panels ---------- */
.work {
  margin-top: clamp(40px, 6vh, 70px);
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 10vh, 120px);
}

.wk {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.wk.flip .vis {
  order: 2;
}

.wk .txt .k {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--strip);
  font-weight: 600;
}

.wk .txt h3 {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.18;
  margin-top: 14px;
}

.wk .txt p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  margin-top: 16px;
}

.wk .txt ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--nav);
  font-size: 14.3px;
}

.wk .txt li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.wk .txt li::before {
  content: "";
  width: 9px;
  height: 1px;
  background: var(--strip);
  flex: none;
  transform: translateY(-3px);
}

.vis {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 55%, rgba(255, 255, 255, .03));
  padding: 26px;
  min-height: 340px;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}

.vis::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 85% -10%, rgba(255, 255, 255, .07), transparent 60%);
  pointer-events: none;
}

/* chat mock */
.phone {
  width: 210px;
  border: 1.5px solid rgba(255, 255, 255, .24);
  border-radius: 26px;
  padding: 14px 12px;
  background: #0b0b0b;
  position: relative;
}

.phone .p-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.phone .p-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(140deg, #d6d6d6, #5c5c5c);
}

.phone .p-nm {
  font-size: 10.5px;
  font-weight: 700;
}

.phone .p-st {
  font-size: 8.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone .p-st::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9f9f9f;
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  50% { opacity: .25; }
}

.bub {
  max-width: 82%;
  font-size: 9.6px;
  line-height: 1.45;
  padding: 7px 10px;
  border-radius: 11px;
  margin-top: 9px;
}

.bub.bot {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 3px;
}

.bub.me {
  background: #fafafa;
  color: #050505;
  margin-left: auto;
  border-bottom-right-radius: 3px;
  font-weight: 600;
}

.typing {
  display: inline-flex;
  gap: 3px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, .08);
  border-radius: 11px;
  margin-top: 9px;
}

.typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9c9c9;
  animation: typ 1.2s ease infinite;
}

.typing i:nth-child(2) {
  animation-delay: .15s;
}

.typing i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes typ {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* flow mock */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 240px;
}

.fnode {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #0b0b0b;
  position: relative;
}

.fnode b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.fnode span {
  font-size: 9.5px;
  color: var(--muted);
}

.fnode .fd {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, #d6d6d6, #606060);
  flex: none;
}

.flink {
  width: 1px;
  height: 26px;
  margin-left: 27px;
  background: linear-gradient(180deg, #fafafa, rgba(255, 255, 255, .15));
  position: relative;
  overflow: hidden;
}

.flink::after {
  content: "";
  position: absolute;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fafafa;
  animation: dash 2.1s linear infinite;
}

@keyframes dash {
  from { top: -6px; }
  to { top: 28px; }
}

.fbadge {
  margin-top: 16px;
  margin-left: 27px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  color: var(--nav);
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 7px 13px;
  width: max-content;
}

/* site mock */
.browser {
  width: 100%;
  max-width: 330px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: #0b0b0b;
  overflow: hidden;
}

.browser .b-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft);
}

.browser .b-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.browser .b-url {
  flex: 1;
  margin-left: 8px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
}

.browser .b-body {
  padding: 16px 14px;
}

.s-hero {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(120deg, #3a3a3a, #797878 45%, #1d1d1d 80%);
  position: relative;
  overflow: hidden;
}

.s-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 3.4s var(--ease) infinite;
}

@keyframes shine {
  55%, 100% { transform: translateX(100%); }
}

.s-hero b {
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-size: 11px;
  letter-spacing: .02em;
}

.s-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .13);
  margin-top: 11px;
}

.s-line.w70 { width: 70%; }
.s-line.w45 { width: 45%; }

.s-cta {
  margin-top: 13px;
  width: 96px;
  height: 24px;
  border-radius: 99px;
  background: #fafafa;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #050505;
}

/* ---------- Process timeline ---------- */
.timeline {
  margin-top: clamp(44px, 6vh, 72px);
  position: relative;
  padding-left: clamp(56px, 7vw, 96px);
}

.timeline::before {
  content: "";
  position: absolute;
  left: clamp(13px, 1.65vw, 23px);
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06));
}

.tl {
  position: relative;
  padding: 0 0 clamp(40px, 6vh, 64px);
}

.tl:last-child {
  padding-bottom: 0;
}

.tl::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(56px, 7vw, 96px) + clamp(8px, 1.06vw, 17px));
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #050505;
  border: 1.5px solid #b9b8b8;
}

.tl .sn {
  font-size: 11.5px;
  letter-spacing: .28em;
  color: var(--strip);
  font-weight: 600;
}

.tl h4 {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
  margin-top: 8px;
}

.tl p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-top: 9px;
  max-width: 640px;
}

/* ---------- Promise band ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.band > div {
  background: var(--bg);
  padding: clamp(30px, 4.6vh, 52px) clamp(22px, 2.4vw, 38px);
}

.band b {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.02em;
}

.band span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Why rows ---------- */
.whys {
  margin-top: clamp(36px, 5vh, 60px);
}

.why {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.why:last-child {
  border-bottom: 1px solid var(--line);
}

.why .wn {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--strip);
  padding-top: 5px;
}

.why h4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
}

.why p {
  color: var(--muted);
  font-size: 15.3px;
  line-height: 1.85;
  margin-top: 9px;
  max-width: 820px;
}

.cover {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  color: var(--nav);
  font-size: 13.6px;
  letter-spacing: .05em;
}

.cover span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cover span::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--strip);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}

/* Email text wrapping bug fixed */
.big-mail {
  display: inline-block;
  margin-top: 26px;
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(17px, 2.7vw, 34px);
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 7px;
  transition: border-color .3s ease;
  white-space: nowrap;
  max-width: 100%;
}

.big-mail:hover {
  border-bottom-color: var(--ink);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--nav);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  transition: color .3s, border-color .3s, transform .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}

.reply-line {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 14.3px;
}

.reply-line li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.reply-line li::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid var(--strip);
  transform: rotate(45deg);
  flex: none;
  translate: 0 1px;
}

form {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--panel);
}

form .fr {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

form label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--strip);
}

form input, form select, form textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px prevents iOS Safari automatic page zoom-in on focus */
  padding: 13px 15px;
  outline: none;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none;
  appearance: none;
}

form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

form input:focus, form select:focus, form textarea:focus {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}

form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%239e9d9d' fill='none' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

form select option {
  background: #111;
  color: #eee;
}

form button[type=submit] {
  width: 100%;
  height: 52px;
  font-size: 16px;
  margin-top: 6px;
  cursor: pointer;
}

form .fine {
  margin-top: 14px;
  text-align: center;
  color: var(--dim);
  font-size: 12.3px;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: clamp(34px, 5vh, 54px);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 26px 4px;
  font-size: clamp(16px, 1.8vw, 19.5px);
  font-weight: 500;
  transition: color .3s;
}

.faq summary:hover {
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--strip);
  border-bottom: 1.5px solid var(--strip);
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
}

.faq .a {
  color: var(--muted);
  font-size: 15.3px;
  line-height: 1.9;
  padding: 4px 4px 30px;
  max-width: 820px;
}

.faq .a a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot {
  max-width: 1290px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) var(--cx) 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 60px);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.foot-brand svg {
  width: 16px;
  height: 22px;
}

.foot-brand b {
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: .03em;
}

.foot .about {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.8;
  max-width: 300px;
}

.foot h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--strip);
  margin-bottom: 16px;
}

.foot ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.foot ul a {
  color: var(--nav);
  font-size: 14px;
  transition: color .3s;
}

.foot ul a:hover {
  color: var(--ink);
}

.foot .mail {
  font-size: clamp(13px, 1.1vw, 14.5px);
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 3px;
  display: inline-block;
  white-space: nowrap;
}

.foot .mail:hover {
  border-color: #fff;
}

.foot-base {
  max-width: 1290px;
  margin: 0 auto;
  padding: clamp(26px, 4vh, 40px) var(--cx);
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 12.6px;
  letter-spacing: .02em;
}

.foot-base a {
  color: var(--strip);
}

.foot-base a:hover {
  color: var(--ink);
}

/* ============================================================
   BURGER + MENU (portrait)
   ============================================================ */
.burger {
  position: fixed;
  right: calc(22 * var(--m));
  top: calc(18 * var(--m) + env(safe-area-inset-top));
  z-index: 65;
  display: none;
  place-items: center;
  width: calc(48 * var(--m));
  height: calc(48 * var(--m));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(12, 12, 12, .65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.burger i {
  position: absolute;
  left: 50%;
  width: calc(19 * var(--m));
  height: calc(1.8 * var(--m));
  margin-left: calc(-9.5 * var(--m));
  border-radius: 2px;
  background: var(--ink);
  transition: transform .42s var(--ease);
}

.burger i:nth-child(1) {
  transform: translateY(calc(-4.3 * var(--m)));
}

.burger i:nth-child(2) {
  transform: translateY(calc(4.3 * var(--m)));
}

body.menu-open .burger i:nth-child(1) {
  transform: rotate(45deg);
}

body.menu-open .burger i:nth-child(2) {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .985));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s ease, visibility .42s ease;
  padding: calc(110 * var(--m) + env(safe-area-inset-top)) calc(22 * var(--m)) calc(30 * var(--m) + env(safe-area-inset-bottom));
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu {
  opacity: 1;
  visibility: visible;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.menu-eyebrow {
  font-size: calc(13 * var(--m));
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--strip);
}

.menu-list li {
  border-bottom: 1px solid var(--line);
}

.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(15 * var(--m)) 0;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  font-size: max(calc(30 * var(--m)), 25px);
}

.menu-list a::after {
  content: "";
  width: calc(8 * var(--m));
  height: calc(8 * var(--m));
  border-top: 1.5px solid var(--strip);
  border-right: 1.5px solid var(--strip);
  transform: rotate(45deg);
  flex: none;
}

.menu-foot {
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--m));
  align-items: flex-start;
}

.menu-foot .pill {
  position: static;
  width: auto;
  height: calc(50 * var(--m));
  padding: 0 calc(30 * var(--m));
  font-size: calc(16.5 * var(--m));
}

.menu-foot .g2 {
  position: static;
  font-size: calc(15.5 * var(--m));
  color: var(--muted);
}

.menu .reveal {
  opacity: 0;
  transform: translateY(calc(18 * var(--m)));
  transition: opacity .5s ease var(--d, 0s), transform .5s var(--ease) var(--d, 0s);
}

body.menu-open .menu .reveal {
  opacity: 1;
  transform: none;
}

.menu-eyebrow.reveal { --d: .06s; }
.menu-list li.reveal:nth-child(1) { --d: .10s; }
.menu-list li.reveal:nth-child(2) { --d: .16s; }
.menu-list li.reveal:nth-child(3) { --d: .22s; }
.menu-list li.reveal:nth-child(4) { --d: .28s; }
.menu-foot .reveal:nth-of-type(1) { --d: .32s; }
.menu-foot .reveal:nth-of-type(2) { --d: .36s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(calc(14 * var(--u))); }
}

@keyframes riseHead {
  from { opacity: 0; transform: translateY(calc(14 * var(--h))); }
}

@keyframes riseNav {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14 * var(--u))); }
}

@keyframes fadein {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand { animation: rise .8s var(--ease) both; }
  .links { animation: riseNav .8s var(--ease) both; }
  .pill-nav { animation: rise .8s var(--ease) both; }
  .speed-proof { animation: riseHead .9s var(--ease) .02s both; }
  .headline { animation: riseHead .9s var(--ease) .06s both; }
  .sub { animation: riseHead .9s var(--ease) .14s both; }
  .hero .pill-cta, .hero .ghost { animation: riseHead .9s var(--ease) .22s both; }
  .lg { animation: fadein 1.1s var(--ease) .34s both; }
  .scrollcue { animation: fadein 1.2s ease .8s both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   PORTRAIT / MOBILE / TABLET
   ============================================================ */
@media (max-aspect-ratio: 11/10) {
  :root {
    --m: min(calc(100vw / 430), 1.34px);
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
  }

  .plate video {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-position: 43% center;
  }

  .plate::after {
    background:
      linear-gradient(to right, rgba(5, 5, 5, .86), rgba(5, 5, 5, .66) 42%, rgba(5, 5, 5, .2) 78%, rgba(5, 5, 5, .1)),
      linear-gradient(to bottom, rgba(5, 5, 5, .72), rgba(5, 5, 5, .34) 24%, rgba(5, 5, 5, .34) 56%, rgba(5, 5, 5, .8) 82%, rgba(5, 5, 5, .97) 94%, #050505);
  }

  .topbar {
    height: auto;
    padding: calc(12 * var(--m) + env(safe-area-inset-top)) 0 calc(12 * var(--m));
    display: flex;
  }

  .topbar.scrolled {
    background: rgba(5, 5, 5, .78);
  }

  .brand {
    position: static;
    margin-left: calc(20 * var(--m));
    gap: calc(10 * var(--m));
    margin-right: auto;
  }

  .brand-mark {
    width: calc(22 * var(--m));
    height: calc(34 * var(--m));
  }

  .brand-word em {
    font-size: calc(19 * var(--m));
    letter-spacing: .5px;
  }

  .brand-word small {
    font-size: calc(7.4 * var(--m));
    letter-spacing: 2.4px;
    margin-top: 3px;
  }

  .links, .pill-nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .scrollcue {
    display: none;
  }

  .hero {
    position: relative;
    inset: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 calc(21 * var(--m)) calc(16 * var(--m));
  }

  .speed-proof {
    position: static;
    width: fit-content;
    margin-bottom: calc(16 * var(--m));
    padding: 5px 13px;
    font-size: 11.5px;
  }

  .dot-live {
    width: 6px;
    height: 6px;
  }

  .headline {
    position: static;
    font-size: max(calc(33 * var(--m)), 26px);
    line-height: 1.18;
    letter-spacing: .3px;
    margin-bottom: calc(12 * var(--m));
  }

  .headline span {
    display: inline;
    white-space: normal;
  }

  .headline span + span::before {
    content: " ";
  }

  .sub {
    position: static;
    font-size: max(calc(15.5 * var(--m)), 14px);
    line-height: 1.55;
    word-spacing: normal;
    margin-bottom: calc(26 * var(--m));
    max-width: 100%;
  }

  .sub span {
    display: inline;
    white-space: normal;
  }

  .sub span + span::before {
    content: " ";
  }

  .hero .pill-cta {
    position: static;
    width: auto;
    height: calc(52 * var(--m));
    padding: 0 calc(30 * var(--m));
    font-size: calc(16.5 * var(--m));
  }

  .hero .ghost {
    position: static;
    margin-top: calc(18 * var(--m));
    font-size: calc(15.5 * var(--m));
  }

  .logos {
    position: relative;
    inset: auto;
    flex: none;
    width: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: calc(20 * var(--m)) calc(26 * var(--m));
    justify-content: start;
    padding: calc(18 * var(--m)) calc(21 * var(--m)) calc(26 * var(--m) + env(safe-area-inset-bottom));
  }

  .lg {
    position: static;
    display: flex;
    align-items: center;
  }

  .lg svg {
    position: static;
    width: calc(22 * var(--m));
    height: calc(22 * var(--m));
    flex: none;
  }

  .lg2 svg {
    height: calc(26 * var(--m));
  }

  .lg .word {
    position: static;
    font-size: max(calc(15 * var(--m)), 13px);
    margin-left: calc(8 * var(--m));
    left: auto;
    top: auto;
  }

  .menu {
    display: flex;
  }

  .srv {
    grid-template-columns: 64px 1fr;
    grid-template-areas: 'n h' '. d' 't t';
  }

  .srv .n {
    padding-top: 4px;
  }

  .srv .ico {
    display: none;
  }

  .srv h3 {
    grid-area: h;
  }

  .srv .desc {
    grid-area: d;
  }

  .srv .tags {
    grid-area: t;
    grid-column: 1 / -1;
  }

  .wk {
    grid-template-columns: 1fr;
  }

  .wk.flip .vis {
    order: 0;
  }

  .vis {
    min-height: 300px;
  }

  .band {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 600px) and (max-aspect-ratio: 11/10) {
  :root {
    --m: min(calc(100vw / 860), calc(100vh / 760), 1.25px);
  }

  .plate video {
    object-position: 44% center;
  }

  .plate::after {
    background:
      linear-gradient(to right, rgba(5, 5, 5, .84), rgba(5, 5, 5, .6) 42%, rgba(5, 5, 5, .16) 78%, rgba(5, 5, 5, .06)),
      linear-gradient(to bottom, rgba(5, 5, 5, .66), rgba(5, 5, 5, .28) 24%, rgba(5, 5, 5, .3) 56%, rgba(5, 5, 5, .78) 82%, rgba(5, 5, 5, .96) 94%, #050505);
  }

  .headline {
    font-size: max(calc(44 * var(--m)), 32px);
  }

  .headline span {
    display: block;
  }

  .headline span + span::before {
    content: none;
  }

  .logos {
    grid-template-columns: repeat(4, auto);
    gap: calc(22 * var(--m)) calc(34 * var(--m));
  }

  .srv {
    grid-template-columns: 80px 52px 1fr;
    grid-template-areas: 'n i h' '. . d' 't t t';
  }

  .srv .ico {
    display: grid;
    grid-row: 1 / 3;
  }

  .band {
    grid-template-columns: repeat(4, 1fr);
  }

  .foot {
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  }
}

/* ---------- 404 ---------- */
.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 22px;
}

.nf svg {
  width: 44px;
  height: 61px;
  margin: 0 auto;
}

.nf h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 500;
  letter-spacing: -.02em;
  margin-top: 26px;
}

.nf p {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 420px;
}

.nf a.pill {
  margin-top: 30px;
  height: 52px;
  padding: 0 32px;
  font-size: 16px;
  display: inline-flex;
}
