/* =================================================================
   Josh De Vera — Premium Portfolio
   Design system: editorial serif + precise grotesque on a deep
   emerald-black canvas. Frosted glass surfaces, luminous teal.
   ================================================================= */

:root {
  /* --- Surfaces : deep emerald-black canvas --- */
  --bg:        #06120F;
  --bg-2:      #081915;
  --bg-3:      #0A201B;
  --ink-deep:  #040D0B;

  /* --- Glass material --- */
  --glass:        rgba(255, 255, 255, 0.045);
  --glass-2:      rgba(255, 255, 255, 0.075);
  --glass-3:      rgba(255, 255, 255, 0.11);
  --glass-line:   rgba(178, 226, 211, 0.14);
  --glass-line-2: rgba(178, 226, 211, 0.24);
  --glass-hi:     rgba(255, 255, 255, 0.55);   /* top inset highlight */
  --blur:         18px;

  /* --- Text --- */
  --ink:       #EAF4EF;
  --ink-soft:  #A6C2B8;
  --ink-faint: #6F8C82;

  /* --- Brand greens --- */
  --teal:      #35D6BE;   /* luminous accent for links / emphasis */
  --teal-l:    #5CE9D2;
  --teal-mid:  #1AA793;
  --teal-d:    #0F5257;   /* deep brand fill */
  --teal-dd:   #0A393C;

  /* --- Supporting --- */
  --accent:    #E7B968;   /* warm gold, used sparingly */
  --accent-2:  #F0CB85;
  --green:     #45D483;   /* CWV "good" */

  /* --- Lines --- */
  --line:       rgba(255, 255, 255, 0.085);
  --line-2:     rgba(255, 255, 255, 0.16);
  --line-light: rgba(255, 255, 255, 0.14);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient emerald glows + fine grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(53, 214, 190, 0.14), transparent 60%),
    radial-gradient(48% 42% at 6% 12%, rgba(15, 82, 87, 0.30), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(26, 167, 147, 0.10), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(53, 214, 190, 0.28); color: #fff; }

/* ------------------------------------------------ layout helpers */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section {
  padding-block: clamp(72px, 11vw, 150px);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
  opacity: 0.85;
}
.section-title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 16ch;
  text-wrap: balance;
  color: #F4FBF8;
}
.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(180deg, var(--teal-l), var(--teal));
  color: #053029;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 8px 24px -8px rgba(53,214,190,0.5),
    0 2px 8px -2px rgba(0,0,0,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 14px 34px -10px rgba(53,214,190,0.62),
    0 3px 10px -2px rgba(0,0,0,0.45);
}
.btn--ghost {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--glass-line-2);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}
.btn--ghost:hover { border-color: var(--teal); color: #fff; transform: translateY(-2px); background: var(--glass-2); }
.btn--light {
  background: var(--glass-2);
  color: var(--teal-l);
  border-color: var(--glass-line);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(0,0,0,0.5); }
.btn--block { width: 100%; justify-content: center; }

/* link with animated underline */
.ulink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--teal);
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .42s var(--ease);
}
.ulink:hover::after { transform: scaleX(1); }
.ulink .arrow { transition: transform .4s var(--ease); }
.ulink:hover .arrow { transform: translateX(4px); }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 22, 18, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--glass-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 40px -30px rgba(0,0,0,0.8);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(160deg, var(--teal-l), var(--teal-mid) 70%, var(--teal-d));
  color: #04201C;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 6px 16px -8px rgba(53,214,190,0.7);
}
.brand__name { font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); }
.brand__name small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-faint); font-weight: 500; text-transform: uppercase; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .25s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__menu-links { display: flex; gap: 30px; align-items: center; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__menu-links { display: none; }
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 90px);
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #F6FCFA;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero__sub {
  margin-top: 30px;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.62;
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__chips {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 9px;
}
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 7px 13px;
  border: 1px solid var(--glass-line);
  border-radius: 100px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip b { color: var(--teal); font-weight: 600; }

/* ---- hero visual : frosted storefront panel ---- */
.hero__visual {
  position: relative;
  perspective: 1600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.sf__stage { position: relative; height: 252px; }
.layer {
  position: absolute;
  inset: 0;
  padding: 18px;
  opacity: 0;
  transform: translateY(12px) scale(.99);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.layer.is-active { opacity: 1; transform: none; pointer-events: auto; }
.storefront {
  position: relative;
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line-2);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  box-shadow:
    0 1px 0 var(--glass-hi) inset,
    0 0 0 1px rgba(0,0,0,0.2),
    0 50px 90px -36px rgba(0,0,0,0.7),
    0 18px 40px -22px rgba(0,0,0,0.55);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(3deg) rotateZ(0.5deg);
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.hero__visual:hover .storefront { transform: rotateY(-4deg) rotateX(1.5deg); }
.sf__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--glass-line);
  background: rgba(255,255,255,0.03);
}
.sf__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.sf__url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-line);
  padding: 4px 12px;
  border-radius: 100px;
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
}
.sf__body { padding: 18px; }
.sf__hero {
  height: 92px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 130% at 80% 0%, rgba(231,185,104,0.45), transparent 55%),
    linear-gradient(135deg, var(--teal-mid), var(--teal-d));
  display: flex;
  align-items: center;
  padding: 0 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset;
}
.sf__hero::after {
  content: "";
  position: absolute;
  right: -20px; top: -30px;
  width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
}
.sf__hero-txt { display: flex; flex-direction: column; gap: 7px; }
.sf__line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.9); }
.sf__line.sm { height: 5px; background: rgba(255,255,255,0.55); }
.sf__grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sf__card {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf__thumb {
  height: 46px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.sf__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(53,214,190,0.22), rgba(231,185,104,0.18));
}
.sf__meta { height: 6px; width: 70%; border-radius: 4px; background: var(--line-2); }
.sf__meta.price { width: 40%; background: var(--teal); opacity: 0.7; }

/* ---------- floating morphing data card ---------- */
.metric-card {
  position: absolute;
  left: -28px;
  bottom: -36px;
  width: 252px;
  background: linear-gradient(165deg, rgba(10,32,27,0.86), rgba(4,16,13,0.9));
  color: #DCEDE6;
  border-radius: var(--radius);
  padding: 16px 16px 15px;
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 30px 60px -28px rgba(0,0,0,0.75);
  border: 1px solid var(--glass-line);
  z-index: 4;
}
.metric-card__title {
  position: absolute;
  top: -10px; left: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04201C;
  background: var(--green);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}
.metric-stage { position: relative; height: 64px; }
.mlayer {
  position: absolute; inset: 0;
  display: flex; gap: 12px; justify-content: space-between; align-items: flex-start;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.mlayer.is-active { opacity: 1; transform: none; }
.mcell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.mcell__lbl { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(220,237,230,0.6); }
.ring-wrap { position: relative; width: 42px; height: 42px; }
.ring { width: 42px; height: 42px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; stroke-linecap: round; }
.ring__track { stroke: rgba(255,255,255,0.12); }
.ring__val { stroke: var(--green); }
.ring-wrap .chk { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-size: 13px; font-weight: 700; }
.mtile {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center; color: #DCE8E2;
}
.mtile svg { width: 19px; height: 19px; }
.mtile--ok { color: var(--green); border-color: rgba(69,212,131,0.4); background: rgba(69,212,131,0.12); }

/* ---------- status badge (sits in the meta row) ---------- */
.hero__badge {
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line-2);
  border-radius: 100px;
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .4s var(--ease);
  white-space: nowrap;
}
.hero__badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(69,212,131,0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(69,212,131,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(69,212,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,212,131,0); }
}

/* ---------- scene dots ---------- */
.scene-dots {
  position: absolute;
  bottom: -62px; right: 4px;
  display: flex; gap: 8px; z-index: 5;
}
.scene-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--line-2);
  transition: width .35s var(--ease), background .35s var(--ease);
}
.scene-dots .dot.is-active { width: 24px; border-radius: 100px; background: var(--teal); }

/* ---------- generic mock bits ---------- */
.b { display: block; height: 6px; border-radius: 4px; background: var(--line-2); }
.b.sm { height: 5px; opacity: 0.7; }

/* MANAGE scene */
.adm { display: flex; flex-direction: column; gap: 11px; height: 100%; }
.adm__head { display: flex; align-items: center; justify-content: space-between; }
.adm__title { font-family: var(--serif); font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.adm__seg { display: flex; gap: 4px; }
.adm__seg i { width: 20px; height: 7px; border-radius: 100px; background: var(--line-2); }
.adm__seg i.on { width: 28px; background: var(--teal); opacity: 0.8; }
.adm__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.adm__tile { border: 1px solid var(--glass-line); border-radius: 9px; padding: 9px; background: rgba(255,255,255,0.035); display: flex; flex-direction: column; gap: 8px; }
.adm__tile .lbl { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.adm__spark { height: 24px; display: flex; align-items: flex-end; gap: 3px; }
.adm__spark i { flex: 1; border-radius: 2px; background: linear-gradient(var(--teal-l), var(--teal-mid)); opacity: 0.85; }
.adm__rows { display: flex; flex-direction: column; gap: 7px; }
.adm__row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--glass-line); border-radius: 8px; padding: 7px 10px; background: rgba(255,255,255,0.035); }
.adm__av { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.08); flex: none; }
.adm__row .lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pill { font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.pill--ok { background: rgba(69,212,131,0.18); color: #6fe6a4; }
.pill--wait { background: rgba(231,185,104,0.2); color: var(--accent-2); }

/* DESIGN scene */
.ed { display: grid; grid-template-columns: 96px 1fr; gap: 11px; height: 100%; }
.ed__panel { border: 1px solid var(--glass-line); border-radius: 9px; background: rgba(255,255,255,0.035); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.ed__sec { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 6px; }
.ed__sec.on { background: rgba(53,214,190,0.14); }
.ed__sec i { width: 5px; height: 5px; border-radius: 1px; background: var(--line-2); flex: none; }
.ed__sec .t { height: 5px; flex: 1; border-radius: 3px; background: var(--line-2); }
.ed__sec.on i, .ed__sec.on .t { background: var(--teal); opacity: 0.85; }
.ed__canvas { border: 1px solid var(--glass-line); border-radius: 9px; background: rgba(255,255,255,0.035); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ed__bar2 { height: 14px; border-radius: 5px; background: rgba(255,255,255,0.07); }
.ed__sel { flex: 1; border-radius: 7px; border: 1.5px dashed var(--teal); position: relative; background: radial-gradient(120% 130% at 80% 0%, rgba(231,185,104,0.35), transparent 55%), linear-gradient(135deg, var(--teal-mid), var(--teal-d)); }
.ed__sel::before, .ed__sel::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--teal); background: var(--bg-3); border-radius: 2px; }
.ed__sel::before { top: -4px; left: -4px; }
.ed__sel::after { bottom: -4px; right: -4px; }
.ed__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; height: 30px; }
.ed__cols div { border: 1px solid var(--glass-line); border-radius: 5px; background: rgba(255,255,255,0.04); }

/* SEO scene */
.seo { display: flex; flex-direction: column; gap: 9px; height: 100%; }
.seo__search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--glass-line-2); border-radius: 100px; padding: 7px 13px; background: rgba(255,255,255,0.04); }
.seo__search .mag { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink-faint); position: relative; flex: none; }
.seo__search .mag::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 5px; height: 1.5px; background: var(--ink-faint); transform: rotate(45deg); border-radius: 2px; }
.seo__search .t { height: 6px; width: 120px; border-radius: 4px; background: var(--line-2); }
.seo__result { display: flex; flex-direction: column; gap: 6px; }
.seo__url { height: 5px; width: 76px; border-radius: 3px; background: var(--green); opacity: 0.85; }
.seo__h { height: 9px; width: 168px; border-radius: 4px; background: var(--teal); opacity: 0.95; }
.seo__d { height: 5px; border-radius: 3px; background: var(--line-2); }
.seo__rich { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.seo__stars { color: var(--accent-2); font-size: 10px; letter-spacing: 1.5px; }
.seo__chip { font-family: var(--mono); font-size: 8px; padding: 2px 7px; border: 1px solid var(--glass-line-2); border-radius: 100px; color: var(--ink-soft); }
.seo__ai { border: 1px solid var(--glass-line); border-radius: 9px; padding: 9px 10px; background: rgba(255,255,255,0.035); display: flex; flex-direction: column; gap: 6px; }
.seo__ai .tag { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.seo__ai .tag .dotg { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.seo__cite { align-self: flex-start; font-family: var(--mono); font-size: 8px; padding: 2px 8px; border-radius: 100px; background: rgba(53,214,190,0.14); color: var(--teal-l); }

/* =================================================================
   BIGGER, INTERACTIVE HERO VISUAL  (overrides + new scenes)
   ================================================================= */
.hero__visual { --scene-dur: 5s; }
.storefront { cursor: pointer; }
.sf__stage { height: 388px; }
.layer { padding: 22px; }

/* storefront page (speed scene) */
.sf__page { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.sf__shead { display: flex; align-items: center; justify-content: space-between; }
.sf__logo { width: 46px; height: 11px; border-radius: 3px; background: rgba(255,255,255,0.5); }
.sf__navx { display: flex; gap: 14px; }
.sf__navx i { width: 28px; height: 6px; border-radius: 3px; background: var(--line-2); }
.sf__cart { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); }
.sf__hero { height: 150px; flex: none; }
.sf__btn { display: block; margin-top: 12px; width: 96px; height: 26px; border-radius: 100px; background: rgba(255,255,255,0.92); }
.sf__grid { margin-top: 0; flex: 1; }
.sf__card { height: 100%; }
.sf__thumb { height: auto; flex: 1; min-height: 64px; }

/* fill the taller frame */
.adm, .seo, .cust, .admn { justify-content: space-between; }

/* BUILD scene */
.bld { display: flex; flex-direction: column; gap: 13px; height: 100%; }
.bld__head { display: flex; align-items: center; justify-content: space-between; }
.bld__title { font-family: var(--serif); font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.bld__pct { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.bld__bar { height: 6px; border-radius: 100px; background: var(--line-2); overflow: hidden; }
.bld__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-l), var(--teal-mid)); border-radius: 100px; }
.bld__steps { display: flex; flex-direction: column; gap: 11px; flex: 1; justify-content: center; }
.bld__step { display: flex; align-items: center; gap: 12px; }
.bld__step .b { flex: 1; }
.bld__tick, .bld__o, .bld__dot { width: 19px; height: 19px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; }
.bld__tick { background: var(--green); color: #04201C; }
.bld__dot { border: 2px solid var(--teal); }
.bld__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.bld__o { border: 1.5px solid var(--line-2); }
.bld__step.done .b { opacity: 0.4; }
.bld__launch { height: 36px; border-radius: 9px; background: linear-gradient(180deg, var(--teal-mid), var(--teal-d)); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset; }
.bld__launch span { width: 88px; height: 9px; border-radius: 100px; background: rgba(255,255,255,0.9); }

/* CUSTOMERS scene */
.cust { display: flex; flex-direction: column; gap: 13px; height: 100%; }
.cust__top { display: flex; align-items: center; gap: 12px; }
.cust__av { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(120% 120% at 70% 20%, var(--teal-l), var(--teal-d)); flex: none; }
.cust__id { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.cust__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.cust__tile { border: 1px solid var(--glass-line); border-radius: 9px; padding: 11px; background: rgba(255,255,255,0.035); display: flex; flex-direction: column; gap: 9px; }
.cust__tile .lbl { font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ADMIN scene */
.admn { display: flex; flex-direction: column; gap: 9px; height: 100%; }
.admn__title { font-family: var(--serif); font-size: 18px; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 2px; }
.admn__row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--glass-line); border-radius: 9px; padding: 12px 13px; background: rgba(255,255,255,0.035); flex: 1; }
.admn__ic { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.07); border: 1px solid var(--glass-line); flex: none; }
.admn__row .b { flex: 1; }
.sw { width: 32px; height: 18px; border-radius: 100px; background: var(--line-2); position: relative; flex: none; transition: background .3s var(--ease); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .3s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.sw.on { background: var(--green); }
.sw.on::after { left: 16px; }

/* bigger morphing data card */
.metric-card { width: 270px; left: -30px; bottom: -38px; }
.metric-stage { height: 66px; }
.ring-wrap, .ring { width: 46px; height: 46px; }
.mtile { width: 46px; height: 46px; }
.mtile svg { width: 20px; height: 20px; }

/* ----- story progress segments (docked above the device) ----- */
.scene-track { display: flex; gap: 6px; padding: 0 2px; }
.seg { flex: 1; height: 4px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.16); border-radius: 100px; overflow: hidden; }
.seg i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 100px; }
.seg.done i { width: 100%; }
.seg.run i { animation: segfill var(--scene-dur) linear forwards; }
@keyframes segfill { from { width: 0; } to { width: 100%; } }
.hero__visual.is-paused .seg.run i { animation-play-state: paused; }

/* ----- meta row : status + nav, one tidy line under the device ----- */
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}
.scene-ctl { display: flex; align-items: center; gap: 13px; }
.scene-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-faint); }
.scene-prev { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line-2); background: var(--glass); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.scene-prev:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); background: var(--glass-2); }
.scene-prev svg { width: 16px; height: 16px; }
.scene-next { display: inline-flex; align-items: center; gap: 9px; padding: 11px 21px; border-radius: 100px; border: 1px solid var(--glass-line-2); background: var(--glass); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: var(--sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.scene-next:hover { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-l), var(--teal)); color: #053029; transform: translateY(-2px); }
.scene-next .arrow { transition: transform .35s var(--ease); }
.scene-next:hover .arrow { transform: translateX(4px); }

@media (max-width: 980px) {
  .hero__visual { max-width: 600px; }
}
@media (max-width: 620px) {
  .sf__stage { height: 336px; }
  .scene-ctl { gap: 10px; }
  .scene-next { padding: 10px 16px; font-size: 12.5px; }
  .storefront { transform: none; }
  .hero__visual:hover .storefront { transform: none; }
}

/* =================================================================
   MARQUEE / proof strip
   ================================================================= */
.proof {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.proof__track {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.proof:hover .proof__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.proof__item::after { content: "✦"; color: var(--teal); font-style: normal; font-size: 13px; }

/* =================================================================
   SERVICES
   ================================================================= */
.services { background: var(--bg); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
}
.svc {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px) clamp(24px, 2.4vw, 36px);
  position: relative;
  transition: background .5s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.svc:hover { background: var(--glass-2); }
.svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.svc__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.svc__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--glass-line-2);
  background: var(--glass);
  display: grid; place-items: center;
  color: var(--teal);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease), box-shadow .4s var(--ease);
}
.svc:hover .svc__icon {
  background: linear-gradient(160deg, var(--teal-l), var(--teal-mid));
  color: #04201C;
  border-color: var(--teal);
  transform: rotate(-6deg);
  box-shadow: 0 8px 20px -8px rgba(53,214,190,0.6);
}
.svc__icon svg { width: 20px; height: 20px; }
.svc h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 34px;
  margin-bottom: 12px;
  color: #F2FAF7;
}
.svc p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 34ch;
}

/* =================================================================
   WORK
   ================================================================= */
.work { background: var(--bg-2); }
.cases { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 54px); }
.case {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 3.5vw, 52px);
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 40px 70px -44px rgba(0,0,0,0.7); border-color: var(--glass-line-2); }
.case:nth-child(even) .case__media { order: 2; }
.case__index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.case__role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 18px 0 14px;
}
.case h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #F2FAF7;
}
.case p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 44ch;
}
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
}
.case__tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 12px;
  border: 1px solid var(--glass-line-2);
  border-radius: 100px;
}
/* stylized media panel */
.case__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  aspect-ratio: 4 / 3;
  position: relative;
  background: rgba(0,0,0,0.25);
}
.case__media .mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.mock__bar { padding: 11px 14px; border-bottom: 1px solid var(--glass-line); display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.03); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
.mock__view { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock__banner {
  height: 40%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
.mock__cell { border: 1px solid var(--glass-line); border-radius: 7px; background: rgba(255,255,255,0.04); }

.case--taste .mock__banner { background: radial-gradient(130% 130% at 75% 10%, rgba(231,185,104,0.5), transparent 60%), linear-gradient(135deg, var(--teal-mid), var(--teal-d)); }
.case--adahlia .mock__banner { background: radial-gradient(130% 130% at 25% 10%, rgba(231,185,104,0.45), transparent 60%), linear-gradient(135deg, #5B4A66, #2A2230); }

/* --- Problem / approach / outcome -------------------------------
   Case studies read as three labelled beats instead of one prose
   paragraph. The left rule colour-codes the beat: gold for the
   problem, teal for the work, green for the result.
   ---------------------------------------------------------------- */
.paq { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.paq__blk { border-left: 2px solid var(--glass-line-2); padding-left: 16px; }
.paq__blk--p { border-left-color: var(--accent); }
.paq__blk--a { border-left-color: var(--teal); }
.paq__blk--o { border-left-color: var(--green); }
.paq__k {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.paq__blk--p .paq__k { color: var(--accent-2); }
.paq__blk--a .paq__k { color: var(--teal); }
.paq__blk--o .paq__k { color: var(--green); }
.paq p { margin-top: 0; font-size: 15px; max-width: 46ch; }
.paq__list { list-style: none; margin: 0; padding: 0; }
.paq__list li {
  position: relative;
  padding: 4px 0 4px 17px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.paq__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 1px;
  background: var(--teal);
  opacity: 0.75;
}

/* Client quote, sitting with its own case study.
   Unused until a real testimonial exists — see the commented markup
   in index.html. Styled ahead of time so pasting one in just works. */
.case__quote {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--glass-line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0;
  background: var(--glass);
}
.case__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 46ch;
}
.case__quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =================================================================
   FAQ — native details/summary, no JavaScript.
   Mirrors the FAQPage JSON-LD in index.html <head>.
   ================================================================= */
.faq { background: var(--bg-2); }
.faq__list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 6px;
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { padding-left: 20px; background: var(--glass); }
.faq__item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: 6px;
}
.faq__q {
  flex: 1;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #F2FAF7;
}
/* the +/− is drawn, not typed, so it never inherits a font quirk */
.faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  background: var(--teal);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.faq__mark::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.faq__mark::after  { top: 0; left: 7.5px; width: 1.5px; height: 16px; }
.faq__item[open] .faq__mark::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  padding: 0 6px 28px 0;
  max-width: 66ch;
}
.faq__a p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.68;
}
@media (prefers-reduced-motion: reduce) {
  .faq__item summary,
  .faq__mark::before,
  .faq__mark::after { transition: none; }
}

/* =================================================================
   WRITING
   ================================================================= */
.writing { background: var(--bg); }
.posts { border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
.post:hover { padding-left: 22px; background: var(--glass); }
.post__date { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; white-space: nowrap; }
.post__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.015em; line-height: 1.15; color: #EEF7F3; }
.post__arrow { color: var(--teal); transition: transform .4s var(--ease); }
.post:hover .post__arrow { transform: translate(5px, -5px); }

/* =================================================================
   ABOUT
   ================================================================= */
.about { background: linear-gradient(180deg, var(--bg-3), #08201C); color: #EAF4EF; position: relative; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(53,214,190,0.16), transparent 62%);
  pointer-events: none;
}
.about .eyebrow { color: var(--teal); }
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  position: relative;
}
.about__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(166,194,184,0.45);
  letter-spacing: -0.02em;
}
.about__mark span { color: var(--teal); -webkit-text-stroke: 0; }
.about__sig {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(166,194,184,0.75);
  text-transform: uppercase;
}
.about h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  text-wrap: balance;
  color: #F4FBF8;
}
.about p {
  color: rgba(214,232,224,0.82);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-bottom: 18px;
  max-width: 56ch;
  line-height: 1.7;
}
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 48px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(166,194,184,0.18);
}
.fact__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: #F4FBF8; line-height: 1; letter-spacing: -0.02em; }
.fact__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(166,194,184,0.65); text-transform: uppercase; margin-top: 8px; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background: var(--bg-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
.contact__lead h2 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
  color: #F4FBF8;
}
.contact__lead p { color: var(--ink-soft); max-width: 40ch; margin-bottom: 32px; }
.callcard {
  border: 1px solid var(--glass-line-2);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.callcard__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.callcard h3 { font-family: var(--serif); font-weight: 420; font-size: 1.55rem; letter-spacing: -0.01em; color: #F2FAF7; }
.callcard p { color: var(--ink-soft); font-size: 14.5px; }
.contact__links {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: padding-left .4s var(--ease);
}
.clink:hover { padding-left: 14px; }
.clink span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.clink span:last-child { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--glass-line-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  width: 100%;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 4px rgba(53,214,190,0.14);
}
.field textarea { min-height: 130px; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--ink-deep);
  color: rgba(214,232,224,0.7);
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__big {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #F4FBF8;
  max-width: 18ch;
  text-wrap: balance;
}
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--teal); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(214,232,224,0.45);
}

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .proof__track { animation: none; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; }
  .case, .case:nth-child(even) .case__media { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .case__media { order: 0; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .post { grid-template-columns: 1fr auto; }
  .post__date { display: none; }
  .nav__cta .btn { display: none; }
  .hero__badge { right: 0; }
  .metric-card { left: -8px; }
  .scene-dots { right: 0; }
}

/* =================================================================
   THEME TOGGLE BUTTON
   ================================================================= */
.theme-toggle {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--glass-line-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  color: var(--ink-soft);
  flex: none;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--teal); transform: translateY(-2px); background: var(--glass-2); }
.theme-toggle svg {
  position: absolute;
  width: 18px; height: 18px;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle__moon { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle__sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* =================================================================
   DARK "DEVICE" ISLANDS — the showcase panels keep dark internals
   in BOTH themes (their skeletons read against dark glass).
   Re-declaring tokens on these roots pins their subtree to dark.
   ================================================================= */
.storefront,
.metric-card,
.case__media {
  --ink: #EAF4EF;
  --ink-soft: #A6C2B8;
  --ink-faint: #6F8C82;
  --head: #F4FBF8;
  --line: rgba(255,255,255,0.085);
  --line-2: rgba(255,255,255,0.16);
  --glass: rgba(255,255,255,0.045);
  --glass-2: rgba(255,255,255,0.075);
  --glass-3: rgba(255,255,255,0.11);
  --glass-line: rgba(178,226,211,0.14);
  --glass-line-2: rgba(178,226,211,0.24);
  --teal: #35D6BE;
  --teal-l: #5CE9D2;
  --bg-3: #0A201B;
}
/* keep brand accent luminous on the permanently-dark bands */
.about, .footer { --teal: #35D6BE; --teal-l: #5CE9D2; }

/* =================================================================
   LIGHT THEME — cool frosted-white glass (never cream)
   ================================================================= */
[data-theme="light"] {
  --bg:        #E8F0EC;
  --bg-2:      #DEEAE4;
  --bg-3:      #D7E6DF;
  --ink-deep:  #08201C;   /* footer stays a deep emerald anchor */

  --ink:       #122621;
  --ink-soft:  #41584F;
  --ink-faint: #5E776E;
  --head:      #0C231F;

  --teal:      #0C7268;   /* deepened for contrast on light */

  --glass:        rgba(255,255,255,0.55);
  --glass-2:      rgba(255,255,255,0.74);
  --glass-3:      rgba(255,255,255,0.9);
  --glass-line:   rgba(15,82,87,0.14);
  --glass-line-2: rgba(15,82,87,0.24);

  --line:   rgba(16,42,37,0.12);
  --line-2: rgba(16,42,37,0.2);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(58% 48% at 82% -10%, rgba(53,214,190,0.18), transparent 60%),
    radial-gradient(46% 40% at 3% 8%, rgba(15,82,87,0.10), transparent 60%),
    radial-gradient(70% 60% at 50% 122%, rgba(26,167,147,0.08), transparent 60%);
}
[data-theme="light"] body::after { mix-blend-mode: multiply; opacity: 0.04; }

/* headings flip to deep emerald (dark sections keep their light text) */
[data-theme="light"] .section-title,
[data-theme="light"] .hero h1,
[data-theme="light"] .svc h3,
[data-theme="light"] .case h3,
[data-theme="light"] .post__title,
[data-theme="light"] .contact__lead h2,
[data-theme="light"] .callcard h3 { color: var(--head); }

[data-theme="light"] .section-num { color: var(--teal); }

/* nav glass on light */
[data-theme="light"] .nav.is-stuck {
  background: rgba(255,255,255,0.6);
  border-bottom-color: var(--glass-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 40px -30px rgba(16,50,44,0.35);
}

/* vibrant primary button on light */
[data-theme="light"] .btn--primary {
  background: linear-gradient(180deg, #17B4A1, #0E867B);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 8px 24px -8px rgba(14,134,123,0.45),
    0 2px 8px -2px rgba(0,0,0,0.15);
}
[data-theme="light"] .btn--primary:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 34px -10px rgba(14,134,123,0.55),
    0 3px 10px -2px rgba(0,0,0,0.18);
}
[data-theme="light"] .brand__mark { color: #04201C; }

/* light wells for inputs */
[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  background: rgba(255,255,255,0.66);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(12,114,104,0.13);
}

/* soften the big card hover shadow for the light surface */
[data-theme="light"] .case:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 38px 64px -44px rgba(16,50,44,0.4);
}

/* =================================================================
   FORM STATUS + HONEYPOT  (Web3Forms integration)
   ================================================================= */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.form-status {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  min-height: 1em;
  margin-top: -4px;
}
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #FF9A8B; }

/* =================================================================
   BLOG / ARTICLE PAGES  (same emerald-glass system)
   ================================================================= */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: clamp(44px, 8vw, 104px);
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .25s var(--ease); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { opacity: 0.5; }

.article-header { margin-bottom: 44px; }
.article-header .eyebrow { margin-bottom: 22px; }
.article-title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  color: #F4FBF8;
}
[data-theme="light"] .article-title { color: var(--head); }
.article-standfirst {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 54ch;
}

.article-body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.78;
  margin-bottom: 24px;
  max-width: 68ch;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: #F2FAF7;
  margin: 50px 0 18px;
  text-wrap: balance;
}
[data-theme="light"] .article-body h2 { color: var(--head); }
.article-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .25s var(--ease);
}
.article-body a:hover { color: var(--teal-l); }
[data-theme="light"] .article-body a:hover { color: var(--teal-mid); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }

/* in-article CTA card */
.cta-card {
  margin: 50px 0;
  border: 1px solid var(--glass-line-2);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(165deg, var(--glass-2), var(--glass));
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.cta-card .card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.cta-title {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  letter-spacing: -0.015em;
  line-height: 1.16;
  color: #F2FAF7;
  margin: 12px 0 14px;
  text-wrap: balance;
}
[data-theme="light"] .cta-title { color: var(--head); }
.cta-text {
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.66;
  max-width: 56ch;
}

/* FAQ accordion */
.faq { margin: 54px 0 40px; }
.faq > h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.015em;
  color: #F2FAF7;
  margin-bottom: 20px;
}
[data-theme="light"] .faq > h2 { color: var(--head); }
.faq details {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq details[open] { border-color: var(--glass-line-2); background: var(--glass-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
  transition: transform .3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  line-height: 1.66;
  margin: 0;
  max-width: none;
}

/* "back to" text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 18px;
}
.text-link span { transition: transform .35s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
