/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-01.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-02.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-03.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-04.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-05.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-06.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-07.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-08.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-09.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-06.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-07.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-08.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-09.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-06.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-07.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-08.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-09.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-10.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/outfit-11.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/outfit-12.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-11.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit-12.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


  :root {
    --black:   #080808;
    --dark:    #0f0f0f;
    --card:    #141414;
    --border:  #1e1e1e;
    --gold:    #B8922A;
    --gold-lt: #D4AA4A;
    --white:   #F0ECE4;
    --grey:    #888880;
    --serif:   'Cormorant Garamond', Georgia, serif;
    --sans:    'Outfit', sans-serif;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
  }

  /* ── NOISE TEXTURE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  @keyframes shimmer {
    0%,100% { opacity: .6; }
    50%      { opacity: 1; }
  }
  @keyframes chevron-bob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
  }
  @keyframes line-grow {
    from { width: 0; }
    to   { width: 60px; }
  }

  .js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .js-ready .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* ── GLOBAL RULES ── */
  section { position: relative; }

  .gold-rule {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 2rem;
  }

  .eyebrow {
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.9rem 3.5rem;
    background: linear-gradient(to bottom, rgba(8,8,8,.72) 0%, transparent 100%);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid transparent;
    transition:
      padding .38s cubic-bezier(.2,.6,.2,1),
      background-color .38s cubic-bezier(.2,.6,.2,1),
      border-color .38s cubic-bezier(.2,.6,.2,1),
      box-shadow .38s cubic-bezier(.2,.6,.2,1);
  }
  /* past the hero: slim, opaque, gold hairline */
  nav.is-condensed {
    padding: .85rem 3.5rem;
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(184,146,42,.32);
    box-shadow: 0 4px 16px rgba(0,0,0,.45);
  }
  nav.is-condensed .nav-logo { font-size: .68rem; opacity: .85; }
  nav.is-condensed .nav-portal,
  nav.is-condensed .nav-cta { padding: .4rem 1.05rem; }
  @media (prefers-reduced-motion: reduce) {
    nav { transition: none; }
  }
  .nav-logo {
    font-family: var(--serif);
    font-size: .75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--white);
    opacity: .7;
    text-decoration: none;
    transition: opacity .3s;
  }
  .nav-logo:hover { opacity: 1; }
  .nav-logo { display: inline-flex; align-items: center; gap: .75rem; }
  .nav-crest {
    width: auto;
    height: 38px;
    flex: none;
    transition: height .38s cubic-bezier(.2,.6,.2,1);
  }
  nav.is-condensed .nav-crest { height: 28px; }
  .nav-logo-name { white-space: nowrap; }
  @media (max-width: 700px) {
    .nav-logo { gap: .55rem; font-size: .68rem; letter-spacing: .16em; opacity: .85; }
    nav.is-condensed .nav-logo { font-size: .64rem; }
    .nav-crest { height: 34px; }
    nav.is-condensed .nav-crest { height: 26px; }
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-cta {
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid rgba(184,146,42,.4);
    padding: .5rem 1.2rem;
    transition: all .3s;
  }
  .nav-cta:hover {
    background: rgba(184,146,42,.1);
    border-color: var(--gold);
  }
  .nav-portal {
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(240,236,228,.5);
    text-decoration: none;
    border: 1px solid rgba(240,236,228,.15);
    padding: .5rem 1.2rem;
    transition: all .3s;
    cursor: pointer;
  }
  .nav-portal:hover {
    color: var(--white);
    border-color: rgba(240,236,228,.35);
  }

  /* ── SYNDICATE SCOREBOARD ── */
  .score-board {
    max-width: 1100px;
    margin: 3.25rem auto 0;
    text-align: left;
  }
  .score-board-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.1rem;
  }
  .score-board-head .sb-eyebrow {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
  }
  .score-board-head .sb-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(184,146,42,.45), transparent);
  }
  .score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .score-card {
    background: var(--card);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background .3s;
  }
  .score-card:hover { background: #161616; }
  .score-card--win .score-number { color: var(--gold); }
  .score-card--win::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
  }
  .score-number {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    font-weight: 300;
    color: var(--gold-lt);
    line-height: 1;
    margin-bottom: .55rem;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
  }
  .score-label {
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: .4rem;
  }
  .score-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: .85rem;
    color: var(--grey);
    line-height: 1.4;
  }
  @media (max-width: 860px) {
    .score-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ── FORM TABLE (complete record) ── */
  .formtable {
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    background: var(--card);
  }
  .ft-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(184,146,42,.04);
  }
  .ft-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--white);
  }
  .ft-meta {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .ft-row {
    display: grid;
    grid-template-columns: 5rem 4.2rem 1.5fr 5.2rem 5.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
  }
  .ft-row:last-child { border-bottom: none; }
  .ft-row--head {
    padding-top: .7rem;
    padding-bottom: .7rem;
  }
  .ft-row--head span {
    font-family: var(--sans);
    font-size: .53rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .ft-row:not(.ft-row--head) span {
    font-family: var(--serif);
    font-size: .98rem;
    color: var(--white);
    line-height: 1.3;
  }
  .ft-row .ft-cond,
  .ft-row .ft-purse,
  .ft-row .ft-jock { color: var(--grey); }
  .ft-row .ft-fin em {
    font-style: normal;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .12em;
    color: var(--grey);
    margin-left: .35rem;
  }
  .ft-row--win { background: rgba(184,146,42,.06); }
  .ft-row--win .ft-fin,
  .ft-row--win .ft-date { color: var(--gold); }
  .ft-row--win .ft-fin em { color: var(--gold-lt); }
  @media (max-width: 780px) {
    .ft-row {
      grid-template-columns: 1fr 1fr;
      gap: .5rem 1rem;
      padding: 1rem 1.25rem;
    }
    .ft-row--head { display: none; }
    .ft-row:not(.ft-row--head) span::before {
      content: attr(data-l) '  ';
      font-family: var(--sans);
      font-size: .52rem;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--gold);
      display: block;
      margin-bottom: .2rem;
    }
    .ft-row .ft-cond { grid-column: 1 / -1; }
  }

  /* ── EQUIBASE RECORD LINK ── */
  .spec-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(184,146,42,.3);
    padding-bottom: 2px;
    transition: color .28s cubic-bezier(.2,.6,.2,1), border-color .28s cubic-bezier(.2,.6,.2,1);
  }
  .spec-link:hover {
    color: var(--gold-lt);
    border-color: var(--gold);
  }
  .spec-link .ext {
    font-size: .7em;
    opacity: .7;
    transform: translateY(-1px);
  }

  /* ── NAV · SECTION LINKS ── */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2.1rem;
  }
  .nav-link {
    position: relative;
    font-family: var(--sans);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(240,236,228,.52);
    text-decoration: none;
    padding: .35rem 0;
    transition: color .28s cubic-bezier(.2,.6,.2,1);
    white-space: nowrap;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width .28s cubic-bezier(.2,.6,.2,1);
  }
  .nav-link:hover { color: var(--white); }
  .nav-link:hover::after { width: 100%; }
  .nav-link.is-active { color: var(--gold); }
  .nav-link.is-active::after { width: 100%; }

  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px; height: 30px;
    padding: 0;
    background: none;
    border: 1px solid rgba(240,236,228,.15);
    cursor: pointer;
    transition: border-color .28s;
  }
  .nav-toggle:hover { border-color: rgba(184,146,42,.5); }
  .nav-toggle span {
    display: block;
    width: 16px; height: 1px;
    margin: 0 auto;
    background: var(--gold);
    transition: transform .28s cubic-bezier(.2,.6,.2,1), opacity .2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  /* anchored sections clear the fixed nav + countdown strip */
  #thesis, #team, #record, #horse, #experience, #circuit, #cta,
  #mo-work, #cool-cowboy {
    scroll-margin-top: calc(var(--cd-strip-h, 44px) + 84px);
  }

  @media (max-width: 1180px) {
    .nav-links { gap: 1.4rem; }
    .nav-link { font-size: .58rem; letter-spacing: .16em; }
    nav { padding: 1.4rem 2rem; }
  }
  @media (max-width: 980px) {
    .nav-portal { display: none; }
  }
  @media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
      position: fixed;
      top: calc(var(--cd-strip-h, 44px) + 62px);
      left: 0; right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding: .5rem 0 1rem;
      background: rgba(8,8,8,.97);
      backdrop-filter: blur(12px);
      border-top: 1px solid rgba(184,146,42,.18);
      border-bottom: 1px solid rgba(184,146,42,.18);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity .28s cubic-bezier(.2,.6,.2,1), transform .28s cubic-bezier(.2,.6,.2,1);
    }
    .nav-links.is-open {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .nav-link {
      padding: .95rem 2rem;
      font-size: .66rem;
      letter-spacing: .22em;
      border-bottom: 1px solid rgba(240,236,228,.06);
    }
    .nav-link::after { display: none; }
    .nav-link:last-child { border-bottom: none; }
    .nav-link.is-active {
      background: rgba(184,146,42,.07);
      box-shadow: inset 2px 0 0 var(--gold);
    }
  }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 6rem 3.5rem 5.5rem;
    background: var(--black);
    overflow: hidden;
    isolation: isolate;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
  }
  .hero-bg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* lifts the photo a little so the SIMMS JR. RACING rail sits high and clear of the text */
    object-position: 60% 60%;
  }
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* light touch only: a short shade under the nav and a fade into the page at the
       very bottom. The rail and crests stay undimmed; the text gets its own shade
       (.hero-content::before) that follows the text block. */
    background:
      linear-gradient(to bottom, rgba(8,8,8,.5) 0%, rgba(8,8,8,0) 14%, rgba(8,8,8,0) 90%, var(--black) 100%);
  }
  .hero-content {
    position: relative;
    /* keep the text block left of the gold crests on the tack (they start at
       ~52.7% of the photo width, and the photo spans the full width on desktop) */
    max-width: min(760px, calc(49vw - 3.5rem));
    text-shadow: 0 2px 18px rgba(0,0,0,.55);
  }
  /* dark shade behind the text only (lower-left), fading out above the title and
     before the crests, so the rail lettering above stays bright */
  .hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -3rem;
    bottom: -8rem;
    left: -3.5rem;
    right: -1.5rem;
    background: linear-gradient(to right, rgba(0,0,0,.82) 0%, rgba(0,0,0,.7) 55%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
    mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
    pointer-events: none;
  }
  .hero-content .hero-divider { margin: 2rem 0; }
  .hero-content .hero-divider-line:first-child { display: none; }
  .hero-content .hero-sub { margin: 1.4rem 0 0; color: #cfc9be; }
  .hero-content .hero-title span { color: #c9c3b8; }
  .hero-content .hero-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }

  /* Phones + portrait tablets: photo on top, text block below on black.
     The crop keeps the SIMMS JR. RACING rail and both gold crests together.
     --cx/--cw: horizontal crop window in source-image px (900x675 space);
     --cyc: source y the photo box is centred on. The box grows to fill the space
     above the text (within min/max), so the hero stays one screen tall. */
  @media (max-width: 700px), (orientation: portrait) and (max-width: 1024px) {
    #hero {
      justify-content: flex-start;
      padding: 4.6rem 1.5rem 5.75rem;
    }
    /* the strip sits in normal flow above the hero, so only clear the fixed nav */
    html body.has-cd-strip #hero { padding-top: 4.6rem; }
    .hero-media {
      --cx: 42; --cw: 606; --cyc: 357;
      position: relative;
      inset: auto;
      z-index: 0;
      flex: 1 1 auto;
      width: calc(100% + 3rem);
      margin: 0 -1.5rem;
      min-height: calc(100vw * 350 / var(--cw));
      max-height: calc(100vw * 640 / var(--cw));
      overflow: hidden;
      background: var(--black);
    }
    .hero-bg {
      position: absolute;
      width: calc(900 / var(--cw) * 100%);
      height: auto;
      max-width: none;
      left: calc(var(--cx) / var(--cw) * -100%);
      top: 50%;
      transform: translateY(calc(var(--cyc) / 675 * -100%));
      object-fit: fill;
    }
    /* soft fade from photo into the black text area (and a touch under the nav);
       the middle, where the rail and crests sit, stays undimmed */
    .hero-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(8,8,8,.45) 0%, rgba(8,8,8,0) 10%, rgba(8,8,8,0) 84%, var(--black) 100%);
    }
    .hero-overlay { display: none; }
    .hero-content { margin-top: 0; padding-top: 1.2rem; max-width: 760px; }
    .hero-content::before { display: none; }
    .hero-content .hero-divider { margin: 1.2rem 0; }
    .hero-content .hero-tagline { letter-spacing: .22em; }
    .hero-content .hero-sub { margin-top: 1rem; }
    .hero-title { letter-spacing: .08em; }
    .hero-title span { letter-spacing: .4em; }
    .hero-scroll { bottom: 1.6rem; }
  }
  /* portrait tablets: more room, so a slightly wider window and bigger photo */
  @media (orientation: portrait) and (min-width: 701px) and (max-width: 1024px) {
    #hero, html body.has-cd-strip #hero { padding: 5.2rem 3rem 6rem; }
    .hero-media {
      --cx: 20; --cw: 760;
      width: calc(100% + 6rem);
      margin: 0 -3rem;
    }
  }

  /* SVG crest */
  .crest-svg { width: 100%; height: 100%; }

  .hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 300;
    letter-spacing: .12em;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--white);
    animation: fadeUp .9s .3s ease both;
  }
  .hero-title span {
    display: block;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: .55em;
    color: var(--grey);
    margin-top: .4rem;
  }

  .hero-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.2rem auto;
    animation: fadeIn .8s .7s ease both;
    opacity: 0;
  }
  .hero-divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
  }
  .hero-divider-line.right {
    background: linear-gradient(to left, transparent, var(--gold));
  }
  .hero-divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
  }

  .hero-tagline {
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold-lt);
    animation: fadeIn .8s .9s ease both;
    opacity: 0;
  }

  .hero-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(.95rem, 1.5vw, 1.15rem);
    color: var(--grey);
    max-width: 440px;
    margin: 1.6rem auto 0;
    animation: fadeIn .8s 1.1s ease both;
    opacity: 0;
  }

  .hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    animation: fadeIn 1s 1.6s ease both;
    opacity: 0;
  }
  .hero-scroll span {
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .hero-scroll svg {
    animation: chevron-bob 2s ease-in-out infinite;
    color: var(--gold);
  }

  /* ── THESIS ── */
  #thesis {
    padding: 7rem 2rem;
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .thesis-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }
  .thesis-body {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    line-height: 1.85;
    color: rgba(240,236,228,.82);
  }
  .thesis-body strong {
    font-weight: 500;
    color: var(--white);
  }

  /* ── STATS ── */
  #stats {
    padding: 6rem 2rem;
    background: var(--black);
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .stat-card {
    background: var(--card);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background .3s;
  }
  .stat-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .4s ease;
  }
  .stat-card:hover { background: #161616; }
  .stat-card:hover::before { transform: scaleX(1); }

  .stat-number {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 300;
    color: var(--gold-lt);
    line-height: 1;
    margin-bottom: .6rem;
    letter-spacing: .02em;
  }
  .stat-label {
    font-family: var(--sans);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    line-height: 1.5;
  }

  /* ── TOP COUNTDOWN STRIP (above nav) ── */
  .cd-strip {
    position: relative;
    z-index: 60;
    background: linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
    border-bottom: 1px solid rgba(184,146,42,.3);
    padding: .55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.75rem;
    flex-wrap: wrap;
    font-family: var(--sans);
    white-space: nowrap;
  }
  .cd-race {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    flex-wrap: nowrap;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
  }
  .cd-race:hover { opacity: .82; }
  .cd-race:hover .cd-strip-title em { color: var(--gold-lt); }
  .cd-strip-div {
    width: 1px;
    align-self: stretch;
    min-height: 1.5em;
    background: linear-gradient(180deg, transparent, rgba(184,146,42,.45), transparent);
    flex-shrink: 0;
  }
  .cd-strip::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,146,42,.5), transparent);
  }
  .cd-strip-left {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cd-strip-tag {
    font-size: .52rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    padding: .18rem .5rem;
    border: 1px solid rgba(184,146,42,.4);
    flex-shrink: 0;
  }
  .cd-strip-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: .9rem;
    color: var(--white);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cd-strip-title em {
    font-style: normal;
    color: var(--gold-lt);
  }
  .cd-strip-meta {
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
    flex-shrink: 0;
  }
  .cd-strip-clock {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }
  .cd-strip-clock .u {
    display: inline-flex;
    align-items: baseline;
    gap: .2rem;
  }
  .cd-strip-clock .n {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--gold-lt);
    line-height: 1;
    min-width: 1.2em;
    text-align: right;
  }
  .cd-strip-clock .l {
    font-size: .48rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .cd-strip-clock .sep {
    color: rgba(184,146,42,.35);
    font-family: var(--serif);
    font-size: 1rem;
    padding: 0 .05rem;
    user-select: none;
  }
  .cd-strip-cta {
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(184,146,42,.4);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
  }
  .cd-strip-cta:hover {
    color: var(--gold-lt);
    border-color: var(--gold-lt);
  }
  .cd-strip.is-live .cd-strip-clock,
  .cd-race.is-live .cd-strip-clock { display: none; }
  .cd-strip.is-live .cd-strip-title em,
  .cd-race.is-live .cd-strip-title em { color: #9fb07a; }

  /* Progressive hiding as width tightens */
  @media (max-width: 1040px) {
    .cd-strip-div { display: none; }
  }
  @media (max-width: 900px) {
    .cd-strip { gap: .9rem 1.5rem; }
  }
  @media (max-width: 680px) {
    .cd-strip { padding: .5rem .85rem; gap: .55rem .9rem; }
    .cd-strip-div { display: none; }
    .cd-strip-tag { display: none; }
    .cd-strip-title { font-size: .8rem; }
    .cd-strip-clock .n { font-size: .95rem; }
    .cd-strip-clock .sep { font-size: .9rem; }
  }

  /* Push fixed nav below the strip */
  body.has-cd-strip nav {
    top: var(--cd-strip-h, 44px);
  }
  body.has-cd-strip #hero {
    padding-top: calc(6rem + var(--cd-strip-h, 44px));
    min-height: calc(100vh - var(--cd-strip-h, 44px));
    min-height: calc(100svh - var(--cd-strip-h, 44px));
  }
  .countdown-banner {
    position: relative;
    margin: 0 0 4rem;
    padding: 2.25rem 2.5rem;
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(184,146,42,.35);
    border-bottom: 1px solid rgba(184,146,42,.35);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
  }
  .countdown-banner::before,
  .countdown-banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,146,42,.6), transparent);
  }
  .countdown-banner::before { top: 6px; }
  .countdown-banner::after  { bottom: 6px; }

  .cd-left .cd-eyebrow {
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
  }
  .cd-left .cd-title {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: .02em;
  }
  .cd-left .cd-title em {
    color: var(--gold-lt);
    font-style: italic;
  }
  .cd-left .cd-meta {
    font-family: var(--serif);
    font-style: italic;
    font-size: .95rem;
    color: var(--grey);
    margin-top: .5rem;
  }

  .cd-clock {
    display: flex;
    gap: 1.1rem;
    align-items: flex-end;
    justify-content: center;
  }
  .cd-unit {
    text-align: center;
    min-width: 62px;
  }
  .cd-num {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--gold-lt);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
  }
  .cd-lbl {
    font-family: var(--sans);
    font-size: .55rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: .55rem;
  }
  .cd-sep {
    color: rgba(184,146,42,.35);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 300;
    font-family: var(--serif);
    padding-bottom: 1.6rem;
    user-select: none;
  }

  .cd-right {
    text-align: right;
    font-family: var(--sans);
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--grey);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    align-items: flex-end;
  }
  .cd-right .cd-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: .6rem;
    white-space: nowrap;
    line-height: 1.2;
  }
  .cd-right .cd-row strong {
    color: var(--white);
    font-weight: 400;
    letter-spacing: .18em;
  }
  .cd-right .cd-row .v {
    color: var(--gold-lt);
    font-weight: 400;
    font-family: var(--serif);
    font-size: .95rem;
    letter-spacing: .02em;
    text-transform: none;
  }

  .countdown-post {
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-lt);
    padding: .5rem 0;
  }

  @media (max-width: 900px) {
    .countdown-banner {
      grid-template-columns: 1fr;
      gap: 1.75rem;
      padding: 2rem 1.5rem;
      text-align: center;
    }
    .cd-left, .cd-right { text-align: center; }
    .cd-right { align-items: center; }
    .cd-right .cd-row { justify-content: center; }
    .cd-unit { min-width: 54px; }
    .cd-clock { flex-wrap: wrap; gap: .75rem; }
  }

  /* ── RACE CARD (replaces plain next-race strip) ── */
  .racecard {
    margin-top: 3rem;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 0;
  }
  .racecard-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: rgba(184,146,42,.04);
    flex-wrap: wrap;
  }
  .racecard-head .rc-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--white);
    letter-spacing: .02em;
  }
  .racecard-head .rc-title .muted {
    color: var(--grey);
    font-style: italic;
  }
  .racecard-head .rc-purse {
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .racecard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
  }
  .rc-cell {
    padding: 1.1rem 1.25rem;
    border-right: 1px solid var(--border);
  }
  .rc-cell:last-child { border-right: none; }
  .rc-cell .k {
    font-family: var(--sans);
    font-size: .55rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
  }
  .rc-cell .v {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
  }
  .rc-cell .v .sub {
    display: block;
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: .25rem;
  }
  .racecard-foot {
    padding: 1rem 1.75rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: .88rem;
    color: var(--grey);
    line-height: 1.6;
  }
  .racecard-foot strong {
    color: var(--gold-lt);
    font-style: normal;
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-right: .5rem;
  }
  @media (max-width: 720px) {
    .racecard-grid { grid-template-columns: 1fr 1fr; }
    .rc-cell:nth-child(2) { border-right: none; }
    .rc-cell:nth-child(1), .rc-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  }

  /* ── NEXT-OUT VARIANT (upcoming · entered) ── */
  .racecard--next { border-color: rgba(184,146,42,.42); }
  .next-post { background: rgba(184,146,42,.12); border-color: rgba(184,146,42,.5); }
  .next-post .result-pos { color: var(--gold-lt); }
  .rc-field {
    padding: 1.5rem 1.75rem 1.7rem;
    border-bottom: 1px solid var(--border);
  }
  .rc-field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
  }
  .rc-field-head span { color: var(--grey); letter-spacing: .18em; }
  .rc-field-list { list-style: none; margin: 0; padding: 0; }
  .rc-field-row {
    display: grid;
    grid-template-columns: 2rem 1.5fr 1fr 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: .72rem 0;
    border-top: 1px solid var(--border);
  }
  .rc-field-row:first-child { border-top: none; }
  .rc-field-pp {
    font-family: var(--serif);
    font-size: .95rem;
    color: var(--grey);
    font-variant-numeric: tabular-nums;
  }
  .rc-field-horse { font-family: var(--serif); font-size: .98rem; color: var(--white); }
  .rc-field-horse .as {
    font-family: var(--sans);
    font-size: .56rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--grey);
    margin-left: .5rem;
  }
  .rc-field-meta { font-family: var(--sans); font-size: .72rem; letter-spacing: .03em; color: var(--grey-lt, #aaa49a); }
  .rc-field-meta .lbl {
    display: block;
    font-size: .5rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(184,146,42,.55);
    margin-bottom: .22rem;
  }
  .rc-field-row.is-ours {
    background: linear-gradient(90deg, rgba(184,146,42,.13), transparent 82%);
    margin: 0 -1.75rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
  .rc-field-row.is-ours .rc-field-pp,
  .rc-field-row.is-ours .rc-field-horse { color: var(--gold-lt); }
  .rc-field-row.is-ours .ours-tag {
    font-family: var(--sans);
    font-size: .5rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(184,146,42,.45);
    padding: .12rem .4rem;
    margin-left: .55rem;
    white-space: nowrap;
  }
  @media (max-width: 720px) {
    .rc-field-row { grid-template-columns: 1.8rem 1fr; gap: .15rem .8rem; }
    .rc-field-pp { grid-row: span 3; }
    .rc-field-horse, .rc-field-meta { grid-column: 2; }
    .rc-field-row.is-ours { margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  }

  /* ── RESULT VARIANT (post-race) ── */
  .racecard--result {
    border-color: rgba(184,146,42,.28);
  }
  .result-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background:
      radial-gradient(ellipse at top left, rgba(184,146,42,.06), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  }
  .result-finish {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(184,146,42,.32);
    border-radius: 2px;
    background: rgba(0,0,0,.18);
    position: relative;
  }
  .result-finish::before,
  .result-finish::after {
    content: '';
    position: absolute;
    left: 8px; right: 8px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,146,42,.4), transparent);
  }
  .result-finish::before { top: 4px; }
  .result-finish::after  { bottom: 4px; }
  .result-finish .result-pos {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-lt);
    letter-spacing: -0.01em;
  }
  .result-finish .result-pos sup {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gold);
    margin-left: .1em;
    top: -1.4em;
  }
  .result-finish .result-of {
    margin-top: .4rem;
    font-family: var(--sans);
    font-size: .55rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .result-summary .result-line {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.55;
    color: rgba(232,229,221,.92);
    margin: 0 0 .65rem;
  }
  .result-summary .result-line em {
    font-style: normal;
    color: var(--gold-lt);
  }
  .result-summary .result-meta {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--grey);
    margin: 0;
  }
  .rc-cell .v sup {
    font-size: .55em;
    font-style: italic;
    color: var(--gold);
    top: -.6em;
  }
  .result-foot {
    background: rgba(184,146,42,.04);
  }

  /* ── RESULTS STRIP TINT ── */
  .cd-strip--result .cd-strip-tag,
  .cd-race.is-result .cd-strip-tag {
    color: var(--gold);
  }
  .cd-strip--result .cd-strip-title em,
  .cd-race.is-result .cd-strip-title em {
    color: var(--gold-lt);
  }
  /* finishing-order footnote under a result field */
  .rc-field-note {
    margin: .9rem 0 0;
    font-family: var(--sans);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--grey);
  }

  @media (max-width: 720px) {
    .result-hero { grid-template-columns: 1fr; padding: 1.25rem; }
    .result-finish { flex-direction: row; gap: .75rem; padding: .85rem 1rem; min-width: 0; }
    .result-finish .result-pos { font-size: 2.4rem; }
    .result-finish .result-of { margin-top: 0; }
  }

  /* ── BARN GALLERY ── */
  .barn-gallery {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
  }
  .barn-gallery-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .bg-eyebrow {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    flex-shrink: 0;
  }
  .bg-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(184,146,42,.5), rgba(184,146,42,.05));
  }
  .bg-meta {
    font-family: var(--serif);
    font-style: italic;
    font-size: .85rem;
    color: var(--grey);
    flex-shrink: 0;
  }
  .barn-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .barn-shot {
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0907;
  }
  .barn-shot img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    filter: contrast(1.04) saturate(.82) brightness(.97) sepia(.06);
    transition: transform 600ms ease, filter 600ms ease;
  }
  .barn-shot:hover img {
    transform: scale(1.02);
    filter: contrast(1.06) saturate(.9) brightness(1) sepia(.04);
  }
  .barn-shot figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.25rem .9rem;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(232,229,221,.85);
    background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
    pointer-events: none;
  }
  @media (max-width: 720px) {
    .barn-gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .barn-shot img { height: 300px; }
    .barn-gallery-head { flex-wrap: wrap; gap: .75rem; }
    .bg-meta { font-size: .75rem; }
  }

  /* ── HORSE / MO WORK ── */
  #horse {
    padding: 8rem 2rem;
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
  }
  #horse::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 80% 20%, rgba(184,146,42,.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 10% 90%, rgba(184,146,42,.04) 0%, transparent 60%);
    pointer-events: none;
  }
  .horse-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
  }
  .horse-header {
    text-align: center;
    margin-bottom: 4.5rem;
  }
  .horse-name {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 300;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--white);
    margin-top: 1.25rem;
    margin-bottom: .6rem;
  }
  .horse-kicker {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--gold-lt);
    letter-spacing: .02em;
  }

  .horse-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 1.35fr;
    gap: 3.5rem;
    align-items: start;
  }

  .horse-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    background:
      linear-gradient(180deg, #121212 0%, #0d0d0d 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
  }
  .horse-portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: contrast(1.04) saturate(.82) brightness(.98) sepia(.08);
  }
  .horse-portrait-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, transparent 0%, rgba(8,8,8,.85) 60%, rgba(8,8,8,.95) 100%);
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-lt);
    text-align: center;
    z-index: 2;
  }
  .horse-portrait::before,
  .horse-portrait::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184,146,42,.55), transparent);
    z-index: 2;
  }
  .horse-portrait::before { top: 14px; }
  .horse-portrait::after  { bottom: 14px; }
  .horse-portrait-mark {
    text-align: center;
    padding: 0 1.5rem;
  }
  .horse-portrait-mark .monogram {
    font-family: var(--serif);
    font-size: clamp(3.2rem, 6vw, 4.6rem);
    font-weight: 300;
    letter-spacing: .08em;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1.25rem;
  }
  .horse-portrait-mark .diamond {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    margin: 0 .5rem;
    vertical-align: middle;
    opacity: .8;
  }
  .horse-portrait-mark .caption {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: 1.5rem;
  }

  .horse-spec {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .horse-spec-intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: rgba(240,236,228,.82);
    margin-bottom: 2.25rem;
    max-width: 52ch;
  }

  .spec-table {
    border-top: 1px solid var(--border);
  }
  .spec-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
  }
  .spec-label {
    font-family: var(--sans);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
  }
  .spec-value {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--white);
    font-variant-numeric: tabular-nums oldstyle-nums;
  }
  .spec-value .muted {
    color: var(--grey);
    font-style: italic;
  }

  .next-race {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(184,146,42,.25);
    background: rgba(184,146,42,.04);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
  }
  .next-race-label {
    font-family: var(--sans);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
    border-right: 1px solid rgba(184,146,42,.2);
    padding-right: 2rem;
  }
  .next-race-body {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.5;
  }
  .next-race-body .muted {
    color: var(--grey);
    font-style: italic;
  }

  @media (max-width: 820px) {
    #horse { padding: 5rem 1.5rem; }
    .horse-grid {
      grid-template-columns: 1fr;
      gap: 2.5rem;
    }
    .horse-portrait { aspect-ratio: 5 / 4; max-width: 520px; margin: 0 auto; width: 100%; }
    .spec-row { grid-template-columns: 130px 1fr; gap: 1rem; }
    .next-race {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 1.5rem;
    }
    .next-race-label {
      border-right: none;
      border-bottom: 1px solid rgba(184,146,42,.2);
      padding-right: 0;
      padding-bottom: 1rem;
    }
  }

  /* ── TEAM ── */
  #team {
    padding: 7rem 2rem;
    background: var(--dark);
    border-top: 1px solid var(--border);
  }
  .section-header {
    text-align: center;
    margin-bottom: 4.5rem;
  }
  .section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  .team-card {
    border: 1px solid var(--border);
    padding: 3rem 2.5rem;
    position: relative;
    transition: border-color .3s;
  }
  .team-card:hover { border-color: rgba(184,146,42,.3); }
  .team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 2.5rem;
    width: 40px;
    height: 2px;
    background: var(--gold);
  }

  .team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(184,146,42,.4);
    overflow: hidden;
  }
  .team-avatar svg { width: 36px; height: 36px; color: var(--gold); opacity: .6; }

  .team-name {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .04em;
    margin-bottom: .25rem;
  }
  .team-role {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
  }
  .team-bio {
    font-size: .88rem;
    color: rgba(240,236,228,.65);
    line-height: 1.8;
  }
  .team-creds {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    gap: .55rem;
  }
  .team-creds li {
    font-family: var(--sans);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--grey);
    display: flex;
    align-items: baseline;
    gap: .6rem;
    line-height: 1.5;
  }
  .team-creds .tc-n {
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--gold-lt);
    font-variant-numeric: tabular-nums;
    min-width: 5.5rem;
  }
  .team-creds em {
    font-family: var(--serif);
    font-style: italic;
    font-size: .8rem;
    letter-spacing: normal;
    text-transform: none;
    color: rgba(136,136,128,.75);
  }

  /* ── EXPERIENCE BAND ── */
  #experience {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
    background: var(--black);
    border-top: 1px solid var(--border);
  }
  #experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 100% 80% at 50% 50%, rgba(184,146,42,.06) 0%, transparent 70%);
  }
  .exp-inner { position: relative; max-width: 820px; margin: 0 auto; }
  .exp-quote {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.55;
    color: var(--white);
    margin-bottom: 2.5rem;
  }
  .exp-quote em { font-style: normal; color: var(--gold-lt); }

  .exp-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.5rem;
  }
  .exp-pill {
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey);
    border: 1px solid var(--border);
    padding: .5rem 1.2rem;
    transition: all .3s;
  }
  .exp-pill:hover {
    border-color: rgba(184,146,42,.4);
    color: var(--gold-lt);
  }

  /* ── CIRCUIT ── */
  #circuit {
    padding: 7rem 2rem;
    background: var(--dark);
    border-top: 1px solid var(--border);
  }
  .circuit-inner {
    max-width: 1000px;
    margin: 0 auto;
  }
  .circuit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: 3rem;
  }
  .circuit-card {
    background: var(--card);
    padding: 2.5rem 2rem;
    position: relative;
    transition: background .3s;
  }
  .circuit-card:hover { background: #161616; }
  .circuit-badge {
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .5rem;
  }
  .circuit-name {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: .5rem;
  }
  .circuit-detail {
    font-size: .8rem;
    color: var(--grey);
    line-height: 1.6;
  }

  /* ── CTA ── */
  #cta {
    padding: 8rem 2rem;
    background: var(--black);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .cta-inner { max-width: 600px; margin: 0 auto; }
  .cta-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: .06em;
    margin-bottom: 1rem;
  }
  .cta-sub {
    font-family: var(--serif);
    font-style: italic;
    color: var(--grey);
    margin-bottom: 3rem;
    font-size: 1.05rem;
  }

  .cta-form { display: flex; flex-direction: column; gap: 1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-field { display: flex; flex-direction: column; gap: .35rem; }
  .form-field label {
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
    font-size: .88rem;
    padding: .85rem 1rem;
    outline: none;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none;
  }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus { border-color: rgba(184,146,42,.5); }
  .form-field textarea { resize: vertical; min-height: 90px; }
  .form-field select { cursor: pointer; }
  .form-field select option { background: var(--card); }

  .cta-btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--gold);
    border: none;
    padding: 1.1rem 3rem;
    cursor: pointer;
    transition: background .3s, transform .2s;
    margin-top: .5rem;
    align-self: center;
  }
  .cta-btn:hover {
    background: var(--gold-lt);
    transform: translateY(-1px);
  }
  .form-note {
    font-size: .7rem;
    color: var(--grey);
    margin-top: 1rem;
    font-style: italic;
  }

  /* ── FOOTER ── */
  footer {
    padding: 2.5rem 3.5rem;
    background: var(--dark);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .footer-logo {
    font-family: var(--serif);
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .footer-sep { color: var(--border); }
  .footer-email {
    font-size: .65rem;
    letter-spacing: .08em;
    color: var(--grey);
    text-decoration: none;
    transition: color .3s;
  }
  .footer-email:hover { color: var(--gold); }
  .footer-disclaimer {
    font-size: .6rem;
    color: rgba(136,136,128,.5);
    max-width: 480px;
    text-align: right;
    line-height: 1.5;
  }

  /* ── TOAST ── */
  #toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: var(--card);
    border: 1px solid rgba(184,146,42,.4);
    color: var(--white);
    font-size: .78rem;
    padding: 1rem 1.5rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s, transform .4s;
    pointer-events: none;
  }
  #toast.show { opacity: 1; transform: none; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav { padding: 1.2rem 1.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .team-grid  { grid-template-columns: 1fr; }
    .circuit-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    footer { flex-direction: column; align-items: flex-start; }
    .footer-disclaimer { text-align: left; }
  }
  @media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
  }

  /* ── THE STABLE (multi-horse layout) ── */
  .stable-roster {
    margin-top: 1rem;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--grey);
  }
  .stable-roster strong {
    color: var(--gold);
    font-weight: 400;
    letter-spacing: .32em;
  }
  .horse-profile {
    position: relative;
  }
  .horse-profile + .horse-profile {
    margin-top: 6rem;
    padding-top: 6rem;
    border-top: 1px solid var(--border);
  }
  .horse-profile-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(184,146,42,.15);
  }
  .horse-profile-head .hp-index {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .04em;
    min-width: 32px;
  }
  .horse-profile-head .hp-name {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: .02em;
    line-height: 1;
    flex: 1 1 auto;
  }
  .horse-profile-head .hp-status {
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    padding: .55rem .9rem;
    border: 1px solid rgba(184,146,42,.4);
    color: var(--gold-lt);
    background: rgba(184,146,42,.05);
    white-space: nowrap;
  }
  .horse-profile-head .hp-status.is-rest {
    border-color: rgba(232,229,221,.22);
    color: rgba(232,229,221,.7);
    background: rgba(255,255,255,.02);
  }
  .horse-profile-head .hp-status .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: .55rem;
    vertical-align: middle;
    animation: shimmer 2.4s ease-in-out infinite;
  }
  .horse-profile-head .hp-status.is-rest .dot {
    background: rgba(232,229,221,.55);
    animation: none;
  }
  .horse-profile-head .hp-kicker {
    width: 100%;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(.95rem, 1.4vw, 1.1rem);
    color: var(--grey);
    letter-spacing: .02em;
    margin-top: -.5rem;
  }

  /* Owner's-note style block used outside racecard */
  .note-block {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border);
    background: rgba(184,146,42,.04);
    font-family: var(--serif);
    font-style: italic;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--grey);
  }
  .note-block strong {
    display: inline-block;
    color: var(--gold-lt);
    font-style: normal;
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-right: .5rem;
  }

  @media (max-width: 720px) {
    .horse-profile + .horse-profile { margin-top: 4rem; padding-top: 4rem; }
    .horse-profile-head .hp-index { display: none; }
  }

  /* Official Equibase chart links */
  .eqb-link {
    display: inline-block;
    margin-top: .85rem;
    font-family: var(--sans);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(184,146,42,.3);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
  }
  .eqb-link:hover, .eqb-link:focus-visible { color: var(--gold-lt); border-bottom-color: var(--gold-lt); }
  .eqb-link--row { margin-top: 0; margin-left: .35rem; font-size: .52rem; letter-spacing: .16em; white-space: nowrap; }

  /* ── NAV: crest + full name on small phones (kept last so it wins) ── */
  @media (max-width: 430px) {
    nav, nav.is-condensed { padding-left: 1rem; padding-right: 1rem; }
    nav { gap: .5rem; }
    .nav-logo { gap: .45rem; font-size: .62rem; letter-spacing: .12em; min-width: 0; }
    nav.is-condensed .nav-logo { font-size: .6rem; }
    .nav-crest { height: 30px; }
    nav.is-condensed .nav-crest { height: 26px; }
    .nav-right { gap: .55rem; }
    .nav-cta, nav.is-condensed .nav-cta { padding: .45rem .65rem; font-size: .56rem; letter-spacing: .1em; white-space: nowrap; }
    .nav-toggle { width: 32px; }
  }

  /* phones: stop footer line + status pill from widening the page (which made
     mobile browsers zoom the whole site out) */
  @media (max-width: 700px) {
    .footer-left { flex-wrap: wrap; gap: .4rem 1rem; }
    .horse-profile-head .hp-status { white-space: normal; letter-spacing: .2em; line-height: 1.5; }
  }

  /* Mo Work portrait: full-frame photo (3:4) rather than letterboxed */
  .horse-portrait--photo .horse-portrait-img { object-fit: cover; object-position: center 35%; }
  @media (max-width: 820px) {
    .horse-portrait.horse-portrait--photo { aspect-ratio: 3 / 4; max-width: 420px; }
  }

  /* ── Next-out countdown: keep horse name readable on phones ── */
  @media (max-width: 680px) {
    .cd-race.is-upcoming .cd-strip-meta,
    .cd-race.is-upcoming .cd-trk { display: none; }
    .cd-race.is-upcoming .cd-strip-title { overflow: visible; text-overflow: clip; }
  }

  /* Hide Mo Work's scratched strip item on phones so New Addition + Latest Result fit */
  @media (max-width: 680px) {
    .cd-hide-narrow { display: none !important; }
  }

  /* Three-shot barn gallery on desktop */
  @media (min-width: 900px) {
    .barn-gallery-grid:has(> :nth-child(3)) {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }

  /* Cool Cowboy tribute — compact memorial of the first win */
  .tribute-win {
    margin-top: 1.75rem;
    padding: 1.5rem 1.75rem 1.35rem;
    border: 1px solid rgba(184,146,42,.45);
    background: rgba(184,146,42,.05);
  }
  .tribute-win-label {
    display: block;
    font-family: var(--sans);
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .9rem;
  }
  .tribute-win p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(.95rem, 1.4vw, 1.1rem);
    color: var(--grey);
    line-height: 1.65;
    margin: 0;
  }
  .tribute-win em { color: var(--white); font-style: italic; }
  .tribute-win-meta {
    margin-top: .8rem !important;
    font-family: var(--sans) !important;
    font-style: normal !important;
    font-size: .55rem !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey);
  }
