/* =========================================================
   HOLOGRAM HACKS — company site
   Inherits Relay's Aurora language; adds an A/B brand-arch switch.
   data-arch="A"  → House style: purple/cyan is HH's own identity
   data-arch="B"  → Neutral parent: HH is graphite, products bring color
   ========================================================= */

:root {
  /* surfaces */
  --bg: #0d1117;
  --bg-2: #0a0d13;
  --surface: #161b22;
  --surface-2: #1c2129;
  --border: #21262d;
  --border-2: #30363d;

  /* ink */
  --text: #e6edf3;
  --muted: #98a2ad;
  --muted-2: #79828d;

  /* brand */
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --cyan: #22d3ee;
  --cyan-light: #67e8f9;
  --success: #34d399;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* derived — overridden by [data-arch] */
  --grad: linear-gradient(135deg, var(--purple-light), var(--cyan));
  --grad-h1: linear-gradient(135deg, #e6edf3 0%, #c084fc 52%, #22d3ee 100%);
  --grad-rule: linear-gradient(90deg, transparent, var(--purple), transparent);
  --accent: var(--purple);
  --accent-soft: rgba(168, 85, 247, 0.15);
  --card-top: linear-gradient(90deg, var(--purple), var(--cyan));
  --card-top-op: 1;
  --holo-near: #67e8f9;   /* tesseract: nearest edges */
  --holo-far: #a855f7;    /* tesseract: farthest edges */
  --hero-glow-1: rgba(168, 85, 247, 0.27);
  --hero-glow-2: rgba(34, 211, 238, 0.19);

  --maxw: 1120px;
  --gutter: 40px;
}

/* ---- B: neutral parent ---------------------------------- */
[data-arch="B"] {
  --grad: linear-gradient(135deg, #d6deea, #aab4c4);
  --grad-h1: linear-gradient(135deg, #f2f6fb 0%, #e6edf3 55%, #9aa4b2 100%);
  --grad-rule: linear-gradient(90deg, transparent, #5b6675, transparent);
  --accent: #aeb8c6;
  --accent-soft: rgba(174, 184, 198, 0.12);
  --card-top: linear-gradient(90deg, #5b6675, #aab4c4);
  --card-top-op: 0;                 /* cards lose the colored rule by default */
  --holo-near: #d6deea;             /* silver/graphite hologram */
  --holo-far: #565f6e;
  --hero-glow-1: rgba(174, 184, 198, 0.10);
  --hero-glow-2: rgba(120, 132, 150, 0.08);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-padding-top: 80px; /* anchor jumps clear the fixed nav */
  scrollbar-width: thin;
  scrollbar-color: #30363d #0d1117;
  background: var(--bg);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.page { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }
/* anchor jumps land near the section heading, not below its full top padding */
.studio, .process, .products, .principles, .contact { scroll-margin-top: -68px; }

.mono { font-family: var(--font-mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* shared section label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
[data-arch="B"] .eyebrow { color: var(--muted); }
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
[data-arch="B"] .eyebrow::before { background: var(--muted-2); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav .page { display: flex; align-items: center; gap: 24px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.brand .wm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; gap: 0.34em;
}
.brand .wm .holo { color: var(--text); }
.brand .wm .hacks { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-arch="B"] .brand .wm .hacks { color: var(--muted); -webkit-text-fill-color: var(--muted); }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.875rem; color: var(--muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color 140ms, background 140ms;
}
.nav-links .cta { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 80ms, background 160ms, border-color 160ms, box-shadow 160ms;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
}
[data-arch="A"] .btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
[data-arch="B"] .btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 8px 30px -14px rgba(230,237,243,0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-sm { padding: 8px 15px; font-size: 0.84rem; }

/* Hover effects only on hover-capable (non-touch) devices, so a tap on
   phones/tablets doesn't leave the highlight stuck on. */
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
  .nav-links a:not(.cta-wrap):hover { color: var(--text); background: var(--surface); }
  .contact-email:hover { border-color: var(--accent); }
  .footer ul a:hover { color: var(--text); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: 132px; padding-bottom: 80px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -10%; right: -6%; width: 760px; height: 760px;
  background:
    radial-gradient(circle at 60% 40%, var(--hero-glow-1), transparent 60%),
    radial-gradient(circle at 40% 70%, var(--hero-glow-2), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}
.hero .page {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.2rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 22px 0 22px;
  padding-bottom: 0.1em;
  background: var(--grad-h1);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.18rem; color: var(--muted); line-height: 1.62; max-width: 500px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* tesseract stage */
.holo-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; margin-left: auto; }
.holo-stage canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.holo-cap {
  position: absolute; left: 0; bottom: -6px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-2);
  letter-spacing: 0.04em;
}
.holo-cap .b { color: var(--accent); }
[data-arch="B"] .holo-cap .b { color: var(--muted); }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  margin-top: 30px; overflow: hidden;
}
.stat { padding: 22px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; }
.stat .v .u { color: var(--accent); }
[data-arch="B"] .stat .v .u { color: var(--muted); }
.stat .l { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 6px; }
.stats-note { margin-top: 14px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); letter-spacing: 0.02em; text-align: center; }

/* =========================================================
   STUDIO / WHAT WE DO
   ========================================================= */
.studio { padding: 86px 0; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 34px; position: relative; overflow: hidden;
}
.work-card .wc-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 20px;
}
[data-arch="B"] .work-card .wc-ico { color: var(--text); }
.work-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.work-card > p { color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 5px 11px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--border-2); color: var(--muted);
}

/* =========================================================
   SERVICES / CAPABILITIES GRID
   ========================================================= */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.svc-card { width: calc((100% - 32px) / 3); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 26px 28px; }
.svc-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
[data-arch="B"] .svc-ico { color: var(--text); }
.svc-card h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.svc-card p { color: var(--muted); font-size: 0.91rem; line-height: 1.55; }
@media (max-width: 860px) { .svc-card { width: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .svc-card { width: 100%; } }

/* =========================================================
   SECURITY & COMPLIANCE BAND
   ========================================================= */
.compliance {
  margin-top: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.comp-lead { display: flex; align-items: flex-start; gap: 16px; max-width: 580px; }
.comp-lead .shield {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
[data-arch="B"] .comp-lead .shield { color: var(--text); }
.comp-title { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; margin-bottom: 5px; }
.comp-sub { color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.compliance .tags { margin-top: 0; }
@media (max-width: 760px) { .compliance { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* =========================================================
   HOW WE WORK
   ========================================================= */
.process { padding: 86px 0; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc-step { padding-top: 22px; border-top: 1px solid var(--border); position: relative; }
.proc-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); }
[data-arch="B"] .proc-step::before { background: var(--muted); }
.proc-step .n { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.1em; margin-bottom: 12px; }
.proc-step h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.proc-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 860px) { .proc-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .proc-grid { grid-template-columns: 1fr; } }

/* =========================================================
   PRODUCTS
   ========================================================= */
.products { padding: 86px 0; }
.prod { display: grid; gap: 18px; }
.prod-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.prod-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-top); opacity: var(--card-top-op);
}
/* Relay always keeps its own purple/cyan, even in neutral-parent mode */
.prod-card.relay::before { background: linear-gradient(90deg, var(--purple), var(--cyan)); opacity: 1; }
.prod-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.prod-logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff;
}
.prod-logo.relay { background: linear-gradient(140deg, #c084fc 0%, #a855f7 52%, #7c3aed 86%, #22d3ee 140%); }
.prod-logo.ember { background: linear-gradient(140deg, #fcd34d, #fb923c 52%, #ea580c); box-shadow: 0 6px 22px -8px rgba(249,115,22,0.55); }
.prod-card.coming .prod-logo.ember { filter: none; }
.prod-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.status {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; margin-left: auto;
  white-space: nowrap; flex-shrink: 0;
}
.status.live { background: rgba(52,211,153,0.12); color: var(--success); }
.status.dev  { background: rgba(139,148,158,0.14); color: var(--muted); }
.status.beta { background: rgba(34,211,238,0.12); color: var(--cyan-light); }
.status .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: currentColor; margin-right:6px; vertical-align: middle; }
.prod-tagline { font-size: 1.12rem; font-weight: 600; color: var(--text); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: -0.015em; }
.prod-desc { color: var(--muted); font-size: 0.97rem; line-height: 1.6; max-width: 620px; }
.prod-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.prod-card.coming { opacity: 0.94; }
.prod-card.coming .prod-desc { max-width: 560px; }

/* =========================================================
   PRODUCT SHOWCASE (screenshots)
   ========================================================= */
.showcase { margin: 0; position: relative; }
.shot { margin: 0; position: relative; }
.browser {
  position: relative; z-index: 1;
  border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 34px 90px -30px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.02);
}
.b-bar {
  height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.b-bar.small { height: 34px; }
.b-dots { display: flex; gap: 7px; flex-shrink: 0; }
.b-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: var(--border-2); }
.b-bar.small .b-dots i { width: 9px; height: 9px; }
.b-dots i:nth-child(1) { background: #ed6a5e; }
.b-dots i:nth-child(2) { background: #f4bf4f; }
.b-dots i:nth-child(3) { background: #61c554; }
.b-url {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg); padding: 5px 14px; border-radius: 7px; border: 1px solid var(--border);
}
.b-bar.small .b-url { font-size: 0.68rem; padding: 4px 11px; }
.b-url svg { color: var(--cyan); flex-shrink: 0; }
[data-arch="B"] .b-url svg { color: var(--muted); }
.b-body { aspect-ratio: 16 / 10; background: var(--bg-2); position: relative; overflow: hidden; }
.b-body img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.shot-ph {
  position: absolute; inset: 14px; border: 1px dashed var(--border-2); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 16px;
}
.shot-ph .ico { color: var(--muted-2); margin-bottom: 2px; }
.shot-ph .t { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 1.02rem; }
.shot-ph .s { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted-2); letter-spacing: 0.03em; }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 900px) { .shot-row { grid-template-columns: 1fr; } }

/* ---- Relay showcase carousel ---------------------------- */
.carousel { position: relative; }
.car-stage { position: relative; }
.car-viewport { overflow: hidden; }
.car-track { display: flex; transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.car-slide { flex: 0 0 100%; min-width: 0; margin: 0; }
/* Match the frame to the screenshots' ratio and contain them so nothing
   (e.g. the settings/logout bar at the bottom) gets cropped. */
.car-slide .b-body { aspect-ratio: 1600 / 1241; }
.car-slide .shot-img { object-fit: contain; }
.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1; padding-bottom: 2px;
  color: var(--text); cursor: pointer;
  background: color-mix(in oklab, var(--bg) 64%, transparent);
  border: 1px solid var(--border-2); backdrop-filter: blur(8px);
  transition: background 150ms, border-color 150ms, opacity 150ms;
}
.car-prev { left: 12px; }
.car-next { right: 12px; }
@media (hover: hover) { .car-arrow:hover { background: var(--surface); border-color: var(--muted); } }

.car-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.car-cap { font-size: 0.95rem; }
.car-cap-t { color: var(--text); font-weight: 600; }
.car-cap-d { color: var(--muted); margin-left: 8px; }
.car-dots { display: flex; gap: 8px; align-items: center; }
.car-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 99px; background: var(--border-2); cursor: pointer; transition: width 200ms, background 200ms; }
.car-dot.active { width: 22px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }

/* Mobile: drop the carousel — stack the screenshots full-width, each labelled. */
@media (max-width: 700px) {
  .car-viewport { overflow: visible; }
  .car-track { flex-direction: column; gap: 24px; transform: none !important; }
  .car-slide { flex: none; width: 100%; }
  .car-slide::after { content: attr(data-title); display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
  .car-arrow, .car-meta { display: none; }
}

/* =========================================================
   PRINCIPLES
   ========================================================= */
.principles { padding: 86px 0; }
.prin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.prin {
  background: var(--bg); padding: 34px;
}
.prin .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 16px; }
[data-arch="B"] .prin .n { color: var(--muted); }
.prin h3 { font-size: 1.22rem; margin-bottom: 10px; }
.prin p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 92px 0 86px; }
.contact-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 22px;
  background:
    radial-gradient(700px 360px at 15% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  padding: 64px;
  text-align: center;
}
[data-arch="A"] .contact-card {
  background:
    radial-gradient(620px 320px at 18% 0%, rgba(168,85,247,0.14), transparent 68%),
    radial-gradient(620px 320px at 82% 110%, rgba(34,211,238,0.10), transparent 68%),
    var(--surface);
}
.contact-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-card p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; text-wrap: pretty; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500;
  padding: 15px 26px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--bg); color: var(--text);
  transition: border-color 160ms, transform 80ms;
}
.contact-note { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); margin-top: 22px; letter-spacing: 0.03em; }
.contact-caps { margin-top: 20px; font-family: var(--font-mono); font-size: 0.73rem; color: var(--muted); letter-spacing: 0.04em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer .page { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .f-brand .brand { margin-bottom: 16px; }
.footer .f-brand p { color: var(--muted); font-size: 0.9rem; max-width: 260px; }
.footer h3 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: var(--muted); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; }
.footer-bottom .page { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms cubic-bezier(.2,.7,.2,1), transform 620ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 22px; }
  .hero .page { grid-template-columns: 1fr; gap: 36px; }
  .holo-stage { max-width: 360px; margin: 0 auto; order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .work-grid, .prin-grid, .footer .page { grid-template-columns: 1fr; }
  .prod-card { grid-template-columns: 1fr; }
  .prod-right { align-items: flex-start; }
  .nav-links a:not(.cta-wrap) { display: none; }
  .footer .page { gap: 28px; text-align: center; justify-items: center; }
  .footer .f-brand .brand { justify-content: center; }
  .footer .f-brand p { margin-left: auto; margin-right: auto; }
  .footer ul { justify-items: center; }
  .footer-bottom .page { flex-direction: column; gap: 8px; text-align: center; }
  .contact-card { padding: 40px 24px; }
}
@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  /* Keep the nav (brand wordmark + CTA) within the viewport — no h-scroll. */
  .nav .page { gap: 12px; }
  .brand .wm { font-size: 0.8rem; letter-spacing: 0.1em; }
  .nav .cta-wrap { padding: 0; }
  .nav .cta { padding: 7px 12px; font-size: 0.8rem; }
}

@media (max-width: 430px) {
  /* keep the email pill inside the contact card on small phones */
  .contact-email { font-size: 0.85rem; padding: 14px 16px; gap: 8px; }
}
