/* ==========================================================================
   Tikkun Ascend
   A program of Tikkun HaNefesh
   --------------------------------------------------------------------------
   Palette and rhythm follow brief/BRIEF.md. Gold is light emerging through
   darkness, never luxury jewellery: used at small scale, never as a field.
   ========================================================================== */

:root {
  /* Ground */
  --navy-deep:   #0B1626;
  --navy:        #16273F;
  --navy-soft:   #1B2A4A;
  --cream:       #F5F0E8;
  --cream-warm:  #FAF7F1;
  --cream-dim:   #E7DFD1;

  /* Light */
  --gold:        #C4A24D;
  --gold-ink:    #7A5F1E;   /* gold that passes as text on cream */
  --gold-light:  #DFC078;
  --gold-pale:   #F0E2BE;

  /* Ink */
  --ink:         #1A1A1A;
  --charcoal:    #2C2C2C;
  --charcoal-60: #5A5A5A;
  --on-dark:     #EFE9DE;
  --on-dark-60:  rgba(239, 233, 222, .68);

  /* Type */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Measure and rhythm */
  --measure: 34rem;
  --measure-wide: 46rem;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --section-y: clamp(5.5rem, 13vw, 11.5rem);
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

p { margin: 0 0 1.35rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--navy-deep); }

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

.t-hero    { font-size: clamp(2.9rem, 8.5vw, 6rem); line-height: 1.03; }
.t-xl      { font-size: clamp(2.25rem, 5.6vw, 4.15rem); line-height: 1.08; }
.t-lg      { font-size: clamp(1.85rem, 4.1vw, 3rem); line-height: 1.14; }
.t-md      { font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.25; }

/* A statement that carries a section on its own. */
.t-statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -0.004em;
}

.eyebrow {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.6rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  opacity: .55;
  margin-top: .85rem;
}

.lede { font-size: clamp(1.075rem, 1.7vw, 1.2rem); line-height: 1.72; }

/* Short staggered lines — the cadence the copy is written in. */
.cadence {
  font-size: clamp(1.075rem, 1.85vw, 1.28rem);
  line-height: 1.62;
  margin: 0 0 1.5rem;
}
.cadence span { display: block; }
.cadence span + span { margin-top: .18em; }

.muted { color: var(--charcoal-60); }
.gold  { color: var(--gold); }

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

.section { padding: var(--section-y) var(--gutter); position: relative; }
.wrap    { max-width: 76rem; margin: 0 auto; width: 100%; }
.measure { max-width: var(--measure); }
.measure-wide { max-width: var(--measure-wide); }
.centered { margin-inline: auto; text-align: center; }
.centered .eyebrow::after { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.figure { margin: 0; position: relative; }
.figure img { width: 100%; object-fit: cover; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 3 / 2; }

/* Tonal grounds */
.is-cream { background: var(--cream); color: var(--charcoal); }
.is-warm  { background: var(--cream-warm); color: var(--charcoal); }
.is-navy  { background: var(--navy); color: var(--on-dark); }
.is-deep  { background: var(--navy-deep); color: var(--on-dark); }

.is-navy h1, .is-navy h2, .is-navy h3,
.is-deep h1, .is-deep h2, .is-deep h3 { color: var(--cream); }
.is-navy .muted, .is-deep .muted { color: var(--on-dark-60); }

/* A hairline that separates without shouting. */
.rule {
  border: 0;
  height: 1px;
  background: currentColor;
  opacity: .16;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 2.1rem;
  min-height: 48px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--navy-deep); }

.btn--sm { padding: .8rem 1.4rem; min-height: 40px; font-size: .74rem; }

/* A CTA that sits between sections rather than inside one. */
.cta-band {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
  text-align: center;
}
.cta-band p { margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   Announcement + navigation
   -------------------------------------------------------------------------- */

.announce {
  background: var(--navy-deep);
  color: var(--gold-pale);
  text-align: center;
  font-size: .7rem;
  line-height: 1.45;
  letter-spacing: .06em;
  padding: .6rem 1rem;
  position: relative;
  z-index: 60;
}
@media (min-width: 30rem) { .announce { font-size: .78rem; letter-spacing: .07em; padding: .7rem 1rem; } }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: transparent;
  transition: background .4s ease, box-shadow .4s ease;
}
.nav.is-stuck {
  background: rgba(11, 22, 38, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(245, 240, 232, .1);
}

.nav__inner {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
/* Sized to sit level with the header button rather than apologising next to
   it — the mark reads as a mark, not a favicon. */
.brand svg, .brand img { width: 46px; height: 46px; flex: none; }
.brand__text {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.brand__text small {
  display: block;
  font-size: .5em;
  letter-spacing: .34em;
  color: var(--gold);
  margin-top: .38em;
  font-weight: 500;
}

.nav__links { display: none; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .nav__links { display: flex; } }
.nav__links a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav__links a:hover { color: var(--gold); border-color: var(--gold); }

.nav__cta { display: none; }
@media (min-width: 48rem) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  margin-left: auto;
}
@media (min-width: 64rem) { .nav__toggle { display: none; } }
.nav__toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--navy-deep);
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), visibility .45s;
}
.drawer[data-open="true"] { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--cream);
  text-decoration: none;
  padding: .55rem 0;
}
.drawer .btn { margin-top: 1.75rem; }
.drawer__close { align-self: flex-end; background: none; border: 0; color: var(--cream); cursor: pointer; width: 44px; height: 44px; }
.drawer__close svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 60rem);
  margin-top: calc(var(--nav-h) * -1);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) clamp(3.5rem, 9vw, 7rem);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: heroDrift 26s ease-out forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 22, 38, .93) 0%, rgba(11, 22, 38, .68) 38%, rgba(11, 22, 38, .32) 68%, rgba(11, 22, 38, .45) 100%);
}
.hero__inner { max-width: 46rem; }
.hero h1 { color: var(--cream); margin-bottom: 1.75rem; }
.hero p { color: rgba(245, 240, 232, .88); }
.hero .btn { margin-top: 1rem; }
.hero__meta {
  margin-top: 2.25rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .62);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

/* The "space to…" list — quiet, wrapping, not bullet points. */
.qualities {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: 1px solid currentColor;
}
.qualities li {
  padding: 1.05rem .5rem 1.05rem 0;
  border-bottom: 1px solid currentColor;
  font-size: 1.02rem;
}
.is-cream .qualities, .is-warm .qualities { border-color: rgba(44, 44, 44, .16); }
.is-cream .qualities li, .is-warm .qualities li { border-color: rgba(44, 44, 44, .16); }
.is-navy .qualities, .is-deep .qualities { border-color: rgba(239, 233, 222, .18); }
.is-navy .qualities li, .is-deep .qualities li { border-color: rgba(239, 233, 222, .18); }

/* The work may include — a restrained grid, not marketing cards. */
.grid-work {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
/* Hairlines drawn per cell rather than by a gap, so a part-filled last
   row leaves no ghost cell behind. */
.grid-work li {
  box-shadow: inset 0 0 0 1px rgba(239, 233, 222, .16);
  padding: 1.6rem 1.5rem;
  font-size: .97rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  min-height: 5.2rem;
}

/* Willingness checklist */
.checklist { list-style: none; padding: 0; margin: 2.25rem 0 0; max-width: var(--measure-wide); }
.checklist li {
  position: relative;
  padding: .7rem 0 .7rem 2.2rem;
  border-bottom: 1px solid rgba(44, 44, 44, .12);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 1.32rem;
  width: .58rem;
  height: .58rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Two-length cards (14 / 28)
   -------------------------------------------------------------------------- */

.durations {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
}
@media (min-width: 54rem) { .durations { grid-template-columns: 1fr 1fr; } }

.duration {
  border: 1px solid rgba(44, 44, 44, .16);
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--cream-warm);
  display: flex;
  flex-direction: column;
}
.duration__n {
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 5.25rem);
  line-height: .9;
  color: var(--gold);
  margin-bottom: .15rem;
}
.duration__label {
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--charcoal-60);
  margin-bottom: 1.85rem;
}

/* Three pillars: purpose / framework / community */
.pillars {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin-top: 3.25rem;
}
@media (min-width: 52rem) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 1px solid rgba(239, 233, 222, .22); padding-top: 1.5rem; }
.pillar h3 { font-size: 1.55rem; margin-bottom: .55rem; }

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder__portrait {
  position: relative;
  background: var(--cream-dim);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder__portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder__placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--charcoal-60);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.founder__placeholder svg { width: 44px; height: 44px; margin: 0 auto 1rem; opacity: .35; }

.signature {
  margin-top: 2.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.4;
}
.signature small {
  display: block;
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--charcoal-60);
  margin-top: .5rem;
}

/* A pull quote inside long-form text. */
.pull {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.9vw, 2.1rem);
  line-height: 1.3;
  margin: 2.5rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
}
.is-navy .pull, .is-deep .pull { color: var(--cream); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
  padding: clamp(6rem, 14vw, 11rem) var(--gutter);
  overflow: hidden;
}
.closing__media { position: absolute; inset: 0; z-index: -2; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.closing::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 22, 38, .86), rgba(11, 22, 38, .93));
}
.closing h2 { color: var(--cream); }

/* --------------------------------------------------------------------------
   Footer + the support layer
   -------------------------------------------------------------------------- */

.support {
  background: var(--navy);
  color: var(--on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  border-top: 1px solid rgba(239, 233, 222, .12);
}
.support__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
@media (min-width: 46rem) { .support__grid { grid-template-columns: repeat(3, 1fr); } }
.support__item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold-pale);
  margin-bottom: .2rem;
}
.support__item a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(196, 162, 77, .5); }
.support__item a:hover { border-color: var(--gold); }
.support__item p { font-size: .92rem; color: var(--on-dark-60); margin: .35rem 0 0; }
.support .muted { color: var(--on-dark-60); }

.footer {
  background: var(--navy-deep);
  color: var(--on-dark-60);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2.5rem;
  font-size: .88rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 76rem;
  margin: 0 auto;
}
@media (min-width: 46rem) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer h4 {
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.footer__legal {
  max-width: 76rem;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(239, 233, 222, .1);
  font-size: .78rem;
  line-height: 1.65;
  color: rgba(239, 233, 222, .6);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}
.footer__legal p { max-width: 44rem; margin: 0; }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form-page { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); }

.form { max-width: 42rem; margin: 0 auto; }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 clamp(2.75rem, 5vw, 4rem);
}
.fieldset legend {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--navy);
  padding: 0;
  margin-bottom: .5rem;
}
.fieldset__note { color: var(--charcoal-60); font-size: .95rem; margin-bottom: 2rem; }

.field { margin-bottom: 1.6rem; }
.field > label,
.field__label {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .5rem;
}
.field__hint { display: block; font-weight: 400; color: var(--charcoal-60); font-size: .88rem; margin-top: .15rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(44, 44, 44, .28);
  border-radius: 0;
  padding: .85rem 1rem;
  min-height: 48px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 77, .22);
}

.field-row { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.choices { display: grid; gap: .1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.choice {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .6rem .2rem;
  font-size: .97rem;
  cursor: pointer;
}
.choice input { margin: .35rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--gold); flex: none; }

.scale { display: flex; flex-wrap: wrap; gap: .4rem; }
.scale label {
  flex: 1 1 2.4rem;
  position: relative;
  text-align: center;
  cursor: pointer;
}
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.scale span {
  display: block;
  padding: .7rem .2rem;
  border: 1px solid rgba(44, 44, 44, .25);
  font-size: .95rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.scale input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.scale input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* The support panel that appears when someone says something hard. */
.support-inline {
  border: 1px solid var(--gold);
  background: #FFFBF0;
  padding: 1.5rem 1.6rem;
  margin: 1.25rem 0 0;
}
.support-inline[hidden] { display: none !important; }
.support-inline h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .5rem;
}
.support-inline p { font-size: .96rem; margin-bottom: .8rem; }
.support-inline ul { list-style: none; padding: 0; margin: 0; }
.support-inline li { padding: .3rem 0; font-size: .96rem; }
.support-inline a { color: var(--navy); font-weight: 500; }

.form__error {
  border-left: 3px solid #A5342B;
  background: #FDF3F2;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.form__error[hidden] { display: none !important; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #A5342B; }
.field__msg { color: #A5342B; font-size: .88rem; margin-top: .4rem; }

.form__submit { margin-top: 1rem; }
.form__submit .btn { width: 100%; }
@media (min-width: 40rem) { .form__submit .btn { width: auto; min-width: 18rem; } }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

.form__success { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.form__success svg { width: 54px; height: 54px; margin: 0 auto 1.75rem; color: var(--gold); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.05s cubic-bezier(.22, .61, .36, 1), transform 1.05s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img, .hero__media video { animation: none; transform: none; }
}

/* --------------------------------------------------------------------------
   Focus + accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.is-navy :focus-visible, .is-deep :focus-visible, .hero :focus-visible {
  outline-color: var(--gold-light);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-deep);
  padding: .9rem 1.4rem;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.skip:focus { left: .75rem; top: .75rem; }

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

/* Gold at 12px on cream reads at about 2.2:1. Fine as a rule or a border,
   not as text - so the label variants darken on light grounds. */
.is-cream .eyebrow, .is-warm .eyebrow,
.is-cream .kicker,  .is-warm .kicker { color: var(--gold-ink); }
.is-cream .eyebrow::after, .is-warm .eyebrow::after { background: var(--gold-ink); }

/* .gold at display size on cream sits at about 2.2:1 - and it is used on the
   lines that carry each section ("There is more there", "Embodying it").
   The deeper gold keeps the colour and makes them legible. */
.is-cream .gold, .is-warm .gold { color: var(--gold-ink); }
