/* ============================================================
   URIEL — Visual Prototype
   Young Ethical Intelligence, Inc.
   Design system inherited from youngethicalintelligence.com
   ============================================================ */

:root {
  --ink:      #0b0f14;
  --surface:  #111823;
  --platinum: #f0f4fa;
  --silver:   #bacadd;
  --steel:    #8a9db4;
  --sapphire: #7ab0ee;
  --on-light: #101720;
  --hairline: rgb(40, 50, 60);
  --wash:     rgba(255, 255, 255, 0.015);

  --container: 1152px;
  --radius: 4px;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --subhead: "Newsreader", "Bodoni Moda", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sec-pad: 128px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(111, 160, 216, 0.28); color: var(--platinum); }

a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--platinum);
  margin: 0;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(28px, 3.3vw, 43px);
  line-height: 1.16;
}

h3 {
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--steel);
  font-weight: 400;
  margin: 0 0 24px;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--silver);
  max-width: 60ch;
}

.small { font-size: 13px; line-height: 1.6; }
.source { font-size: 12px; line-height: 1.5; color: var(--steel); font-style: italic; margin-top: 10px; }
.sapphire { color: var(--sapphire); }
.platinum { color: var(--platinum); }
.steel { color: var(--steel); }

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--sapphire);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--sec-pad) 0; }
.section--tight { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.grid { display: grid; gap: 32px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0b0f14;
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-lockup .brand-logo { height: 22px; width: auto; display: block; color: var(--platinum); }

.brand-word {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--platinum);
  font-weight: 500;
  text-indent: 0.32em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 14px;
  line-height: 20px;
  color: var(--silver);
  transition: color 0.28s ease;
  white-space: nowrap;
}

.site-nav a:hover, .site-nav a.is-active { color: var(--sapphire); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--platinum);
  color: var(--on-light);
  border-color: var(--platinum);
}
.btn--primary:hover { background: #fff; border-color: #fff; }

.btn--secondary {
  background: transparent;
  color: var(--platinum);
  border-color: var(--hairline);
}
.btn--secondary:hover { border-color: var(--silver); color: #fff; }

.btn--lg { font-size: 16px; padding: 17px 30px; }

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--hairline);
  background: var(--wash);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.35s ease;
}
.card:hover { border-color: rgba(125, 143, 164, 0.55); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PAGE 1 — THE GATE
   ============================================================ */

.gate {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 42%, #10161f 0%, #0b0f14 58%, #070a0e 100%);
}

.keyfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.keyfield span {
  position: absolute;
  font-family: var(--sans);
  font-size: 13.2px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  font-variant: small-caps;
  color: var(--steel);
  color: color-mix(in srgb, var(--platinum) calc(var(--lit, 0) * 100%), var(--steel));
  opacity: calc(var(--base, 0.70) + (1 - var(--base, 0.70)) * var(--lit, 0));
  text-shadow: 0 0 calc(var(--lit, 0) * 18px) rgba(111, 160, 216, calc(var(--lit, 0) * 0.55));
  white-space: nowrap;
  pointer-events: auto;
  transition: color 0.32s ease, opacity 0.32s ease, text-shadow 0.32s ease;
  will-change: transform;
}

.keyfield span:hover {
  --lit: 1;
  color: var(--platinum);
}

.gate-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(58% 48% at 50% 44%, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.72) 40%, rgba(11, 15, 20, 0) 78%);
}

.gate-inner {
  position: relative;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  padding: 96px 32px 120px;
  max-width: 760px;
  width: 100%;
}

.mark-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.gate-lockup {
  width: min(380px, 74vw);
  height: auto;
  color: var(--platinum);
  opacity: 0.03;
  filter: blur(18px);
  transform: scale(1.06);
  transition:
    opacity 2.6s cubic-bezier(0.16, 0.8, 0.3, 1),
    filter 2.8s cubic-bezier(0.16, 0.8, 0.3, 1),
    transform 3s cubic-bezier(0.16, 0.8, 0.3, 1);
}

.gate.is-revealed .gate-lockup {
  opacity: 1;
  filter: blur(0) drop-shadow(0 1px 22px rgba(184, 208, 232, 0.13));
  transform: none;
}

.footer-logo {
  height: 20px;
  width: auto;
  color: var(--steel);
  display: inline-block;
  vertical-align: middle;
}

.gate-tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.4px;
  line-height: 24.2px;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin: 0 auto;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.4s ease 2.4s, transform 1.4s ease 2.4s;
}

.gate.is-revealed .gate-tagline { opacity: 1; transform: none; }

.gate-inner a { pointer-events: auto; }

.gate-enter {
  display: inline-block;
  margin-top: 102px;
  font-family: var(--sans);
  font-size: 15.2px;
  font-weight: 600;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  padding-bottom: 12px;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.4s ease 3.1s, transform 1.4s ease 3.1s, filter 0.45s ease;

  /* polished chrome, cut from the same gradient as the lockup */
  color: var(--platinum);
  background-image: linear-gradient(180deg,
    #ffffff 0%, #e8f0f8 14%, #bdcedf 33%, #8195aa 47%, #4e6076 50%,
    #9db1c6 55%, #dfeaf5 74%, #ffffff 88%, #a9bccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 10px rgba(178, 205, 234, 0.22));
}

.gate.is-revealed .gate-enter { opacity: 1; transform: none; }

.gate-enter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(90deg,
    rgba(184, 205, 228, 0) 0%, rgba(226, 238, 250, 0.85) 22%, #ffffff 50%,
    rgba(226, 238, 250, 0.85) 78%, rgba(184, 205, 228, 0) 100%);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gate-enter:hover {
  background-image: linear-gradient(180deg,
    #ffffff 0%, #eaf4ff 14%, #b7d2f2 33%, #7ab0ee 50%, #4d86c6 53%,
    #9cc6f4 58%, #e2effd 76%, #ffffff 90%, #9dc2ee 100%);
  filter: drop-shadow(0 1px 16px rgba(122, 176, 238, 0.5));
}

.gate-enter:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .gate-enter::after { transition: none; }
}

.gate-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.1px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0;
  transition: opacity 1.6s ease 3.4s;
}
.gate.is-revealed .gate-foot { opacity: 1; }

.gate-foot span {
  color: rgba(222, 233, 245, 0.95);
  text-shadow: 0 0 22px rgba(111, 160, 216, 0.28);
  transition: color 0.45s ease, text-shadow 0.45s ease;
}
.gate-foot span:hover {
  color: var(--platinum);
  text-shadow: 0 0 26px rgba(111, 160, 216, 0.55);
}

/* ============================================================
   PAGE 2 — THRESHOLD
   ============================================================ */

.threshold-hero {
  text-align: center;
  padding: 120px 0 88px;
}
.threshold-hero h1 { max-width: 17ch; margin: 0 auto 32px; }
.threshold-hero .lede { margin: 0 auto; }

.doors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.doors > * { grid-column: span 2; }

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  padding: 40px 32px 32px;
  min-height: 330px;
  transition: background-color 0.4s ease;
}

.door:hover { background: #0e141c; }

.door__inner { display: flex; flex-direction: column; flex: 1; }

.door__num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin-bottom: 28px;
}

.door__name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--platinum);
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  opacity: 0.88;
  transition: opacity 0.4s ease;
}

.door__pun {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--sapphire);
  opacity: 0.78;
  margin: 0 0 20px;
  transition: opacity 0.4s ease;
}

.door__stressor {
  font-size: 14px;
  line-height: 22px;
  color: var(--silver);
  opacity: 0.72;
  margin: 0 0 28px;
  max-width: 32ch;
  transition: opacity 0.4s ease;
}

.door:hover .door__name,
.door:hover .door__pun,
.door:hover .door__stressor { opacity: 1; }

.door__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.door__enter { color: var(--platinum); transition: color 0.35s ease; }
.door:hover .door__enter { color: var(--sapphire); }
.door__tag { color: var(--steel); letter-spacing: 0.14em; text-transform: none; font-size: 12px; font-style: italic; }

a.door:hover { border-color: transparent; }

/* ============================================================
   PAGE 3 — ONCOLOGY
   ============================================================ */

.page-hero {
  padding: 104px 0 96px;
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1 { max-width: 16ch; margin-bottom: 28px; }

.stat {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.stat:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--platinum);
  margin: 0 0 12px;
}

.stat__cap { font-size: 15px; line-height: 23px; color: var(--silver); margin: 0 0 8px; max-width: 40ch; }

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.track {
  background: var(--ink);
  padding: 44px 40px;
}
.track h3 { margin-bottom: 22px; }
.track__quote {
  font-size: 16px;
  line-height: 26px;
  color: var(--silver);
  margin: 0 0 28px;
}

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 24px;
  color: var(--silver);
  margin-bottom: 16px;
}
.list li:last-child { margin-bottom: 0; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--sapphire);
}

/* Breathing loop */
.breath {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.breath__diagram { width: min(420px, 92vw); height: auto; margin-bottom: 48px; }
.breath__label--strong { fill: var(--silver) !important; }
.breath__label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--steel);
  font-family: var(--sans);
}
.breath blockquote { margin: 0 auto; max-width: 22ch; }
.breath__attrib {
  margin-top: 32px;
  font-size: 13px;
  line-height: 21px;
  color: var(--steel);
  max-width: 46ch;
}

/* Comparison columns */
.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.compare__col {
  padding: 40px 36px;
  border-right: 1px solid var(--hairline);
}
.compare__col:first-child { padding-left: 0; }
.compare__col:last-child { border-right: 0; padding-right: 0; }
.compare__col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 24px;
  line-height: 1.5;
}
.compare__col--uriel h4 { color: var(--sapphire); }
.compare__col p { font-size: 15px; line-height: 24px; }

.cta {
  text-align: center;
  padding: 128px 0;
}
.cta h2 { max-width: 18ch; margin: 0 auto 32px; }

/* ============================================================
   THE SHIFT — before/after contrast + mechanism
   ============================================================ */

.swap { margin-top: 56px; border-top: 1px solid var(--hairline); }
.swap__head {
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 16px 0 18px;
}
.swap__head span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.swap__head span:last-child { color: var(--sapphire); }
.swap__row {
  display: grid;
  grid-template-columns: 22% minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.swap__k {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.32;
  color: var(--platinum);
  margin: 0;
}
.swap__cell p { font-size: 15px; line-height: 24px; color: var(--steel); margin: 0; }
.swap__cell--u p { color: var(--silver); }
.swap__lab { display: none; }

.mech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
  margin-top: 56px;
}
.mech__step { padding: 36px 32px; border-right: 1px solid var(--hairline); }
.mech__step:first-child { padding-left: 0; }
.mech__step:last-child { border-right: 0; padding-right: 0; }
.mech__n {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sapphire);
  margin: 0;
}
.mech__h {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
  color: var(--platinum);
  margin: 14px 0 12px;
}
.mech__step p { font-size: 14.5px; line-height: 23px; margin: 0; }
.mech__step .source { margin-top: 14px; }

.gain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
}
.gain__item h4 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.28;
  color: var(--platinum);
  margin: 0 0 12px;
  font-weight: 500;
}
.gain__item p { font-size: 15px; line-height: 24px; margin: 0; }
.gain__item .source { margin-top: 12px; }

/* inline prose links */
a.inline-link {
  color: var(--sapphire);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 176, 238, 0.34);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
a.inline-link:hover { color: var(--platinum); border-bottom-color: var(--platinum); }


@media (max-width: 860px) {
  .mech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mech__step { padding: 32px 24px; }
  .mech__step:nth-child(2n) { border-right: 0; padding-right: 0; }
  .mech__step:nth-child(2n+1) { padding-left: 0; }
  .mech__step:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .gain { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .swap__head { display: none; }
  .swap__row { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .swap__k { font-size: 21px; }
  .swap__lab {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 8px;
  }
  .swap__cell--u .swap__lab { color: var(--sapphire); }
  .mech { grid-template-columns: 1fr; }
  .mech__step { padding: 30px 0; border-right: 0; }
  .mech__step:nth-child(n+2) { border-top: 1px solid var(--hairline); }
}

/* ============================================================
   PAGE 4 — SCIENCE
   ============================================================ */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.research-card--wide { grid-column: 1 / -1; }
.research-card__src {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.7;
}
.research-card__src a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.research-card__src a:hover { color: var(--sapphire); border-bottom-color: rgba(122, 176, 238, 0.4); }
.research-card__meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 20px;
  line-height: 1.7;
}
.research-card p { font-size: 15px; line-height: 25px; }
.research-card .figure {
  font-family: var(--serif);
  color: var(--platinum);
  font-size: 15px;
  font-style: italic;
}

/* Ring diagram */
.rhsm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.ring-stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.ring-svg { width: 100%; height: auto; overflow: visible; }

.ring-node { cursor: pointer; }
.ring-node circle {
  fill: var(--ink);
  stroke: var(--hairline);
  stroke-width: 1;
  transition: stroke 0.35s ease, fill 0.35s ease;
}
.ring-node text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--steel);
  text-anchor: middle;
  transition: fill 0.35s ease;
  pointer-events: none;
}
.ring-node:hover circle { stroke: var(--silver); }
.ring-node:hover text { fill: var(--silver); }
.ring-node.is-active circle { stroke: var(--sapphire); fill: rgba(111,160,216,0.08); }
.ring-node.is-active text { fill: var(--sapphire); }

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  text-align: center;
  pointer-events: none;
}
.ring-center__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  color: var(--platinum);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.ring-center__body {
  font-size: 12px;
  line-height: 18px;
  color: var(--silver);
  margin: 0;
}
.ring-center.is-swapping { opacity: 0; }
.ring-center { transition: opacity 0.28s ease; }

/* Construct hierarchy */
.hier { margin: 0; padding: 0; list-style: none; }
.hier__item { border-top: 1px solid var(--hairline); padding: 26px 0; }
.hier__item:last-child { border-bottom: 1px solid var(--hairline); }
.hier__label {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--platinum);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.hier__item p { font-size: 15px; line-height: 24px; margin: 0; max-width: 68ch; }
.hier--depth1 { padding-left: 32px; }
.hier--depth2 { padding-left: 64px; }
.hier--depth1 .hier__label { font-size: 20px; }
.hier--depth2 .hier__label { font-size: 18px; }

.citation {
  border: 1px solid var(--hairline);
  background: var(--wash);
  border-radius: var(--radius);
  border-left: 2px solid var(--sapphire);
  padding: 36px 40px;
}
.citation__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--platinum);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 44ch;
}
.citation p { font-size: 15px; line-height: 24px; }

.claims {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.claims h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 18px;
}
.claims p { font-size: 15px; line-height: 24px; }

/* ============================================================
   PAGE 5 — LEADERSHIP
   ============================================================ */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
  align-items: start;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portrait svg { width: 100%; height: 100%; }

.founder__creds {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.founder__creds h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 18px;
}
.cred-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.cred-list li {
  font-size: 14px;
  line-height: 22px;
  color: var(--silver);
  margin-bottom: 10px;
  break-inside: avoid;
}

.role {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin: 0 0 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.team-card .portrait { margin-bottom: 24px; }
.team-card h3 { margin-bottom: 10px; }
.team-card p { font-size: 14px; line-height: 23px; }

/* Leadership — floated portraits with wrapped bio text */
.person {
  overflow: hidden;
  max-width: 76ch;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.person:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.person__portrait {
  float: left;
  display: block;
  width: 132px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  margin: 4px 28px 16px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: none;
}
.person--lead .person__portrait { width: 168px; }
.person__portrait--mono { overflow: hidden; }
.person__portrait--mono svg { display: block; width: 100%; height: 100%; }

.person h2 { margin-bottom: 14px; }
.person h3 { margin-bottom: 10px; }
.person p { max-width: none; }
.person p:last-child { margin-bottom: 0; }
.person .founder__creds { clear: left; }

@media (max-width: 720px) {
  .person { padding-top: 32px; margin-top: 32px; }
  .person__portrait { width: 96px; margin: 3px 18px 12px 0; }
  .person--lead .person__portrait { width: 112px; }
}


.token {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sapphire);
  border: 1px dashed rgba(111, 160, 216, 0.5);
  border-radius: var(--radius);
  padding: 3px 8px;
  white-space: nowrap;
}

.advisory {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 13px;
  color: var(--steel);
  line-height: 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 56px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer p { font-size: 13px; line-height: 22px; color: var(--steel); margin: 0; max-width: 44ch; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--steel); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--sapphire); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  :root { --sec-pad: 104px; }
  .site-nav { gap: 22px; }
  .split { gap: 48px; }
  .rhsm { gap: 48px; }
  .founder { gap: 48px; }
}

@media (max-width: 980px) {
  :root { --sec-pad: 88px; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors > * { grid-column: span 1 !important; }
  .research-grid { grid-template-columns: minmax(0, 1fr); }
  .rhsm { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 32px 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; width: 100%; border-bottom: 1px solid var(--hairline); font-size: 14px; }
  .site-nav a.btn { border: 1px solid var(--hairline); padding: 14px 20px; width: auto; margin-top: 20px; }
  .nav-toggle { display: inline-block; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 340px; }
  .claims { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare__col { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 32px 0; }
  .compare__col:last-child { border-bottom: 0; }
  .compare__col:first-child { padding-top: 32px; }
}

@media (max-width: 720px) {
  :root { --sec-pad: 72px; }
  .gate-lockup { width: min(260px, 78vw); }
  .container { padding: 0 20px; }
  body { font-size: 15px; }
  h1 { font-size: clamp(32px, 8.6vw, 40px); line-height: 1.08; }
  h2 { font-size: clamp(25px, 6.6vw, 32px); }
  .lede { font-size: 16px; }

  .site-header .container { height: 62px; }
  .site-nav { top: 62px; padding: 8px 20px 24px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .doors > * { grid-column: span 1 !important; }
  .door { min-height: 0; padding: 32px 24px 24px; }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .track { padding: 36px 24px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cred-list { columns: 1; }
  .threshold-hero { padding: 80px 0 64px; }
  .page-hero { padding: 72px 0 64px; }
  .cta { padding: 88px 0; }
  .citation { padding: 28px 24px; }
  .card { padding: 26px 22px; }
  .hier--depth1 { padding-left: 18px; }
  .hier--depth2 { padding-left: 36px; }
  .gate-foot { flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11px; bottom: 20px; }
  .gate-inner { padding: 80px 20px 110px; }
  .ring-node text { font-size: 15px; letter-spacing: 0.06em; }
  .team-card .portrait { max-width: 280px; }
  .ring-center { width: 52%; }
  .ring-center__title { font-size: 15px; }
  .ring-center__body { font-size: 11px; line-height: 16px; }
  .site-footer .container { flex-direction: column; gap: 24px; }
}

/* Breathing loop animation (oncology) */
.breath-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathePulse 6s ease-in-out infinite;
}
@keyframes breathePulse {
  0%, 100% { transform: scale(0.93); opacity: 0.55; }
  50%      { transform: scale(1.07); opacity: 1; }
}
.breath-trace { stroke-dasharray: 74 420; stroke-dashoffset: 420; opacity: 0; }
.breath-trace--in  { animation: breatheTrace 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.breath-trace--out { animation: breatheTrace 6s cubic-bezier(0.45, 0, 0.55, 1) 3s infinite; }
@keyframes breatheTrace {
  0%   { stroke-dashoffset: 420; opacity: 0; }
  6%   { opacity: 1; }
  44%  { stroke-dashoffset: -74; opacity: 1; }
  50%  { stroke-dashoffset: -74; opacity: 0; }
  100% { stroke-dashoffset: -74; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .breath-pulse, .breath-trace { animation: none; }
  .breath-trace { opacity: 0.9; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ============================================================
   MEDIA — full-bleed bands, scrims, video
   ============================================================ */

.band {
  position: relative;
  display: block;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  border-radius: 0;
}

.band img,
.band video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  max-width: none;
}

/* bottom-to-top dissolve into --ink, plus a light top feather */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top,
      #0b0f14 0%,
      rgba(11, 15, 20, 0.86) 14%,
      rgba(11, 15, 20, 0.34) 42%,
      rgba(11, 15, 20, 0.10) 70%,
      rgba(11, 15, 20, 0.42) 100%);
}

/* an inline image inside a content column (not full bleed) */
.figure-inline {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.figure-inline img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.figure-inline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top,
    #0b0f14 0%,
    rgba(11, 15, 20, 0.72) 18%,
    rgba(11, 15, 20, 0.18) 52%,
    rgba(11, 15, 20, 0) 84%);
}

.band-video .band__still { display: none; }

@media (max-width: 720px) {
  .band { height: 42vh; }
}

@media (prefers-reduced-motion: reduce) {
  .band-video video { display: none; }
  .band-video .band__still { display: block; }
}

/* Gate ambient video layer */
.gate-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.gate-video video,
.gate-video .gate-video__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.55) contrast(0.95);
}
.gate-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(62% 52% at 50% 44%, rgba(11,15,20,0.92) 0%, rgba(11,15,20,0.66) 46%, rgba(11,15,20,0.52) 100%),
    linear-gradient(to top, #0b0f14 0%, rgba(11,15,20,0.32) 46%, rgba(11,15,20,0.68) 100%);
}
.gate-video .gate-video__still { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gate-video video { display: none; }
  .gate-video .gate-video__still { display: block; }
}

/* ============================================================
   PAGE 6 — FAQ
   ============================================================ */

.faq-section { padding: 88px 0; }
.faq-section + .faq-section { border-top: 1px solid var(--hairline); }
.faq-section .eyebrow { margin-bottom: 40px; }

.faq-list { border-top: 1px solid var(--hairline); }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin: 0;
  padding: 26px 0;
  background: none;
  border: 0;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--platinum);
  letter-spacing: -0.005em;
  transition: color 0.3s ease;
}
.faq-q:hover { color: var(--sapphire); }
.faq-item.is-open .faq-q { color: var(--sapphire); }
.faq-q:focus-visible {
  outline: 1px solid var(--sapphire);
  outline-offset: 4px;
}
.faq-q em { font-style: italic; color: inherit; }
.faq-q > span { color: inherit; }

.faq-q__sign {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 6px;
}
.faq-q__sign::before,
.faq-q__sign::after {
  content: "";
  position: absolute;
  background: var(--steel);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s ease;
}
.faq-q__sign::before { left: 0; right: 0; top: 6px; height: 1px; }
.faq-q__sign::after  { top: 0; bottom: 0; left: 6px; width: 1px; }
.faq-q:hover .faq-q__sign::before,
.faq-q:hover .faq-q__sign::after { background: var(--sapphire); }
.faq-q[aria-expanded="true"] .faq-q__sign::after { transform: scaleY(0); }
.faq-q[aria-expanded="true"] .faq-q__sign::before { background: var(--sapphire); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a__inner > div { padding: 0 0 30px; max-width: 62ch; }
.faq-a p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--silver);
  margin: 0 0 18px;
}
.faq-a p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
}

@media (max-width: 720px) {
  .faq-section { padding: 64px 0; }
  .faq-q { font-size: 16px; gap: 20px; padding: 22px 0; }
  .faq-a p { font-size: 15px; }
}

/* ============================================================
   PAGE 7 — THE CATEGORY
   ============================================================ */

/* The definition — the dominant element on the site.
   Bordered pull-quote, surface fill, nothing competing in its viewport. */
.section--definition { padding: 128px 0; }


.definition {
  margin: 0;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 64px;
  max-width: 820px;
}

.definition__body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(21px, 1.95vw, 27px);
  line-height: 1.46;
  letter-spacing: -0.012em;
  color: var(--platinum);
  margin: 0;
}
.definition__term { font-weight: 500; color: var(--platinum); }
.definition__pos { font-style: italic; color: var(--silver); }

.definition__attrib {
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

/* The four criteria — numbered, hairline dividers, no cards */
.criteria { list-style: none; margin: 56px 0 0; padding: 0; }
.criterion {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}
.criterion:last-child { border-bottom: 1px solid var(--hairline); }
.criterion .criterion__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--steel);
  margin: 0;
}
.criterion__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--platinum);
  margin: 0 0 16px;
  max-width: 60ch;
}
.criterion p { font-size: 16px; line-height: 27px; color: var(--silver); margin: 0; max-width: 62ch; }

/* Boundary list — tighter than the criteria, subtle left rule */
.boundaries {
  list-style: none;
  margin: 40px 0 0;
  padding: 4px 0 4px 28px;
  border-left: 1px solid var(--hairline);
  max-width: 74ch;
}
.boundaries li { font-size: 16px; line-height: 26px; color: var(--silver); margin: 0 0 16px; }
.boundaries li:last-child { margin-bottom: 0; }
.boundaries b { font-weight: 500; color: var(--platinum); }

/* Inline text CTA */
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: baseline; margin: 40px 0 0; font-size: 15px; }
.cta-inline a { color: var(--platinum); transition: color 0.28s ease; }
.cta-inline a:hover { color: var(--sapphire); }
.cta-inline span { color: var(--steel); }

/* Provenance — restrained, not a badge */
.provenance { border-top: 1px solid var(--hairline); padding-top: 36px; }
.provenance p { font-size: 13px; line-height: 22px; color: var(--steel); margin: 0 0 18px; max-width: 76ch; }
.provenance p:last-child { margin-bottom: 0; }
.provenance__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 10px;
}

@media (max-width: 980px) {
  .criterion { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .criterion .criterion__num { font-size: 36px; }
}

@media (max-width: 720px) {
  .section--definition { padding: 88px 0; }
  .definition { padding: 32px 24px; }
  .definition__body { font-size: 20px; line-height: 1.45; max-width: none; }
  .definition__attrib { margin-top: 28px; padding-top: 22px; font-size: 12px; }
  .criteria { margin-top: 40px; }
  .criterion { padding: 32px 0; }
  .boundaries { padding-left: 20px; }
}

/* Link from a proprietary term to its canonical definition page */
.deflink {
  color: inherit;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.28s ease, border-color 0.28s ease;
}
.deflink:hover { color: var(--sapphire); border-color: var(--sapphire); }

/* ============================================================
   ACCESSIBILITY — HEADER LEGIBILITY (astigmatism accommodation)
   Bodoni Moda carries an optical-size axis (opsz 6–96). At display
   sizes the browser's `font-optical-sizing: auto` drives opsz toward
   the maximum, which is what produces the near-invisible hairline
   strokes — notably the thin right stem of the "U" in URIEL.
   Pinning opsz low restores stroke weight in the thins while keeping
   the same typeface and the same letterforms. Header sections only.
   ============================================================ */

.page-hero h1,
.threshold-hero h1 {
  font-variation-settings: 'opsz' 12, 'wght' 535;
  color: #eef4fa;
}

@media (max-width: 860px) {
  .page-hero h1,
  .threshold-hero h1 {
    font-variation-settings: 'opsz' 10, 'wght' 545;
  }
}

/* Selected work — scholarly reference list, hanging indent, single column */
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li {
  font-size: 14px;
  line-height: 23px;
  color: var(--silver);
  margin-bottom: 14px;
  padding-left: 28px;
  text-indent: -28px;
  max-width: 78ch;
}
.work-list li:last-child { margin-bottom: 0; }
.work-list em { color: var(--platinum); font-style: italic; }

/* Credential verification links — verifiable, but visually quiet.
   These point to issuing-body registries. They should read as substantiation,
   not as navigation, so they carry the body colour and a hairline underline only. */
.cred-list a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(125,143,164,.38);
  padding-bottom:1px;
  transition:border-color .18s ease, color .18s ease;
}
.cred-list a:hover,
.cred-list a:focus-visible{
  color:var(--platinum);
  border-bottom-color:var(--sapphire);
}
.work-list a{
  color:inherit;
  border-bottom:1px solid rgba(125,143,164,.38);
  text-decoration:none;
  transition:border-color .18s ease, color .18s ease;
}
.work-list a:hover,
.work-list a:focus-visible{
  color:var(--platinum);
  border-bottom-color:var(--sapphire);
}

/* Screen-reader-only: gives assistive tech and search engines a real heading
   for sections whose visible label is a styled eyebrow. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}


/* ------------------------------------------------------------------
   Subheadings — Newsreader Medium.
   Display type (h1, h2, pullquotes, stat figures) stays Bodoni Moda.
   ------------------------------------------------------------------ */
h3,
h4,
.door__name,
.swap__k,
.mech__h,
.gain__item h4,
.research-card .figure,
.ring-center__title,
.hier__label,
.citation__title,
.criterion__name {
  font-family: var(--subhead);
  font-weight: 500;
  letter-spacing: 0;
}


/* Adjacent environments */
.adjacent { margin-top: 44px; border-top: 1px solid var(--hairline); }
.adjacent a { display: flex; justify-content: space-between; align-items: baseline; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--hairline); color: var(--platinum);
  transition: color 0.28s ease, padding-left 0.28s ease; }
.adjacent a:hover { color: var(--sapphire); padding-left: 10px; }
.adj__name { font-family: var(--subhead); font-weight: 500; font-size: 19px; letter-spacing: 0; white-space: nowrap; }
.adj__why { color: var(--steel); font-size: 15px; line-height: 24px; text-align: right; }
@media (max-width: 700px) {
  .adjacent a { display: block; padding: 20px 0; }
  .adj__name { white-space: normal; font-size: 18px; }
  .adj__why { text-align: left; margin-top: 6px; display: block; }
}

@media (max-width: 700px) { .cta-inline span { display: none; } }

/* ============================================================
   CONTACT — institutional enquiry form
   ============================================================ */

.contact-hero { padding-bottom: 0; }
.contact-hero h1 { margin-bottom: 24px; }
.contact-body { padding-top: 72px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

/* ---------- form ---------- */

.uriel-form { max-width: 100%; }

.form-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 28px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
}

.field { margin-bottom: 24px; min-width: 0; }

.field label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--platinum);
  margin-bottom: 9px;
}

.field-help {
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel);
  margin: -3px 0 11px;
  max-width: 62ch;
}

.uriel-form input[type="text"],
.uriel-form input[type="email"],
.uriel-form input[type="tel"],
.uriel-form select,
.uriel-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--platinum);
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.uriel-form textarea { resize: vertical; min-height: 132px; }

.uriel-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--steel) 50%),
    linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% + 1px),
    calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
.uriel-form select option { background: var(--surface); color: var(--platinum); }

.uriel-form input:hover,
.uriel-form select:hover,
.uriel-form textarea:hover { border-color: var(--steel); }

.uriel-form input:focus,
.uriel-form select:focus,
.uriel-form textarea:focus {
  outline: none;
  border-color: var(--sapphire);
  background: rgba(122, 176, 238, 0.05);
}

.uriel-form input::placeholder,
.uriel-form textarea::placeholder { color: var(--steel); opacity: 1; }

.uriel-form .is-invalid { border-color: #c96a6a; }

/* checkbox row */

.field--check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 32px;
}
.field--check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--wash);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  flex: none;
}
.field--check input[type="checkbox"]:hover { border-color: var(--steel); }
.field--check input[type="checkbox"]:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 2px; }
.field--check input[type="checkbox"]:checked { background: var(--sapphire); border-color: var(--sapphire); }
.field--check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 9px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(43deg);
}
.field--check label {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--silver);
  cursor: pointer;
}

/* honeypot */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.form-submit { border: 1px solid var(--platinum); }
.form-submit[disabled] { opacity: 0.5; cursor: progress; }

.form-status {
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 0;
  max-width: 56ch;
  min-height: 1px;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--sapphire); }
.form-status.is-bad { color: #e08c8c; }

.form-legal {
  font-size: 12px;
  line-height: 1.65;
  color: var(--steel);
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

/* ---------- aside ---------- */

.contact-aside { border-left: 1px solid var(--hairline); padding-left: 40px; }
.contact-aside .aside-block + .aside-block {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}

.aside-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 16px;
}

.aside-list { list-style: none; margin: 0; padding: 0; }
.aside-list li {
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
  padding-left: 46px;
  margin-bottom: 18px;
}
.aside-list li:last-child { margin-bottom: 0; }
.aside-list li span {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sapphire);
}

.contact-aside p { margin-bottom: 10px; }
.contact-aside p:last-child { margin-bottom: 0; }
.contact-aside a { color: var(--platinum); border-bottom: 1px solid var(--hairline); }
.contact-aside a:hover { color: #fff; border-bottom-color: var(--silver); }
.aside-mail { word-break: break-word; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .contact-aside {
    border-left: 0;
    padding-left: 0;
    padding-top: 40px;
    border-top: 1px solid var(--hairline);
  }
}

@media (max-width: 720px) {
  .contact-body { padding-top: 56px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-submit { width: 100%; text-align: center; }
}
