/* =========================================================================
   EmergoAce — company site
   Night blue hero with WebGL ribbons, paper-light body, two product stages.
   ========================================================================= */

@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --night: #071230;
  --night-2: #0c1c45;
  --paper: #f3f7fc;
  --white: #ffffff;
  --ink: #0d1b3d;
  --ink-soft: #4a5a7a;
  --line: #dde5f0;

  --blue: #1b6bff;
  --cyan: #12b8e8;
  --leaf: #39e07a;
  --violet: #6c4bff;
  --sun: #ffd54a;

  --grad: linear-gradient(100deg, var(--blue), var(--cyan) 55%, var(--leaf));
  --display: 'Unbounded', 'Jakarta', system-ui, sans-serif;
  --body: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

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

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

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

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 20px; border: 0; border-radius: 999px;
  font: 600 0.95rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #04122e; box-shadow: 0 10px 30px -10px rgba(18, 184, 232, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(18, 184, 232, 0.85); }
.btn-violet { background: linear-gradient(110deg, #2ec5e8, var(--violet)); color: #fff; box-shadow: 0 10px 30px -10px rgba(108, 75, 255, 0.7); }
.btn-violet:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(108, 75, 255, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn-glow { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); }
.btn-glow:hover { background: rgba(255, 255, 255, 0.14); }
.btn-glow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease); }
.btn-glow[aria-expanded='true'] svg { transform: rotate(180deg); }

/* ---------- Header ---------- */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.head-in {
  display: flex; align-items: center; gap: 24px;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; height: 76px;
}
.brand img { width: 104px; height: auto; }
.brand-light { display: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.82);
  font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: color 200ms ease, background-color 200ms ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* Solid header once the page scrolls past the hero. */
.head.solid { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.head.solid .brand-dark { display: none; }
.head.solid .brand-light { display: block; }
.head.solid .nav a { color: var(--ink-soft); }
.head.solid .nav a:hover { color: var(--ink); background: rgba(13, 27, 61, 0.06); }
.head.solid .btn-glow { background: var(--night); box-shadow: none; }
.head.solid .menu-btn span { background: var(--ink); }

/* App launcher */
.launch { position: relative; }
.launch-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 290px; padding: 8px;
  border-radius: 18px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 60px -16px rgba(7, 18, 48, 0.45), 0 0 0 1px rgba(13, 27, 61, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 200ms ease, transform 240ms var(--ease), visibility 0s linear 240ms;
}
.launch-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 240ms var(--ease); }
.launch-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; transition: background-color 160ms ease;
}
.launch-item:hover, .launch-item:focus-visible { background: var(--paper); }
.launch-item img { width: 36px; height: 36px; border-radius: 10px; }
.launch-item span { display: flex; flex-direction: column; line-height: 1.3; }
.launch-item small { color: var(--ink-soft); font-size: 0.8rem; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform 240ms var(--ease); }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 96px;
  background:
    radial-gradient(120% 80% at 80% 10%, #13306f 0%, transparent 60%),
    radial-gradient(90% 70% at 0% 100%, #0b2a52 0%, transparent 60%),
    var(--night);
  color: #fff;
}
.ribbons { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: auto -10% -30% -10%; height: 50%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(57, 224, 122, 0.18), transparent 70%);
  pointer-events: none;
}
.no-webgl .hero-glow { inset: -20% -10% -30% -10%; height: auto; background:
  radial-gradient(40% 40% at 70% 40%, rgba(18, 184, 232, 0.35), transparent 70%),
  radial-gradient(40% 40% at 30% 70%, rgba(57, 224, 122, 0.22), transparent 70%); }

.hero-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 16px 8px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.86);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(57, 224, 122, 0.2); }

.hero-title {
  font: 800 clamp(2.3rem, 6.4vw, 5.6rem) / 1.02 var(--display);
  letter-spacing: -0.035em; max-width: 14ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:last-child > span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { max-width: 54ch; margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-pair { display: flex; flex-wrap: wrap; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.hero-pair li { display: flex; align-items: center; gap: 10px; }
.hero-pair img { width: 28px; height: 28px; border-radius: 8px; }

/* The one orchestrated page-load moment. */
.js .hero-kicker, .js .hero-lede, .js .hero-cta, .js .hero-pair { opacity: 0; transform: translateY(14px); }
.js .hero-title .line > span { transform: translateY(105%); }
.ready .hero-title .line > span { transform: none; transition: transform 1000ms var(--ease); }
.ready .hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
.ready .hero-title .line:nth-child(3) > span { transition-delay: 180ms; }
.ready .hero-kicker, .ready .hero-lede, .ready .hero-cta, .ready .hero-pair {
  opacity: 1; transform: none; transition: opacity 800ms ease, transform 900ms var(--ease);
}
.ready .hero-lede { transition-delay: 380ms; }
.ready .hero-cta { transition-delay: 480ms; }
.ready .hero-pair { transition-delay: 580ms; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Section heads ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font: 700 clamp(1.9rem, 4vw, 3rem) / 1.08 var(--display); letter-spacing: -0.03em; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Journey ---------- */
.journey { padding: clamp(80px, 12vw, 140px) 0; }
.track { position: relative; }
.track-rail {
  position: absolute; left: 0; right: 0; top: 23px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden;
}
.track-fill { width: 100%; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); color: var(--ink-soft); font: 700 1.05rem var(--display);
  box-shadow: 0 0 0 4px var(--paper), inset 0 0 0 2px var(--line);
  transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease, transform 500ms var(--ease);
}
.step.on .step-n { background: var(--night); color: #fff; box-shadow: 0 0 0 4px var(--paper), 0 10px 24px -8px rgba(27, 107, 255, 0.6); transform: scale(1.06); }
.step-body { margin-top: 22px; }
.step h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }
.tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.tag-crm { background: rgba(27, 107, 255, 0.1); color: #1450c4; }
.tag-vis { background: rgba(108, 75, 255, 0.12); color: #4c2fd6; }
.tag-both { background: rgba(57, 224, 122, 0.16); color: #127a3c; }

/* ---------- Product stages ---------- */
.products { display: grid; gap: clamp(24px, 4vw, 40px); width: min(1280px, 100% - 2 * var(--gutter)); margin: 0 auto clamp(80px, 12vw, 140px); }
.stage {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px;
  padding: clamp(32px, 5vw, 72px); border-radius: 36px; color: #fff; isolation: isolate;
}
.stage-crm { background: radial-gradient(90% 90% at 100% 0%, #133b86 0%, transparent 60%), var(--night); }
.stage-vis {
  grid-template-columns: 1.1fr 1fr;
  background: radial-gradient(90% 90% at 0% 0%, #3a2bb8 0%, transparent 60%), radial-gradient(70% 70% at 100% 100%, #0e5a8a 0%, transparent 60%), #120b3d;
}
.stage-vis .stage-copy { order: 2; }
.stage-vis .stage-visual { order: 1; }
.stage::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent);
}
.stage-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.stage-mark img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); }
.stage-host { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }
.stage h2 { font: 800 clamp(2rem, 4.4vw, 3.4rem) / 1.02 var(--display); letter-spacing: -0.03em; }
.visitora-word { letter-spacing: 0.02em; }
.visitora-word span { font-size: 1.22em; line-height: 0.8; background: linear-gradient(140deg, #2ec5e8, #a08bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-lede { margin-top: 16px; max-width: 46ch; color: rgba(255, 255, 255, 0.76); font-size: 1.06rem; }
.ticks { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; color: rgba(255, 255, 255, 0.9); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(57, 224, 122, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2339e07a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.stage-vis .ticks li::before { background-color: rgba(160, 139, 255, 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23b4a3ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* 3D stage: tilts toward the pointer (set by JS through --rx / --ry). */
.stage-visual { perspective: 1400px; display: grid; place-items: center; min-height: 360px; }
.laptop, .phone {
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--rx, 0deg))) rotateY(calc(-14deg + var(--ry, 0deg)));
  transition: transform 600ms var(--ease);
}
.stage-vis .phone { transform: rotateX(calc(6deg + var(--rx, 0deg))) rotateY(calc(16deg + var(--ry, 0deg))) rotateZ(-2deg); }

/* Laptop mock */
.laptop { width: min(560px, 100%); }
.laptop-screen {
  padding: 12px; border-radius: 18px 18px 6px 6px; background: #0b1631;
  box-shadow: 0 0 0 2px #1d2c52, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(18, 184, 232, 0.35);
}
.laptop-base { height: 16px; margin: 0 -6%; border-radius: 0 0 22px 22px; background: linear-gradient(#2a3a62, #141f3d); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.7); transform: translateZ(20px); }
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 12px; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; font-weight: 600; }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3b63; }
.ui-bar span { margin-left: 8px; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.col { display: flex; flex-direction: column; gap: 7px; min-height: 210px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.col b { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); font-weight: 600; margin-bottom: 2px; }
.kc {
  display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; padding: 8px; border-radius: 10px;
  background: #13244b; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.8); transform: translateZ(18px);
}
.kc em { font-style: normal; font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc small { grid-column: 2; font-size: 0.64rem; color: rgba(255, 255, 255, 0.55); }
.kc.hot { box-shadow: inset 0 0 0 1.5px rgba(255, 213, 74, 0.7), 0 10px 20px -10px rgba(255, 213, 74, 0.5); transform: translateZ(34px); }
.kc.won { box-shadow: inset 0 0 0 1.5px rgba(57, 224, 122, 0.8), 0 10px 20px -10px rgba(57, 224, 122, 0.5); transform: translateZ(34px); }
.av { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 0.58rem; font-weight: 800; color: #071230; }
.a1 { background: #7fb2ff; } .a2 { background: #ffd54a; } .a3 { background: #6fe8a5; } .a4 { background: #b7a6ff; }

/* Phone mock */
.phone {
  position: relative; width: 270px; height: 540px; padding: 12px; border-radius: 44px; background: #0d0a26;
  box-shadow: 0 0 0 2px #2c2566, 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 90px -20px rgba(108, 75, 255, 0.5);
}
.phone-notch { position: absolute; left: 50%; top: 18px; width: 86px; height: 22px; margin-left: -43px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { height: 100%; padding: 50px 14px 14px; border-radius: 34px; background: #f5f6fd; color: var(--ink); position: relative; overflow: hidden; }
.ph-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1rem; }
.ph-head b { font: 800 1.4rem var(--display); color: var(--violet); }
.ph-search { margin: 12px 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff; color: #8a93ad; font-size: 0.74rem; box-shadow: 0 1px 0 #e5e8f4; }
.ph-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -12px rgba(13, 27, 61, 0.5); transform: translateZ(14px); }
.ph-row .av { grid-row: auto; width: 30px; height: 30px; font-size: 0.64rem; }
.ph-row em { display: block; font-style: normal; font-weight: 700; font-size: 0.78rem; }
.ph-row small { display: block; color: #7a84a0; font-size: 0.66rem; }
.ph-row i { width: 10px; height: 10px; border-radius: 50%; }
.ph-row i.ok { background: var(--leaf); }
.ph-row i.wait { background: var(--sun); }
.ph-fab { position: absolute; right: 14px; bottom: 16px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(110deg, #2ec5e8, var(--violet)); color: #fff; font-weight: 700; font-size: 0.76rem; box-shadow: 0 12px 24px -10px rgba(108, 75, 255, 0.8); transform: translateZ(40px); }

/* ---------- Who ---------- */
.who { padding: 0 0 clamp(80px, 12vw, 140px); }
.who-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.who-item { padding: 32px 32px 8px 0; }
.who-item + .who-item { padding-left: 32px; border-left: 1px solid var(--line); }
.who-item svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who-item h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 800; }
.who-item p { margin-top: 8px; color: var(--ink-soft); }

/* ---------- Ethos ---------- */
.ethos { padding: clamp(80px, 12vw, 140px) 0; background: var(--white); border-block: 1px solid var(--line); }
.ethos-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ethos-title { display: grid; font: 800 clamp(2.6rem, 7vw, 5.4rem) / 1 var(--display); letter-spacing: -0.04em; }
.ethos-title span:nth-child(1) { color: var(--blue); }
.ethos-title span:nth-child(2) { color: var(--cyan); }
.ethos-title span:nth-child(3) { color: #1fbf63; }
.ethos-copy { display: grid; gap: 22px; padding-top: 12px; font-size: 1.06rem; color: var(--ink-soft); }
.ethos-copy strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.12rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vw, 140px) 0; background: radial-gradient(80% 90% at 100% 0%, #13306f, transparent 60%), var(--night); color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font: 800 clamp(2rem, 4.4vw, 3.2rem) / 1.06 var(--display); letter-spacing: -0.03em; }
.contact-copy p { margin-top: 16px; color: rgba(255, 255, 255, 0.75); font-size: 1.08rem; max-width: 42ch; }
.contact-links { display: grid; gap: 10px; margin-top: 28px; }
.contact-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding: 10px 16px 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-decoration: none; font-weight: 600; transition: background-color 200ms ease; }
.contact-link:hover { background: rgba(255, 255, 255, 0.12); }
.contact-link svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linejoin: round; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fafcff; color: var(--ink);
  font: 400 1rem var(--body); transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 107, 255, 0.14); }
.field input[aria-invalid='true'] { border-color: #e5484d; }
.form-error { grid-column: 1 / -1; color: #c62a2f; font-size: 0.92rem; font-weight: 600; }
.form-note { color: var(--ink-soft); font-size: 0.84rem; text-align: center; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: #050d24; color: rgba(255, 255, 255, 0.7); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.foot-in img { width: 96px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.foot-nav a:hover { color: #fff; }
.foot-copy { margin-left: auto; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stage, .stage-vis { grid-template-columns: 1fr; gap: 36px; }
  .stage-vis .stage-copy, .stage-vis .stage-visual { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .track-rail { left: 23px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .track-fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding-bottom: 34px; }
  .step-body { margin-top: 4px; }
  .ethos-in, .contact-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top)) 12px auto; flex-direction: column; gap: 2px; margin: 0; padding: 10px;
    border-radius: 20px; background: var(--white); box-shadow: 0 30px 60px -20px rgba(7, 18, 48, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 200ms ease, transform 240ms var(--ease), visibility 0s linear 240ms;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 240ms var(--ease); }
  .nav a, .head.solid .nav a { color: var(--ink); padding: 14px 16px; font-size: 1rem; }
  .nav a:hover { background: var(--paper); }
  .who-list { grid-template-columns: 1fr; }
  .who-item, .who-item + .who-item { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .head-in { height: 66px; gap: 12px; }
  .brand img { width: 88px; }
  .launch .btn { --h: 40px; padding: 0 14px; font-size: 0.88rem; }
  .launch-menu { position: fixed; left: 12px; right: 12px; top: calc(66px + env(safe-area-inset-top)); width: auto; }
  .nav { inset: calc(66px + env(safe-area-inset-top)) 12px auto; }
  .hero { padding: 100px 0 88px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stage { border-radius: 26px; padding: 28px 20px; }
  .stage .btn { width: 100%; }
  .stage-visual { min-height: 0; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .col { min-height: 0; }
  .phone { width: 240px; height: 480px; }
  .form { grid-template-columns: 1fr; }
  .foot-copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .hero-title .line > span { transform: none; }
  .js .hero-kicker, .js .hero-lede, .js .hero-cta, .js .hero-pair { opacity: 1; transform: none; }
}
