/* tokens.css is loaded by the page with a version stamp on its URL.
   It used to be pulled in here with @import, which carries no version,
   so a browser kept the old colours for up to a week after a redesign. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--heading);
             line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
a { color: var(--gold); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
         background: var(--gold); color: var(--on-gold); font-weight: 700;
         padding: var(--s3) var(--s5); min-height: 44px; text-decoration: none;
         display: inline-flex; align-items: center; }
.skip:focus { left: var(--s4); top: var(--s4); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s5); }

/* Sections are told apart by depth. Each band runs edge to edge and carries a
   hairline of gold at its upper boundary, so the seam is deliberate rather than
   accidental. No rounded floating cards. */
.band-page   { background: var(--ground); }
.band-deep   { background: var(--band); border-top: 1px solid rgba(230,179,87,.22);
               border-bottom: 1px solid rgba(230,179,87,.22); }
.band-raised { background: var(--raised); border-top: 1px solid rgba(230,179,87,.14); }

/* ---------- header ---------- */
.masthead { background: var(--band); border-bottom: 1px solid rgba(230,179,87,.18); }
.masthead__in { display: flex; align-items: baseline; justify-content: space-between;
                gap: var(--s5); padding-block: var(--s5); flex-wrap: wrap; }
.wordmark { font-family: var(--font-display); font-size: var(--t-m);
            color: var(--heading); text-decoration: none; letter-spacing: -0.01em;
            /* The site logo is a tap target on every page. Was 33px tall. */
            display: inline-flex; align-items: center; min-height: 44px; }
.wordmark b { font-weight: 400; }
.wordmark span { color: var(--gold); }
.nav { display: flex; gap: var(--s5); font-size: var(--t-s); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--heading); text-decoration: underline; }

/* ---------- hero, sitting on the page ground ---------- */
.hero { padding-block: clamp(var(--s8), 11vw, var(--s10)) var(--s9); }
.hero__name { font-size: clamp(2.8rem, 11vw, var(--t-4xl)); }
.hero__role { font-family: var(--font-body); font-size: var(--t-m); color: var(--muted);
              margin-top: var(--s4); max-width: 40ch; }
.hero__lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 4.6vw, var(--t-xl));
              line-height: 1.28; color: var(--heading); max-width: 22ch; margin-top: var(--s7); }
.hero__note { max-width: var(--measure); margin-top: var(--s5); }

/* ---------- Beyond Success: the deepest band, full bleed ---------- */
.feature__in { display: grid; grid-template-columns: 1fr; gap: var(--s7);
               padding-block: clamp(var(--s8), 8vw, var(--s10)); }
@media (min-width: 880px) {
  .feature__in { grid-template-columns: 1fr auto; align-items: center; gap: var(--s10); }
}
.feature h2 { font-size: clamp(2.2rem, 7vw, var(--t-3xl)); }
.feature__sub { font-family: var(--font-display); font-weight: 500; color: var(--gold);
                font-size: var(--t-m); margin-top: var(--s3); font-style: italic;
                max-width: 46ch; }
.feature__body { max-width: 48ch; margin-top: var(--s5); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s7); margin-top: var(--s7);
         padding-top: var(--s6); border-top: 1px solid rgba(230,179,87,.28); }
.fact__n { font-family: var(--font-display); font-weight: 500; font-size: var(--t-l); color: var(--gold); line-height: 1; }
.fact__l { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s2); }
.chev { width: clamp(76px, 16vw, 132px); flex: none; order: -1; }
@media (min-width: 880px) { .chev { order: 0; } }
.chev path { stroke: var(--gold); stroke-width: 9; fill: none;
             stroke-linecap: square; stroke-linejoin: miter; }
.chev path:nth-child(2) { opacity: .6; }
.chev path:nth-child(3) { opacity: .3; }

.btn { display: inline-block; margin-top: var(--s7); background: var(--gold);
       color: var(--on-gold); font-weight: 700; font-size: var(--t-base);
       padding: var(--s4) var(--s6); border-radius: 2px; text-decoration: none; min-height: 44px; }
.btn:hover, .btn:focus-visible { background: #F2C575; }

/* ---------- the two lesser doors, on the raised band ---------- */
.doors { display: grid; grid-template-columns: 1fr; gap: var(--s6);
         padding-block: clamp(var(--s8), 7vw, var(--s9)); }
@media (min-width: 760px) { .doors { grid-template-columns: 1.45fr 1fr; gap: var(--s8); } }
.door h3 { font-size: var(--t-xl); }
.door p { margin-top: var(--s4); max-width: 40ch; }
.door__foot { margin-top: var(--s6); }
.door__link { font-family: var(--font-body); font-weight: 700; font-size: var(--t-base);
              color: var(--gold);
              /* A standalone call to action is a tap target, not body text.
                 Measured at 19px tall before this; the floor is 44px. */
              display: inline-flex; align-items: center; min-height: 44px; }
/* The quiet door earns its quiet from a hairline and dimmer type, not a box. */
.door--quiet { border-left: 1px solid var(--rule); padding-left: var(--s6); }
@media (max-width: 759px) { .door--quiet { border-left: 0; border-top: 1px solid var(--rule);
                                           padding-left: 0; padding-top: var(--s6); } }
.door--quiet h3 { color: var(--muted); }
.door__status { font-size: var(--t-xs); color: var(--body); border: 1px solid var(--rule);
                border-radius: 2px; padding: var(--s2) var(--s3); display: inline-block;
                margin-top: var(--s4); }
.door__list { margin: var(--s4) 0 0; padding-left: 1.1em; color: var(--muted); font-size: var(--t-s); }
.door__list li { margin-top: var(--s2); }
.door__aside { font-size: var(--t-s); color: var(--muted); }

/* ---------- footer: back to the deepest tone, closing the page ---------- */
.foot { background: var(--band); border-top: 1px solid rgba(230,179,87,.18); }
.foot__in { padding-block: var(--s7); display: flex; flex-wrap: wrap;
            gap: var(--s5) var(--s7); justify-content: space-between; font-size: var(--t-s); }
.foot p { color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- the seven roundtables ---------- */
.rounds { border-top: 1px solid rgba(230,179,87,.14); }
.rounds .wrap { padding-block: clamp(var(--s8), 7vw, var(--s9)); }
.rounds__h { font-size: clamp(1.8rem, 5vw, var(--t-2xl)); }
.rounds__i { margin-top: var(--s4); max-width: 52ch; }
.rt-grid { list-style: none; margin: var(--s8) 0 0; padding: 0;
           display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s5); }
@media (min-width: 700px)  { .rt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .rt-grid { grid-template-columns: repeat(4, 1fr); } }
/* Seven items wrap to 4 + 3 at desktop. A ragged final row is a normal wrap,
   not an empty cell, so the last three sit left-aligned under the first four. */
.rt__img { width: 100%; height: auto; aspect-ratio: 530 / 326; object-fit: cover;
           border-radius: 2px; border: 1px solid rgba(230,179,87,.16); }
.rt__t { font-size: var(--t-base); font-family: var(--font-body); font-weight: 700;
         color: var(--heading); margin-top: var(--s4); line-height: 1.35;
         display: flex; gap: var(--s3); align-items: baseline; }
.rt__n { font-family: var(--font-display); font-weight: 500; font-size: var(--t-m); color: var(--gold);
         line-height: 1; flex: none; }
.rt__d { font-size: var(--t-s); color: var(--muted); margin-top: var(--s2); }

/* ============================================================
   Premium finish pass. Principles taken from the soft-skill;
   translated to plain CSS because this site ships no JavaScript
   and no build step, which on 1 GB of shared hosting is a feature.
   ============================================================ */

:root {
  /* Real-world mass. Nothing here uses linear or ease-in-out. */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spatial:  cubic-bezier(0.32, 0.72, 0, 1);
}

/* --- Film grain: fixed, pointer-events-none, never on a scroller.
       Gives the flat dark ground a physical surface. --- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter>\
<rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* --- Double bezel: a card is a plate seated in a tray, with
       concentric radii, not a rectangle floating on the page. --- */
.rt {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(230,179,87,.10);
  border-radius: 14px;
  padding: 6px 6px 18px;
}
.rt__img {
  border-radius: 8px;               /* 14px outer minus the 6px inset */
  border: 1px solid rgba(0,0,0,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.rt__t, .rt__d { padding-inline: 10px; }

/* --- Button in button: the arrow lives in its own well, flush to
       the inner padding, and shifts under the cursor. --- */
.btn { position: relative; display: inline-flex; align-items: center; gap: var(--s4);
       padding-right: var(--s4); border-radius: 999px;
       transition: background .5s var(--ease-out-expo), transform .35s var(--ease-spatial); }
.btn__go { width: 30px; height: 30px; border-radius: 999px; flex: none;
           display: inline-flex; align-items: center; justify-content: center;
           background: rgba(0,0,0,.14); color: var(--on-gold);
           transition: transform .45s var(--ease-spatial), background .45s var(--ease-out-expo); }
.btn:hover .btn__go { transform: translate(2px, -1px) scale(1.06); background: rgba(0,0,0,.22); }
.btn:active { transform: scale(.985); }

.door__link { gap: var(--s3); transition: gap .4s var(--ease-spatial); }
.door__link:hover { gap: var(--s4); }

/* --- Scroll entry. CSS scroll-driven animation, so no JavaScript.
       Browsers without it simply show the content, which is correct. --- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rounds__h, .rounds__i, .rt, .feature__in > div, .door {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- the schedule ----------
   Beyond Success reads the dates from the scheduler and lists them here. A row
   per meeting, wrapping to two lines on a phone rather than scrolling sideways. */
.sched { padding-block: var(--s9); }
.sched__h { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl);
            color: var(--heading); margin: 0 0 var(--s3); }
.sched__empty { color: var(--body); font-size: var(--t-m); max-width: var(--measure); }
.sched__note { color: var(--muted); font-size: var(--t-s); margin-top: var(--s5);
               max-width: var(--measure); }
.sched__note a { color: var(--gold); }

.course { background: var(--raised); border: 1px solid var(--rule); border-radius: 14px;
          padding: var(--s6); margin-top: var(--s6); }
.course__t { font-family: var(--font-display); font-weight: 500; font-size: var(--t-xl);
             color: var(--heading); margin: 0; line-height: 1.15; }
.course__sub { color: var(--gold); font-size: var(--t-s); letter-spacing: .04em;
               text-transform: uppercase; margin: var(--s2) 0 0; }
.course__lead { color: var(--body); font-size: var(--t-m); margin: var(--s4) 0 0;
                max-width: var(--measure); }
.course__body { color: var(--body); margin: var(--s3) 0 0; max-width: var(--measure); }
.course__meta { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s4) 0 0;
                color: var(--muted); font-size: var(--t-s); }

.meets { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 1px;
         background: var(--rule); border-radius: 10px; overflow: hidden; }
.meet { background: var(--ground); padding: var(--s4) var(--s5);
        display: grid; gap: var(--s1) var(--s5); align-items: baseline;
        grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .meet { grid-template-columns: 19rem 1fr auto; }
}
.meet__when { color: var(--heading); font-weight: 700; }
.meet__what { color: var(--body); }
.meet__who { color: var(--muted); font-size: var(--t-s); }
.meet__where { color: var(--muted); font-size: var(--t-s); }
.meet__tag { grid-column: 1 / -1; color: var(--gold); font-size: var(--t-xs);
             letter-spacing: .04em; text-transform: uppercase; }
.meet--off .meet__when { text-decoration: line-through; }
.meet--off { opacity: .6; }

/* ---------- forms people fill in ----------
   The public site had no field styling at all: every form until now lived in the
   admin. These are deliberately larger than the admin's, because they are filled
   in once, often on a phone, often by somebody over fifty. */
.hero--form { padding-block: clamp(var(--s7), 8vw, var(--s9)) var(--s6); }
.formband { padding-block: var(--s7) var(--s9); }

.qform { max-width: 40rem; }
.q { margin-bottom: var(--s5); }
.q label { display: block; color: var(--heading); font-weight: 700; margin-bottom: var(--s2); }
.q__opt { color: var(--muted); font-weight: 400; font-size: var(--t-s); }
.q__help { color: var(--muted); font-size: var(--t-s); margin: var(--s2) 0 0; }
.q__head { font-family: var(--font-display); font-weight: 500; font-size: var(--t-l);
           color: var(--heading); margin: var(--s7) 0 var(--s2); }

.q input[type=text], .q input[type=email], .q input[type=tel],
.q input[type=date], .q select, .q textarea {
  width: 100%; font: inherit; font-size: var(--t-base); color: var(--heading);
  background: var(--field-bg); border: 1px solid var(--rule); border-radius: 10px;
  padding: 13px var(--s4); min-height: 52px;
}
.q textarea { min-height: 8rem; line-height: 1.6; resize: vertical; }
.q input::placeholder { color: #9A9081; }
.q input:focus-visible, .q select:focus-visible, .q textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold);
}

/* A choice is a row you tap, not a four millimetre circle you aim at. */
.q__choices { display: grid; gap: var(--s2); }
.q__choice {
  display: flex; align-items: center; gap: var(--s3); min-height: 52px;
  padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 10px;
  background: var(--field-soft); color: var(--body); font-weight: 400; margin: 0;
  cursor: pointer;
}
.q__choice:hover { border-color: var(--gold); }
.q__choice input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; }
.q__consent {
  display: flex; align-items: flex-start; gap: var(--s3); color: var(--body);
  font-weight: 400; line-height: 1.5;
}
.q__consent input { accent-color: var(--gold); width: 20px; height: 20px; flex: none; margin-top: 2px; }

.q__rating { display: flex; gap: var(--s2); flex-wrap: wrap; }
.q__num { position: relative; margin: 0; }
.q__num input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.q__num span {
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--rule); border-radius: 12px; color: var(--body);
  font-family: var(--font-display); font-size: var(--t-m);
}
.q__num input:checked + span { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.q__num input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.formnote { color: var(--muted); font-size: var(--t-s); margin-top: var(--s4); max-width: var(--measure); }
.formbad {
  border: 1px solid #6B3527; background: #331B14; color: #F0B7A6;
  border-radius: 12px; padding: var(--s4) var(--s5); margin-bottom: var(--s5); max-width: 40rem;
}
.formbad ul { margin: var(--s2) 0 0; padding-left: 1.2em; }
.formdone { max-width: 40rem; }
.formdone h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl);
               color: var(--heading); margin: 0 0 var(--s3); }
.formdone p { color: var(--body); font-size: var(--t-m); }
.formdone__s { color: var(--muted); font-size: var(--t-s); margin-top: var(--s4); }

/* A secondary action on the public site. Giving up a place should not look like
   the same invitation as taking one. */
.btn--quiet {
  background: transparent; color: var(--muted);
  border: 1px solid var(--rule); box-shadow: none;
}
.btn--quiet:hover { background: var(--raised); color: var(--heading); box-shadow: none; }
