/* ZJN Consulting LLC — site styles
   Structure: tokens · base · layout · components (header, hero, sections, ventures, founder, contact, footer) · legal · motion */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #070b14;          /* deepest navy-black */
  --navy-900: #0a1120;
  --navy-800: #0f1a2e;
  --navy-700: #16233b;
  --charcoal: #0f1115;
  --charcoal-2: #15181e;

  --text: #e8ecf2;
  --muted: #a3adbd;
  --faint: #6e7a8f;
  --line: rgba(160, 176, 200, 0.13);
  --line-strong: rgba(160, 176, 200, 0.24);

  --accent: #d6b77f;        /* restrained brass */
  --accent-strong: #ecd1a0;
  --accent-soft: rgba(214, 183, 127, 0.12);
  --signal: #86b4d6;        /* steel blue, used sparingly */
  --live: #7ccfa5;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 160px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Serif italic accent used across headings */
.hero-title em, .section-title em, .contact-title em, .legal h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-primary span { transition: transform .25s var(--ease); }
.btn-primary:hover span { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); font-family: var(--font-mono); font-size: 14px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(7, 11, 20, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-word { font-size: 16px; letter-spacing: -0.01em; color: var(--muted); }
.brand-word strong { color: var(--text); font-weight: 600; letter-spacing: 0.02em; margin-right: 2px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a[aria-current="true"] { color: var(--text); }
.nav-menu a.nav-cta { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--text); }
.nav-menu a.nav-cta:hover { border-color: var(--accent); color: var(--accent-strong); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 32px;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .js .nav-menu { display: none; }
  .js .site-header.is-open .nav-menu { display: flex; }
  .nav-menu a { display: block; padding: 14px 0; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu a.nav-cta { margin: 16px 0 0; border: 1px solid var(--line-strong); border-radius: 999px; text-align: center; }
}
/* Without JS on small screens, show the menu inline so nav still works */
@media (max-width: 820px) {
  html:not(.js) .nav-menu { position: static; display: flex; flex-direction: row; flex-wrap: wrap; background: none; border: 0; padding: 0; }
  html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(132px, 18vw, 188px) 0 clamp(56px, 8vw, 88px);
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(56, 92, 150, 0.22), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(214, 183, 127, 0.06), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--ink) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(160, 176, 200, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(160, 176, 200, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title {
  font-size: clamp(2.75rem, 7.2vw, 5.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-title em { display: inline; letter-spacing: -0.025em; }
.hero-lede {
  max-width: 34em; margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-figure { margin: 0; color: var(--text); }
.schematic { width: 100%; height: auto; overflow: visible; }
.sch-labels text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--muted); }
.sch-node { fill: var(--ink); stroke: var(--text); stroke-opacity: .7; stroke-width: 1.4; }
.sch-node--idea { fill: var(--accent); stroke: none; }
.sch-node--impact { fill: var(--signal); stroke: none; }
.sch-pulse { fill: none; stroke: var(--signal); stroke-width: 1.2; transform-origin: 432px 380px; transform-box: view-box; opacity: 0; }

.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.hero-pillars li {
  flex: 1 1 0; min-width: max-content;
  padding: 20px 24px 0 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
.hero-pillars li::before { content: "/"; margin-right: 10px; color: var(--accent); opacity: .8; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .hero-figure { max-width: 320px; }
  .eyebrow { align-items: flex-start; font-size: 11.5px; letter-spacing: 0.06em; line-height: 1.6; }
  .eyebrow-dot { margin-top: 5px; flex: none; }
  .hero-pillars li { flex: 0 0 50%; min-width: 0; padding-top: 16px; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- Sections (shared) ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 860px; }
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 64px; align-items: end;
}
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.section-label span { color: var(--accent); }
.section-label span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-strong); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.04; }
.section-intro { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 30em; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--text); letter-spacing: -0.01em; }

@media (max-width: 820px) {
  .section-head--split { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about { background: var(--ink); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-body p:not(.lead) { color: var(--muted); }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.principle-num {
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
}
.principles h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Capabilities ---------- */
.capabilities { background: linear-gradient(180deg, var(--navy-900), var(--ink)); }
.cap-list { border-top: 1px solid var(--line); counter-reset: cap; }
.cap {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1.2fr);
  grid-template-areas: "num title desc" "num title tags";
  gap: 10px 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.cap::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .6s var(--ease);
}
.cap:hover::before { width: 100%; }
.cap-num { grid-area: num; font-family: var(--font-mono); font-size: 13px; color: var(--faint); padding-top: 6px; transition: color .3s; }
.cap:hover .cap-num { color: var(--accent); }
.cap-title { grid-area: title; font-size: clamp(1.35rem, 2.3vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.18; }
.cap-desc { grid-area: desc; margin: 0; color: var(--muted); }
.cap-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cap-tags li, .founder-focus li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
@media (max-width: 860px) {
  .cap { grid-template-columns: 48px 1fr; grid-template-areas: "num title" "num desc" "num tags"; gap: 12px 16px; padding: 30px 0; }
}

/* ---------- Ventures ---------- */
.ventures { background: var(--charcoal); }
.venture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.venture {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--charcoal-2), rgba(21, 24, 30, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.venture:hover { border-color: var(--line-strong); }
.venture-body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; flex: 1; }
.venture-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.venture-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--live); border-color: rgba(124, 207, 165, 0.35); }
.status--live::before { box-shadow: 0 0 0 3px rgba(124, 207, 165, 0.18); }
.status--dev { color: var(--signal); border-color: rgba(134, 180, 214, 0.35); }
.status--soon { color: var(--muted); }

.venture-name { font-size: clamp(1.8rem, 3.2vw, 2.4rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.venture-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--accent-strong); margin-bottom: 18px; }
.venture-desc { color: var(--muted); }
.venture-features { display: grid; gap: 10px; margin: 8px 0 28px; }
.venture-features li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.venture-features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--accent); }
.venture-features strong { color: var(--text); font-weight: 500; }
.venture-link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px;
  font-weight: 500; font-size: 15px; color: var(--accent-strong);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.venture-link:hover { background-size: 100% 1px; }

.venture--featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(56, 92, 150, 0.18), transparent 70%),
    linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
}
.venture-visual { margin: 0; padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0; display: flex; align-items: center; }
.browser {
  width: 100%;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.02);
  transform: perspective(1600px) rotateY(-4deg) rotateX(1deg);
  transition: transform .6s var(--ease);
}
.venture--featured:hover .browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f5; border-bottom: 1px solid #dde2ea; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #cfd6e0; }
.browser-bar em { margin: 0 auto; padding: 2px 12px; border-radius: 5px; background: #fff; font-family: var(--font-mono); font-size: 11px; color: #6b7686; }

.venture-art { position: relative; height: 200px; color: var(--text); border-bottom: 1px solid var(--line); background: var(--navy-800); overflow: hidden; }
.venture-art svg { width: 100%; height: 100%; }
.venture-art-ar {
  position: absolute; right: 22px; bottom: 16px;
  font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", "Arial", sans-serif;
  font-size: 15px; color: var(--muted); letter-spacing: 0;
}
.venture--next { border-style: dashed; background: transparent; }
.venture--next .venture-body { justify-content: center; }
.venture--next .venture-name { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--muted); }
.venture--next .venture-link { margin-top: 12px; }

@media (max-width: 920px) {
  .venture--featured { grid-template-columns: 1fr; }
  .venture-visual { padding: 0 clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px); }
  .browser { transform: none; }
}
@media (max-width: 720px) { .venture-grid { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { background: var(--ink); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.founder-photo { position: relative; margin: 0; }
.founder-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius);
  filter: saturate(0.82) contrast(1.03);
}
.founder-photo::before, .founder-photo::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--accent); border-style: solid; pointer-events: none;
}
.founder-photo::before { top: -10px; left: -10px; border-width: 1px 0 0 1px; }
.founder-photo::after { right: -10px; bottom: 34px; border-width: 0 1px 1px 0; }
.founder-photo figcaption {
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
}
.founder-body .section-title { margin-bottom: 8px; }
.founder-role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 32px; }
.founder-body p:not(.lead):not(.founder-role):not(.section-label) { color: var(--muted); }
.founder-focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 360px; }
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink), var(--navy-900)); }
.contact-panel {
  position: relative;
  padding: clamp(36px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(56, 92, 150, 0.22), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(214, 183, 127, 0.08), transparent 60%),
    var(--navy-800);
  overflow: hidden;
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(160, 176, 200, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(160, 176, 200, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.contact-panel > * { position: relative; }
.contact-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 15em; }
.contact-lede { max-width: 36em; margin: 24px 0 40px; color: var(--muted); font-size: 1.08rem; }
.contact-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.contact-email {
  font-size: clamp(1.4rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em;
  color: var(--text); overflow-wrap: anywhere;
  padding-bottom: 4px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: color .25s, background-size .35s var(--ease);
}
.contact-email:hover { color: var(--accent-strong); background-size: 100% 2px; }
.copy-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--muted);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
.copy-btn.is-copied { color: var(--live); border-color: rgba(124, 207, 165, 0.45); }
html:not(.js) .copy-btn { display: none; }
.contact-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.contact-facts dd { margin: 0; color: var(--text); font-size: 15.5px; overflow-wrap: anywhere; }
.contact-facts a:hover { color: var(--accent-strong); }
@media (max-width: 720px) { .contact-facts { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); padding: 72px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin: 18px 0 0; color: var(--faint); max-width: 22em; }
.footer-col h2 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); transition: color .2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 13.5px;
}
.footer-base p { margin: 0; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Legal / simple pages ---------- */
.legal { padding: clamp(128px, 16vw, 168px) 0 var(--section-y); }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.04em; margin-bottom: 16px; }
.legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--faint); margin-bottom: 48px; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: none; margin: 0 0 1.1em; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--accent); }
.legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .container { max-width: 780px; }
.notfound .btn { margin-top: 24px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cap.reveal:nth-child(2) { transition-delay: .05s; }
.js .cap.reveal:nth-child(3) { transition-delay: .1s; }

.sch-trace { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.6s var(--ease) .4s forwards; }
.sch-trace--b { animation-delay: 1s; animation-duration: 3s; }
.sch-node { opacity: 0; animation: fade .6s var(--ease) forwards; }
.sch-nodes > :nth-child(1) { animation-delay: .2s; }
.sch-nodes > :nth-child(2) { animation-delay: 1.1s; }
.sch-nodes > :nth-child(3) { animation-delay: 1.9s; }
.sch-nodes > :nth-child(4) { animation-delay: 2.6s; }
.sch-pulse { animation: pulse 3.2s ease-out 3s infinite; }
.sch-labels text { opacity: 0; animation: fade .8s var(--ease) forwards; }
.sch-labels text:nth-child(1) { animation-delay: .5s; }
.sch-labels text:nth-child(2) { animation-delay: 1.3s; }
.sch-labels text:nth-child(3) { animation-delay: 2.1s; }
.sch-labels text:nth-child(4) { animation-delay: 2.8s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .sch-trace { stroke-dashoffset: 0; }
  .sch-node, .sch-labels text { opacity: 1; }
  .sch-pulse { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .browser { transform: none !important; }
}
.nowrap { white-space: nowrap; }
@media (max-width: 820px) { body.menu-open { overflow: hidden; } }
