/* ==========================================================================
   TiRobotix — site styles
   ========================================================================== */

:root {
  --ink: #0A0E13;
  --ink-2: #0E141B;
  --ink-3: #141C25;
  --line-dark: #1F2A36;
  --paper: #F6F7F9;
  --paper-alt: #ECEFF3;
  --white: #FFFFFF;
  --line: #DDE2E8;
  --text: #0E141B;
  --text-2: #4B5765;
  --inv: #E8EEF4;
  --inv-2: #93A2B2;
  --accent: #FF7A1A;
  --accent-2: #FF9447;
  --accent-text: #C2510A; /* accessible orange for text on light backgrounds */
  --on-accent: #190B01;
  --ok: #2EE59D;
  --urban: #4F6BD8;
  --agri: #3C8A3A;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(10, 14, 19, .05), 0 10px 30px rgba(10, 14, 19, .07);
  --shadow-lg: 0 2px 4px rgba(10, 14, 19, .06), 0 24px 60px rgba(10, 14, 19, .14);

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost { border-color: rgba(232, 238, 244, .25); color: var(--inv); }
.btn-ghost:hover { border-color: var(--inv); background: rgba(255, 255, 255, .04); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-text);
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }
.section-dark .text-link { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--inv);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 19, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--inv);
}
.logo-mark { width: 32px; height: 32px; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.logo-ti { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--inv-2);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover,
.nav a.is-active { color: var(--inv); background: rgba(255, 255, 255, .06); }
.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: transparent;
  color: var(--inv);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(255, 122, 26, .12), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(79, 107, 216, .14), transparent 60%),
    var(--ink);
  color: var(--inv);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--accent); }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 122, 26, .3);
  border-radius: 999px;
  background: rgba(255, 122, 26, .07);
  margin-bottom: 28px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46, 229, 157, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 .hl {
  color: var(--accent);
}

.lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--inv-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  font-size: 14px;
  color: var(--inv-2);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 540px;
}
.hero-visual img { width: 100%; }

.capabilities {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(14, 20, 27, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.capabilities li + li { border-left: 1px solid var(--line-dark); }
.capabilities a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 20px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--inv);
  transition: background-color .2s;
}
.capabilities a:hover { background: rgba(255, 255, 255, .04); }
.capabilities .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: var(--inv); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-2);
}
.section-dark .section-head p:not(.eyebrow) { color: var(--inv-2); }

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.prose p { font-size: 1.125rem; color: var(--text-2); }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--text); font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.pillar {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-text);
  margin-bottom: 40px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--text-2); }

.founder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(255, 122, 26, .14), transparent 70%),
    var(--ink);
  color: var(--inv);
}
.founder-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 122, 26, .1);
  border: 1px solid rgba(255, 122, 26, .35);
}
.founder-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.founder h3 { font-size: 1.6rem; margin-bottom: 8px; }
.founder-text > p:last-child { color: var(--inv-2); max-width: 680px; }
.founder .text-link { color: var(--accent); margin: 0; padding: 0; }

/* Environments */
.env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.env-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.env-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.env-media {
  margin: 0;
  aspect-ratio: 800 / 520;
  overflow: hidden;
  background: var(--ink-2);
}
.env-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.env-card:hover .env-media img { transform: scale(1.03); }
.env-body { padding: 32px; }
.env-body h3 { font-size: 1.6rem; margin-bottom: 12px; }
.env-body > p:not(.tag) { color: var(--text-2); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.tag .icon { width: 16px; height: 16px; }
.tag-urban { color: var(--urban); background: rgba(79, 107, 216, .1); }
.tag-agri { color: var(--agri); background: rgba(60, 138, 58, .1); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}
.checklist .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 122, 26, .12);
  color: var(--accent-text);
  stroke-width: 2.4;
  margin-top: 1px;
}

/* What we build */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.build-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color .3s, transform .3s;
}
.build-card:hover { border-color: rgba(255, 122, 26, .5); transform: translateY(-4px); }
.build-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 122, 26, .1);
  border: 1px solid rgba(255, 122, 26, .25);
  color: var(--accent);
  margin-bottom: 28px;
}
.build-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.build-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.build-card > p { color: var(--inv-2); }

.dashlist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line-dark);
}
.dashlist li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashlist li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

/* Components */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.comp-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.comp-visual {
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--ink-2);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.comp-visual svg { width: 100%; height: auto; }
.comp-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.comp-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.comp-title .icon { width: 24px; height: 24px; color: var(--accent-text); }
.comp-title h3 { font-size: 1.35rem; }
.comp-body > p { color: var(--text-2); }

.chips {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
}

/* Projects */
.roadmap-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--inv-2);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--inv-2);
}
.status-dot.is-progress { border-color: var(--accent); background: var(--accent); }
.status-dot.is-done { border-color: var(--ok); background: var(--ok); }

.roadmap {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line-dark);
}
.project {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-areas: "num main status";
  align-items: start;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-dark);
}
.project-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 5px;
}
.project-main { grid-area: main; }
.project h3 { font-size: 1.45rem; margin-bottom: 8px; }
.project-main > p { color: var(--inv-2); max-width: 720px; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.project-tags li {
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  color: var(--inv);
}
.status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--inv-2);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.status.is-progress { color: var(--accent); border-color: rgba(255, 122, 26, .4); background: rgba(255, 122, 26, .08); }
.status.is-progress::before { background: currentColor; }
.status.is-done { color: var(--ok); border-color: rgba(46, 229, 157, .35); background: rgba(46, 229, 157, .07); }
.status.is-done::before { background: currentColor; }

/* Process */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding-top: 28px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: -24px;
  height: 2px;
  background: var(--line);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--paper-alt);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-text);
  margin: 8px 0 14px;
}
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--text-2); }

/* Join */
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.join-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.join-card:hover { border-color: rgba(255, 122, 26, .5); box-shadow: var(--shadow); }
.join-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-text);
  stroke-width: 1.5;
  margin-bottom: 28px;
}
.join-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.join-card p { color: var(--text-2); }

/* Contact */
.contact {
  background:
    radial-gradient(800px 480px at 90% 10%, rgba(255, 122, 26, .12), transparent 60%),
    var(--ink);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy > p:not(.eyebrow) {
  margin: 18px 0 32px;
  font-size: 1.125rem;
  color: var(--inv-2);
  max-width: 480px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  max-width: 420px;
  transition: border-color .2s;
}
.contact-card + .contact-card { margin-top: 12px; }
a.contact-card:hover { border-color: rgba(255, 122, 26, .6); }
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 122, 26, .12);
  color: var(--accent);
  flex: none;
}
.contact-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--inv-2);
}
.contact-card-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--inv);
}

.contact-form {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  display: grid;
  gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--inv-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--inv);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A2B2' 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 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .2);
}
.field .is-invalid { border-color: #FF5A5A; }
.form-note { font-size: 13.5px; color: var(--inv-2); text-align: center; }
.form-note.is-error { color: #FF8A8A; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--inv-2);
  border-top: 1px solid var(--line-dark);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--inv);
  margin-bottom: 6px;
}
.footer-col a { transition: color .2s; width: fit-content; }
.footer-col a:hover { color: var(--inv); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
}
.footer-bottom a:hover { color: var(--inv); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .env-card, .env-media img, .build-card { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav a:not(.btn) { padding: 8px 10px; }
  .capabilities { grid-template-columns: repeat(3, 1fr); }
  .capabilities li:nth-child(4) { border-left: 0; }
  .capabilities li:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .comp-grid, .build-grid, .join-grid { grid-template-columns: 1fr 1fr; }
  .comp-card:last-child, .build-card:last-child, .join-card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(2)::before { right: 0; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: rgba(10, 14, 19, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: rgba(10, 14, 19, .97); }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
  .nav-cta { margin: 12px 0 0; height: 50px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { max-width: 480px; }
  .split, .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { gap: 48px; }
  .pillars { grid-template-columns: 1fr; margin-top: 48px; gap: 16px; }
  .pillar-num { margin-bottom: 20px; }
  .founder { grid-template-columns: auto 1fr; }
  .founder .text-link { grid-column: 2; }
  .env-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .eyebrow-pill { font-size: 10.5px; letter-spacing: .05em; padding: 7px 12px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capabilities li { border-left: 0 !important; border-top: 1px solid var(--line-dark); }
  .capabilities li:nth-child(-n+2) { border-top: 0; }
  .capabilities li:nth-child(even) { border-left: 1px solid var(--line-dark) !important; }
  .capabilities li:last-child { grid-column: 1 / -1; border-left: 0 !important; }
  .capabilities a { padding: 16px; font-size: 14px; }

  .section-head { margin-bottom: 40px; }
  .comp-grid, .build-grid, .join-grid, .steps { grid-template-columns: 1fr; }
  .comp-card:last-child, .build-card:last-child, .join-card:last-child { grid-column: auto; }
  .step::before { right: 0; }
  .steps { row-gap: 40px; }
  .env-body, .pillar, .build-card, .join-card { padding: 26px 22px; }
  .comp-body { padding: 24px 22px 28px; }
  .contact-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .project {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num status" "main main";
    gap: 12px;
    padding: 26px 0;
  }
  .founder { grid-template-columns: 1fr; gap: 16px; padding: 26px 22px; }
  .founder .text-link { grid-column: auto; }
  .founder-avatar { width: 64px; height: 64px; font-size: 22px; }
  .contact-card-value { font-size: 1.1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
