/* =====================================================================
   Inspirnex · site stylesheet
   One file, no build. Sections: fonts, tokens, base, utilities, header,
   hero, homepage sections, forms, secondary pages, footer.
   ===================================================================== */

/* ---- Fonts (self-hosted woff2, latin subset). Keep in sync with the
   <link rel="preload"> tags in every page head. ---------------------- */
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/kanit-300.woff2") format("woff2");
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/kanit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Kanit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/kanit-700.woff2") format("woff2");
}
@font-face {
  font-family: "Kode Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/kode-mono.woff2") format("woff2");
}

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.2101 0.0318 264.6645);
  --card: oklch(1 0 0);
  --primary: oklch(0.48 0.1807 128.8139);
  --primary-foreground: oklch(1 0 0);
  --muted: oklch(0.967 0.0029 264.5419);
  /* 0.53 keeps 14px text above 4.5:1 on the muted surface. */
  --muted-foreground: oklch(0.53 0.0234 264.3637);
  --accent: oklch(0.9491 0 0);
  --border: oklch(0.9276 0.0058 264.5313);
  --input: var(--border);
  --destructive: oklch(0.6368 0.2078 25.3313);
  --error: oklch(0.577 0.245 27.325);
  --warning: oklch(0.555 0.163 48.998);

  /* Category accents for product cards. Same in both themes. */
  --ix-emerald: oklch(0.696 0.17 162.48);
  --ix-blue: oklch(0.623 0.214 259.81);
  --ix-purple: oklch(0.627 0.265 303.9);
  --ix-amber: oklch(0.769 0.188 70.08);

  --font-sans: Kanit, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Kode Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container-max: 80rem;
  --container-pad: 1.5rem;
}

.dark {
  --background: oklch(0.1797 0.0043 308.1928);
  --foreground: oklch(0.8109 0 0);
  --card: oklch(0.1822 0 0);
  /* The brand lime, same as #aeff00 in the dark logo and the favicons. */
  --primary: oklch(0.9126 0.2426 129.1548);
  --primary-foreground: oklch(0.1797 0.0043 308.1928);
  --muted: oklch(0.252 0 0);
  /* 0.66 keeps 14px text above 4.5:1 on the muted surface. */
  --muted-foreground: oklch(0.66 0 0);
  --accent: oklch(0.3211 0 0);
  --border: oklch(0.252 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --error: oklch(0.704 0.191 22.216);
  --warning: oklch(0.828 0.189 84.429);
}

/* ---- Base ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: var(--font-mono);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1 0 auto;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
::selection {
  background: var(--foreground);
  color: var(--background);
}
[hidden] {
  display: none !important;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

/* Reveal on scroll. Only hides content when JS is there to reveal it. */
html.js .fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
html.js .fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@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;
  }
}

/* ---- Utilities ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (min-width: 768px) {
  .container {
    padding-inline: 3rem;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}
.skip-link:focus {
  left: 1rem;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.section-title {
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}
.section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.section-lead.narrow {
  max-width: 36rem;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.text-muted {
  color: var(--muted-foreground);
}
.inline-link {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.inline-link:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}
.btn-outline {
  border-color: var(--border);
  background: var(--background);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.btn-outline:hover {
  background: var(--accent);
}
.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}
.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.card-muted {
  background: var(--muted);
}
.card-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  border-radius: 2px;
}
.brand img {
  height: 22px;
  width: auto;
}
.logo-dark,
.dark .logo-light {
  display: none;
}
.dark .logo-dark {
  display: block;
}
.primary-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.primary-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-radius: 2px;
  transition: color 0.2s;
}
.primary-nav a:hover {
  color: var(--foreground);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: background-color 0.2s;
}
.theme-toggle:hover {
  background: var(--accent);
}
.theme-toggle .icon-moon,
.dark .theme-toggle .icon-sun {
  display: none;
}
.dark .theme-toggle .icon-moon {
  display: block;
}
.menu-button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}
.menu-button:hover {
  background: var(--accent);
}
@media (min-width: 768px) {
  .primary-nav {
    display: flex;
  }
  .site-header .theme-toggle {
    display: inline-flex;
  }
  .menu-button {
    display: none;
  }
}

/* Mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: color-mix(in oklab, var(--background) 60%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.mobile-menu {
  position: fixed;
  top: 5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  max-width: 24rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--background) 95%, transparent);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: menu-in 0.3s var(--ease-out-expo);
}
.dark .mobile-menu {
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.5rem;
}
.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mobile-menu-close {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
}
.mobile-menu-close:hover {
  background: var(--accent);
  color: var(--foreground);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
}
.mobile-nav a {
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover {
  color: var(--primary);
}
.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}
.mobile-menu-foot span {
  padding-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mobile-menu .theme-toggle {
  display: inline-flex;
}
@media (min-width: 768px) {
  .menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  /* Clip on both axes: the tile scatter must stay inside the hero. */
  overflow: clip;
  padding-top: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--muted), var(--background));
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--foreground) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--foreground) 5%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 65% 45%, black 30%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 1.5rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3.5rem 0 1rem;
}
.hero-title {
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-lead {
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-visual {
  height: 320px;
  min-width: 0;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-visual {
    height: 420px;
  }
}
@media (min-width: 1024px) {
  .hero-inner {
    min-height: 600px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .hero-copy {
    padding: 6rem 0;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-visual {
    height: 560px;
  }
}

/* The mark assembled from tiles (cells are generated by site.js). */
.assemble {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.assemble-scale {
  transform: scale(1);
}
.assemble-stage {
  perspective: 900px;
  perspective-origin: 50% 50%;
}
.assemble-sway {
  transform-style: preserve-3d;
  animation: ix-sway 14s ease-in-out infinite;
}
.assemble-tiles {
  display: grid;
  grid-template-columns: repeat(26, 15px);
  gap: 4px;
  transform-style: preserve-3d;
}
.cell {
  width: 15px;
  height: 15px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--foreground) 7%, transparent);
  transform: translateZ(-40px);
}
.cell.on {
  background: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 40%, transparent);
  transform: none;
  animation: ix-assemble 12s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  animation-delay: var(--d);
  /* Stay on the scattered, invisible first frame until the graphic scrolls
     into view (site.js adds .is-live), so the first thing a visitor sees is
     the mark assembling rather than a random mid-cycle frame. */
  animation-fill-mode: backwards;
}
.assemble:not(.is-live) .cell.on {
  animation-play-state: paused;
}
/* The mark holds assembled for most of the cycle (16% to 88%), with a short
   fly-in at the start and a short fly-out at the end. */
@keyframes ix-assemble {
  0%,
  100% {
    transform: translate3d(var(--sx), var(--sy), var(--sz)) rotateX(var(--sr)) rotateY(var(--sr));
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  16%,
  88% {
    transform: none;
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
}
/* Phones: no assembly animation at all. The mark is static apart from the
   sway; the scatter only runs on wider screens. */
@media (max-width: 639px) {
  .cell.on {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
@keyframes ix-sway {
  0%,
  100% {
    transform: rotateY(-16deg) rotateX(6deg);
  }
  50% {
    transform: rotateY(16deg) rotateX(-6deg);
  }
}
/* The grid is 490x414 at natural size. Scale it down in narrow columns. */
@container (max-width: 560px) {
  .assemble-scale {
    transform: scale(0.82);
  }
}
@container (max-width: 470px) {
  .assemble-scale {
    transform: scale(0.7);
  }
}
@container (max-width: 400px) {
  .assemble-scale {
    transform: scale(0.6);
  }
}
@container (max-width: 330px) {
  .assemble-scale {
    transform: scale(0.5);
  }
}
/* With animations shortened to ~0ms the loop would rest on its scattered,
   invisible keyframe. Show the finished mark instead. */
@media (prefers-reduced-motion: reduce) {
  .assemble-sway,
  .cell.on {
    animation: none;
  }
  .cell.on {
    opacity: 1;
    transform: none;
  }
}

/* ---- Homepage sections ----------------------------------------------- */
.section {
  padding-block: 5rem;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 3rem;
  text-align: center;
}
@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

.solutions-grid {
  display: grid;
  gap: 1rem;
}
.solution {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s;
}
.solution:hover {
  border-color: var(--primary);
}
.solution h3,
.solutions-cta h3,
.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.solutions-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}
.solutions-cta > div {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
@media (min-width: 640px) {
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .solutions-cta {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.products-panel {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--muted);
}
.products-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.products-head .section-lead {
  font-size: 15px;
}
.products-grid {
  display: grid;
  gap: 1rem;
}
.product {
  --accent-color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 280px;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.2s;
}
.product[data-accent="emerald"] { --accent-color: var(--ix-emerald); }
.product[data-accent="blue"] { --accent-color: var(--ix-blue); }
.product[data-accent="purple"] { --accent-color: var(--ix-purple); }
.product[data-accent="amber"] { --accent-color: var(--ix-amber); }
.product:hover {
  border-color: var(--accent-color);
}
.product-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.product h3 {
  font-size: 1.5rem;
}
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding: 5px 10px;
  border: 1px solid color-mix(in oklab, var(--accent-color) 30%, transparent);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--accent-color) 12%, transparent);
  /* Pull the accent toward the text colour so 11px labels clear 4.5:1. */
  color: color-mix(in oklab, var(--accent-color) 55%, var(--foreground));
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .products-panel {
    padding: 2.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .products-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .products-head .section-lead {
    max-width: 24rem;
  }
}
@media (min-width: 1024px) {
  .products-panel {
    padding: 4rem 3.5rem;
  }
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.industries {
  text-align: center;
}
.industries .section-title {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.875rem;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-grid img {
  width: 100%;
  height: 5rem;
  object-fit: contain;
  opacity: 0.7;
  filter: invert(1);
}
.dark .logo-grid img {
  filter: none;
}
@media (min-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .industries .section-title {
    font-size: 2rem;
  }
  .logo-grid img {
    height: 110px;
  }
}
@media (min-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.process {
  display: grid;
  align-items: start;
  gap: 2.5rem;
  padding-block: 4rem;
}
.process-intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.process-intro .section-lead {
  font-size: 1rem;
}
.steps {
  display: grid;
  gap: 1rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
}
.step-n {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .process {
    padding-block: 6rem;
  }
}
@media (min-width: 1024px) {
  .process {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.contact {
  padding-bottom: 3rem;
}
.contact-panel {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--muted);
}
.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-intro .section-lead {
  font-size: 1rem;
}
@media (min-width: 640px) {
  .contact-panel {
    padding: 2.5rem;
  }
}
@media (min-width: 768px) {
  .contact {
    padding-bottom: 4rem;
  }
}
@media (min-width: 1024px) {
  .contact-panel {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 72px;
  }
}

/* ---- Forms ----------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 0.75rem;
}
.form-grid.wide {
  gap: 2rem 3rem;
}
.form-stack {
  display: grid;
  gap: 1.5rem;
}
.span-2 {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: 0.375rem;
}
.field-lg {
  gap: 0.75rem;
  align-content: start;
}
.label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}
.label .req {
  margin-left: 0.25rem;
  color: var(--primary);
}
.input,
.textarea,
.select {
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--background) 50%, transparent);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted-foreground);
}
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.textarea {
  min-height: 150px;
  height: auto;
  resize: vertical;
}
.input.compact {
  height: 2.5rem;
  background: var(--background);
}
.textarea.compact {
  min-height: 120px;
  background: var(--background);
}
.select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.select:invalid,
.select option[value=""] {
  color: var(--muted-foreground);
}
.select option {
  color: var(--foreground);
  background: var(--background);
}
.is-invalid {
  border-color: var(--error);
}
.field-error {
  font-size: 0.875rem;
  color: var(--error);
}
.field-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.check:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}
.check:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}
.check input {
  margin: 0;
  accent-color: var(--primary);
}
.turnstile-wrap {
  min-height: 65px;
}
.turnstile-wrap:has(.turnstile-slot[hidden]) {
  min-height: 0;
}
.turnstile-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--warning);
}
.form-alert {
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklab, var(--error) 30%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--error) 8%, transparent);
  font-size: 0.875rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.form-footer {
  display: grid;
  gap: 1.5rem;
  padding-top: 1rem;
}
.form-note {
  font-size: 13px;
  color: var(--muted-foreground);
}
.form-note a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-note a:hover {
  color: var(--primary);
}
.form-subhead {
  font-size: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
}
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--primary) 20%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--primary) 5%, transparent);
}
.success-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}
.success-icon-lg {
  width: 5rem;
  height: 5rem;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 5%, transparent);
}
.success-icon-lg svg {
  width: 2.5rem;
  height: 2.5rem;
}
.success-title {
  font-weight: 600;
}
.success-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-block: 6rem;
  text-align: center;
}
.success-page h2 {
  font-size: 1.875rem;
}
.success-page p {
  max-width: 28rem;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Secondary pages ------------------------------------------------- */
.page {
  padding-top: var(--header-h);
}
.page-inner {
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .page-inner {
    padding-block: 6rem;
  }
}
.w-2xl { max-width: 42rem; margin-inline: auto; }
.w-3xl { max-width: 48rem; margin-inline: auto; }
.w-4xl { max-width: 56rem; margin-inline: auto; }
.w-5xl { max-width: 64rem; margin-inline: auto; }
.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header .section-lead {
  max-width: 42rem;
}
.page-title {
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}
.page-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.prose section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prose h2 {
  font-size: 1.5rem;
  color: var(--foreground);
}
.prose h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.prose ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.prose .lede {
  font-weight: 500;
  color: var(--foreground);
}
.prose .aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid color-mix(in oklab, var(--border) 50%, transparent);
}
.prose .address {
  gap: 0.25rem;
  color: var(--foreground);
}
.prose .address .lede {
  font-weight: 500;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--foreground);
}

/* Careers */
.facts {
  display: grid;
  gap: 0.75rem;
  color: var(--muted-foreground);
}
.facts strong {
  font-weight: 500;
  color: var(--foreground);
}
.roles {
  display: flex;
  flex-direction: column;
}
.role {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}
.role-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.role h2 {
  font-size: 1.75rem;
}
.role-summary {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.role-grid {
  display: grid;
  gap: 1.5rem;
}
.role-col h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}
.role-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.apply-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
}
.apply-box h3 {
  font-size: 1.25rem;
}
.apply-box p {
  max-width: 40rem;
  color: var(--muted-foreground);
}
.apply-box .small {
  font-size: 0.875rem;
}
.working {
  margin-bottom: 3rem;
}
.working h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
@media (min-width: 768px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 2rem;
  }
}

/* 404 / 500 */
.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: calc(var(--header-h) + 2rem) 1rem 2rem;
}
.center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.center-box h1 {
  font-size: 1.5rem;
  font-weight: 600;
}
.center-box > p {
  max-width: 28rem;
  color: var(--muted-foreground);
}
.big-number {
  font-family: var(--font-sans);
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  animation: orb-float 3s ease-in-out infinite;
}
.orb-core {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
}
.orb-error {
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  color: var(--destructive);
  animation: none;
}
@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (min-width: 640px) {
  .center-box h1 {
    font-size: 1.875rem;
  }
  .big-number {
    font-size: 8rem;
  }
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  font-size: 13px;
  color: var(--muted-foreground);
}
.site-footer .brand img {
  height: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  white-space: nowrap;
  border-radius: 2px;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--foreground);
}
