/* ═══════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════ */
:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --bg-3: #141414;
  --bg-4: #1a1a1a;
  --border: rgba(255,255,255,0.09);
  --border-h: rgba(255,255,255,0.16);
  --text: #ede9e3;
  --text-2: rgba(237,233,227,0.72);
  --text-3: rgba(237,233,227,0.62);
  --gold: #c8a86a;
  --gold-dim: rgba(200,168,106,0.1);
  --gold-glow: rgba(200,168,106,0.06);
  --blue: #4f8eff;
  --blue-dim: rgba(79,142,255,0.1);
  --green: #47b882;
  --green-dim: rgba(71,184,130,0.1);
  --amber: #e8a020;
  --amber-dim: rgba(232,160,32,0.1);
  --purple: #9b6dff;
  --purple-dim: rgba(155,109,255,0.1);
  --nav-h: 62px;
  --radius: 10px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   SKIP LINK (Accessibility)
═══════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 300;
  padding: 8px 16px;
  background: var(--gold);
  color: #080808;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ═══════════════════════════════════════
   FOCUS STYLES (Accessibility)
═══════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}
[tabindex="-1"]:focus {
  outline: none;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: rgba(7,7,7,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; letter-spacing: 0.06em;
  cursor: pointer; color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li a {
  display: block; padding: 7px 14px;
  color: var(--text-2); text-decoration: none;
  font-size: 13px; font-weight: 400; letter-spacing: 0.03em;
  transition: color 0.2s; cursor: pointer;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--text); }
.nav-cta {
  padding: 7px 18px !important;
  border: 1px solid rgba(200,168,106,0.3) !important;
  border-radius: 6px !important;
  color: var(--gold) !important;
  background: var(--gold-dim) !important;
  margin-left: 6px;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: rgba(200,168,106,0.18) !important; }

@media (max-width: 1120px) {
  nav { padding: 0 22px; }
  .nav-links li a { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .nav-cta { padding-left: 12px !important; padding-right: 12px !important; }
}

/* ═══════════════════════════════════════
   PAGE SYSTEM
═══════════════════════════════════════ */
.page { display: none; min-height: 100vh; padding-top: var(--nav-h); }
.page.active { display: block; }

/* ═══════════════════════════════════════
   REUSABLE
═══════════════════════════════════════ */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 36px; }
.section { padding: 96px 0; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.5vw, 44px); font-weight: 300;
  line-height: 1.1; letter-spacing: -0.01em; color: var(--text);
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.section-sub { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: min(480px, 100%); margin-bottom: 48px; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--border); }

.pill {
  display: inline-block; padding: 2px 9px;
  border: 1px solid var(--border); border-radius: 100px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-3);
  white-space: nowrap;
}
.pill-gold { border-color: rgba(200,168,106,0.3); color: var(--gold); background: var(--gold-dim); }
.pill-blue { border-color: rgba(79,142,255,0.3); color: var(--blue); background: var(--blue-dim); }
.pill-green { border-color: rgba(71,184,130,0.3); color: var(--green); background: var(--green-dim); }
.pill-amber { border-color: rgba(232,160,32,0.3); color: var(--amber); background: var(--amber-dim); }
.pill-purple { border-color: rgba(155,109,255,0.3); color: var(--purple); background: var(--purple-dim); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  cursor: pointer; transition: all 0.22s; border: none; text-decoration: none;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  line-height: 1;
  text-transform: none;
  opacity: 0.82;
}
.btn-primary { background: var(--gold); color: #080808; font-weight: 500; }
.btn-primary:hover { background: #d4b577; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(200,168,106,0.22); }
.btn-secondary { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-h); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-h); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }

/* ═══════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid; place-items: center;
  padding: 70px 36px 56px;
  position: relative; overflow: visible;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 600px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,168,106,0.05) 0%, transparent 70%);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; margin-bottom: 36px;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
  animation: fadeUp 0.7s ease both;
}
.hero-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: glow 2.5s infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 rgba(71,184,130,0.5); } 50% { box-shadow: 0 0 0 5px rgba(71,184,130,0); } }
.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300; line-height: 0.98; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 26px;
  animation: fadeUp 0.7s 0.1s ease both;
  overflow-wrap: anywhere;
}
.hero-h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--text-2);
  max-width: min(560px, 100%); margin: 0 0 34px; line-height: 1.75;
  animation: fadeUp 0.7s 0.18s ease both;
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.26s ease both;
  margin-bottom: 34px;
}
.hero-stats {
  display: flex; gap: 0; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; width: 100%; max-width: 520px; margin: 0;
  animation: fadeUp 0.7s 0.34s ease both;
}
.hero-stat {
  flex: 1; padding: 18px 20px; text-align: left;
  border-right: 1px solid var(--border);
  background: rgba(13,13,13,0.72);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400; color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-l { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }

.hero-app {
  min-width: 0;
  border: 1px solid var(--border-h);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20,20,20,0.96), rgba(9,9,9,0.96));
  box-shadow: 0 26px 70px rgba(0,0,0,0.42), 0 0 0 1px rgba(200,168,106,0.03) inset;
  overflow: hidden;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-app-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(237,233,227,0.22);
}
.window-dot:first-child { background: rgba(232,80,80,0.78); }
.window-dot:nth-child(2) { background: rgba(232,160,32,0.78); }
.window-dot:nth-child(3) { background: rgba(71,184,130,0.78); }
.hero-app-url {
  margin-left: 8px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1;
}
.hero-app-screen {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 500px;
}
.hero-app-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(7,7,7,0.74);
  padding: 18px 14px;
}
.hero-app-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(200,168,106,0.35);
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-dim);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
}
.hero-app-side-line {
  width: 100%;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: rgba(237,233,227,0.13);
}
.hero-app-side-line.active { background: rgba(79,142,255,0.62); }
.hero-app-side-line.short { width: 62%; }
.hero-app-main { padding: 26px; min-width: 0; }
.hero-app-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.hero-app-chip {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  white-space: nowrap;
}
.hero-app-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-app-desc {
  max-width: 560px;
  min-height: 72px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.hero-app-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #050607;
}
.hero-app-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.22s ease, transform 0.35s ease;
}
.hero-app:hover .hero-app-preview img { transform: scale(1.018); }
.hero-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.workflow-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.018);
}
.workflow-row span,
.workflow-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.workflow-row span {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.workflow-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.workflow-row.complete { border-color: rgba(71,184,130,0.26); background: rgba(71,184,130,0.06); }
.workflow-row.active { border-color: rgba(79,142,255,0.28); background: rgba(79,142,255,0.06); }
.hero-app-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.hero-app-tab {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.hero-app-tab:last-child { border-right: none; }
.hero-app-tab:hover,
.hero-app-tab.active {
  color: var(--gold);
  background: var(--gold-dim);
}

/* ═══════════════════════════════════════
   HOME — PERSONA ROUTER
═══════════════════════════════════════ */
.persona-router { padding-top: 84px; padding-bottom: 84px; }
.persona-router-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  overflow: hidden;
}
.persona-card {
  min-width: 0;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}
.persona-card:hover {
  background: var(--bg-3);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}
.persona-marker {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(200,168,106,0.34);
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.persona-card-title {
  display: block;
  margin-bottom: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  overflow-wrap: anywhere;
}
.persona-card-desc {
  display: block;
  flex: 1;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.persona-card-cta {
  display: block;
  margin-top: 24px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .persona-router-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .persona-card { min-height: 230px; }
  .lane-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════
   HOME — FEATURED APPS
═══════════════════════════════════════ */
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.feat-card {
  background: var(--bg-2); padding: 0;
  cursor: pointer; transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
  min-width: 0;
}
.feat-card:hover {
  background: var(--bg-3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200,168,106,0.10);
}
.feat-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 18px; flex-shrink: 0;
}
.feat-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #050607;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.feat-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}
.feat-card:hover .feat-thumb img { transform: scale(1.035); }
.feat-card .feat-cat,
.feat-card .feat-title,
.feat-card .feat-desc,
.feat-card .feat-stack { margin-left: 28px; margin-right: 28px; }
.feat-card .feat-cat { margin-top: 24px; }
.feat-card .feat-stack { margin-bottom: 28px; }
.feat-cat { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.feat-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 400; color: var(--text); margin-bottom: 9px; }
.feat-title, .feat-desc { overflow-wrap: anywhere; }
.feat-desc { font-size: 14px; color: var(--text-2); line-height: 1.72; flex: 1; margin-bottom: 18px; }
.feat-stack { display: flex; gap: 5px; flex-wrap: wrap; }

.lane-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lane-feature-card {
  min-width: 0;
  background: var(--bg-2);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.lane-feature-card:hover { background: var(--bg-3); }
.lane-feature-label {
  min-height: 28px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}
.lane-feature-card h3 {
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lane-feature-card p {
  flex: 1;
  margin-bottom: 20px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.lane-feature-card .proj-link {
  align-self: flex-start;
  margin-bottom: 8px;
}
.lane-feature-card .detail-lane-link {
  margin-top: auto;
  padding-bottom: 0;
}
.build-proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-cta { margin-bottom: 80px; }

/* ═══════════════════════════════════════
   HOME — LEGAL SNAPSHOT
═══════════════════════════════════════ */
.legal-snap {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.snap-main { background: var(--bg-2); padding: 44px 40px; }
.snap-cell { background: var(--bg-2); padding: 32px 36px; transition: background 0.2s; }
.snap-cell:hover { background: var(--bg-3); }
.snap-label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.snap-value { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--text); line-height: 1.3; }
.snap-items { display: flex; flex-direction: column; gap: 7px; }
.snap-item { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.snap-item::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ═══════════════════════════════════════
   HOME — WRITING
═══════════════════════════════════════ */
.writing-list { display: flex; flex-direction: column; gap: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.wl-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: var(--bg-2); padding: 26px 32px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border); }
.wl-item:last-child { border-bottom: none; }
.wl-item:hover { background: var(--bg-3); }
.wl-cat { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.wl-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 400; color: var(--text); margin-bottom: 5px; }
.wl-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.65; max-width: 580px; }
.wl-meta { font-size: 11.5px; color: var(--text-3); text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }

/* ═══════════════════════════════════════
   HOME — FOCUS
═══════════════════════════════════════ */
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.focus-card { background: var(--bg-2); padding: 32px 28px; transition: background 0.2s; }
.focus-card:hover { background: var(--bg-3); }
.focus-n { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 300; color: var(--text-3); line-height: 1; margin-bottom: 14px; }
.focus-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.focus-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }

/* ═══════════════════════════════════════
   APPS PAGE
═══════════════════════════════════════ */
.page-header { padding: 64px 0 52px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.page-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 58px); font-weight: 300; letter-spacing: -0.02em; color: var(--text); margin-bottom: 14px; line-height: 1.05; }
.page-sub { font-size: 15px; color: var(--text-2); line-height: 1.75; max-width: 520px; }
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; align-items: center; }

/* CATEGORY FILTER */
.cat-filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 36px 0 0; }
.cat-btn { padding: 6px 15px; border: 1px solid var(--border); border-radius: 100px; font-size: 12px; color: var(--text-2); background: transparent; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.cat-btn:hover, .cat-btn.active { border-color: rgba(200,168,106,0.4); color: var(--gold); background: var(--gold-dim); }
.apps-search { padding: 36px 0 0; max-width: 520px; }
.apps-search-label { display: block; margin-bottom: 9px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.apps-search-row { display: flex; gap: 8px; align-items: center; }
.apps-search-input {
  flex: 1;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}
.apps-search-input::placeholder { color: var(--text-3); }
.apps-search-input:focus { border-color: rgba(200,168,106,0.45); box-shadow: 0 0 0 1px rgba(200,168,106,0.15); }
.apps-search-clear {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
}
.apps-search-clear:hover { border-color: var(--border-h); color: var(--text); }
.apps-search-clear:disabled { opacity: 0.45; cursor: default; }

/* PROJECT GRID */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; padding: 32px 0 80px; }
.proj-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.22s, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.proj-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(200,168,106,0.10);
}
.proj-thumb { height: 160px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.proj-thumb--image {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #050607;
}
.proj-thumb--image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.32s ease, filter 0.32s ease;
}
.proj-card:hover .proj-thumb--image img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}
.proj-thumb--video { height: 280px; padding: 0; }
.proj-thumb--video iframe { width: 100%; height: 100%; border: 0; }
.proj-thumb-inner { position: relative; z-index: 1; }
.proj-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.proj-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.proj-status-dot { width: 5px; height: 5px; border-radius: 50%; }
.s-live { color: var(--green); } .s-live .proj-status-dot { background: var(--green); }
.s-soon { color: var(--amber); } .s-soon .proj-status-dot { background: var(--amber); }
.s-dev { color: var(--amber); } .s-dev .proj-status-dot { background: var(--amber); }
.proj-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--text); margin-bottom: 7px; }
.proj-title, .proj-desc { overflow-wrap: anywhere; }
.proj-meta-line {
  margin: -2px 0 9px;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}
.proj-desc { font-size: 14px; color: var(--text-2); line-height: 1.72; flex: 1; margin-bottom: 18px; }
.proj-stack { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 18px; }
.proj-links { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-link { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 11.5px; color: var(--text-2); text-decoration: none; transition: all 0.18s; cursor: pointer; }
.proj-link:hover { border-color: var(--border-h); color: var(--text); }
.proj-link.primary { border-color: rgba(200,168,106,0.3); color: var(--gold); background: var(--gold-dim); }
.product-detail-link { font-family: 'DM Sans', sans-serif; background: transparent; }

/* ═══════════════════════════════════════
   GTM ROUTES
═══════════════════════════════════════ */
.gtm-page .lane-route { padding: 40px 0 80px; }
.lane-section { margin-bottom: 56px; }
.lane-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lane-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 44px;
}
.lane-products.projects-grid { padding-top: 24px; padding-bottom: 0; }
.lane-featured-products.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lane-product-card .proj-links { align-items: center; }
.lane-featured-card .proj-thumb--image { aspect-ratio: 16 / 10; }
.lane-trust-note {
  margin-top: -22px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  background: rgba(255,255,255,0.018);
  font-size: 13px;
  line-height: 1.7;
}
.lane-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 64px 0 56px;
  padding: 34px 32px;
  border: 1px solid rgba(200,168,106,0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(200,168,106,0.10), rgba(255,255,255,0.018));
}
.lane-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 10px;
}
.lane-cta-copy {
  max-width: 620px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}
.related-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.collab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0 80px;
}
.collab-card {
  background: var(--bg-2);
  padding: 34px 32px;
  min-width: 0;
}
.collab-card .lane-desc { margin-bottom: 22px; }
.product-detail { padding: 56px 0 86px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 48px;
  align-items: start;
}
.product-detail-main { min-width: 0; }
.product-detail-stack { margin: 24px 0 8px; }
.case-study-hero-actions { margin-top: 22px; margin-bottom: 6px; }
.product-gtm-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 6px;
}
.product-gtm-field {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.product-gtm-field .sb-title { margin-bottom: 9px; }
.product-gtm-field p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.product-detail-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.product-detail-image {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.case-study-links {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.case-study-cta {
  grid-template-columns: 1fr;
  align-items: start;
  margin: 34px 0 0;
}
.detail-note {
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid rgba(200,168,106,0.16);
  border-radius: 8px;
  background: rgba(200,168,106,0.05);
  color: rgba(200,168,106,0.8);
  font-size: 12.5px;
  line-height: 1.65;
}
.detail-lane-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.18s;
}
.detail-lane-link:last-child { border-bottom: none; }
.detail-lane-link:hover { color: var(--gold); }
.product-detail-side .cred-detail { overflow-wrap: anywhere; }

/* ═══════════════════════════════════════
   LEGAL PAGE
═══════════════════════════════════════ */
.legal-hero-wrap { padding: 64px 0 52px; border-bottom: 1px solid var(--border); }
.disclaimer-bar { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; background: rgba(200,168,106,0.04); border: 1px solid rgba(200,168,106,0.14); border-radius: 8px; font-size: 12px; color: rgba(200,168,106,0.75); line-height: 1.65; margin-top: 32px; max-width: 700px; }
.disc-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.legal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 56px 0 80px; align-items: start; }
.legal-sec { margin-bottom: 48px; }
.legal-sec:last-child { margin-bottom: 0; }
.legal-sec-label { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal-sec-h { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--text); margin-bottom: 14px; }
.legal-sec-p { font-size: 14.5px; color: var(--text-2); line-height: 1.78; margin-bottom: 14px; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 4px; }
.area-card { background: var(--bg-2); padding: 20px 24px; transition: background 0.2s; }
.area-card:hover { background: var(--bg-3); }
.area-title { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.area-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.72; }
.legal-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.sidebar-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 12px; }
.sb-title { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cred-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.cred-item:last-child { border-bottom: none; }
.cred-name { font-size: 12.5px; font-weight: 400; color: var(--text); margin-bottom: 2px; }
.cred-detail { font-size: 12.5px; color: var(--text-2); }

/* ═══════════════════════════════════════
   WRITING PAGE
═══════════════════════════════════════ */
.wf-filters { display: flex; gap: 7px; flex-wrap: wrap; padding: 32px 0 36px; }
.wf-list { display: flex; flex-direction: column; gap: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 80px; }
.wf-item { background: var(--bg-2); padding: 32px 36px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid var(--border); }
.wf-item:last-child { border-bottom: none; }
.wf-item:hover { background: var(--bg-3); }
.wf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.wf-cat { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.wf-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--text); }
.wf-meta { font-size: 12px; color: var(--text-3); text-align: right; white-space: nowrap; }
.wf-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.72; max-width: 640px; margin-bottom: 14px; }
.wf-tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* ARTICLE DETAIL VIEW */
#article-detail { max-width: 680px; margin: 0 auto; padding: 48px 0 96px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12.5px; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; margin-bottom: 36px; }
.article-back:hover { border-color: var(--border-h); color: var(--text); }
.article-header .wf-cat { margin-bottom: 10px; }
.article-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,4vw,40px); font-weight: 400; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.article-header .article-meta { font-size: 12px; color: var(--text-3); margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.article-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--text); margin: 36px 0 14px; }
.article-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--text); margin: 28px 0 10px; }
.article-body p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.article-body ul, .article-body ol { font-size: 15px; color: var(--text-2); line-height: 1.8; margin: 0 0 16px 22px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 2px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gold-glow); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body blockquote p { color: var(--text-2); font-size: 13.5px; font-style: italic; margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body hr { border: none; height: 1px; background: var(--border); margin: 32px 0; }
.article-disclaimer { font-size: 12.5px; color: var(--text-3); font-style: italic; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════ */
.about-layout { display: grid; grid-template-columns: 1fr 340px; gap: 64px; padding: 72px 0 80px; align-items: start; }
.about-h { font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4.5vw, 56px); font-weight: 300; line-height: 1.08; letter-spacing: -0.015em; color: var(--text); margin-bottom: 32px; }
.about-h em { font-style: italic; color: var(--gold); }
.about-p { font-size: 15px; color: var(--text-2); line-height: 1.82; margin-bottom: 18px; }
.about-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.about-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 12px; }
.tl-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--gold); margin-bottom: 3px; }
.tl-role { font-size: 12.5px; font-weight: 400; color: var(--text); margin-bottom: 1px; }
.tl-org { font-size: 11.5px; color: var(--text-2); }

/* ═══════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 40px 0 80px; }
.contact-lane { background: var(--bg-2); padding: 48px 44px; }
.contact-router {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 36px 0 0;
}
.contact-route-card {
  min-height: 150px;
  padding: 24px;
  border: 0;
  background: var(--bg-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.contact-route-card:hover { background: var(--bg-3); }
.contact-route-card span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.contact-route-card strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-2);
}
.lane-tag { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.lt-product { color: var(--blue); } .lt-legal { color: var(--gold); }
.lane-h { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.lane-desc { font-size: 14px; color: var(--text-2); line-height: 1.72; margin-bottom: 32px; }
.lead-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.lead-fallback .lane-desc { margin-bottom: 24px; }
.contact-option-list { margin-top: 4px; }
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.fi, .fsel, .fta { width: 100%; padding: 10px 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 300; outline: none; transition: border-color 0.18s; }
.fi:focus, .fsel:focus, .fta:focus { border-color: var(--border-h); }
.fi::placeholder, .fta::placeholder { color: var(--text-3); }
.fsel { appearance: none; cursor: pointer; }
.fta { resize: vertical; min-height: 90px; line-height: 1.6; }
.fcheck { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: rgba(200,168,106,0.04); border: 1px solid rgba(200,168,106,0.12); border-radius: 7px; }
.fcheck input { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.fcheck label { font-size: 12px; color: rgba(200,168,106,0.75); line-height: 1.6; cursor: pointer; }
.f-btn { width: 100%; padding: 12px; border: none; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; margin-top: 6px; }
.fb-product { background: var(--blue); color: #fff; }
.fb-product:hover { background: #5f9eff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,142,255,0.22); }
.fb-legal { background: var(--gold); color: #080808; }
.fb-legal:hover { background: #d4b577; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(200,168,106,0.22); }

/* ═══════════════════════════════════════
   FIELD ERRORS (Accessibility)
═══════════════════════════════════════ */
.field-error {
  display: block;
  font-size: 12px;
  color: #e85050;
  margin-top: 4px;
  line-height: 1.4;
}
.fi.has-error, .fta.has-error, .fsel.has-error {
  border-color: #e85050;
}
.fcheck.has-error {
  border-color: #e85050;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer { border-top: 1px solid var(--border); padding: 36px 36px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--text-2); letter-spacing: 0.05em; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link { font-size: 13px; color: var(--text-3); text-decoration: none; cursor: pointer; transition: color 0.18s; }
.footer-link:hover { color: var(--text-2); }
.footer-copy { width: 100%; font-size: 12.5px; color: var(--text-3); padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.7; }

/* ═══════════════════════════════════════
   HAMBURGER
═══════════════════════════════════════ */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 201;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--text-2);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.hamburger:hover span { background: var(--gold); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   MOBILE
═══════════════════════════════════════ */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 20px 52px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-actions .btn { justify-content: center; min-width: 0; white-space: normal; }
  .hero-stats { max-width: none; }
  .hero-stats { flex-wrap: wrap; border-radius: 12px; }
  .hero-stat { flex: 1 1 50%; min-width: 50%; padding: 18px 12px; border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-last-child(-n + 2) { border-bottom: none; }
  .hero-app-screen { grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
  .hero-app-sidebar { padding: 14px 9px; }
  .hero-app-main { padding: 18px; }
  .hero-app-meta { align-items: flex-start; flex-direction: column; }
  .hero-workflow { grid-template-columns: 1fr; }
  .hero-app-rail { grid-template-columns: repeat(2, 1fr); }
  .hero-app-tab:nth-child(2n) { border-right: none; }
  .hero-app-tab:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; padding: 12px 0;
    background: rgba(7,7,7,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li a { padding: 14px 24px; width: 100%; display: block; font-size: 1rem; }
  .hamburger { display: flex; }
  .featured-grid, .focus-grid, .legal-snap, .lane-intro, .lane-audience-grid, .lane-feature-grid, .lane-featured-products.projects-grid, .collab-grid, .persona-router-grid { grid-template-columns: 1fr; }
  .lane-cta { grid-template-columns: 1fr; padding: 26px 24px; }
  .persona-router { padding-top: 72px; padding-bottom: 72px; }
  .persona-card { min-height: 0; padding: 24px; }
  .legal-layout, .about-layout, .product-detail-grid, .product-gtm-fields { grid-template-columns: 1fr; }
  .product-detail-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-router { grid-template-columns: 1fr; }
  .lead-field-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  footer { padding: 28px 20px; }
  .wl-item { flex-direction: column; }
  .wl-meta { align-self: flex-start; text-align: left; }
  .feat-desc, .proj-desc, .lane-desc, .wf-excerpt { font-size: 14.5px; }
  .area-desc, .snap-item { font-size: 14px; }
  .section-sub, .page-sub { font-size: 15px; }
  .page-h { font-size: clamp(32px, 12vw, 44px); letter-spacing: 0; }
  .about-p { font-size: 15.5px; }
  .legal-sec-p { font-size: 15px; }
  .fi, .fsel, .fta { font-size: 15px; }
  .apps-search-row { flex-direction: column; align-items: stretch; }
  .apps-search-clear { width: 100%; }
}

@media (max-width: 430px) {
  .wrap { padding: 0 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-h1 { font-size: clamp(38px, 12vw, 46px); letter-spacing: 0; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-app-screen { grid-template-columns: 1fr; }
  .hero-app-sidebar { display: none; }
  .hero-app-title { font-size: 30px; }
  .hero-app-desc { min-height: 0; }
  .feat-card .feat-cat,
  .feat-card .feat-title,
  .feat-card .feat-desc,
  .feat-card .feat-stack { margin-left: 22px; margin-right: 22px; }
  .persona-card-title { font-size: 22px; }
  .proj-body { padding: 22px; }
  footer { align-items: flex-start; }
}

/* ═══════════════════════════════════════
   INTERSECTION OBSERVER ANIMATIONS
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}
.fade-up.visible {
  animation: fadeUp 0.65s ease both;
}
.hero .fade-up, .hero .hero-badge, .hero .hero-h1, .hero .hero-sub, .hero .hero-actions, .hero .hero-stats, .hero .hero-app {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   SMOOTH PAGE TRANSITIONS
═══════════════════════════════════════ */
.page { opacity: 0; transition: opacity 0.25s ease; }
.page.active { opacity: 1; }
.page.fade-out { opacity: 0; }

/* ═══════════════════════════════════════
   ACTIVE NAV LINK INDICATOR
═══════════════════════════════════════ */
.nav-links li a.active {
  color: var(--gold);
  position: relative;
}
.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.nav-links li a.active.nav-cta::after { display: none; }

/* ═══════════════════════════════════════
   HERO TEXT ROTATOR
═══════════════════════════════════════ */
.hero-rotate {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-rotate.swap {
  opacity: 0;
  transform: translateY(8px);
}

/* ═══════════════════════════════════════
   BACK-TO-TOP BUTTON
═══════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #080808;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.25s;
  box-shadow: 0 4px 16px rgba(200,168,106,0.25);
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,106,0.35);
}

/* ═══════════════════════════════════════
   CONTACT FORM FEEDBACK
═══════════════════════════════════════ */
.form-msg {
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}
.form-msg.success {
  background: rgba(71,184,130,0.1);
  border: 1px solid rgba(71,184,130,0.3);
  color: var(--green);
}
.form-msg.error {
  background: rgba(232,80,80,0.1);
  border: 1px solid rgba(232,80,80,0.3);
  color: #e85050;
}
.form-msg.info {
  background: rgba(79,142,255,0.08);
  border: 1px solid rgba(79,142,255,0.25);
  color: var(--blue);
}
.form-msg a {
  color: inherit;
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   BACKGROUND GRAIN TEXTURE
═══════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
