/* =====================================================
   CNS Logical. — Site stylesheet
   ===================================================== */

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-code: #0d0d10;
  --rule: #1f1f24;
  --rule-bright: #2a2a30;
  --fg: #e8e8ea;
  --fg-dim: #8e8e94;
  --fg-mute: #7a7a82;            /* bumped from #5a5a60 — 4.69:1 against --bg, passes WCAG AA */
  --accent: #9b6dff;
  --accent-soft: rgba(155, 109, 255, 0.16);
  --code-key: #c9a5ff;
  --code-str: #9bd99b;
  --code-com: #5a5a60;
  --code-num: #ffb480;
  --code-fg: #6e6e76;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --col-max: 1440px;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }

/* =====================================================
   Skip link (a11y)
   ===================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  width: auto;
  height: auto;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 200;
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

/* =====================================================
   Masthead (two variants)
   ===================================================== */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead--floating {
  /* Used on the Home page — chrome floats over the stage with no border */
  position: fixed;
  top: 0; left: 0; right: 0;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.masthead--floating > .masthead__row > * { pointer-events: auto; }

.masthead__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  max-width: var(--col-max);
  margin: 0 auto;
}
.masthead--floating .masthead__row { padding: 22px var(--gutter); }

.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo .dot { color: var(--accent); }

.status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.status__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(155,109,255,0.5);
  animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.menu-trigger {
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule-bright);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 200ms ease, background 200ms ease;
}
.menu-trigger:hover { border-color: var(--accent); background: var(--accent-soft); }
.menu-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.menu-trigger__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.menu-trigger__bars span { display: block; width: 14px; height: 1px; background: currentColor; }

/* =====================================================
   Full-screen menu overlay
   ===================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 320ms ease, visibility 0s linear 0s;
}

.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.menu__close {
  background: none;
  border: 1px solid var(--rule-bright);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 200ms ease;
}
.menu__close:hover { border-color: var(--accent); }
.menu__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.menu__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: var(--col-max);
  margin: 0 auto;
  width: 100%;
  gap: 8px;
}
.menu__item {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--fg-dim);
  padding: 14px 0;
  transition: color 220ms ease, padding 220ms ease;
  width: fit-content;
}
.menu__item:hover { color: var(--fg); padding-left: 12px; }
.menu__item:focus-visible { color: var(--fg); outline: 2px solid var(--accent); outline-offset: 6px; }

.menu__item[aria-current="page"] { color: var(--fg-mute); }
.menu__item[aria-current="page"]::before {
  content: '— ';
  font-family: var(--mono);
  font-size: 0.45em;
  letter-spacing: 0.1em;
  color: var(--accent);
  vertical-align: middle;
  margin-right: 6px;
}

.menu__item--featured {
  font-size: clamp(56px, 9vw, 128px);
  color: var(--fg);
  letter-spacing: -0.025em;
  margin: 12px 0;
  padding: 18px 0;
}
.menu__item--featured .dot { color: var(--accent); }
.menu__item--featured:hover { padding-left: 18px; }

.menu__footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  max-width: var(--col-max);
  margin: 0 auto;
  width: 100%;
}
.menu__footer a:hover { color: var(--fg-dim); }

/* =====================================================
   Container
   ===================================================== */
.container {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =====================================================
   Universal section header
   ===================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  max-width: var(--col-max);
  margin: 0 auto;
  width: 100%;
}
.footer a:hover { color: var(--fg-dim); }
.footer--floating {
  position: relative;
  z-index: 5;
  background: rgba(10,10,12,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px var(--gutter);
}

/* =====================================================
   ===  HOME  ==========================================
   ===================================================== */
.stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* ---- Code rain background ---- */
.rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 55% at 50% 50%,
    transparent 0%,
    transparent 22%,
    rgba(0,0,0,0.4) 38%,
    black 70%
  );
          mask-image: radial-gradient(
    ellipse 60% 55% at 50% 50%,
    transparent 0%,
    transparent 22%,
    rgba(0,0,0,0.4) 38%,
    black 70%
  );
  opacity: 0;
  animation: rainFadeIn 2400ms ease-out 200ms forwards;
}
@keyframes rainFadeIn { to { opacity: 0.42; } }

.rain__col {
  position: absolute;
  top: 0;
  height: 200%;
  width: clamp(220px, 22vw, 320px);
  will-change: transform;
  animation-name: rainScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  overflow: hidden;       /* clip code lines to column width — no horizontal bleed */
}
@keyframes rainScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.rain__col--a { left: 3%;  animation-duration: 92s;  animation-delay: -12s; }
.rain__col--b { left: 26%; animation-duration: 118s; animation-delay: -55s; }
.rain__col--c { left: 60%; animation-duration: 78s;  animation-delay: -34s; }
.rain__col--d { right: 3%; animation-duration: 134s; animation-delay: -88s; }

.rain__block {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--code-fg);
  white-space: pre;
  padding: 0;
  margin: 0;
  font-weight: 300;
  height: 100vh;          /* fallback for older browsers */
  height: 100dvh;         /* mobile-safe (handles URL bar) */
  overflow: hidden;       /* clip overflow so block stays exactly 1vh tall */
}
.rain__block .k { color: var(--code-key); }
.rain__block .s { color: var(--code-str); }
.rain__block .c { color: var(--code-com); font-style: italic; }
.rain__block .n { color: var(--code-num); }
.rain__block .f { color: var(--fg-dim); }
.rain__block .t { color: #9ec5e5; }

/* ---- Wordmark / centerpiece ---- */
.center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px var(--gutter);
  max-width: 100%;
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(64px, 16vw, 240px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--fg);
  font-weight: 400;
  text-shadow: 0 2px 60px rgba(10,10,12,0.85);
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 900ms cubic-bezier(.2,.7,.2,1) 250ms forwards;
}
.wordmark .dot {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(155,109,255,0.4),
               0 0 80px rgba(155,109,255,0.18);
  animation: dotBreathe 4.2s ease-in-out 1.4s infinite;
  display: inline-block;
}
@keyframes dotBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.78; }
}
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.tagline {
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateY(10px);
  animation: revealUp 900ms cubic-bezier(.2,.7,.2,1) 600ms forwards;
}
.tagline__sep {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rule-bright);
  vertical-align: middle;
  margin: 0 18px 3px;
}

/* =====================================================
   ===  ABOUT  =========================================
   ===================================================== */
.hero {
  padding: clamp(80px, 16vh, 180px) 0 clamp(60px, 10vh, 120px);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 36px;
}
.hero__kicker .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 12px 2px 0;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(155,109,255,0.5);
}
.hero__line {
  font-family: var(--serif);
  font-size: clamp(36px, 8vw, 120px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-dim);
  margin: 0 auto;
  font-weight: 400;
  text-align: center;
}
.hero__line em { font-style: italic; }
.hero__l { display: block; white-space: nowrap; }
.hero__l + .hero__l { margin-top: 0.04em; }

/* ---- Morphing word ---- */
.morph {
  display: inline-block;
  position: relative;
  color: var(--accent);
  font-style: italic;
  transition: opacity 320ms ease, transform 320ms ease, color 320ms ease;
  will-change: opacity, transform;
}
.morph.is-out { opacity: 0; transform: translateY(-10px); }
.morph[data-variant="data"] { text-shadow: 0 0 32px rgba(155,109,255,0.28); }
.morph[data-variant="your"]::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; bottom: -0.06em;
  height: 0.18em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2,8 Q40,2 80,7 T160,6 Q180,4 198,7' stroke='%239b6dff' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.morph[data-variant="messy"] { color: #b89aff; }
.morph[data-variant="messy"] .ch { display: inline-block; transition: transform 240ms ease; }
.morph[data-variant="real"] {
  font-style: normal; font-weight: 500;
  letter-spacing: -0.008em;
  text-shadow: 0 0 36px rgba(155,109,255,0.4);
}

/* ---- Story ---- */
.story { padding: clamp(60px, 10vh, 120px) 0; }
.story__beat {
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid var(--rule);
  max-width: 920px;
}
.story__beat:last-child { border-bottom: none; }
.story__moment {
  font-family: var(--serif);
  font-size: clamp(56px, 13vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 36px;
}
.story__moment .dot { color: var(--accent); }
.story__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.story__h {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
  max-width: 16ch;
  color: var(--fg);
  font-weight: 400;
}
.story__p {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 50ch;
}

/* ---- Numbers ---- */
.numbers {
  padding: clamp(80px, 14vh, 160px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(40px, 6vh, 80px);
}
.numbers__head { margin-bottom: 60px; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 80px);
}
.numbers__item {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.numbers__val {
  font-family: var(--serif);
  font-size: clamp(76px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.numbers__val .accent { color: var(--accent); }
.numbers__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---- Tools ---- */
.tools { padding: clamp(80px, 14vh, 160px) 0; }
.tool {
  display: grid;
  grid-template-columns: 180px 1fr 1.4fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding 220ms cubic-bezier(.2,.7,.2,1);
}
.tool:hover { padding-left: 14px; }
.tool__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.tool__name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.tool__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
}

/* ---- Closer ---- */
.closer {
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closer__where {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 32px;
}
.closer__h {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 36px;
  font-weight: 400;
}
.closer__cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--rule-bright);
  padding: 16px 28px;
  transition: border-color 220ms ease, background 220ms ease, padding 220ms ease;
}
.closer__cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.closer__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.closer__cta .arrow { color: var(--accent); margin-left: 10px; }

/* =====================================================
   ===  SERVICES  ======================================
   ===================================================== */
.tier {
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid var(--rule);
}
.tier:last-of-type { border-bottom: none; }

.tier__head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 48px;
}
.tier__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.tier__name {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 4px;
}
.tier__caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 20px;
}
.tier__desc {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--fg-dim);
  font-style: italic;
  max-width: 56ch;
}

.tier__caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
  list-style: none;
  padding: 0;
}
.tier__cap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  line-height: 1.4;
}
.tier__cap::before {
  content: '→';
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1;
}

/* =====================================================
   ===  CONTACT  =======================================
   ===================================================== */
.contact-grid {
  padding: clamp(60px, 10vh, 120px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.contact-info { position: sticky; top: 96px; }
.contact-info__h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.contact-info__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-info__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.contact-info__val {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
  color: var(--fg);
}
.contact-info__val a:hover { color: var(--accent); }

/* ---- Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form__head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field__label .req { color: var(--accent); margin-left: 4px; }

.field__input,
.field__select,
.field__textarea {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  padding: 6px 0;
  width: 100%;
  resize: none;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
}
.field:focus-within { border-bottom-color: var(--accent); }
.field__input::placeholder,
.field__textarea::placeholder { color: var(--fg-mute); }

.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239b6dff' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
  padding-right: 24px;
  cursor: pointer;
}
.field__select option {
  background: var(--bg-elev);
  color: var(--fg);
}
.field__textarea { min-height: 96px; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  margin-top: 32px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--rule-bright);
  padding: 18px 28px;
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, padding 220ms ease;
}
.form-submit:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  padding-right: 36px;
}
.form-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.form-submit .arrow { color: var(--accent); }

/* =====================================================
   ===  CONTACT - SUCCESS  =============================
   ===================================================== */
.success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 16vh, 180px) var(--gutter);
}
.success__check {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 22px;
  box-shadow: 0 0 30px rgba(155,109,255,0.25);
}
.success__h {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  font-weight: 400;
}
.success__h .dot { color: var(--accent); }
.success__p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 44ch;
  margin-bottom: 40px;
}
.success__back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--rule-bright);
  padding-bottom: 4px;
  transition: color 220ms ease, border-color 220ms ease;
}
.success__back:hover { color: var(--fg); border-color: var(--accent); }

/* =====================================================
   ===  JOURNAL (under construction)  ==================
   ===================================================== */
.journal-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 16vh, 200px) var(--gutter);
  position: relative;
}
.journal__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.journal__kicker .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(155,109,255,0.5);
  animation: statusPulse 2.4s ease-in-out infinite;
}
.journal__h {
  font-family: var(--serif);
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 24px;
}
.journal__h .dot {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(155,109,255,0.35);
  animation: dotBreathe 4.2s ease-in-out 1s infinite;
  display: inline-block;
}
.journal__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  font-style: italic;
  color: var(--fg-dim);
  max-width: 38ch;
  margin: 0 auto 48px;
  line-height: 1.4;
}
.journal__progress {
  width: 240px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
}
.journal__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  width: 60%;
  animation: progressSweep 3.6s ease-in-out infinite;
}
@keyframes progressSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
.journal__back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--rule-bright);
  padding-bottom: 4px;
  transition: color 220ms ease, border-color 220ms ease;
}
.journal__back:hover { color: var(--fg); border-color: var(--accent); }

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 760px) {
  /* Home */
  .rain__col--b, .rain__col--c { display: none; }
  .rain__col--a { left: 0;  width: 46vw; }
  .rain__col--d { right: 0; width: 46vw; }
  .rain__block { font-size: 10.5px; }

  /* Tagline: drop separators on mobile so DATA / AUTOMATION / ARCHITECTS. stays on one line.
     The wider word-spacing keeps the editorial rhythm without horizontal rules pushing past the viewport. */
  .tagline { letter-spacing: 0.28em; word-spacing: 1.1em; }
  .tagline__sep { display: none; }

  /* Wider, shorter mask on mobile — protects the horizontal wordmark zone */
  .rain {
    -webkit-mask-image: radial-gradient(ellipse 110% 35% at 50% 50%, transparent 0%, transparent 42%, rgba(0,0,0,0.5) 62%, black 88%);
            mask-image: radial-gradient(ellipse 110% 35% at 50% 50%, transparent 0%, transparent 42%, rgba(0,0,0,0.5) 62%, black 88%);
  }

  /* About */
  .story__beat { padding: 40px 0; }
  .numbers__grid { grid-template-columns: 1fr; gap: 24px; }
  .numbers__item { padding-top: 18px; }
  .tool { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }

  /* Services */
  .tier__head { grid-template-columns: 1fr; gap: 12px; }
  .tier__caps { grid-template-columns: 1fr; gap: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-info { position: static; }

  .footer, .menu__footer { font-size: 10px; }
  .status { font-size: 10px; }
}

@media (max-width: 460px) {
  .status { display: none; }
}

/* =====================================================
   Reduced motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .rain { opacity: 0.28; }
  .wordmark, .tagline, .journal__h, .journal__sub { opacity: 1; transform: none; }
}
