/* semiAIfoundry — portable public-site build, July 2026 */
:root {
  --ink: #111319;
  --muted: #5f6673;
  --faint: #8b93a1;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d9dde3;
  --blue: #0b5f86;
  --steel: #8fc5d7;
  --brand-red: #e30613;
  --shadow: 0 18px 45px rgba(29, 35, 45, 0.09);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 42px);
  --radius: 8px;
  --topbar-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.contact-page {
  --ink: #ffffff;
  --muted: #c7d1d8;
  --faint: #91a4b2;
  --paper: #111319;
  --panel: rgba(255,255,255,0.055);
  --line: rgba(255,255,255,0.16);
  --blue: #8fc5d7;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(143,197,215,0.16), transparent 30%),
    linear-gradient(135deg, #111319, #17212b 62%, #111319);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 11px 14px;
  border-radius: 6px;
  background: #ffffff;
  color: #111319;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 14px; }

.brand-ai { color: var(--brand-red); font-weight: 800; }
.tm {
  margin-left: 0.08em;
  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0;
  vertical-align: super;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  border-bottom: 1px solid rgba(217,221,227,0.8);
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.contact-page .topbar {
  border-bottom-color: rgba(255,255,255,0.16);
  background: rgba(17,19,25,0.86);
}
.topbar-inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand-icon { width: 32px; height: 38px; object-fit: contain; }
.brand-wordmark { width: auto; height: 52px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"],
.back-link:hover, .back-link:focus-visible { color: var(--ink); }
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn:hover { background: rgba(17,19,25,0.05); }
.contact-page .menu-btn:hover { background: rgba(255,255,255,0.08); }

/* Shared focus states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(143,197,215,0.58);
  outline-offset: 3px;
}

/* Hero */
.hero {
  min-height: 66vh;
  padding: 78px 0 70px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10,13,19,0.88) 0%, rgba(10,13,19,0.72) 46%, rgba(10,13,19,0.22) 100%),
    url('/assets/images/saf-frontier-expansion.webp') center / cover fixed no-repeat;
}
.kicker {
  margin-bottom: 20px;
  color: #9fd4e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(50px, 5.8vw, 78px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-sub {
  max-width: 690px;
  margin-top: 28px;
  color: #e1e7ed;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}
.about-hero {
  min-height: 68vh;
  align-items: flex-end;
}
.about-hero h1 { max-width: 850px; font-weight: 620; line-height: 1.06; }
.about-hero .hero-aside {
  max-width: 720px;
  margin-top: 30px;
  color: #e1e7ed;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.48;
}

/* General sections */
.section { padding: clamp(82px, 9vw, 124px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 42px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.section-head p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Focus architecture */
.execution-map {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 0.8fr 1.45fr;
  overflow: hidden;
  border: 1px solid rgba(17,19,25,0.14);
  border-radius: var(--radius);
  background: #0f1821;
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(17,19,25,0.16);
}
.execution-map::before, .loop-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.95), transparent 92%);
}
.map-copy {
  min-height: 520px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.map-copy h3 {
  max-width: 460px;
  margin-top: 22px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.map-copy > p {
  max-width: 420px;
  margin-top: 26px;
  color: #c7d1d8;
  font-size: 16px;
  line-height: 1.65;
}
.axis {
  margin-top: auto;
  padding-top: 52px;
  color: #8fc5d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.axis::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #8fc5d7, rgba(143,197,215,0.08));
}
.domain-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.domain-module {
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, rgba(255,255,255,0.035), transparent 62%), rgba(15,24,33,0.82);
}
.domain-module:nth-child(2n) { border-right: 0; }
.domain-module:nth-last-child(-n+2) { border-bottom: 0; }
.module-top { display: flex; justify-content: space-between; gap: 18px; }
.module-code, .module-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.module-code { color: #8fc5d7; }
.module-status { color: #7f8d98; text-align: right; }
.domain-module h3 {
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.domain-module p { margin-top: 16px; color: #c7d1d8; font-size: 16px; line-height: 1.58; }
.domain-module em { color: #8fc5d7; font-style: normal; }

/* Portfolio */
.portfolio-panel {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(17,19,25,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.62);
  box-shadow: 0 18px 55px rgba(29,35,45,0.08);
}
.portfolio-intro {
  padding: 34px;
  border-right: 1px solid rgba(17,19,25,0.10);
}
.portfolio-intro p { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.62; }
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-logo {
  position: relative;
  isolation: isolate;
  min-height: 248px;
  padding: 28px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border-right: 1px solid rgba(17,19,25,0.10);
  border-bottom: 1px solid rgba(17,19,25,0.10);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,248,249,0.82));
  text-decoration: none;
  transition: transform 180ms ease;
}
.platform-logo:nth-child(2n) { border-right: 0; }
.platform-logo:nth-last-child(-n+2) { border-bottom: 0; }
.platform-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, rgba(11,95,134,0.16), #eef6f8 76%);
  transition: opacity 180ms ease;
}
.platform-logo:hover { transform: translateY(-2px); }
.platform-logo:hover::before { opacity: 1; }
.platform-topline { display: flex; justify-content: space-between; gap: 18px; }
.platform-code, .platform-name {
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.platform-code { color: var(--faint); }
.platform-name { color: var(--blue); }
.platform-mark { min-height: 112px; display: grid; place-items: center; }
.platform-mark img { width: auto; max-width: min(250px, 92%); max-height: 86px; object-fit: contain; }
.platform-mark img.chemio-mark { max-width: min(315px, 98%); max-height: 104px; }
.platform-mark img.inbasket-logo { max-width: min(335px, 98%); max-height: 82px; }
.platform-mark img.awdma-logo { max-width: min(310px, 98%); max-height: 78px; }
.platform-domain { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.45; }

/* Thesis */
.thesis-section { background: #16181d; color: #ffffff; }
.thesis-section .section-head p { color: #c2c7ce; }
.thesis-statement {
  max-width: 1010px;
  margin: 4px 0 58px;
  color: #ffffff;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
}
.acceptance-loop {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
}
.loop-center {
  min-height: 390px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,20,28,0.74);
}
.loop-center h3 {
  margin-top: 22px;
  font-size: clamp(30px,3.4vw,48px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.loop-center p { margin-top: 24px; color: #c7d1d8; font-size: 16px; line-height: 1.65; }
.feedback-label {
  margin-top: auto;
  padding-top: 44px;
  color: #8fc5d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loop-graphic {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  background: #0b151e;
}
.system-diagram { width: 100%; height: 100%; min-height: 560px; }
.diagram-node { fill: rgba(11,21,30,0.94); stroke: rgba(143,197,215,0.48); stroke-width: 1.2; }
.diagram-core { fill: #101f2b; stroke: #8fc5d7; stroke-width: 1.8; }
.diagram-memory { fill: rgba(143,197,215,0.15); stroke: rgba(143,197,215,0.62); stroke-width: 1.2; }
.diagram-link { fill: none; stroke: #a7e3f5; stroke-width: 1.7; opacity: 0.68; marker-end: url(#arrow); }
.diagram-link.secondary { opacity: 0.26; stroke-width: 1.1; stroke-dasharray: 5 8; }
.diagram-label { fill: #8fc5d7; font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.diagram-title { fill: #ffffff; font-size: 18px; font-weight: 720; }
.diagram-copy { fill: #d9e1e6; font-size: 12px; }
.diagram-core-title { fill: #ffffff; font-size: 21px; font-weight: 760; }
.diagram-core-sub { fill: #8fc5d7; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.diagram-credit { fill: rgba(217,225,230,0.56); font-size: 10px; }
.observation-list { margin-top: 58px; border-top: 1px solid rgba(255,255,255,0.16); }
.observation {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  padding: 31px 0;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.observation-label { color: #7fb3c7; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.observation p { color: #d7dbe0; font-size: 20px; line-height: 1.55; }

/* Closing CTA */
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding: 62px 0 0;
  border-top: 1px solid var(--line);
}
.cta-copy h2 { max-width: 720px; margin-top: 18px; font-size: clamp(28px,3.5vw,44px); line-height: 1.08; letter-spacing: -0.025em; }
.cta-copy p { max-width: 660px; margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.cta-button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #111319;
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease;
}
.cta-button:hover { background: #0b5f86; }

/* Updates */
.updates-hero {
  min-height: auto;
  padding: clamp(86px, 10vw, 132px) 0 clamp(72px, 8vw, 106px);
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(10,13,19,0.92) 0%, rgba(10,13,19,0.76) 52%, rgba(10,13,19,0.32) 100%),
    url('/assets/images/saf-frontier-expansion.webp') center 42% / cover scroll no-repeat;
}
.updates-hero h1 { max-width: 900px; font-weight: 650; }
.updates-hero .hero-sub { max-width: 760px; font-size: clamp(19px, 1.8vw, 23px); }
.updates-list-section {
  padding: clamp(58px, 6vw, 82px) 0 clamp(78px, 8vw, 112px);
  background: linear-gradient(180deg, #fbfaf7 0%, #f8f7f3 100%);
}
.updates-list-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 8vw, 116px);
  align-items: end;
  margin-bottom: 24px;
  padding: 27px 0 30px;
  border-top: 3px solid var(--ink);
}
.updates-list-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.updates-list-head p {
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.update-card {
  position: relative;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  padding: clamp(30px, 3.4vw, 42px) clamp(24px, 3.2vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(29,35,45,0.045);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.update-card:hover {
  border-color: rgba(11,95,134,0.42);
  border-left-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(29,35,45,0.08);
  transform: translateY(-2px);
}
.update-card-meta, .post-meta {
  display: flex;
  color: var(--blue);
  text-transform: uppercase;
}
.update-card-meta {
  align-self: stretch;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding-right: 26px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
}
.update-card-meta time {
  color: var(--muted);
  font-weight: 620;
  letter-spacing: 0.035em;
  text-transform: none;
}
.post-meta {
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
}
.update-card h3 {
  max-width: 720px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.update-card p {
  max-width: 680px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}
.update-card-arrow {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(11,95,134,0.38);
  border-radius: 0;
  color: var(--blue);
  font-size: 17px;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.update-card-arrow::before {
  content: "Read update";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.update-card:hover .update-card-arrow {
  border-color: var(--blue);
  transform: translateX(3px);
}
.home-update-section { padding: clamp(72px, 8vw, 104px) 0 0; }
.home-update-panel {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.64);
}
.home-update-panel h2 {
  margin-top: 13px;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 660;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.home-update-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}
.home-update-copy time {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-header { padding: clamp(82px, 9vw, 126px) 0 clamp(56px, 7vw, 86px); }
.post-header-inner { max-width: 980px; }
.post-header h1 {
  max-width: 900px;
  margin-top: 22px;
  font-size: clamp(44px, 6.3vw, 78px);
  font-weight: 660;
  line-height: 1.01;
  letter-spacing: -0.05em;
}
.post-deck {
  max-width: 760px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.5;
}
.post-body-section { padding: 0 0 clamp(90px, 10vw, 132px); }
.post-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: clamp(38px, 7vw, 100px);
  align-items: start;
}
.post-share {
  padding-top: 6px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}
.post-share a {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}
.post-content p {
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.72;
}
.post-content p:first-child {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.55;
}
.post-content p + p { margin-top: 26px; }
.post-content h2 {
  margin: 52px 0 18px;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.post-content .post-close {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

/* About */
.about-section { padding: clamp(72px,8vw,110px) 0; border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}
.about-label { color: var(--blue); font-size: 15px; font-weight: 520; }
.about-copy p { color: var(--muted); font-size: clamp(20px,2vw,28px); line-height: 1.48; }
.about-copy p + p { margin-top: 28px; }
.founder-card { align-self: start; padding: 2px 0 2px 24px; border-left: 1px solid var(--line); }
.founder-card span { display: block; margin-bottom: 18px; color: var(--blue); font-size: 16px; font-weight: 520; }
.founder-card h2 { font-size: clamp(28px,3vw,42px); font-weight: 620; line-height: 1.12; letter-spacing: -0.025em; }
.founder-copy p { color: var(--muted); font-size: clamp(19px,1.8vw,25px); line-height: 1.55; }
.founder-copy p + p { margin-top: 24px; }
.where-build-head { display: flex; justify-content: space-between; gap: 42px; align-items: end; margin-bottom: 42px; }
.where-build-head h2 { max-width: 650px; font-size: clamp(32px,3.8vw,52px); font-weight: 620; line-height: 1.12; letter-spacing: -0.035em; }
.principles-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principle { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.48); }
.principle span { display: block; margin-bottom: 28px; color: var(--blue); font-size: 15px; font-weight: 520; }
.principle p { color: var(--muted); font-size: 17px; line-height: 1.45; }

/* Contact */
.contact-main { min-height: calc(100vh - var(--topbar-height)); }
.contact-hero { padding: clamp(76px,9vw,126px) 0 58px; }
.contact-hero-grid { display: grid; grid-template-columns: 1.25fr 0.55fr; gap: clamp(46px,8vw,112px); align-items: end; }
.contact-hero h1 { max-width: 720px; margin-top: 22px; font-size: clamp(42px,5.4vw,70px); line-height: 1.02; letter-spacing: -0.045em; }
.contact-lede { max-width: 760px; margin-top: 28px; color: var(--muted); font-size: 19px; line-height: 1.62; }
.front-door-note { padding: 24px 0 2px 24px; border-left: 1px solid var(--line); }
.front-door-note strong { color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: 0.14em; text-transform: uppercase; }
.front-door-note p { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.route-section { padding: 24px 0 64px; }
.route-tiles { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.route-tile { min-height: 150px; padding: 24px; background: rgba(255,255,255,0.045); }
.route-tile h2 { color: var(--blue); font-size: 12px; font-weight: 820; letter-spacing: 0.14em; text-transform: uppercase; }
.route-tile p { margin-top: 20px; color: #d7dbe0; font-size: 14px; line-height: 1.48; }
.contact-form-section { padding: 36px 0 clamp(84px,9vw,122px); }
.form-panel { display: grid; grid-template-columns: 0.58fr 1.42fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.form-intro, .form-shell { background: rgba(255,255,255,0.045); }
.form-intro { padding: 34px; }
.form-intro h2 { max-width: 320px; margin-top: 20px; font-size: clamp(24px,2.5vw,32px); line-height: 1.12; letter-spacing: -0.025em; }
.form-intro p { margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.form-shell { padding: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; color: #ffffff; font-size: 14px; font-weight: 650; }
.field .optional { color: var(--faint); font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 16px;
  padding: 13px 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #91a4b2; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8fc5d7; outline: 0; box-shadow: 0 0 0 3px rgba(143,197,215,0.14); }
.field select option { color: #111319; }
.field textarea { min-height: 160px; resize: vertical; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.submit-button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #8fc5d7;
  color: #111319;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}
.submit-button:hover { background: #a8d6e6; }
.submit-button:disabled { cursor: wait; opacity: 0.6; }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-note[data-state="success"] { color: #b9f3d4; }
.form-note[data-state="error"] { color: #ffc7c7; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Legal */
.legal-main { padding: clamp(70px,8vw,110px) 0 96px; }
.legal-header { max-width: 850px; margin-bottom: 46px; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.legal-header h1 { margin-top: 20px; font-size: clamp(42px,7vw,72px); line-height: 1; letter-spacing: -0.05em; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 14px; }
.legal-content { max-width: 880px; }
.legal-content > p:first-child { color: var(--ink); font-size: 18px; line-height: 1.7; }
.legal-content h3 { margin: 42px 0 14px; color: var(--ink); font-size: 19px; line-height: 1.3; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.legal-content p + p { margin-top: 16px; }
.legal-content ul { margin: 14px 0 0; padding-left: 24px; }
.legal-content li + li { margin-top: 7px; }
.legal-content strong { color: var(--ink); font-weight: 700; }
.legal-content hr { margin: 34px 0 0; border: 0; border-top: 1px solid var(--line); }
.legal-content a { color: var(--blue); text-underline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 26px 42px; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }
.minimal-footer { padding: 30px 0; }

/* 404 */
.not-found { min-height: calc(100vh - var(--topbar-height)); display: grid; place-items: center; padding: 70px 0; }
.not-found h1 { font-size: clamp(52px,10vw,112px); line-height: 0.9; letter-spacing: -0.06em; }
.not-found p { max-width: 580px; margin-top: 24px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.not-found .cta-button { margin-top: 30px; }

@media (max-width: 1000px) {
  .portfolio-panel { grid-template-columns: 1fr; }
  .portfolio-intro { border-right: 0; border-bottom: 1px solid rgba(17,19,25,0.10); }
  .principles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 880px) {
  :root { --topbar-height: 66px; }
  .brand-icon { width: 28px; height: 34px; }
  .brand-wordmark { height: 44px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 20px var(--gutter) 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(217,221,227,0.9);
    background: rgba(251,250,247,0.98);
    backdrop-filter: blur(16px);
  }
  .contact-page .nav { border-bottom-color: rgba(255,255,255,0.16); background: rgba(17,19,25,0.98); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; font-size: 16px; }
  .section-head, .about-grid, .contact-hero-grid, .form-panel { grid-template-columns: 1fr; }
  .section-head { gap: 28px; }
  .execution-map { grid-template-columns: 1fr; }
  .map-copy { min-height: 420px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .domain-modules { grid-template-columns: 1fr; }
  .domain-module { border-right: 0; }
  .domain-module:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .domain-module:last-child { border-bottom: 0; }
  .acceptance-loop { grid-template-columns: 1fr; }
  .loop-center { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .observation { grid-template-columns: 1fr; gap: 14px; }
  .observation p { font-size: 18px; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .updates-list-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .update-card { grid-template-columns: 1fr auto; }
  .update-card-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .home-update-panel { grid-template-columns: 1fr; align-items: start; }
  .post-layout { grid-template-columns: 1fr; gap: 34px; }
  .post-share { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .founder-card { position: static; }
  .where-build-head { flex-direction: column; align-items: flex-start; }
  .route-tiles { grid-template-columns: 1fr; }
  .route-tile { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .hero { padding: 68px 0 62px; background-attachment: scroll; }
  .portfolio { grid-template-columns: 1fr; }
  .platform-logo { border-right: 0; }
  .platform-logo:nth-last-child(-n+2) { border-bottom: 1px solid rgba(17,19,25,0.10); }
  .platform-logo:last-child { border-bottom: 0; }
  .principles-grid { grid-template-columns: 1fr; }
  .contact-hero { padding-top: 70px; }
  .form-intro, .form-shell { padding: 26px 22px; }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(10,13,19,0.88) 0%, rgba(10,13,19,0.74) 64%, rgba(10,13,19,0.58) 100%),
      url('/assets/images/saf-frontier-expansion.webp') 36% center / cover scroll no-repeat;
  }
  .hero h1 { font-size: 39px; line-height: 1.06; }
  .hero-sub { font-size: 18px; line-height: 1.42; }
  .updates-hero h1 { font-size: 42px; }
  .updates-list-head { padding-top: 22px; }
  .update-card { grid-template-columns: 1fr; padding: 26px 23px 28px; }
  .update-card-arrow { justify-self: start; margin-top: 2px; }
  .home-update-panel { padding: 25px; }
  .post-header h1 { font-size: 42px; line-height: 1.04; }
  .map-copy, .domain-module, .portfolio-intro, .platform-logo, .loop-center { padding: 25px; }
  .domain-module h3 { font-size: 32px; }
  .loop-graphic { overflow-x: auto; }
  .system-diagram { min-width: 520px; }
  .cta-panel { padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero { background-attachment: scroll; }
}
