/* =====================================================================
   dFortix.ai — landing styles
   Hybrid: dark cosmic hero + dark proof bands; warm-bone light proof
   ===================================================================== */

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink:        #0a0f1e;
  --ink-2:      #121a2e;
  --ink-3:      #1c2541;
  --ink-border: rgba(255,255,255,0.08);
  --ink-text:   #e7ecf3;
  --ink-dim:    #a3adbe;
  --ink-mute:   #6b7388;

  --bone:       #f6f4ef;
  --bone-2:     #ece8df;
  --paper:      #ffffff;
  --char:       #141822;
  --char-2:     #3a414f;
  --char-mute:  #6b7280;
  --hair:       #e5e1d6;

  --cyan:       #29a6ff;
  --cyan-hi:    #66c0ff;
  --cyan-dim:   #1a73d1;
  --gold:       #fbbf24;
  --gold-soft:  rgba(251,191,36,.18);
  --rose:       #ef4444;
  --green:      #10b981;

  --maxw:       1240px;
  --gutter:     clamp(20px, 4vw, 56px);

  --serif:      'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --sans:       'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:       'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  --radius:     14px;
  --radius-lg:  22px;
  --ring:       0 0 0 1px rgba(255,255,255,.06);
  --shadow:     0 22px 60px -20px rgba(10,15,30,.35);
}

/* ---------- type ---------- */
.serif    { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono     { font-family: var(--mono); font-feature-settings: "tnum","ss01"; }
.eyebrow  { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--char-mute); }
.eyebrow.on-dark { color: var(--ink-dim); }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 12px var(--cyan); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; color: inherit; }
h1 { font-size: clamp(46px, 7.5vw, 96px); }
h2 { font-size: clamp(36px, 5.2vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-family: var(--sans); font-weight: 600; letter-spacing: -.005em; }

em.it { font-style: italic; color: var(--cyan); }
em.gold { font-style: italic; color: var(--gold); }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--char-2); max-width: 60ch; }
.lede.on-dark { color: var(--ink-dim); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1380px; }
section { position: relative; }

/* ---------- navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  /* Top of page: translucent frosted glass — the hero shows through. */
  background: rgba(10,15,30,.18);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* Once scrolled (over the lighter lower sections) the bar fills in so the
   light nav text stays readable. Toggled by main.js. */
.nav.scrolled {
  background: rgba(10,15,30,.6);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 28px -16px rgba(0,0,0,.6);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-text); }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand-name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; font-size: 15px; }
.brand-name .ai { color: var(--cyan); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-dim); font-size: 14px; letter-spacing: .01em; transition: color .2s; }
.nav-links a:hover { color: var(--ink-text); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--cyan); color: #04111f; font-weight: 600; font-size: 14px;
  border: 1px solid var(--cyan-hi);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(41,166,255,.35); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #050912 0%, #0a0f1e 70%, #060a14 100%);
  color: var(--ink-text);
  /* Pull up behind the sticky 64px nav so the hero's dark background sits behind
     the translucent navbar at the top, and fill the full viewport height. */
  margin-top: -64px;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(64px + clamp(44px, 6vw, 84px)) 0 clamp(84px, 9vw, 120px);
}

/* scroll-down affordance pinned to the bottom of the full-height hero */
.hero-scroll {
  position: absolute; left: 50%; bottom: clamp(18px, 3vh, 30px);
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--ink-mute); text-decoration: none;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--ink-text); }
.hero-scroll svg { width: 22px; height: 22px; animation: heroArrow 1.8s ease-in-out infinite; }
@keyframes heroArrow {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}

/* layered hero background — professional, no kitsch */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* aurora mesh: slow-drifting soft radial gradients */
.hero-mesh {
  position: absolute; inset: -25%;
  background:
    radial-gradient(40% 30% at 18% 22%, rgba(41,166,255,.28), transparent 62%),
    radial-gradient(36% 26% at 78% 55%, rgba(99,102,241,.22), transparent 62%),
    radial-gradient(30% 24% at 58% 8%,  rgba(251,191,36,.10), transparent 62%),
    radial-gradient(28% 22% at 88% 92%, rgba(41,166,255,.14), transparent 62%);
  filter: blur(50px);
  animation: mesh-drift 32s ease-in-out infinite alternate;
  will-change: transform;
  opacity: .9;
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0,0,0)        rotate(0deg);   }
  50%  { transform: translate3d(-3%, 2%, 0)   rotate(4deg);   }
  100% { transform: translate3d(2%, -3%, 0)   rotate(-3deg);  }
}

/* fine dot grid — technical, faded at edges */
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image:        radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 88%);
  opacity: .8;
}

/* concentric horizon arcs anchored at the bottom — subtle depth */
.hero-orbits {
  position: absolute; left: 50%; bottom: -100vw; transform: translateX(-50%);
  width: 220vw; height: 220vw; max-width: 2400px; max-height: 2400px;
  border-radius: 50%;
  border: 1px solid rgba(102, 192, 255, .07);
}
.hero-orbits::before, .hero-orbits::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(102, 192, 255, .055);
}
.hero-orbits::before { inset: 8%;  border-color: rgba(102,192,255,.05); }
.hero-orbits::after  { inset: 18%; border-color: rgba(102,192,255,.035); }

/* horizon glow line at bottom */
.hero-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(41,166,255,.55) 50%, transparent 96%);
  box-shadow: 0 0 60px 4px rgba(41,166,255,.18);
}

/* slow vertical scan-line sweep */
.hero-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102,192,255,.45), transparent);
  animation: scan 14s linear infinite;
  opacity: 0;
}
@keyframes scan {
  0%   { transform: translateY(0vh);    opacity: 0;   }
  10%  {                               opacity: .55; }
  90%  {                               opacity: .55; }
  100% { transform: translateY(100vh); opacity: 0;   }
}

/* vignette to keep text legible over the mesh */
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,9,18,.55) 0%, transparent 35%, transparent 65%, rgba(5,9,18,.7) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(5,9,18,.5) 90%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-scan { animation: none; }
}

.hero-inner { position: relative; z-index: 2; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: var(--ink-dim); letter-spacing: .04em;
  margin-bottom: 32px;
}
.hero-chip .badge { padding: 3px 8px; border-radius: 999px; background: var(--cyan); color: #04111f; font-weight: 700; font-size: 11px; }

.hero h1 { max-width: 18ch; }
.hero h1 .stack { color: var(--gold); font-style: italic; }
.hero h1 .one { color: var(--cyan); font-style: italic; position: relative; }
.hero h1 .one::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .6;
}
.hero-sub { margin-top: 28px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-dim); line-height: 1.55; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: #04111f;
  box-shadow: 0 10px 28px -8px rgba(41,166,255,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(41,166,255,.7); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--ink-text); border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-arrow { font-family: var(--mono); margin-left: 4px; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px 36px; margin-top: 64px; align-items: center;
  font-size: 13px; color: var(--ink-mute); letter-spacing: .02em;
}
.hero-trust .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-right: 8px; }
.client-mark { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-dim); transition: color .2s; }
.client-mark:hover { color: var(--ink-text); }

/* ---------- PROBLEM (light) ---------- */
.problem { background: var(--bone); padding: clamp(96px, 12vw, 140px) 0; border-top: 1px solid var(--hair); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.problem-grid > * { min-width: 0; }
@media (max-width: 980px) { .problem-grid { grid-template-columns: 1fr; gap: 48px; } }
.problem h2 { margin-top: 18px; max-width: 16ch; color: var(--char); }
.problem h2 em { font-style: italic; color: var(--rose); }
.problem .lede { margin-top: 24px; }
.cost-card {
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 12px 40px -24px rgba(10,15,30,.2);
}
.cost-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--hair); align-items: baseline; }
.cost-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cost-row .name { font-size: 15px; color: var(--char); }
.cost-row .name span { display: block; color: var(--char-mute); font-size: 12px; margin-top: 2px; }
.cost-row .val { font-family: var(--mono); font-size: 16px; color: var(--char); font-variant-numeric: tabular-nums; }
.cost-row .val.muted { color: var(--char-mute); text-decoration: line-through; }
.cost-total { margin-top: 14px; padding: 18px 0 0; border-top: 2px solid var(--char); display: flex; justify-content: space-between; align-items: baseline; }
.cost-total .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--char-mute); }
.cost-total .value { font-family: var(--serif); font-size: 44px; color: var(--rose); font-style: italic; }
.cost-foot { margin-top: 10px; font-size: 13px; color: var(--char-mute); }
.cost-foot strong { color: var(--char); }
.problem-pain { margin-top: 28px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.problem-pain li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; color: var(--char-2); font-size: 16px; line-height: 1.5; }
.problem-pain li::before {
  content: '×'; font-family: var(--mono); color: var(--rose); font-weight: 700; font-size: 18px; line-height: 1.4;
}

/* ---------- DISRUPTOR / WALL OF RETIRED VENDORS ---------- */
.kill {
  background: var(--ink); color: var(--ink-text);
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative; overflow: hidden;
}
.kill::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(239,68,68,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(41,166,255,.10) 0%, transparent 45%);
  pointer-events: none;
}
.kill > * { position: relative; }
.kill .section-head h2 { color: var(--ink-text); }
.kill .section-head .lede { color: var(--ink-dim); }

.kill-compare {
  display: grid; grid-template-columns: 1.6fr auto 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: 16px;
}
.kill-panel {
  background: rgba(255,255,255,.025); border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 460px;
}
.kill-panel h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-mute); margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.kill-panel h4 .count {
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--rose); letter-spacing: 0;
}
.kill-panel.after h4 .count { color: var(--cyan); }

.kill-wall { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kill-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ink-border);
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,.75);
  text-decoration-thickness: 1.5px;
  position: relative;
  transition: background .2s, transform .2s;
}
.kill-pill:hover { background: rgba(239,68,68,.08); transform: rotate(-1deg); }
.kill-pill .cat {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.06); color: var(--ink-mute);
  text-decoration: none;
}
.kill-pill.big { font-size: 15px; padding: 9px 16px; }

.kill-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-mute); font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
}
.kill-arrow .line {
  width: 1px; height: 60px; background: linear-gradient(180deg, transparent, var(--cyan), transparent);
}
.kill-arrow .glyph {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(41,166,255,.4);
  background: rgba(41,166,255,.08);
  display: grid; place-items: center;
  color: var(--cyan); font-size: 20px; font-family: var(--sans);
  box-shadow: 0 0 24px rgba(41,166,255,.2);
}

.kill-one {
  display: flex; flex-direction: column; gap: 18px; align-items: stretch;
}
.kill-one-card {
  background: linear-gradient(180deg, rgba(41,166,255,.12), rgba(41,166,255,.04));
  border: 1px solid rgba(41,166,255,.3);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 0 40px -10px rgba(41,166,255,.4);
}
.kill-one-card img { width: 40px; height: 40px; border-radius: 50%; }
.kill-one-card .nm { font-family: var(--serif); font-size: 26px; color: var(--ink-text); line-height: 1; }
.kill-one-card .nm small { display: block; font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: .14em; margin-top: 4px; }
.kill-one-feat {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--ink-dim); font-family: var(--mono);
}
.kill-one-feat li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; line-height: 1.4; }
.kill-one-feat li::before { content: '✓'; color: var(--cyan); font-weight: 700; }
.kill-savings {
  margin-top: 12px; padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--ink-border);
  border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.kill-savings .l { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.kill-savings .v { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--gold); line-height: 1; }

@media (max-width: 980px) {
  .kill-compare { grid-template-columns: 1fr; }
  .kill-arrow { flex-direction: row; }
  .kill-arrow .line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
}

/* ---------- CAPABILITIES ---------- */
.capabilities { background: var(--bone); padding: clamp(80px, 10vw, 130px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-head h2 { max-width: 18ch; color: var(--char); }
.section-head .lede { color: var(--char-2); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; }
.cap {
  background: var(--bone); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .2s;
}
.cap:hover { background: var(--paper); }
.cap-num { font-family: var(--mono); font-size: 11px; color: var(--char-mute); letter-spacing: .14em; }
.cap-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--char); }
.cap-title em { font-style: italic; color: var(--cyan-dim); }
.cap-body { font-size: 15px; line-height: 1.55; color: var(--char-2); }
.cap-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.cap-tags span { font-family: var(--mono); font-size: 11px; padding: 4px 8px; background: var(--bone-2); border-radius: 6px; color: var(--char-2); }
@media (max-width: 920px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- HOW IT WORKS ---------- */
.how { background: var(--bone-2); padding: clamp(80px, 10vw, 130px) 0; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.how-step { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 270px; }
.how-step .num {
  font-family: var(--mono); font-size: 12px; color: var(--char-mute);
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.how-step .num::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--char-mute); }
.how-step .title { font-family: var(--serif); font-size: 28px; line-height: 1.05; color: var(--char); }
.how-step .body { font-size: 14.5px; color: var(--char-2); line-height: 1.55; }
.how-step .meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--hair); font-family: var(--mono); font-size: 11px; color: var(--char-mute); letter-spacing: .04em; }
@media (max-width: 980px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }

/* ---------- PORTFOLIO ---------- */
.portfolio { background: var(--bone); padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--hair); }
.port-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(260px, auto); gap: 22px; }
.port-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--hair);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.port-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(10,15,30,.25); }
.port-card .shot { position: relative; overflow: hidden; background: var(--bone-2); aspect-ratio: 16/10; }
.port-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.port-card:hover .shot img { transform: scale(1.03); }
/* Crossfade slideshow — feature card cycles through multiple shots. */
.port-card .shot.slideshow { display: block; }
.port-card .shot.slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease, transform .6s ease; }
.port-card .shot.slideshow img.active { opacity: 1; }
.port-card .shot.slideshow .dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; gap: 7px; justify-content: center; }
.port-card .shot.slideshow .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: background .3s, transform .3s; }
.port-card .shot.slideshow .dots i.on { background: #fff; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .port-card .shot.slideshow img { transition: none; } }
.port-card .meta { padding: 20px 22px 22px; }
.port-card .meta .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.port-card .meta .name { font-family: var(--serif); font-size: 24px; color: var(--char); line-height: 1; }
.port-card .meta .sector { font-family: var(--mono); font-size: 11px; color: var(--char-mute); letter-spacing: .12em; text-transform: uppercase; }
.port-card .meta .desc { font-size: 14px; color: var(--char-2); margin-top: 10px; line-height: 1.5; }
.port-card.feature { grid-column: span 2; grid-row: span 2; }
.port-card.feature .shot { aspect-ratio: 16/9; }
.port-card.feature .meta .name { font-size: 36px; }
@media (max-width: 980px) {
  .port-grid { grid-template-columns: 1fr 1fr; }
  .port-card.feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .port-grid { grid-template-columns: 1fr; }
  .port-card.feature { grid-column: auto; }
}

/* ---------- CASE STUDY (dark inset) ---------- */
.case {
  background: var(--ink);
  color: var(--ink-text);
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative;
  overflow: hidden;
}
.case::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% -20%, rgba(251,191,36,.10) 0%, transparent 50%),
              radial-gradient(ellipse at 0% 100%, rgba(41,166,255,.12) 0%, transparent 50%);
  pointer-events: none;
}
.case > * { position: relative; }
.case .section-head h2 { color: var(--ink-text); }
.case .section-head .lede { color: var(--ink-dim); }
.case-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; font-size: 13px; color: var(--ink-dim); }
.case-meta span { font-family: var(--mono); }
.case-meta b { color: var(--ink-text); font-weight: 500; }

.case-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; margin-top: 16px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-col { background: rgba(255,255,255,.03); border: 1px solid var(--ink-border); border-radius: var(--radius); padding: 22px; }
.ba-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.ba-col.before h4 { color: var(--rose); }
.ba-col.after h4 { color: var(--green); }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ba-list li {
  padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); color: var(--ink-dim);
  font-family: var(--mono); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
}
.ba-list li .price { color: var(--ink-mute); font-size: 11px; }
.ba-col.after .ba-list li { background: rgba(41,166,255,.08); color: var(--ink-text); border: 1px solid rgba(41,166,255,.18); }
.ba-foot { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); display: flex; justify-content: space-between; }
.ba-foot .v { color: var(--ink-text); }
.ba-foot.after .v { color: var(--green); }
.ba-foot.before .v { color: var(--rose); }

.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  border: 1px solid var(--ink-border); border-radius: var(--radius);
  padding: 26px 22px;
  background: rgba(255,255,255,.02);
}
.stat .v { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--gold); font-style: italic; }
.stat .v.cyan { color: var(--cyan); }
.stat .l { font-size: 13px; color: var(--ink-dim); margin-top: 10px; line-height: 1.4; }
.case-quote {
  margin-top: 28px; padding: 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(41,166,255,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.case-quote p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--ink-text); }
.case-quote cite { display: block; font-style: normal; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-mute); letter-spacing: .04em; }
@media (max-width: 980px) { .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .before-after, .case-stats { grid-template-columns: 1fr; } }

/* ---------- PRICING ---------- */
.pricing { background: var(--bone); padding: clamp(80px, 10vw, 130px) 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: 36px 30px 32px; display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-card.featured { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.price-card.featured .price-foot { color: var(--ink-dim); }
.price-card.featured .price-feat li { color: var(--ink-dim); }
.price-card.featured .price-feat li::before { color: var(--cyan); }
.price-card.featured .btn-dark { background: var(--cyan); color: #04111f; }
.price-card.featured .btn-dark:hover { background: var(--cyan-hi); }
.price-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(251,191,36,.4);
}
.price-name { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--char-mute); }
.price-card.featured .price-name { color: var(--ink-dim); }
.price-amt { font-family: var(--serif); font-size: 56px; line-height: 1; }
.price-amt .per { font-family: var(--sans); font-size: 14px; color: var(--char-mute); margin-left: 6px; }
.price-card.featured .price-amt .per { color: var(--ink-dim); }
.price-blurb { font-size: 14.5px; color: var(--char-2); line-height: 1.5; }
.price-card.featured .price-blurb { color: var(--ink-dim); }
.price-feat { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--char-2); }
.price-feat li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.5; }
.price-feat li::before { content: '✓'; color: var(--green); font-weight: 700; }
.price-foot { margin-top: 4px; font-size: 12px; color: var(--char-mute); }
.price-cta { margin-top: auto; padding-top: 10px; }
.price-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- TESTIMONIALS ---------- */
.testi { background: var(--bone-2); padding: clamp(80px, 10vw, 130px) 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card {
  background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 18px;
}
.t-quote { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--char); }
.t-quote em { font-style: italic; color: var(--cyan-dim); }
.t-attr { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--hair); display: flex; align-items: center; gap: 14px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); display: grid; place-items: center; color: var(--cyan); font-family: var(--mono); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.t-info { font-size: 13px; color: var(--char-mute); line-height: 1.4; }
.t-info b { display: block; color: var(--char); font-weight: 600; font-size: 14px; }
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT (dark) ---------- */
.contact {
  background: var(--ink); color: var(--ink-text);
  padding: clamp(80px, 10vw, 130px) 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(41,166,255,.14) 0%, transparent 45%);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact h2 { color: var(--ink-text); max-width: 14ch; }
.contact .lede { color: var(--ink-dim); }
.contact-meta { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 480px; }
.contact-meta .item .l { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.contact-meta .item .v { font-size: 15px; color: var(--ink-text); }
.contact-meta .item .v a { color: var(--cyan); }
.contact-meta .item .v a:hover { color: var(--cyan-hi); }

.form-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--ink-border); border-radius: var(--radius-lg);
  padding: 32px; backdrop-filter: blur(6px);
}
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.field label .opt { color: var(--ink-faint, var(--ink-mute)); opacity: .7; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--ink-border); border-radius: 10px;
  padding: 12px 14px; color: var(--ink-text); font-size: 15px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(41,166,255,.05);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3adbe' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 36px; }
.field select option { background: var(--ink-2); color: var(--ink-text); }
.form-cta { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-cta .note { font-size: 12px; color: var(--ink-mute); }
.form-cta .note .ok { color: var(--green); display: none; }
.form-cta.sent .note .ok { display: inline; }
.form-cta.sent .note .ask { display: none; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 8px; }
.form-success .check {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; color: var(--green); border: 1px solid var(--green); background: rgba(52,199,89,.08);
}
.form-success h3 { font-size: 20px; color: var(--ink-text); margin: 0; }
.form-success p { font-size: 14px; color: var(--ink-mute); margin: 0; max-width: 360px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bone); padding: clamp(80px, 10vw, 130px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq h2 { color: var(--char); max-width: 12ch; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  cursor: pointer; padding: 22px 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--serif); font-size: 22px; color: var(--char); line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--mono); font-size: 24px; color: var(--char-mute);
  transition: transform .3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .ans {
  padding: 0 0 22px; font-size: 16px; color: var(--char-2); line-height: 1.6; max-width: 60ch;
}
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--ink-dim); padding: 80px 0 32px; border-top: 1px solid var(--ink-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--ink-border); }
.footer .brand { color: var(--ink-text); margin-bottom: 16px; }
.footer p.tag { font-size: 14px; line-height: 1.55; max-width: 32ch; }
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-dim); transition: color .2s; }
.footer ul a:hover { color: var(--ink-text); }
.footer-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 12px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ----------
   No-JS safe: hidden state only applies when JS has set `.js` on <html>.
   Without JS, content is fully visible.                                  */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
.js .reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stars::after { animation: none; }
}
