/* Active Monkeys · activemonkeys.gr · v4: rounded panels, floating header, gentle motion, Instagram-post details */

/* Fonts, self-hosted (SIL Open Font License): Sofia Sans, Sofia Sans Extra Condensed, Lexend (latin only, for the Instagram-style run card) */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 200 500; font-display: swap; src: url(../fonts/lexend-latin.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; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/sofia-sans-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/sofia-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/sofia-sans-latin.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; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/sofia-sans-extra-condensed-greek.woff2) format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/sofia-sans-extra-condensed-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/sofia-sans-extra-condensed-latin.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 {
  --ink: #111111;
  --black: #000000;
  --white: #ffffff;
  --grey: #939393;          /* the grey of "active" in the logo */
  --grey-dark: #7d7d7d;
  --grey-on-dark: #8c8c8c;
  --paper: #f1f1ee;
  --paper-2: #e8e8e3;
  --line: rgba(17, 17, 17, .12);
  --line-dark: rgba(255, 255, 255, .16);
  --max: 1280px;
  --pad: clamp(20px, 5vw, 56px);
  --gap: clamp(8px, 1vw, 14px);          /* space around the rounded panels */
  --r-lg: clamp(22px, 2.6vw, 36px);
  --r-md: clamp(16px, 1.6vw, 24px);
  --r-sm: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ig: "Lexend", "Sofia Sans", system-ui, sans-serif;   /* the thin type of the Instagram announcements */
  --top-h: 76px;
  --pill-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--gap) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mute { color: var(--grey); }
.sec--dark .mute, .hero .mute, .numbers .mute { color: var(--grey-on-dark); }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.ico--sm { width: .85em; height: .85em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px; border: 1.5px solid currentColor; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.14); }

/* ---------- Header: transparent over the hero, floating pill after ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding: var(--gap) var(--gap) 0; color: var(--ink); pointer-events: none; transition: color .3s var(--ease); }
.top__in { pointer-events: auto; position: relative; height: var(--pill-h); max-width: 1200px; margin-inline: auto; padding-inline: 26px 10px; display: flex; align-items: center; gap: 28px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: 0 14px 34px -16px rgba(0,0,0,.25), 0 0 0 1px rgba(17,17,17,.06); transition: height .5s var(--ease), max-width .6s var(--ease), padding .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .top__in { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
}
.top.on-dark { color: var(--white); }
.top.on-dark .top__in { height: var(--top-h); max-width: var(--max); padding-inline: var(--pad); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: block; width: clamp(140px, 15vw, 184px); flex: none; }
.brand img { width: 100%; }
.brand__dark { display: block; }
.brand__light { display: none; }
.top.on-dark .brand__dark { display: none; }
.top.on-dark .brand__light { display: block; }
#nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
#nav a { font-size: 15px; font-weight: 600; text-decoration: none; position: relative; padding: 6px 0; }
#nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
#nav a:hover::after { transform: scaleX(1); }
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; opacity: .6; transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); opacity: 1; }
.top.on-dark .lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.btn--top { border-color: var(--ink); background: var(--ink); color: var(--white); }
.btn--top:hover { background: transparent; color: var(--ink); }
.top.on-dark .btn--top { background: var(--white); color: var(--ink); border-color: var(--white); }
.top.on-dark .btn--top:hover { background: transparent; color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.top.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.top.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .btn--top { display: none; }
}
@media (max-width: 920px) {
  :root { --top-h: 66px; --pill-h: 58px; }
  .menu-btn { display: block; }
  .top__in { padding-inline: 20px 6px; }
  .top__end { margin-left: auto; }
  #nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 22px 12px; background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 26px 60px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(17,17,17,.06); transform: translateY(-8px) scale(.98); transform-origin: top center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  #nav a { font-family: var(--display); font-size: 30px; font-weight: 800; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #nav a:last-child { border-bottom: 0; }
  #nav a::after { display: none; }
  .top.menu-open { color: var(--ink); }
  .top.menu-open .top__in { height: var(--pill-h); padding-inline: 20px 6px; background: var(--white); box-shadow: 0 14px 34px -16px rgba(0,0,0,.25), 0 0 0 1px rgba(17,17,17,.06); }
  .top.menu-open .brand__dark { display: block; }
  .top.menu-open .brand__light { display: none; }
  .top.menu-open .lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
  .top.menu-open #nav { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Rounded panels ---------- */
.hero, .numbers, .sec--dark, .sec--paper, .foot { margin: var(--gap); border-radius: var(--r-lg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100vh - 2 * var(--gap)); min-height: calc(100svh - 2 * var(--gap)); display: flex; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%; animation: hero-settle 2.6s var(--ease) both; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.38) 30%, rgba(0,0,0,0) 48%),
  linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 22%, rgba(0,0,0,0) 42%); }
.hero__in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: calc(var(--top-h) + clamp(24px, 4vh, 48px)); padding-bottom: clamp(28px, 5vh, 56px); }
.kicker { margin-bottom: 18px; font-size: 14px; font-weight: 600; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(58px, min(8.6vw, 15vh), 156px); line-height: .86; letter-spacing: -.01em; text-transform: uppercase; display: grid; }
.hero__title > span + span { padding-left: .5em; }
.hero__title .mute { color: rgba(255,255,255,.6); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 56px; }
.hero__lead { max-width: 40ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; font-weight: 400; color: rgba(255,255,255,.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__tag { position: absolute; right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 15px; font-weight: 300; letter-spacing: .12em; color: rgba(255,255,255,.75); }

/* intro: the photo settles, the words rise once on load */
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.kicker, .hero__title > span, .hero__foot { animation: rise 1.1s var(--ease) both; }
.hero__title > span:nth-child(1) { animation-delay: .1s; }
.hero__title > span:nth-child(2) { animation-delay: .22s; }
.hero__foot { animation-delay: .42s; }

/* "next run": set exactly like the crew's Instagram announcements (Morning Run / dd/mm/yy | 07:00 a.m. / Zappeion Megaron) */
.next { min-width: 280px; max-width: 360px; }
.next__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.next__title { font-family: var(--ig); font-weight: 300; font-size: clamp(32px, 3vw, 42px); line-height: 1.1; letter-spacing: .005em; }
.next__rule { display: block; width: 96px; height: 2px; background: var(--white); margin: 18px 0 16px; }
.next__meta { font-family: var(--ig); font-size: clamp(19px, 1.6vw, 22px); font-weight: 200; line-height: 1.3; color: rgba(255,255,255,.85); }
.next__meta strong { font-weight: 500; color: var(--white); }
.next__place { font-family: var(--ig); font-size: clamp(19px, 1.6vw, 22px); font-weight: 300; line-height: 1.3; color: rgba(255,255,255,.85); }
.next__note { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 16px; line-height: 1.45; max-width: 34ch; }
.next__note a { color: var(--white); }

@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__tag { display: none; }
  .hero__title > span + span { padding-left: 0; }
  .hero__title > span { display: grid; }
  .hero__img { object-position: 62% 40%; }
  .hero__shade { background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 28%, rgba(0,0,0,.2) 40%),
    linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.1) 68%); }
  .hero__in { gap: 32px; }
  .hero__lead { font-size: 17px; }
  .kicker { font-size: 12px; }
  .next { min-width: 0; max-width: none; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 11vw, 150px); }
.sec--dark { background: var(--ink); color: var(--white); }
.sec--paper { background: var(--paper); }
.eyebrow { margin-bottom: 18px; font-size: 14px; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; color: var(--grey-dark); }
.sec--dark .eyebrow { color: var(--grey-on-dark); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6.4vw, 96px); line-height: .9; letter-spacing: -.005em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 46ch; margin-top: 24px; }
.sec--dark .lead { color: rgba(255,255,255,.82); }
.head { max-width: 980px; margin-bottom: clamp(48px, 6vw, 80px); }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head--row > div:first-child { max-width: 860px; }

/* photos: soft corners everywhere */
.about__photo, .where__photo, .weekends__photo, .merch__photo { border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.prose { margin-top: 36px; display: grid; gap: 18px; max-width: 52ch; font-size: clamp(18px, 1.5vw, 20px); }
.price { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; max-width: 22ch; }
.price span { color: var(--grey); }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 520px; } }

/* ---------- Numbers ---------- */
.numbers { background: var(--ink); color: var(--white); padding-block: clamp(44px, 6vw, 72px); }
.numbers__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px clamp(14px, 2vw, 28px); border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 104px); line-height: .9; }
.stat__n small { font-size: .38em; font-weight: 700; margin-left: .12em; color: var(--grey-on-dark); }
.stat__t { margin-top: 10px; font-size: 16px; color: rgba(255,255,255,.72); }
@media (max-width: 760px) {
  .numbers__in { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Friday ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.step { display: flex; flex-direction: column; padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-lg); background: var(--paper); }
.step__n { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--grey-dark); }
.step__t { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.2vw, 48px); line-height: .95; margin: 0 0 12px; padding-top: clamp(56px, 7vw, 96px); }
.step p { font-size: 17px; color: #444; max-width: 30ch; }
.step--fun { background: var(--ink); color: var(--white); }
.step--fun .step__n { color: var(--grey-on-dark); }
.step--fun p { color: rgba(255,255,255,.75); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step__t { padding-top: 22px; }
}

.where { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.where__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spot { padding: 26px 0; border-top: 1px solid var(--line); }
.spot:first-of-type { border-top: 0; padding-top: 6px; }
.spot__tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-dark); }
.spot__name { font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px); line-height: .95; margin: 6px 0 10px; }
.spot p { max-width: 44ch; }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 18px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.link:hover { background: var(--ink); color: var(--white); }
.rain { margin-top: 18px; padding: 18px 22px; background: var(--paper); border-radius: var(--r-md); font-size: 17px; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .where__photo { max-width: 460px; } }

/* ---------- Weekends ---------- */
.weekends { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.weekends__photo { margin-top: 44px; max-width: 420px; }
.weekends__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.run { padding: clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; align-items: baseline; }
.run:first-child { padding-top: 0; }
.run__t { font-family: var(--display); font-weight: 900; font-size: clamp(46px, 5.6vw, 84px); line-height: .9; text-transform: uppercase; }
.run p { color: rgba(255,255,255,.78); }
.run--small { display: block; border-bottom: 0; }
.run--small p { font-size: 19px; color: rgba(255,255,255,.9); max-width: 48ch; }
.run--small span { color: var(--grey-on-dark); }
@media (max-width: 980px) { .weekends { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .run { grid-template-columns: 1fr; } }

/* ---------- Races ---------- */
.filter { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); }
.filter button { border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
/* photo on top, words underneath, so nothing covers the faces */
.races { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.4vw, 20px); }
.race[hidden] { display: none; }
.race__photo { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; isolation: isolate; background: var(--paper); }
.race__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.race:hover .race__photo img { transform: scale(1.04); }
.race__photo--blank { display: grid; place-items: center; padding: 16px; background: var(--ink); color: var(--white); }
.race__photo--blank span { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 2.8vw, 42px); line-height: .9; text-transform: uppercase; text-align: center; }
/* upcoming race: the race's own logo on black until we have a photo */
.race__photo--logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 1.4vw, 18px); margin: 0; padding: 16px 14%; background: var(--ink); color: var(--white); }
.race__photo--logo img { width: 100%; height: auto; object-fit: contain; }
.race:hover .race__photo--logo img { transform: none; }
.race__photo--logo figcaption { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.race__in { padding: 16px 2px 0; }
.race__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-dark); }
.race__top span:first-child { color: var(--ink); }
.race__city { margin-top: 6px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 2.8vw, 44px); line-height: .92; text-transform: uppercase; overflow-wrap: anywhere; }
.race__name { margin-top: 6px; font-size: 15px; line-height: 1.4; color: #555; }
@media (max-width: 1100px) { .races { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .races { grid-template-columns: 1fr 1fr; }
  .race__in { padding-top: 12px; }
  .race__top { font-size: 11px; letter-spacing: .08em; }
  .race__city { font-size: 28px; }
  .race__name { font-size: 14px; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r-md); background: #222; cursor: zoom-in; overflow: hidden; isolation: isolate; }
.gallery li:first-child button { border-radius: var(--r-lg); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.gallery li:first-child img { aspect-ratio: auto; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-md); }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.lb-btn:hover { border-color: var(--white); background: rgba(255,255,255,.16); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Merch ---------- */
.merch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.merch__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.merch__text { position: relative; }
.merch__monkey { width: 84px; margin-bottom: 28px; }
.merch .btn { margin-top: 32px; }
@media (max-width: 860px) { .merch { grid-template-columns: 1fr; } .merch__text { order: -1; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--top-h) + var(--gap) + 32px); }
.faq__list { display: grid; gap: 10px; }
.faq details { padding-inline: clamp(20px, 2.2vw, 30px); border-radius: var(--r-md); background: var(--paper); transition: background-color .3s var(--ease); }
.faq details:hover { background: var(--paper-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.05; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; background:
  linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
  var(--white); transition: transform .4s var(--ease); }
.faq details[open] summary::after { background: linear-gradient(var(--white), var(--white)) center / 14px 2px no-repeat, var(--ink); transform: rotate(180deg); }
.faq details p { padding: 0 52px 24px 0; max-width: 60ch; color: #444; }
/* smooth open/close where the browser supports it */
@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .45s var(--ease), content-visibility .45s var(--ease) allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.social { display: flex; gap: 12px; margin-top: 36px; }
.social a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.social a:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }
.social a.is-soon { opacity: .45; cursor: default; }
.social a.is-soon:hover { background: rgba(255,255,255,.08); color: var(--white); transform: none; }
.social svg { width: 22px; height: 22px; }
.social--sm { margin-top: 0; }
.social--sm a { width: 44px; height: 44px; }
.social--sm svg { width: 19px; height: 19px; }

.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--white); background-color: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); padding: 14px 16px; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 46px; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.6); background-color: rgba(255,255,255,.1); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); box-shadow: 0 0 0 100px #262626 inset; caret-color: var(--white); }
.field [aria-invalid="true"] { border-color: #ff8a8a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 8px; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form__note { font-size: 14px; color: rgba(255,255,255,.6); }
.form__status { font-size: 17px; font-weight: 600; min-height: 1.6em; }
.form__status.is-ok { color: #b9f3c6; }
.form__status.is-err { color: #ffb0b0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--white); padding-block: 56px 32px; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.foot__logo { width: 190px; }
.foot__slogan { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.8); }
.foot__slogan span { margin-left: 10px; color: var(--grey-on-dark); }
.foot__small { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgba(255,255,255,.55); }
.foot__small a { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- Gentle reveal (added by JS, once per element) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--photo { transform: none; }
.reveal--photo img { transform: scale(1.1); transition: transform 1.6s var(--ease); }
.reveal--photo.is-in img { transform: none; }

/* ---------- Privacy page ---------- */
.page { padding: calc(var(--top-h) + var(--gap) + 64px) 0 100px; }
.page .h2 { font-size: clamp(44px, 6vw, 80px); }
.page .prose { max-width: 64ch; }
.page h3 { font-family: var(--display); font-size: 30px; margin-top: 18px; }
