/* ============================================================
   RapidAITech — sections & components
   ============================================================ */

:root {
  --grain: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle at 1px 1px, rgba(247,244,238,.14) 1px, transparent 0);
  --dots-light: radial-gradient(circle at 1px 1px, rgba(20,20,19,.09) 1px, transparent 0);
}

/* ---------- Reveal on scroll ----------
   Gated on .js so that content is never hidden when scripting is off
   or main.js fails to load — the page degrades to plain static HTML. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .85;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--dots);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  opacity: .7;
}
.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow.g1 {
  width: 58vw; height: 58vw;
  max-width: 780px; max-height: 780px;
  top: -22%; right: -12%;
  background: radial-gradient(circle, rgba(217,119,87,.42), transparent 66%);
  animation: float-a 17s ease-in-out infinite;
}
.hero-glow.g2 {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  bottom: -26%; left: -14%;
  background: radial-gradient(circle, rgba(240,131,78,.26), transparent 68%);
  animation: float-b 21s ease-in-out infinite;
}
@keyframes float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-5%, 7%) scale(1.09); }
}
@keyframes float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(7%, -6%) scale(1.13); }
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  border: 1px solid rgba(240,131,78,.32);
  background: rgba(240,131,78,.09);
  font-size: .78rem;
  font-weight: 500;
  color: var(--clay-200);
  margin-bottom: 26px;
}
.hero-badge .tag {
  padding: 3px 9px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--ember), var(--clay-600));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 26px; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.24rem); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; align-items: baseline; gap: 9px; }
.hero-meta b {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.hero-meta span { font-size: .82rem; color: var(--fg-muted); }

/* ---------- Agent console card ---------- */
.console {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(247,244,238,.13);
  background: linear-gradient(168deg, rgba(38,36,33,.94), rgba(20,20,19,.97));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(240,131,78,.07), 0 0 90px -30px rgba(217,119,87,.55);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.console::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,131,78,.7), transparent);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(247,244,238,.08);
  background: rgba(247,244,238,.02);
}
.console-dots { display: flex; gap: 6px; }
.console-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(247,244,238,.16);
}
.console-dots i:first-child { background: rgba(240,131,78,.75); }
.console-bar .title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--fg-faint);
  letter-spacing: .02em;
}
.console-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7FCF9A;
}
.console-bar .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s var(--ease) infinite;
}
.console-body { padding: 22px 20px 24px; }
.console-prompt {
  font-family: var(--font-mono);
  font-size: .855rem;
  line-height: 1.6;
  color: #E8E3DA;
  min-height: 3.2em;
  display: flex;
  gap: 10px;
}
.console-prompt .caret { color: var(--ember); flex: none; }
.console-prompt .type::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--ember);
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* pipeline nodes */
.pipeline {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed rgba(247,244,238,.11);
  display: grid;
  gap: 9px;
}
.node {
  --p: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(247,244,238,.09);
  background: rgba(247,244,238,.028);
  transition: border-color .45s var(--ease), background-color .45s var(--ease), transform .45s var(--ease);
}
.node.is-on {
  border-color: rgba(240,131,78,.42);
  background: rgba(240,131,78,.075);
  transform: translateX(3px);
}
.node .ico {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(247,244,238,.06);
  color: var(--fg-faint);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.node.is-on .ico { background: linear-gradient(135deg, var(--ember), var(--clay-600)); color: #fff; }
.node .label {
  font-size: .845rem;
  font-weight: 500;
  color: #C9C3BA;
  transition: color .45s var(--ease);
}
.node.is-on .label { color: #F7F4EE; }
.node .stat {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-faint);
  opacity: 0;
  transition: opacity .45s var(--ease) .12s;
}
.node.is-on .stat { opacity: 1; color: var(--clay-300); }
.node + .node::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -9px;
  width: 1px;
  height: 9px;
  background: rgba(247,244,238,.14);
}

.console-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.console-foot span {
  font-family: var(--font-mono);
  font-size: .655rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(247,244,238,.1);
  color: var(--fg-faint);
}

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.scroll-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--ember), transparent);
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.marquee-group span::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}
.card {
  --gx: 50%;
  --gy: 0%;
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--gx) var(--gy), rgba(217,119,87,.13), transparent 62%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--clay-300);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--clay-600);
  background: linear-gradient(150deg, var(--clay-100), var(--clay-50));
  border: 1px solid var(--clay-200);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover .card-ico {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 8px 20px -8px rgba(194,94,60,.5);
}
.card-ico svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 11px; }
.card p { font-size: .93rem; line-height: 1.62; color: var(--fg-muted); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.card-tags li {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--cream-2);
  color: var(--fg-muted);
  border: 1px solid var(--line-soft);
}
.card-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--fg-faint);
  opacity: .55;
  z-index: 1;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  position: relative;
  display: grid;
  gap: 0;
}
.process-rail {
  position: absolute;
  left: 25px;
  top: 12px;
  bottom: 60px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.process-rail i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: linear-gradient(180deg, var(--ember), var(--clay-600));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  transition: transform .18s linear;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step-dot {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--fg-faint);
  transition: all .5s var(--ease);
}
.step.is-in .step-dot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ember), var(--clay-600));
  color: #fff;
  box-shadow: 0 0 0 6px rgba(217,119,87,.13);
}
.step-body { padding-top: 6px; }
.step-body h3 { margin-bottom: 10px; }
.step-body p { color: var(--fg-muted); max-width: 60ch; line-height: 1.65; }

/* On wide screens the title takes its own column, so the copy uses the
   full measure instead of stranding half the row empty. */
@media (min-width: 900px) {
  .step-body {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 68px);
    align-items: start;
  }
  .step-body h3 { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .step-body p { grid-column: 2; grid-row: 1; max-width: 66ch; }
  .step-body .step-out { grid-column: 2; grid-row: 2; justify-self: start; }
}
.step-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--accent);
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--clay-50);
  border: 1px solid var(--clay-100);
}

/* ============================================================
   GLOBAL / TWO HEMISPHERES
   ============================================================ */
.globe-wrap {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}
.globe {
  position: relative;
  aspect-ratio: 1 / .82;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(217,119,87,.10), transparent 70%),
    var(--bg-elev);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.globe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dots);
  background-size: 22px 22px;
  opacity: .8;
}
.globe svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.arc-path {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: dash 2.4s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -24; } }
.pin-ring { transform-origin: center; animation: ring 3s var(--ease-out) infinite; }
.pin-ring.d2 { animation-delay: 1.5s; }
@keyframes ring {
  0%   { r: 6; opacity: .85; }
  100% { r: 30; opacity: 0; }
}
.globe-label {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.globe-label b { font-size: .84rem; font-weight: 600; letter-spacing: -.015em; }
.globe-label span { font-family: var(--font-mono); font-size: .64rem; color: var(--fg-muted); }
.globe-label.au { right: 9%; bottom: 15%; }
.globe-label.in { left: 8%; top: 22%; }

.fact-list { display: grid; gap: 2px; margin-top: 36px; }
.fact {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact .k {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  padding-top: 3px;
}
.fact b { display: block; font-weight: 600; letter-spacing: -.018em; margin-bottom: 4px; }
.fact p { font-size: .9rem; color: var(--fg-muted); line-height: 1.6; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-cell {
  background: var(--bg);
  padding: 34px 28px;
  transition: background-color var(--t);
}
.stat-cell:hover { background: var(--bg-elev); }
.stat-cell .n {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--ember), var(--clay-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-cell .l {
  margin-top: 12px;
  font-size: .87rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   CTA / FORM
   ============================================================ */
.cta-shell {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  border: 1px solid rgba(247,244,238,.1);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 5vw, 66px);
  isolation: isolate;
}
.cta-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--dots);
  background-size: 26px 26px;
  opacity: .55;
}
.cta-shell::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -46%; right: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,87,.34), transparent 66%);
  filter: blur(60px);
}
.cta-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 4.5vw, 66px);
  align-items: start;
}
.cta-copy .h2 { color: #F7F4EE; }
.cta-copy .lede { color: #A8A29A; }
.cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(240,131,78,.3);
  background: rgba(240,131,78,.08);
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--clay-200);
  transition: background-color var(--t), border-color var(--t);
}
.cta-mail:hover { background: rgba(240,131,78,.15); border-color: rgba(240,131,78,.55); }
.cta-points { display: grid; gap: 12px; margin-top: 32px; }
.cta-points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .9rem;
  color: #A8A29A;
}
.cta-points svg { flex: none; margin-top: 3px; color: var(--ember); }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .78rem;
  font-weight: 550;
  letter-spacing: .01em;
  color: #C9C3BA;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req { color: var(--ember); }
.field .hint { font-size: .72rem; color: #7A746C; }
.input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(247,244,238,.15);
  background: rgba(247,244,238,.045);
  color: #F7F4EE;
  font-size: .92rem;
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
  appearance: none;
}
.input::placeholder { color: #6F6961; }
.input:hover { border-color: rgba(247,244,238,.26); }
.input:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(247,244,238,.07);
  box-shadow: 0 0 0 3px rgba(240,131,78,.18);
}
.input:user-invalid { border-color: #E2725B; }
textarea.input { min-height: 118px; resize: vertical; line-height: 1.6; }
select.input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A8A29A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
select.input option { background: var(--ink-3); color: #F7F4EE; }

/* file input */
.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 12px;
  border: 1.5px dashed rgba(247,244,238,.2);
  background: rgba(247,244,238,.03);
  cursor: pointer;
  transition: border-color var(--t), background-color var(--t);
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--ember); background: rgba(240,131,78,.07); }
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop .fi {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(240,131,78,.14);
  color: var(--ember);
}
.file-drop .ft { min-width: 0; }
.file-drop .ft b {
  display: block;
  font-size: .87rem;
  font-weight: 550;
  color: #F7F4EE;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-drop .ft span { font-size: .74rem; color: #7A746C; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.55;
  color: #A8A29A;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid rgba(247,244,238,.28);
  background: rgba(247,244,238,.05);
  cursor: pointer;
  transition: all var(--t-fast);
}
.check input:checked {
  background: linear-gradient(135deg, var(--ember), var(--clay-600));
  border-color: transparent;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.4 4.8 9.2 10 3.4'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #F0834E, #C25E3C);
  background-repeat: no-repeat;
  background-position: center;
}
.check a { color: var(--clay-300); text-decoration: underline; text-underline-offset: 2px; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.form-note { font-size: .76rem; color: #7A746C; }

/* form status */
.form-status {
  display: none;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .87rem;
  line-height: 1.55;
}
.form-status.is-on { display: flex; }
.form-status.ok {
  background: rgba(80,180,120,.11);
  border: 1px solid rgba(80,180,120,.32);
  color: #9FDDB4;
}
.form-status.err {
  background: rgba(226,114,91,.11);
  border: 1px solid rgba(226,114,91,.36);
  color: #F0A392;
}
.form-status svg { flex: none; margin-top: 2px; }

.btn .spin {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.32);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.is-busy .spin { display: block; }
.btn.is-busy .lbl { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CAREERS
   ============================================================ */
.role-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.role-head {
  padding: clamp(26px, 3.6vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 130% at 88% 0%, rgba(217,119,87,.12), transparent 62%),
    var(--bg-elev);
}
.role-head h2 { margin: 14px 0 18px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.role-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: .79rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.role-tags li svg { color: var(--accent); }
.role-tags li.hot {
  border-color: var(--clay-300);
  background: var(--clay-50);
  color: var(--clay-700);
}
.role-body {
  padding: clamp(26px, 3.6vw, 42px);
  display: grid;
  gap: 40px;
}
.role-block h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  font-size: 1.06rem;
}
.role-block h3 .n {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--clay-50);
  border: 1px solid var(--clay-200);
  color: var(--clay-600);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
}
.ticks { display: grid; gap: 12px; }
.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: .93rem;
  line-height: 1.62;
  color: var(--fg-muted);
}
.ticks li svg { color: var(--accent); margin-top: 5px; }
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 32px; }

.honest {
  padding: 22px 24px;
  border-radius: var(--r);
  border: 1px solid var(--clay-200);
  background: var(--clay-50);
}
.honest h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  margin-bottom: 10px;
  color: var(--clay-700);
}
.honest p { font-size: .89rem; line-height: 1.65; color: #7A6154; }
.honest p + p { margin-top: 9px; }

.timeline-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.tm-item {
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}
.tm-item .w {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.tm-item b { display: block; margin: 8px 0 5px; font-size: .93rem; letter-spacing: -.015em; }
.tm-item p { font-size: .82rem; color: var(--fg-muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.faq-item { background: var(--bg); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -.018em;
  color: var(--fg);
}
.faq-q .pm {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform var(--t), background-color var(--t), border-color var(--t);
}
.faq-item.is-open .faq-q .pm {
  transform: rotate(45deg);
  background: var(--clay-50);
  border-color: var(--clay-300);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  padding: 0 4px 24px;
  font-size: .93rem;
  line-height: 1.68;
  color: var(--fg-muted);
  max-width: 72ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #A8A29A;
  padding-top: clamp(56px, 7vw, 84px);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,131,78,.55), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 52px;
}
.footer .brand { color: #F7F4EE; }
.footer .brand i { color: var(--ember); }
.footer-blurb { margin-top: 18px; font-size: .9rem; line-height: 1.66; max-width: 40ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6F6961;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .9rem; transition: color var(--t); }
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid rgba(247,244,238,.1);
  font-size: .8rem;
  color: #6F6961;
}
.footer-bottom .locs { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .locs span { display: inline-flex; align-items: center; gap: 7px; }
.footer-word {
  font-size: clamp(2.2rem, 14.5vw, 12rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .82;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247,244,238,.11);
  padding-bottom: 12px;
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-layout, .globe-wrap, .cta-layout { grid-template-columns: 1fr; }
  .globe-wrap .globe { order: -1; max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 56px); }
  .hero-meta { gap: 14px 22px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
  .step-dot { width: 42px; height: 42px; font-size: .7rem; }
  .process-rail { left: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .card { padding: 26px 22px 28px; }
  .globe-label { padding: 7px 11px; }
  .globe-label b { font-size: .76rem; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

@media print {
  .nav, .progress, .hero-canvas, .footer-word, .scroll-cue { display: none !important; }
  body::after { display: none; }
}

/* ---------- Careers hero variant ---------- */
.hero.is-compact {
  min-height: auto;
  padding-top: calc(var(--nav-h) + clamp(72px, 9vw, 118px));
  padding-bottom: clamp(72px, 9vw, 118px);
}
.careers-hero { max-width: 780px; }
.careers-hero h1 { margin-bottom: 24px; }

/* Role card heading override — the card owns its own scale */
.role-head .h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
