/* ==========================================================================
   ALPHA PMS FZCO — styles.css
   Direction: premium developer dark (Resend-influenced).
   Neutral near-black base · warm orange→amber accent · glass panels with
   gradient hairline borders · grain + glow atmosphere · quiet motion.
   All design tokens live in :root below.
   ========================================================================== */

:root {
  /* ---- Color: neutral near-black base ---------------------------------- */
  --bg:      #0a0a0b;   /* page base */
  --bg-2:    #0c0c0e;   /* alt sections */
  --bg-3:    #0e0e11;   /* deepest (contact / footer) */
  --panel:   #131316;   /* raised panel fill */
  --panel-2: #17171b;   /* hover panel fill */

  /* ---- Color: hairlines / borders ------------------------------------- */
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --hairline-top:  rgba(255, 255, 255, 0.16);  /* bright top edge of panels */

  /* ---- Color: text ---------------------------------------------------- */
  --text:       #f4f4f5;   /* primary */
  --text-dim:   #a4a4ad;   /* body on dark */
  --text-faint: #8b8b95;   /* mono metadata / small labels — AA on the dark base */

  /* ---- Color: warm accent (single) ------------------------------------ */
  --accent:        #ff9a3c;
  --accent-soft:   #ffb86b;
  --accent-deep:   #ff6a2b;
  --accent-grad:   linear-gradient(100deg, #ff7a2f 0%, #ffb24d 60%, #ffd089 100%);
  --accent-glow:   rgba(255, 122, 47, 0.22);

  /* ---- Status (readouts) ---------------------------------------------- */
  --ok:   #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.12);
  --error: #ff7a6b;

  /* ---- UI fills ------------------------------------------------------- */
  --btn-fill: #fafafa;
  --btn-fill-hover: #ffffff;
  --btn-text: #0a0a0b;

  /* ---- Typography ----------------------------------------------------- */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* fluid type scale */
  --fs-kicker: 0.75rem;
  --fs-body:   clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lede:   clamp(1.0625rem, 0.98rem + 0.5vw, 1.3125rem);
  --fs-h3:     clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);
  --fs-h2:     clamp(2rem, 1.45rem + 2.4vw, 3.35rem);
  --fs-h1:     clamp(2.6rem, 1.7rem + 4.2vw, 5.25rem);

  /* ---- Spacing -------------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: clamp(5.5rem, 3rem + 10vw, 10rem);

  /* ---- Layout --------------------------------------------------------- */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* ---- Motion --------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-dim);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  color: var(--text);
  line-height: 1.04;
  font-weight: 500;          /* Resend-ish: large + light, not heavy */
  letter-spacing: -0.025em;
}
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: #1a1205; }

/* warm gradient text used on emphasis words */
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Visible keyboard focus ----------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Skip link ------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1205;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.6rem; }

/* ---- Grain overlay --------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.section {
  padding-block: var(--space-3xl);
  position: relative;
}
.section--alt { background: var(--bg-2); }

/* hairline rule between stacked sections */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--border);
}

/* ---- Glass panel base (cards, form, code, about) -------------------- */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 120px),
    var(--panel);
  border-radius: var(--radius-lg);
  isolation: isolate;
  /* fallback border for browsers without mask-composite; the ::after
     gradient hairline supersedes it where supported (see @supports below) */
  border: 1px solid var(--border);
}
/* gradient hairline border, brighter at the top */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--hairline-top), var(--border) 40%, rgba(255,255,255,0.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
/* where the gradient hairline renders, drop the solid fallback border so it
   isn't doubled (transparent keeps box metrics identical — no layout shift) */
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .panel { border-color: transparent; }
}

/* ==========================================================================
   Shared type: kickers, section heads
   ========================================================================== */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
}
.kicker__idx { color: var(--accent); font-weight: 500; }

.section__head { max-width: 62ch; margin-bottom: var(--space-xl); }
.section__head--center {
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__title { font-size: var(--fs-h2); margin-top: var(--space-md); }
.section__intro {
  margin-top: var(--space-md);
  font-size: var(--fs-lede);
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
/* Resend-style: primary is light-filled with dark text */
.btn--primary {
  background: var(--btn-fill);
  color: var(--btn-text);
}
.btn--primary:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -12px rgba(255,255,255,0.35);
}
.btn--ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72); /* fallback for no color-mix support */
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__mark { color: var(--accent); display: inline-flex; }
.brand__text { font-size: 1.0625rem; }
.brand__pms { color: var(--accent); }

.nav { display: flex; align-items: center; }
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: 0;
}
.nav__menu a {
  font-size: 0.9rem;
  color: var(--text-dim);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.18s var(--ease);
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -0.05rem;
  height: 1px;
  background: var(--accent-grad);
  transition: right 0.25s var(--ease);
}
.nav__menu a:not(.nav__cta):hover,
.nav__menu a[aria-current="true"] { color: var(--text); }
.nav__menu a:not(.nav__cta):hover::after,
.nav__menu a[aria-current="true"]::after { right: 0; }

.nav__cta {
  background: var(--btn-fill);
  color: var(--btn-text) !important;
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem !important;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav__cta:hover { background: var(--btn-fill-hover); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.nav__toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav__toggle-bars span {
  width: 16px; height: 1.5px; background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 2rem + 7vw, 7rem);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}
/* warm radial aurora behind the hero */
.hero__glow {
  position: absolute;
  z-index: 0;
  top: -28%; right: -8%;
  width: min(90vw, 920px);
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(255,122,47,0.20), rgba(255,122,47,0.05) 55%, transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}
.hero::before {  /* second cooler pool for depth */
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -20%; left: -10%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(96,120,255,0.08), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: dot-pulse 2.4s var(--ease) infinite;
}
.pill__arrow { color: var(--accent); transition: transform 0.2s var(--ease); }
.pill:hover .pill__arrow { transform: translateX(3px); }
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 5px rgba(255,122,47,0); }
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-top: var(--space-md);
}
.hero__lede {
  margin-top: var(--space-md);
  font-size: var(--fs-lede);
  color: var(--text-dim);
  max-width: 50ch;
  line-height: 1.5;
}
.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero__facts {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}
.hero__facts dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__facts dd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 0.3rem;
}

/* ---- Hero trust strip ------------------------------------------------ */
.hero__strip {
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}
.hero__strip-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  padding: 0;
}
.hero__strip li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  position: relative;
  padding-left: 1.1rem;
}
.hero__strip li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
}

/* ---- Hero diagram --------------------------------------------------- */
.hero__diagram { margin: 0; }
.diagram__cap {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: var(--space-sm);
}
.diagram__cap-idx { color: var(--accent); font-weight: 500; }

.diagram__frame {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 50% at 60% 35%, rgba(255,122,47,0.07), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 140px),
    #0c0c0f;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: clamp(0.6rem, 2vw, 1.4rem);
  overflow: hidden;
}
/* corner registration ticks */
.diagram__frame::before,
.diagram__frame::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  opacity: 0.5;
}
.diagram__frame::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.diagram__frame::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.archmap { width: 100%; height: auto; }
.band-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; fill: var(--text-faint); }
.band-rules line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; }

.wire {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: wire-draw 0.9s var(--ease) forwards;
  animation-delay: 0.5s;
}
.wires line:nth-child(2) { animation-delay: 0.56s; }
.wires line:nth-child(3) { animation-delay: 0.62s; }
.wires line:nth-child(4) { animation-delay: 0.68s; }
.wires line:nth-child(5) { animation-delay: 0.74s; }
.wires line:nth-child(6) { animation-delay: 0.80s; }
.wires line:nth-child(7) { animation-delay: 0.86s; }
.wires line:nth-child(8) { animation-delay: 0.92s; }
.wires line:nth-child(9) { animation-delay: 0.98s; }
.wires line:nth-child(10){ animation-delay: 1.04s; }
@keyframes wire-draw { to { stroke-dashoffset: 0; } }

.pulse {
  stroke: url(#wireGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.12 0.88;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: pulse-travel 2.6s linear infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}
@keyframes pulse-travel {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.node rect {
  fill: #141417;
  stroke: var(--border-strong);
  stroke-width: 1;
  opacity: 0;
  transform: translateY(8px);
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 0.55s var(--ease) forwards;
  animation-delay: calc(var(--n) * 0.06s);
  transition: fill 0.2s var(--ease), stroke 0.2s var(--ease);
}
.node text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-dim);
  text-anchor: middle;
  dominant-baseline: middle;
  opacity: 0;
  animation: node-in 0.55s var(--ease) forwards;
  animation-delay: calc(var(--n) * 0.06s + 0.1s);
  transition: fill 0.2s var(--ease);
}
.node--accent rect { stroke: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); fill: #181410; }
.node--accent text { fill: var(--text); }
@keyframes node-in { to { opacity: 1; transform: translateY(0); } }

.node:hover rect, .node:focus-visible rect { fill: #1d1a16; stroke: var(--accent); }
.node:hover text, .node:focus-visible text { fill: var(--accent-soft); }
.node:focus-visible { outline: none; }
.node:focus-visible rect { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.service {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.service:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9); }
.service:hover::after { background: linear-gradient(180deg, var(--accent-soft), var(--border) 45%, rgba(255,255,255,0.03)); }

.service__idx {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
}
.service__badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-bg);
  border-radius: 999px; padding: 0.12rem 0.5rem;
}
.service__badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.service__name { font-size: var(--fs-h3); margin-top: var(--space-sm); font-weight: 600; }
.service__tag { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-faint); margin-top: var(--space-3xs); }
.service__desc { margin-top: var(--space-md); color: var(--text-dim); }
.service__stat {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,47,0.07), transparent 70%);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.service__stat-num { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.service__stat-cap { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; }
.service__list {
  list-style: none; padding: 0;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: grid; gap: 0.55rem;
}
.service__list li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
}
.service__list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Stack / code block
   ========================================================================== */
.stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  align-items: center;
}
.stack__copy .section__title { margin-top: var(--space-md); }
.stack__points {
  list-style: none; padding: 0;
  margin-top: var(--space-lg);
  display: grid; gap: var(--space-md);
}
.stack__points li {
  color: var(--text-dim);
  font-size: 0.9375rem;
  padding-left: 0;
}
.stack__points span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-right: 0.6rem;
}

.code { overflow: hidden; }
.code__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.code__dots { display: inline-flex; gap: 6px; }
.code__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.code__dots i:first-child { background: rgba(255,107,82,0.6); }
.code__dots i:nth-child(2) { background: rgba(255,184,77,0.6); }
.code__dots i:nth-child(3) { background: rgba(74,222,128,0.5); }
.code__tabs { display: flex; gap: 0.25rem; overflow-x: auto; }
.code__tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.code__tab:hover { color: var(--text-dim); }
.code__tab.is-active { color: var(--text); background: rgba(255,255,255,0.06); }

.code__pane {
  margin: 0;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.5rem);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.72rem + 0.3vw, 0.875rem);
  line-height: 1.7;
}
.code__pane[hidden] { display: none; }
.code__pane code { color: #cdd0d6; white-space: pre; }
/* lightweight syntax colors */
.code .c { color: #6b7280; font-style: italic; }       /* comment */
.code .k { color: var(--accent); }                      /* keyword (accent) */
.code .s { color: #7fd88f; }                            /* string */
.code .f { color: #8ab4ff; }                            /* function */
.code .n { color: #e6b673; }                            /* number */

/* ==========================================================================
   Selected work
   ========================================================================== */
.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -38px rgba(0,0,0,0.95); }
.card:hover::after { background: linear-gradient(180deg, var(--accent-soft), var(--border) 45%, rgba(255,255,255,0.03)); }

/* live "readout" header — system output, Resend-style */
.card__readout {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,122,47,0.06), transparent 60%),
    #0c0c0f;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.card__readout p { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.ro-key { color: var(--text); }
.ro-val { color: var(--text-faint); }
.pill-mini {
  margin-left: auto;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
}
.pill-mini--ok  { color: var(--ok);  background: var(--ok-bg); }
.pill-mini--warn{ color: var(--warn);background: var(--warn-bg); }
.pill-mini--rls { color: var(--info);background: var(--info-bg); }

.card__body-wrap { padding: clamp(1.5rem, 1rem + 2vw, 2.1rem); display: flex; flex-direction: column; flex: 1; }
.card__top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-sm); padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.card__idx { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent); }
.card__client { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-dim); text-align: right; }
.card__title { font-size: var(--fs-h3); margin-top: var(--space-md); font-weight: 600; }
.card__body { margin-top: var(--space-md); display: grid; gap: 0.35rem 1rem; }
.card__body dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); margin-top: var(--space-xs);
}
.card__body dt:first-child { margin-top: 0; }
.card__body dd { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.5; }
.card__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0;
  margin-top: auto; padding-top: var(--space-md);
}
.card__tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 0.25rem 0.7rem;
}

/* ==========================================================================
   Approach
   ========================================================================== */
.approach {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: var(--space-md);
}
.approach__item {
  padding: clamp(1.5rem, 1rem + 2vw, 2rem);
  transition: transform 0.25s var(--ease);
}
.approach__item:hover { transform: translateY(-3px); }
.approach__num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); font-weight: 500; }
.approach__item h3 { font-size: 1.0625rem; margin-top: var(--space-sm); font-weight: 600; letter-spacing: -0.01em; }
.approach__item p { margin-top: var(--space-xs); font-size: 0.9375rem; color: var(--text-dim); }

/* ==========================================================================
   About
   ========================================================================== */
.about__body {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
}
.about__body p { margin-top: var(--space-md); font-size: var(--fs-lede); line-height: 1.55; color: var(--text-dim); }
.about__body p:first-child { margin-top: 0; }
.about__meta {
  margin-top: var(--space-xl);
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  border-top: 1px solid var(--border); padding-top: var(--space-md);
}
.about__meta dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.about__meta dd { font-family: var(--font-mono); color: var(--text); margin-top: 0.3rem; font-size: 0.9375rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.section--contact { background: var(--bg-3); position: relative; overflow: hidden; }
.contact__glow {
  position: absolute;
  z-index: 0;
  top: -30%; right: 50%; transform: translateX(50%);
  width: min(110vw, 1100px); aspect-ratio: 2 / 1;
  background: radial-gradient(closest-side, rgba(255,122,47,0.14), transparent 70%);
  pointer-events: none;
}
.contact {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 5vw, 4rem);
  align-items: start;
}
.contact__direct {
  list-style: none; padding: 0;
  margin-top: var(--space-xl);
  display: grid; gap: var(--space-md);
}
.contact__direct li {
  display: grid; gap: 0.25rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.contact__direct li:last-child { border-bottom: 0; }
.contact__label {
  font-family: var(--font-mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.contact__direct a, .contact__direct span:not(.contact__label) { font-size: 1.0625rem; color: var(--text); }
.contact__direct a {
  color: var(--accent-soft); width: fit-content;
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
.contact__direct a:hover { border-color: var(--accent); }

/* ---- Form ------------------------------------------------------------ */
.form { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); display: grid; gap: var(--space-md); }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim);
}
.field__opt { text-transform: none; color: var(--text-faint); letter-spacing: 0.01em; }
.field__req { color: var(--accent); }
.field input, .field textarea {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--text);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field__hint { font-size: 0.8125rem; color: var(--text-faint); }
.form__status { font-family: var(--font-mono); font-size: 0.8125rem; min-height: 1.2em; color: var(--text-dim); }
.form__status[data-state="ok"] { color: var(--accent-soft); }
.form__status[data-state="error"] { color: var(--error); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-3); padding-block: var(--space-xl); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: var(--space-md); align-items: center; }
.footer__brand .brand__text { font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.footer__loc { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-faint); margin-top: 0.25rem; }
.footer__license {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.footer__license::before { content: "● "; color: var(--accent); }
.footer__copy { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }

/* ==========================================================================
   Scroll-reveal (progressive — content visible if JS/observer absent)
   ========================================================================== */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive — mobile-first, enhance upward
   ========================================================================== */
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 5vw, 5rem); }
  .footer__inner { grid-template-columns: 1fr auto auto; gap: var(--space-xl); }
  .stack { grid-template-columns: 0.85fr 1.15fr; }
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; align-items: center; }
}

/* ---- Mobile nav ------------------------------------------------------ */
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) var(--gutter) var(--space-md);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav__menu li { border-top: 1px solid var(--border); }
  .nav__menu li:first-child { border-top: 0; }
  .nav__menu a { display: block; padding: 0.85rem 0; font-size: 0.95rem; }
  .nav__menu a::after { display: none; }
  .nav__cta { margin-top: var(--space-sm); text-align: center; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:first-child { transform: translateY(2.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars span:last-child { transform: translateY(-2.25px) rotate(-45deg); }
}

/* ==========================================================================
   Reduced motion — collapse all motion to static end-states
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wire { stroke-dashoffset: 0; }
  .node rect, .node text { opacity: 1; transform: none; }
  .pulse, .pill__dot { display: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
