/* Nusantara AI Tech — theme, layout, components.
   Plain CSS, no build step, no external requests.
   Palettes are CSS variables. Default "navy-amber"; alternates via ?theme=teal-gold | ?theme=noir. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #0b1426;
  --bg-deep: #070e1c;
  --surface: #121d35;
  --surface-2: #17243f;
  --primary: #f4b860;
  --on-primary: #14100a;
  --accent: #5ed3c3;
  --text: #f5efe6;
  --muted: #a7b4ca;
  --line: rgba(245, 239, 230, 0.1);
  --line-strong: rgba(245, 239, 230, 0.22);
  --glow: 244, 184, 96;
  --hero-glow: 244, 184, 96;
  --accent-glow: 94, 211, 195;
  --header-bg: rgba(11, 20, 38, 0.82);
  --scrim: rgba(11, 20, 38, 0.8);

  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
  --section-y: clamp(66px, 11.5vh, 148px);
}

[data-theme="teal-gold"] {
  --bg: #062a2e;
  --bg-deep: #041c1f;
  --surface: #0a3a3f;
  --surface-2: #0d464c;
  --primary: #e8c77a;
  --on-primary: #06241f;
  --accent: #7fd8cb;
  --text: #f3f8f5;
  --muted: #a3c6c3;
  --line: rgba(243, 248, 245, 0.12);
  --line-strong: rgba(243, 248, 245, 0.24);
  --glow: 232, 199, 122;
  --accent-glow: 127, 216, 203;
  --header-bg: rgba(6, 42, 46, 0.82);
  --scrim: rgba(6, 42, 46, 0.8);
}

[data-theme="noir"] {
  --bg: #0a0a0c;
  --bg-deep: #050506;
  --surface: #141418;
  --surface-2: #1b1b21;
  --primary: #f5efe6;
  --on-primary: #0a0a0c;
  --accent: #f4b860;
  --text: #f5efe6;
  --muted: #a8a8b0;
  --line: rgba(245, 239, 230, 0.12);
  --line-strong: rgba(245, 239, 230, 0.26);
  --glow: 245, 239, 230;
  --accent-glow: 244, 184, 96;
  --header-bg: rgba(10, 10, 12, 0.82);
  --scrim: rgba(10, 10, 12, 0.8);
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

/* drifting neural-mesh layer: main.js injects this canvas behind every
   section so no page is a plain field. Fixed to the viewport, painted above
   the page background and under all content, never interactive. */
.mesh-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* fine warm grain, keeps large dark fields from looking flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------------------------ typography */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.btn-primary {
  --btn-bg: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 12px 34px -16px rgba(var(--glow), 0.85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -18px rgba(var(--glow), 0.95);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(245, 239, 230, 0.03);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.7em 1.25em;
  font-size: 0.875rem;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.link-quiet {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.35s var(--ease), opacity 0.3s var(--ease);
  padding-bottom: 2px;
}
.link-quiet:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(14px, 2.2vh, 22px) var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark img {
  width: 30px;
  height: 30px;
}
.wordmark-text {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(245, 239, 230, 0.03);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 10px var(--gutter) 22px;
}
.mobile-menu a {
  padding: 14px 2px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child {
  border-bottom: 0;
}
.mobile-menu a[aria-current="page"] {
  color: var(--primary);
}

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

/* keep the header comfortable on a 390px phone */
@media (max-width: 430px) {
  .header-inner {
    gap: 8px;
  }
  .header-actions {
    gap: 8px;
  }
  .wordmark {
    gap: 8px;
  }
  .wordmark img {
    width: 26px;
    height: 26px;
  }
  .wordmark-text {
    font-size: 0.95rem;
  }
  .btn-sm {
    padding: 0.62em 1.05em;
    font-size: 0.8125rem;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(120px, 18vh, 180px) clamp(90px, 14vh, 140px);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  right: -14vw;
  top: 8%;
  background: radial-gradient(circle, rgba(var(--glow), 0.22), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--bg) 94%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* soft scrim: the archipelago runs full-bleed behind the copy, this keeps
   the headline readable without flattening the graphics */
.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% -6% -16% -10%;
  background: radial-gradient(
    66% 64% at 30% 50%,
    var(--scrim) 0%,
    color-mix(in srgb, var(--scrim) 72%, transparent) 46%,
    transparent 78%
  );
  pointer-events: none;
}

.hero-title {
  font-size: clamp(3.1rem, 2rem + 9vw, 7.2rem);
  font-weight: 300;
  /* the gradient clips to the element box, so the box must clear the
     descender of "g" in "intelligence." */
  line-height: 1.04;
  padding-bottom: 0.18em;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-wrap: balance;
  background: linear-gradient(178deg, var(--text) 42%, rgba(245, 239, 230, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: clamp(20px, 3vh, 30px);
  max-width: 22ch;
  font-size: clamp(1.125rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 300;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 76%, var(--muted));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 5vh, 46px);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  width: 26px;
  height: 26px;
  opacity: 0.6;
  animation: scrollcue 2.6s var(--ease) infinite;
}
.hero-scroll svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes scrollcue {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* -------------------------------------------------------------- sections */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-tight {
  padding-bottom: clamp(34px, 6vh, 74px);
}

.hero + .section {
  padding-top: clamp(52px, 8.5vh, 104px);
}

.split {
  display: grid;
  gap: clamp(26px, 4vw, 64px);
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }
}

.split-body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.4vh, 38px);
  align-items: flex-start;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(30px, 5vh, 52px);
}

/* -------------------------------------------------------------- products */
.product-card {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface-2), var(--surface) 62%);
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, 0.09),
    0 44px 80px -48px rgba(0, 0, 0, 1);
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  right: -140px;
  top: -170px;
  background: radial-gradient(circle, rgba(var(--glow), 0.3), transparent 65%);
  pointer-events: none;
}
@media (min-width: 860px) {
  .product-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.product-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2.4vh, 20px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--accent-glow), 0.45);
  border-radius: 999px;
  background: rgba(var(--accent-glow), 0.14);
  color: color-mix(in srgb, var(--accent) 80%, #ffffff);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-glow), 0.9);
}

.product-title {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.035em;
}

.product-copy {
  max-width: 40ch;
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.product-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
}

.coming-soon {
  margin-top: clamp(22px, 4vh, 34px);
  text-align: left;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* --------------------------------------------------------------- vision */
.vision {
  display: flex;
  align-items: center;
  min-height: 86vh;
  min-height: 86svh;
  background: radial-gradient(
      120% 90% at 50% 120%,
      rgba(var(--glow), 0.16),
      transparent 60%
    ),
    /* translucent, so the drifting mesh layer stays visible through it */
    color-mix(in srgb, var(--bg-deep) 88%, transparent);
  border-block: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.vision-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 28px);
}
.vision-line {
  font-size: clamp(1.9rem, 1.1rem + 4vw, 4rem);
  font-weight: 200;
  line-height: 1.16;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}
.vision-line em {
  font-style: normal;
  color: var(--primary);
}

/* --------------------------------------------------------------- connect */
.connect-inner {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
}
@media (min-width: 960px) {
  .connect-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }
  .connect-intro {
    position: sticky;
    top: 130px;
  }
}

/* ----------------------------------------------------------------- form */
.form {
  position: relative;
  padding: clamp(24px, 3.6vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, 0.09),
    0 44px 80px -52px rgba(0, 0, 0, 1);
}

.form-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 22px);
}
@media (min-width: 620px) {
  .form-grid .col-2 {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: clamp(16px, 2.4vw, 22px);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.req {
  color: var(--primary);
  margin-left: 3px;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 14, 28, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
[data-theme="teal-gold"] .input,
[data-theme="teal-gold"] .select,
[data-theme="teal-gold"] .textarea {
  background: rgba(4, 28, 31, 0.55);
}
[data-theme="noir"] .input,
[data-theme="noir"] .select,
[data-theme="noir"] .textarea {
  background: rgba(5, 5, 6, 0.6);
}
.input::placeholder,
.textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-strong);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.22);
}
.textarea {
  min-height: 132px;
  resize: vertical;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.select option {
  background: var(--surface);
  color: var(--text);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #ff8f7a;
  box-shadow: 0 0 0 3px rgba(255, 143, 122, 0.18);
}

.field-error {
  font-size: 0.8125rem;
  color: #ffab99;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: clamp(26px, 3.6vh, 36px);
}

.form-status {
  flex: 1 1 240px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-status[hidden] {
  display: none;
}
.form-status.is-error {
  border: 1px solid rgba(255, 143, 122, 0.4);
  background: rgba(255, 143, 122, 0.1);
  color: #ffc4b7;
}
.form-status.is-success {
  border: 1px solid rgba(var(--accent-glow), 0.4);
  background: rgba(var(--accent-glow), 0.1);
  color: var(--accent);
}

.test-note {
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* honeypot: off-screen, not hidden from layout */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 6vh, 56px);
  /* translucent: the mesh layer carries the field behind it */
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-nav svg {
  width: 20px;
  height: 20px;
}
.footer-nav [hidden] {
  display: none;
}

/* ------------------------------------------------------------------ team */
.page-hero {
  position: relative;
  padding-block: clamp(140px, 22vh, 210px) clamp(50px, 8vh, 84px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  left: 50%;
  top: -34%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--glow), 0.2), transparent 64%);
  pointer-events: none;
}
.page-title {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem);
  font-weight: 250;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.page-intro {
  margin-top: clamp(18px, 3vh, 26px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
}

.founder-card {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--surface-2), var(--surface) 70%);
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, 0.07);
}
@media (min-width: 720px) {
  .founder-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.monogram {
  display: grid;
  place-items: center;
  width: clamp(96px, 16vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(var(--glow), 0.9), rgba(var(--glow), 0.55));
  color: var(--on-primary);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  box-shadow: 0 24px 60px -30px rgba(var(--glow), 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.founder-name {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.founder-role {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.founder-note {
  margin-top: 12px;
  color: var(--muted);
}

.team-grid {
  display: grid;
  gap: clamp(8px, 1.4vw, 16px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* 10 agents: 2 compact columns on phones, 3-4 through tablet, 5 x 2 on desktop */
@media (min-width: 620px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(7px, 1vw, 12px);
  padding: clamp(13px, 1.6vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 75%);
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.agent-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.agent-orb {
  width: clamp(78px, 24vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(var(--glow), 0.08), transparent 70%),
    rgba(7, 14, 28, 0.45);
}
.agent-tag {
  order: 2;
  align-self: center;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.agent-name {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.agent-role {
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--primary);
}

/* ---------------------------------------------------------------- about */
.statement {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4.25rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 20ch;
  text-wrap: balance;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}
@media (min-width: 760px) {
  .value-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.value-list li {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 80%);
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.story {
  display: grid;
  gap: clamp(10px, 1.6vh, 16px);
  font-size: clamp(1.25rem, 1rem + 1.6vw, 2.125rem);
  font-weight: 250;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--muted);
}
.story span:last-child {
  color: var(--text);
}

/* -------------------------------------------------------------- privacy */
.prose {
  display: grid;
  gap: clamp(18px, 3vh, 26px);
  max-width: 68ch;
}
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.prose p {
  color: var(--muted);
}
.prose a {
  color: var(--primary);
}

/* ----------------------------------------------------------------- 404 */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vh, 26px);
  min-height: 78vh;
  min-height: 78svh;
  padding-block: clamp(130px, 20vh, 180px) 60px;
  text-align: center;
}
.notfound-code {
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.notfound p {
  max-width: 34ch;
  color: var(--muted);
}

/* --------------------------------------------------------------- reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------- additions */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.form-success[hidden] {
  display: none;
}
.form-success h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.form-success p {
  color: var(--muted);
  max-width: 44ch;
}
.form-success:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.agent-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, 0.8vw, 8px);
  text-align: center;
}

.product-visual svg {
  width: 100%;
  height: auto;
}

.statement em,
.page-title em {
  font-style: normal;
  color: var(--primary);
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
