/* ==========================================================================
   page.css — the marketing front page, in the same visual system as
   yakhnis.com: near-black ground, sky accent, Space Grotesk at variable
   weights, hairline rules instead of boxes, and the aurora behind the mark.

   The rule of this design is restraint: separation comes from 1px lines and
   whitespace, never from filled cards or drop shadows.
   ========================================================================== */

/* --- utilities ----------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip:focus { left: 0; }

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}
.shell--narrow { max-width: 780px; }

@media (max-width: 640px) {
  .shell { padding: 0 1.2rem; }
}

/* Tracked micro-label — the same treatment as the corner marks on yakhnis. */
.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

/* The fixed backdrop sits at the bottom; every band after the hero paints an
   opaque ground over it, so the aurora reads only behind the mark. */
.page canvas#aurora,
.page .grain { z-index: 0; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 27, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}

.brand__mark {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-variation-settings: "wght" 620;
  color: var(--accent);
}

.brand__name {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.topnav { display: flex; gap: 2rem; align-items: center; }

.topnav a {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}
.topnav a:hover { color: var(--accent); }

.navtoggle {
  display: none;
  width: 2.3rem; height: 2.3rem;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
}
.navtoggle__bar,
.navtoggle__bar::before,
.navtoggle__bar::after {
  position: absolute;
  left: 50%;
  width: 0.95rem;
  height: 1px;
  background: var(--fg);
  transform: translateX(-50%);
  content: "";
}
.navtoggle__bar { top: 50%; }
.navtoggle__bar::before { top: -5px; }
.navtoggle__bar::after { top: 5px; }

.topnav--mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 2rem 1.4rem;
  border-top: 1px solid var(--rule);
}
.topnav--mobile a {
  padding: 0.9rem 0;
  font-size: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .topnav:not(.topnav--mobile) { display: none; }
  .navtoggle { display: block; }
  .topnav--mobile:not([hidden]) { display: flex; }
  .brand__name { display: none; }
  .masthead__inner { padding: 0.9rem 1.2rem; }
}

/* --- hero: the yakhnis landing, with a headline under it ----------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 3.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
  text-align: center;
}

.hero__mark { -webkit-user-select: none; user-select: none; }

.wordmark {
  display: flex;
  justify-content: center;
  font-size: clamp(4rem, 17vw, 11rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  cursor: default;
}

.wordmark .ltr {
  display: inline-block;
  font-variation-settings: "wght" 340;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, font-variation-settings;
}
.wordmark .ltr:nth-child(1) { animation-delay: 0.10s; }
.wordmark .ltr:nth-child(2) { animation-delay: 0.22s; }
.wordmark .ltr:nth-child(3) { animation-delay: 0.34s; }
.wordmark .ltr:nth-child(4) { animation-delay: 0.46s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.rule {
  width: 0;
  height: 1px;
  margin: 2.2rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: extend 1.4s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes extend {
  to { width: min(340px, 60vw); }
}

.domain {
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* balances tracking on the last glyph */
  text-transform: lowercase;
  color: var(--dim);
  opacity: 0;
  animation: fade 1.6s 1.2s ease forwards;
}

.hero__pitch {
  opacity: 0;
  animation: fade 1.6s 1.6s ease forwards;
}

.hero h1 {
  font-size: clamp(1.35rem, 3.1vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "wght" 400;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--fg);
}

.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: fade 2s 2.2s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .ltr,
  .rule,
  .domain,
  .hero__pitch,
  .hero__scroll { animation-duration: 0.01s; animation-delay: 0s; }
}

/* --- buttons ------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.6rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(232, 233, 240, 0.2);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}
.btn--primary { color: var(--accent); border-color: rgba(125, 211, 252, 0.45); }

/* --- bands --------------------------------------------------------------- */

.band,
.section {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  scroll-margin-top: 4rem;
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 {
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variation-settings: "wght" 520;
  max-width: 28ch;
}

.lede {
  max-width: 64ch;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.85;
  color: var(--dim);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 2.4rem;
}
.pill-row li {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.45rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* --- thesis + stats ------------------------------------------------------ */

.thesis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule);
}
.thesis h2 {
  font-size: 1.25rem;
  font-variation-settings: "wght" 520;
  margin-bottom: 0.7rem;
}
.thesis p:not(.eyebrow) { color: var(--dim); line-height: 1.8; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}
.stat {
  padding: 2rem 1.5rem 0 0;
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }

.stat__value {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-variation-settings: "wght" 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.25;
}
.stat__label {
  margin-top: 0.7rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.7;
}

@media (max-width: 620px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1.6rem; }
  .stat:last-child { border-bottom: 0; }
}

/* --- capability / track lists -------------------------------------------
   Hairline-separated entries rather than cards. */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}

.card {
  padding: 2.2rem 2rem 2.2rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s;
}

.card h3 {
  font-size: 1rem;
  line-height: 1.4;
  font-variation-settings: "wght" 520;
  margin-bottom: 0.9rem;
  transition: color 0.3s;
}
.card:hover h3 { color: var(--accent); }
.card p { color: var(--dim); line-height: 1.8; font-size: 0.9rem; max-width: 46ch; }

.card__tag {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* --- filters ------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -1.5rem 0 2.5rem;
}

.filter {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: none;
  color: var(--faint);
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.filter:hover { color: var(--fg); }
.filter.is-active { color: var(--accent); border-color: rgba(125, 211, 252, 0.45); }

.track[hidden] { display: none; }
.filters__empty { color: var(--dim); margin-top: 1.5rem; }

/* --- steps --------------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--rule);
}
.step {
  padding: 2.2rem 2rem 2.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.step__num {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.4rem;
}
.step h3 {
  font-size: 0.98rem;
  font-variation-settings: "wght" 520;
  margin-bottom: 0.8rem;
}
.step p { color: var(--dim); line-height: 1.8; font-size: 0.88rem; }

/* --- operating model ----------------------------------------------------- */

.model {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: start;
}

.model h3 {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.8rem;
}

.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding: 0 0 1.3rem 1.7rem;
  margin-bottom: 1.3rem;
  line-height: 1.8;
  color: var(--dim);
  border-bottom: 1px solid var(--rule);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.quotes { position: relative; }

.quote { display: none; }
.quote.is-active { display: block; }
.quote p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  font-variation-settings: "wght" 380;
  color: var(--fg);
}
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.quotes__nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.quotes__nav button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--faint);
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s;
}
.quotes__nav button:hover { color: var(--accent); }
.quotes__count {
  font-size: 0.68rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  letter-spacing: 0.1em;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  padding: 1.6rem 2.5rem 1.6rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 0.98rem;
  font-variation-settings: "wght" 480;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--accent); }

.faq__item p {
  padding: 0 2.5rem 1.8rem 0;
  color: var(--dim);
  line-height: 1.85;
  max-width: 66ch;
}

/* --- contact ------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 4rem;
  align-items: start;
}
.contact__detail p { color: var(--dim); line-height: 1.85; max-width: 44ch; }

.deflist {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
}
.deflist dt {
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-top: 1.2rem;
}
.deflist dd { color: var(--fg); padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); margin-top: 0.5rem; }
.deflist dd:last-child { border-bottom: 0; }
.deflist a { color: var(--accent); text-decoration: none; }
.deflist a:hover { text-decoration: underline; }

.contact__form { padding: 0; }

.field { margin-bottom: 1.6rem; }
.field label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.7rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.94rem;
  resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #1b1b26; color: var(--fg); }
.field textarea { border: 1px solid var(--rule); padding: 0.8rem; }

.field__note {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--faint);
}

/* --- footer -------------------------------------------------------------- */

.sitefoot {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 3.5rem;
}
.sitefoot__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.sitefoot__legal {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.9;
  max-width: 52ch;
}
.sitefoot__links { display: flex; gap: 2rem; }
.sitefoot__links a {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s;
}
.sitefoot__links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .sitefoot__inner { padding: 0 1.2rem; }
}
