/* ============================================================
   CX: the live site, re-pointed at client work. Loads after style.css and
   changes only what the new words need. The warm accent leads with
   "Tell us about your project"; the $59 plan stays as the engine's open beta.
   ============================================================ */

/* ---------- nav: Sign in is a quiet text link; "Tell us about your project" is the warm button ---------- */
.nav-links .nav-signin { color: #9fbcc6; }
.nav-links .nav-cta.nav-brief {
  color: #1a1206;
  background: linear-gradient(180deg, #ffd796, var(--warm));
  border: 0;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255,195,107,0.35);
  text-shadow: none;
}
.nav-links .nav-cta.nav-brief:hover {
  color: #1a1206;
  background: linear-gradient(180deg, #ffe2b0, #ffcf86);
  box-shadow: 0 0 34px rgba(255,195,107,0.55);
  text-shadow: none;
}

/* the full row of links needs about 1400px; from the hamburger breakpoint up to there, close it up */
@media (min-width: 1261px) and (max-width: 1420px) {
  .nav-links { gap: 14px; }
  .nav-links .nav-cta.nav-brief { padding: 9px 16px; }
}

/* ---------- hero: one sentence and two buttons, floating in open space. No panel, no ruler.
   js/main.js seats the planet clear of the type (initPlanetSeat reads --seat-top): it rises
   from the bottom of the screen and the copy sits above its horizon. It pans back up to
   centre as the section after #sum scrolls in. ---------- */
#hero { --seat-top: 0.50; }      /* the planet's top edge, as a fraction of the screen height */
#sum  { --seat-top: 0.52; }
.hx.cx-hx {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: calc(var(--bar-h, 0px) + 84px) clamp(20px, 5.5vw, 104px) calc((1 - var(--seat-top)) * 100vh + 12px);
  padding-bottom: calc((1 - var(--seat-top)) * 100svh + 12px);
}
.cx-hx .hx-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.cx-hx .hx-title { align-items: center; width: auto; }
.cx-hx .hx-l2 {
  margin: 0 0 0.06em;
  font-size: clamp(40px, 8.6vw, 190px);
  font-size: clamp(40px, min(8.6vw, 16svh), 190px);   /* one line: about 9.3 font-sizes wide */
  transform-origin: 50% 85%;
}
.cx-hx .hx-l3 {
  margin-top: 0.3em;
  font-size: clamp(21px, 3.5vw, 76px);
  font-size: clamp(21px, min(3.5vw, 6.5svh), 76px);
}
.cx-hx .hx-cta { justify-content: center; margin-top: clamp(22px, 4.2vh, 44px); }

/* short, wide screens: seat the planet a little lower so the copy keeps its room */
@media (max-height: 800px) and (min-aspect-ratio: 3/2) {
  #hero { --seat-top: 0.57; }
  #sum  { --seat-top: 0.57; }
}

/* phones: the title and the promise each break in two */
@media (max-width: 720px) {
  #hero { --seat-top: 0.56; }
  .cx-hx .hx-copy { width: 100%; }
  .cx-hx .hx-pp, .cx-hx .hx-l3 em { display: block; white-space: nowrap; }
  .cx-hx .hx-l2 { font-size: clamp(40px, 13.4vw, 96px); white-space: normal; }
  .cx-hx .hx-l3 { font-size: clamp(21px, 6.6vw, 46px); }
  .cx-hx .hx-cta { width: 100%; }
}

/* ---------- the sum: what an engagement is made of, as one line of addition ---------- */
.sect.cx-sum-sect {
  --hx-ink: #020507;
  --hx-halo: 0 0 1px rgba(2,5,7,0.95), 0 1px 3px rgba(2,5,7,0.9), 0 0 10px rgba(2,5,7,0.75), 0 0 22px rgba(2,5,7,0.45);
  --hx-halo-sm: 0 0 2px var(--hx-ink), 0 0 4px var(--hx-ink), 0 0 9px rgba(2,5,7,0.95), 0 0 16px rgba(2,5,7,0.8);
  /* one full screen: the line floats in the open space above the horizon, as the hero's copy
     does, and has left the screen before the planet pans up behind the next section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bar-h, 0px) + 100px) clamp(20px, 5.5vw, 104px) calc((1 - var(--seat-top)) * 100vh + 12px);
  padding-bottom: calc((1 - var(--seat-top)) * 100svh + 12px);
}
.cx-terms {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: baseline;
  gap: 0 clamp(20px, 2.2vw, 44px);
  font-family: var(--display);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.sect.visible .cx-terms { opacity: 1; transform: none; }
.cx-terms li {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "op term" ".  note";
  align-items: baseline;
  gap: 8px clamp(20px, 2.2vw, 44px);
}
.cx-terms li:first-child { grid-template-columns: auto; grid-template-areas: "term" "note"; }
.cx-terms i {
  grid-area: op;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 31px);   /* a little under the terms, so it never sets the row's height */
  line-height: 1.1;
  color: var(--holo);
  text-shadow: var(--hx-halo);
}
.cx-terms b {
  grid-area: term;
  font-size: clamp(22px, 1.75vw, 38px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #dff8ff;
  text-shadow: var(--hx-halo), 0 0 22px rgba(123,228,255,0.3);
}
.cx-terms small {
  grid-area: note;
  font-family: var(--mono);
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #cfe9f2;
  text-shadow: var(--hx-halo-sm);
}
.cx-terms li.cx-out i,
.cx-terms li.cx-out b { color: var(--warm); }
.cx-terms li.cx-out b { text-shadow: var(--hx-halo), 0 0 26px rgba(255,195,107,0.35); }

/* narrower screens: the same sum set as a column, with a rule above the result */
@media (max-width: 1199px) {
  .cx-terms { flex-direction: column; align-items: stretch; gap: clamp(12px, 2.4vh, 20px) 0; }
  .cx-terms li,
  .cx-terms li:first-child { grid-template-columns: clamp(22px, 5.6vw, 40px) auto; grid-template-areas: "op term" ".  note"; gap: 6px 10px; }
  #sum { --seat-top: 0.60; }
  .cx-terms i { font-size: clamp(20px, 5.1vw, 36px); }
  .cx-terms b { font-size: clamp(24px, 6.2vw, 44px); }
  .cx-terms small { font-size: clamp(10.5px, 2.6vw, 13px); }
  .cx-terms li.cx-out {
    margin-top: 4px;
    padding-top: clamp(14px, 2.6vh, 22px);
    border-top: 1px solid rgba(255,195,107,0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-terms { transition: none; }
}

/* ---------- footer links ---------- */
#start footer a { color: inherit; pointer-events: auto; position: relative; }

/* ---------- sectors: links to the example studies ---------- */
.cx-examples {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cx-examples a { color: var(--holo); text-decoration: none; }
.cx-examples a:hover { text-shadow: 0 0 10px var(--holo-soft); }

/* ---------- release bar: AURA teal, from the logo (#0093a3). Gold now means one thing on this site,
   the consulting buttons; the bar is the open beta, a different offer ---------- */
.release-bar {
  --tw: #0aa3b3;
  --tw-soft: rgba(10,163,179,0.45);
  background:
    radial-gradient(50% 300% at 50% 0%, rgba(0,147,163,0.42), transparent 70%),
    linear-gradient(90deg, #020b0d, #05252a 50%, #020b0d);
}
.release-bar::after { background: linear-gradient(90deg, transparent, rgba(38,196,210,0.85) 50%, transparent); }
.release-bar::before { background: linear-gradient(90deg, transparent, rgba(160,240,248,0.10), transparent); }
.release-bar .rb-tag {
  background: var(--tw);
  color: #021417;
  animation: cx-tw-glow 2.4s ease-in-out infinite;
}
@keyframes cx-tw-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(10,163,179,0.5); }
  50%      { box-shadow: 0 0 22px rgba(10,163,179,0.95); }
}
.release-bar .rb-text strong { background: linear-gradient(90deg, #26c4d2, #e2fbff 55%, #26c4d2); -webkit-background-clip: text; background-clip: text; }
.release-bar .rb-cta {
  background: linear-gradient(180deg, #8fe6ee, var(--tw));
  color: #021417;
  box-shadow: 0 0 20px var(--tw-soft), inset 0 0 6px rgba(255,255,255,0.45);
}
.release-bar:hover .rb-cta { box-shadow: 0 0 34px rgba(10,163,179,0.75), inset 0 0 6px rgba(255,255,255,0.5); }
.release-bar:focus-visible { outline-color: var(--tw); }

/* the open-beta pane takes the same AURA teal, so gold stays the consulting call */
#pricing .btn.warm.dl-cta {
  color: #021417;
  background: linear-gradient(180deg, #8fe6ee, #0aa3b3);
  box-shadow: 0 0 22px rgba(10,163,179,0.45), inset 0 0 8px rgba(255,255,255,0.4);
}
#pricing .btn.warm.dl-cta:hover { box-shadow: 0 0 40px rgba(10,163,179,0.7), inset 0 0 10px rgba(255,255,255,0.5); }
#pricing .price-badge { border-color: rgba(38,196,210,0.5); color: #5fd6e1; text-shadow: 0 0 8px rgba(10,163,179,0.45); }

/* ---------- "Tell us about your project" (js/brief.js): a short form in the download dialog's card ---------- */
.bf-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.bf-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.bf-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.bf-field.half { grid-column: auto; }
.bf-field span { font-size: 14px; font-weight: 500; color: #e6f7fc; }
.bf-field i { font-style: normal; font-weight: 400; color: #8fb0bd; }
.bf-field input,
.bf-field textarea,
.bf-copy {
  width: 100%;
  font: 16px/1.45 var(--sans);   /* 16px: phones zoom the page on smaller inputs */
  color: #f2fbff;
  background: rgba(123,228,255,0.06);
  border: 1px solid rgba(123,228,255,0.3);
  border-radius: var(--r-sm);
  padding: 11px 12px;
}
.bf-field textarea, .bf-copy { resize: vertical; min-height: 92px; }
.bf-field input::placeholder, .bf-field textarea::placeholder { color: #7f9fac; opacity: 1; }
.bf-field input:focus-visible, .bf-field textarea:focus-visible, .bf-copy:focus-visible {
  outline: 2px solid var(--holo);
  outline-offset: 1px;
  border-color: var(--holo);
}
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-form > .btn, .bf-form > .dl-next, .bf-err { grid-column: 1 / -1; }
.bf-card button.btn { border: 0; cursor: pointer; }
.bf-card button.btn.ghost { border: 1px solid var(--holo-faint); }
.bf-card p.bf-err { margin: 0; font-size: 14px; color: #ffb4a8; }
.bf-form > .dl-next { margin: 0; }
.bf-copy { display: block; margin: 0 0 14px; font-size: 14px; }
@media (max-width: 520px) {
  .bf-field.half { grid-column: 1 / -1; }
  .bf-card { padding: 26px 18px 20px; }
}

/* "What we deliver" on phones: style.css moves the copy below the image (position: static),
   but the image's dark gradient (.new-hero::after, inset: 0) still covers the whole block and
   paints over the body text at 98% black. Lift the copy above it. */
@media (max-width: 720px) {
  .new-hero-copy { position: relative; z-index: 1; left: 0; right: 0; bottom: auto; }  /* relative re-applies the desktop 52px offsets: zero them */
}

/* short phones (an iPhone SE is 375x667): the copy needs more of the screen, so the planet sits lower */
@media (max-width: 720px) and (max-height: 720px) {
  #hero { --seat-top: 0.68; }
}

/* the "join the team" bar on narrow phones: the tag and the button say it; the sentence would be cut off */
@media (max-width: 480px) {
  .release-bar .rb-text { display: none; }
}

/* ---------- closing section (#pricing): one last call. The engagement is the only card: the pitch,
   the fixed fee and the gold button on the left, what you get on the right. The open beta is a slim
   teal strip under it, so the $59 seat does not sit at equal weight beside the consulting ask, and
   no heading carries the price (Arthur, 2026-11-27). #studio is the card, #pricing the section. ---------- */
.sect.cx-close-sect { display: block; padding: 96px clamp(16px, 4vw, 48px) 104px; }
.cx-close { width: min(1000px, 100%); margin: 0 auto; }
.frame.cx-solo {
  max-width: none;
  margin: 0;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  column-gap: 52px;
  align-items: center;
  background: linear-gradient(168deg, rgba(10,14,17,0.88), rgba(4,6,8,0.92));
  border-top-color: rgba(255,195,107,0.55);
}
.cx-way-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 14px;
}
.cx-solo h3 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: #f2fbff;
  margin: 0 0 14px;
}
.cx-way-what { font-size: 17px; line-height: 1.55; color: #b8dbe6; margin: 0 0 22px; }
.cx-way-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--holo-ghost);
  border-bottom: 1px solid var(--holo-ghost);
}
.cx-way-n {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  color: var(--warm);
  text-shadow: 0 0 22px rgba(255,195,107,0.35);
}
.cx-way-u {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9c6d0;
}
.cx-solo .btn { display: block; text-align: center; white-space: normal; padding: 15px 20px; }
.cx-way-fine { font-size: 13px; line-height: 1.5; color: #8fb0bd; margin: 14px 0 0; }
.cx-way-list { list-style: none; margin: 0; padding: 0; }
.cx-way-list li {
  position: relative;
  padding: 15px 0 15px 28px;
  font-size: 16px;
  line-height: 1.45;
  color: #d5ebf2;
  border-bottom: 1px solid var(--holo-ghost);
}
.cx-way-list li:first-child { border-top: 1px solid var(--holo-ghost); }
.cx-way-list li::before {      /* a tick */
  content: '';
  position: absolute;
  left: 3px;
  top: 21px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--warm);
  border-bottom: 2px solid var(--warm);
  transform: rotate(-45deg);
}
.frame.cx-beta-strip {
  max-width: none;
  margin: 16px 0 0;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  background: linear-gradient(168deg, rgba(8,12,15,0.8), rgba(4,6,8,0.86));
  border-color: rgba(38,196,210,0.26);
  border-top-color: rgba(38,196,210,0.4);
  box-shadow: none;
}
.frame.cx-beta-strip::before, .frame.cx-beta-strip::after { display: none; }
.cx-beta-strip .cx-way-tag { color: #5fd6e1; margin-bottom: 5px; font-size: 10px; }
.cx-beta-strip p { margin: 0; font-size: 15px; line-height: 1.5; color: #b8dbe6; }
.cx-beta-strip p strong { color: #f2fbff; font-weight: 500; }
.cx-beta-strip .btn { flex: none; padding: 11px 22px; font-size: 12px; }
@media (max-width: 860px) {
  .sect.cx-close-sect { padding: 72px 16px 84px; }
  .frame.cx-solo { grid-template-columns: minmax(0, 1fr); row-gap: 26px; padding: 28px 22px 26px; }
  .cx-way-n { font-size: 38px; }
  .frame.cx-beta-strip { flex-direction: column; align-items: stretch; padding: 18px 22px 20px; }
  .cx-beta-strip .btn { white-space: normal; text-align: center; }
}

/* the bottom HUD bar (sector, lat/lon, zoom, layers, UTC) is gone: Arthur, 11-27, "not needed".
   main.js still writes to its spans, so the markup stays and only the bar is hidden. */
#telemetry { display: none !important; }
