/* JISOPS Public Site v1 — shared stylesheet
   PROD NOTE: swap Google Fonts <link> for self-hosted IBM Plex Sans + Mono in /fonts/ */

:root {
  /* Palette — light dominant, restrained */
  --bg: #FAFAF7;
  --surface: #F2F1EC;
  --surface-2: #ECEBE5;
  --text: #0F1115;
  --text-muted: #6B7280;
  --hairline: #E5E4DE;

  /* Accent — JISOPS blue */
  --accent: #3BA7FF;
  --accent-ink: #0F1115;

  /* Status colours */
  --status-live: #4ADE80;
  --status-build: #3BA7FF;
  --status-concept: #9CA3AF;

  /* Type */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale (desktop) */
  --fs-display: clamp(48px, 7vw, 104px);
  --fs-h1: clamp(40px, 5.4vw, 80px);
  --fs-h2: clamp(32px, 3.6vw, 56px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-body: 17px;
  --fs-body-lg: 19px;
  --fs-mono-sm: 12px;
  --fs-mono: 13px;

  /* Spacing */
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad-y: clamp(72px, 11vw, 144px);
  --section-pad-y-tight: clamp(48px, 7vw, 88px);

  /* Layout */
  --max-w: 1440px;
  --content-w: 1200px;
  --header-h: 72px;
  --header-h-compact: 56px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 240ms;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* ─────────────────────────  LAYOUT  ───────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section-tight { padding-top: var(--section-pad-y-tight); padding-bottom: var(--section-pad-y-tight); }
.section-alt { background: var(--surface); }

/* Section header pattern: numbered label + title + sub */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-num::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--text);
  display: inline-block;
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: end; }
  .section-num { grid-column: 1 / -1; }
  .section-title { grid-column: 1; }
  .section-sub { grid-column: 2; padding-bottom: 8px; }
}

/* ─────────────────────────  HEADER  ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.scrolled { border-color: var(--hairline); }
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height var(--dur) var(--ease);
}
.site-header.scrolled .wrap { height: var(--header-h-compact); }

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand .wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .subline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.brand:hover .wordmark { color: var(--accent); }

.nav { display: none; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.005em;
  position: relative;
  padding: 8px 0;
}
.nav a:hover { color: var(--accent); }
.nav a.active::after,
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--accent);
}
.nav .cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav .cta:hover { background: #2596ee; color: #fff; transform: translateY(-1px); }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text); padding: 8px 0;
}
.nav-dropdown > button svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav-dropdown[open] > button svg,
.nav-dropdown:hover > button svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(15,17,21,0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown-panel a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
}
.nav-dropdown-panel a:hover { background: var(--surface); }
.nav-dropdown-panel .name { font-size: 14px; font-weight: 500; }
.nav-dropdown-panel .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Mobile menu */
.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.menu-toggle:hover { background: var(--surface); }
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 24px var(--gutter);
  overflow-y: auto;
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); }
.mobile-menu nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 16px 0; font-size: 28px; font-weight: 500; letter-spacing: -0.01em; border-bottom: 1px solid var(--hairline); }
.mobile-menu nav a.sub { font-size: 18px; padding-left: 24px; color: var(--text-muted); border-bottom-color: transparent; }
.mobile-menu nav a.sub::before { content: "↳ "; color: var(--accent); }
.mobile-menu .cta {
  margin-top: 32px;
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  border-radius: 999px;
  text-align: center;
  font-weight: 500;
  font-size: 18px;
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ─────────────────────────  HERO  ───────────────────────── */
.hero {
  min-height: 80vh;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .hero { min-height: calc(100vh - var(--header-h)); }
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  gap: 24px;
}
.hero-meta span:first-child { color: var(--text); }
.hero-meta .accent-mark { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .accent-mark::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
}

.hero-h1 {
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-bottom { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.hero-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  align-self: start;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-cta:hover { background: var(--accent); transform: translateY(-2px); }
.hero-cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.hero-cta:hover svg { transform: translateX(4px); }

/* Hero geometry — thin lines, accent stripe */
.hero-geom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-geom .line {
  position: absolute;
  background: var(--hairline);
}
.hero-geom .v1 { top: 0; bottom: 0; left: 25%; width: 1px; }
.hero-geom .v2 { top: 0; bottom: 0; left: 75%; width: 1px; }
.hero-geom .h1l { left: 0; right: 0; top: 50%; height: 1px; }
.hero-geom .accent-stripe {
  position: absolute;
  top: 0;
  left: 75%;
  width: 1px;
  height: 25%;
  background: var(--accent);
}
.hero-geom .corner {
  position: absolute;
  width: 80px; height: 80px;
  border: 1px solid var(--hairline);
}
.hero-geom .corner.tr { top: 16%; right: 10%; border-color: var(--accent); border-width: 0 1px 1px 0; }
.hero-geom .corner.bl { bottom: 22%; left: 18%; border-color: var(--hairline); border-width: 1px 0 0 1px; }

/* Hero variants */
.hero[data-variant="lines"] .hero-geom { display: block; }
.hero[data-variant="bare"] .hero-geom { display: none; }
.hero[data-variant="mark"] .hero-geom .line,
.hero[data-variant="mark"] .hero-geom .corner { display: none; }
.hero[data-variant="mark"] .hero-geom::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 30%;
  width: clamp(120px, 18vw, 260px);
  aspect-ratio: 1;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 8%, 8% 8%, 8% 100%, 0 100%);
}

/* ─────────────────────────  PROJECTS GRID  ───────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
.project-tile {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: background var(--dur) var(--ease);
  min-height: 360px;
}
.project-tile:hover { background: var(--surface); }
.project-tile:hover .tile-arrow { transform: translate(4px, -4px); color: var(--accent); }

.tile-visual {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.project-tile:hover .tile-visual { background: var(--surface-2); }
.tile-visual .tile-monogram {
  font-family: var(--font-sans);
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 0.9;
}
.tile-visual .tile-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* per-project geometric motifs */
.tile-glyph svg { width: 80%; height: auto; max-height: 70%; opacity: 0.85; }
.tile-glyph .stroke { stroke: var(--text); stroke-width: 1; fill: none; }
.tile-glyph .accent { stroke: var(--accent); }
.tile-glyph .dot { fill: var(--text); }
.tile-glyph .dot-accent { fill: var(--accent); }

.tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tile-name {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.tile-name .slash { color: var(--text-muted); font-weight: 400; }
.tile-arrow {
  width: 32px; height: 32px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
  flex-shrink: 0;
}

.tile-desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin: 0;
  max-width: 48ch;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-pill[data-status="live"]::before { background: var(--status-live); box-shadow: 0 0 0 3px color-mix(in oklab, var(--status-live) 25%, transparent); }
.status-pill[data-status="in build"]::before { background: var(--status-build); box-shadow: 0 0 0 3px color-mix(in oklab, var(--status-build) 25%, transparent); }
.status-pill[data-status="concept"]::before { background: var(--status-concept); }

/* ─────────────────────────  SERVICES  ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  min-height: 380px;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.service-card .tier-name {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.service-card .tier-name span { display: block; color: var(--text-muted); font-size: 0.55em; font-weight: 400; letter-spacing: 0; margin-top: 6px; }
.service-card .tier-tag {
  font-size: 16px;
  color: var(--text);
  margin: 0;
}
.service-card .price {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: auto;
}
.service-card .price small { color: var(--text-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.service-card .desc { font-size: 15px; color: var(--text-muted); margin: 0; }
.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-top: 8px;
}
.service-card .arrow-link:hover { color: var(--accent); }
.service-card .arrow-link svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.service-card .arrow-link:hover svg { transform: translateX(4px); }

/* ─────────────────────────  PROCESS  ───────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .process-grid { grid-template-columns: repeat(5, 1fr); border-top: 0; }
}
.process-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
@media (min-width: 900px) {
  .process-step {
    padding: 32px 24px 32px 0;
    border-bottom: 0;
    border-top: 1px solid var(--hairline);
  }
  .process-step:not(:last-child) { border-right: 1px solid var(--hairline); }
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.process-step h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.process-step p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 28ch;
}

/* ─────────────────────────  ABOUT (home §05)  ───────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 96px; }
}
.about-prose p {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
  margin: 0 0 1.2em;
  max-width: 56ch;
}
.about-prose p:last-child { margin-bottom: 0; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 0; }
.pillar {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
}
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar .num { font-family: var(--font-mono); font-size: var(--fs-mono-sm); color: var(--text-muted); padding-top: 4px; letter-spacing: 0.08em; }
.pillar h4 { font-size: 18px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.pillar p { font-size: 15px; color: var(--text-muted); margin: 0; max-width: 48ch; }

/* ─────────────────────────  PRICING (home §06 summary)  ───────────────────────── */
.pricing-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .pricing-summary { grid-template-columns: repeat(3, 1fr); } }
.tier-mini {
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-mini .tier-label { font-family: var(--font-mono); font-size: var(--fs-mono-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.tier-mini h4 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.tier-mini .from { font-family: var(--font-mono); font-size: 16px; color: var(--text); }
.tier-mini .from strong { color: var(--accent); font-weight: 500; }
.tier-mini p { font-size: 14px; color: var(--text-muted); margin: 0; }

.pricing-cta-row {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 6px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { width: 18px; height: 18px; }

/* ─────────────────────────  FAQ  ───────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--hairline);
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon { width: 24px; height: 24px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 64ch;
  padding: 0 0 28px;
  margin: 0;
  text-wrap: pretty;
}

/* ─────────────────────────  CONTACT  ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 96px; } }

.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .charcount { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); align-self: flex-end; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-actions { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.btn-submit {
  background: var(--text);
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background var(--dur) var(--ease);
}
.btn-submit:hover { background: var(--accent); }
.btn-submit[disabled] { background: var(--text-muted); cursor: progress; }

.form-success {
  border: 1px solid var(--accent);
  padding: 32px;
  font-size: var(--fs-body-lg);
  display: none;
}
.form-success.show { display: block; }
.form-success .label { font-family: var(--font-mono); font-size: var(--fs-mono-sm); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.form-error {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: #d04444;
  margin-top: 4px;
  min-height: 18px;
}

.contact-aside dl { display: grid; grid-template-columns: 1fr; gap: 32px; margin: 0; }
.contact-aside dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-aside dd { margin: 0; font-size: var(--fs-body-lg); color: var(--text); }
.contact-aside dd a { color: var(--text); border-bottom: 1px solid var(--hairline); }
.contact-aside dd a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────────────────────  FOOTER  ───────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; } }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.footer-col.brand-col p { font-size: 15px; color: var(--text-muted); max-width: 36ch; margin: 16px 0 24px; }
.footer-col.brand-col a.email { color: var(--text); border-bottom: 1px solid var(--hairline); }
.footer-col.brand-col a.email:hover { color: var(--accent); border-bottom-color: var(--accent); }

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.social-row a[data-disabled] { opacity: 0.5; }
.social-row a svg { width: 16px; height: 16px; }

.footer-base {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-base nav { display: flex; gap: 20px; }
.footer-base a:hover { color: var(--accent); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────  PROJECT DETAIL  ───────────────────────── */
.proj-hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.proj-hero .meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.proj-hero .meta-row a { color: var(--text-muted); }
.proj-hero .meta-row a:hover { color: var(--accent); }
.proj-hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.proj-hero .tagline {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 48px;
}
.proj-hero-visual {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.proj-hero-visual .mono-label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proj-hero-visual .mono-label-tr {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.proj-hero-visual svg.glyph-lg { width: 60%; height: auto; max-height: 70%; }
.proj-hero-visual .glyph-lg .stroke { stroke: var(--text); stroke-width: 1; fill: none; }
.proj-hero-visual .glyph-lg .accent { stroke: var(--accent); }
.proj-hero-visual .glyph-lg .dot { fill: var(--text); }
.proj-hero-visual .glyph-lg .dot-accent { fill: var(--accent); }

.proj-section {
  padding-top: var(--section-pad-y-tight);
  padding-bottom: var(--section-pad-y-tight);
}
.proj-section + .proj-section { border-top: 1px solid var(--hairline); }
.proj-section .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .proj-section .grid { grid-template-columns: 1fr 2fr; gap: 96px; }
}
.proj-section h2 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.proj-section .num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.proj-section .body {
  font-size: var(--fs-body-lg);
  color: var(--text);
  line-height: 1.6;
  max-width: 60ch;
  text-wrap: pretty;
}
.proj-section .body p { margin: 0 0 1em; }
.proj-section .body p:last-child { margin-bottom: 0; }

.cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) { .cap-list { grid-template-columns: 1fr 1fr; gap: 0 32px; } }
.cap-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  align-items: start;
}
.cap-list li:last-child,
.cap-list li:nth-last-child(2):not(:last-child) { /* keep last row's bottom edge clean */ }
.cap-list .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.roadmap-list { list-style: none; padding: 0; margin: 0; }
.roadmap-list li {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 700px) {
  .roadmap-list li { grid-template-columns: 200px 1fr; gap: 24px; }
}
.roadmap-list li:last-child { border-bottom: 1px solid var(--hairline); }
.roadmap-list .phase {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.roadmap-list .desc { color: var(--text-muted); font-size: 15px; }

.proj-cta {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.proj-cta h3 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.proj-cta .hero-cta { display: inline-flex; }

.proj-nav {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.proj-nav a:hover { color: var(--accent); }

/* ─────────────────────────  STANDARD PAGE HEAD  ───────────────────────── */
.page-head {
  padding-top: clamp(72px, 9vw, 144px);
  padding-bottom: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.page-head .num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.page-head .num::before { content: ""; width: 32px; height: 1px; background: var(--text); }
.page-head h1 {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.page-head .sub {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

/* ─────────────────────────  PRICING TABLE  ───────────────────────── */
.tier-table-wrap { overflow-x: auto; }
.tier-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.tier-table th, .tier-table td {
  padding: 16px 20px;
  text-align: left;
  border-top: 1px solid var(--hairline);
  vertical-align: top;
}
.tier-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  padding-bottom: 14px;
  padding-top: 0;
}
.tier-table thead th .from {
  display: block;
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
  font-weight: 500;
}
.tier-table thead th .from-mo {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.tier-table tbody th {
  font-weight: 400;
  color: var(--text);
  border-top: 1px solid var(--hairline);
}
.tier-table td.check { color: var(--accent); font-size: 18px; }
.tier-table td.dash { color: var(--text-muted); }
.tier-table tr:hover td, .tier-table tr:hover th { background: color-mix(in oklab, var(--accent) 6%, transparent); }

.addons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.addons-table th, .addons-table td {
  padding: 16px 20px;
  text-align: left;
  border-top: 1px solid var(--hairline);
}
.addons-table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.addons-table tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.addons-table .price-cell {
  font-family: var(--font-mono);
  white-space: nowrap;
  color: var(--text);
}
.addons-table .notes-cell { color: var(--text-muted); font-size: 14px; }

.pricing-notes {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-notes li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.pricing-notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─────────────────────────  ABOUT (standalone)  ───────────────────────── */
.about-prose-lg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0 0 64px;
}
.about-prose-lg p {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.about-prose-lg p.lead { font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.01em; line-height: 1.35; }

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 800px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
.stack-cell {
  background: var(--bg);
  padding: 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}
.stack-cell .role {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}
.stack-cell h4 { font-size: 20px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.stack-cell p { font-size: 15px; color: var(--text-muted); margin: 0; max-width: 36ch; }

/* ─────────────────────────  LEGAL  ───────────────────────── */
.legal-prose {
  max-width: 70ch;
  margin: 0 auto;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
}
.legal-prose h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose h2 .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 12px;
  letter-spacing: 0.04em;
}
.legal-prose p { margin: 0 0 1em; color: var(--text); }
.legal-prose ul { padding-left: 20px; margin: 0 0 1em; }
.legal-prose li { margin-bottom: 0.5em; color: var(--text); }
.legal-prose .updated {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ─────────────────────────  TWEAKS PANEL  ───────────────────────── */
.tweaks-toggle-hidden { display: none !important; }
