/* Inner pages: About, Register, Photos, event galleries and news articles. */
.page-head { padding-block: clamp(32px, 6vw, 64px) clamp(28px, 4vw, 48px); }
.page-title { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -0.02em; }
.page-intro { color: var(--grey-d); margin-top: 14px; max-width: 64ch; font-size: clamp(17px, 1.6vw, 19px); }
.page-intro + .page-intro { margin-top: 12px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 0; background: var(--wash); color: var(--ink); }
.chip.dark { background: var(--black); color: var(--yellow); }
.back { display: inline-flex; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; margin-bottom: 18px; }

.prose { max-width: 68ch; }
.prose p { color: var(--grey-d); }
.prose p + p { margin-top: 14px; }
.prose .lede { color: var(--ink); font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* photo layouts */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pair img, .shots img, .cover img { width: 100%; border-radius: 0; object-fit: cover; }
.pair img { aspect-ratio: 4 / 3; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shots img { aspect-ratio: 4 / 3; height: 100%; cursor: zoom-in; }
.shots button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 0; overflow: hidden; }
.cover img { aspect-ratio: 16 / 8; clip-path: var(--chamfer); border-radius: 0; }

/* goals and model */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.goal { background: var(--tint); border-radius: 0; padding: 26px; }
.goal h3 { font-size: 21px; }
.goal p { color: var(--ice); font-size: 15px; margin-top: 10px; }
.cdm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cdm figure { position: relative; }
.cdm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.cdm figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
.chart img { width: 100%; border-radius: 0; background: var(--white); }
.stages-list { display: grid; gap: 12px; counter-reset: st; }
.stages-list li { background: var(--white); border-radius: 0; padding: 20px 22px; }
.stages-list h3 { font-size: 18px; margin-bottom: 6px; }
.stages-list p { color: var(--grey-d); font-size: 16px; }
.stages-list p + p { margin-top: 10px; }

/* register routes */
.routes-full { display: grid; gap: 14px; }
.route-full { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(18px, 4vw, 48px); background: var(--wash); border-radius: 0; padding: clamp(22px, 3.5vw, 36px); }
.route-full h2 { font-size: clamp(22px, 2.6vw, 28px); }
.route-full .who { color: var(--grey-d); margin-top: 8px; font-weight: 600; }
.route-full p + p { margin-top: 12px; }
.route-full .copy { color: var(--grey-d); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; font-size: 15px; }
.route-full.pick { background: var(--yellow); }
.route-full.pick .copy, .route-full.pick .who { color: var(--ink); }
.locate { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 16px; font-weight: 600; }
.locate span { color: var(--grey-d); font-weight: 400; }

/* FAQ (same look as the store) */
.faq-list { max-width: 860px; }
.faq { background: var(--white); border-radius: 0; }
.faq + .faq { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 0; background: var(--wash); display: grid; place-items: center; font-weight: 700; transition: transform 200ms var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq-body { padding: 0 18px 18px; color: var(--grey-d); font-size: 16px; max-width: 68ch; }
.faq-body p + p { margin-top: 10px; }

/* events index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 0; border: 0; background: var(--wash); color: var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--black); color: var(--yellow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 20px; }
.card { display: block; text-decoration: none; color: inherit; }
.card-photo { display: block; position: relative; border-radius: 0; overflow: hidden; background: var(--wash); }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms var(--ease-out); }
.card-photo .badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 0; background: var(--black); color: var(--white); }
.card-title { display: block; font-weight: 700; font-size: 19px; line-height: 1.3; margin-top: 14px; }
.card-meta { display: block; color: var(--grey-d); font-size: 14px; margin-top: 4px; }
.card:active .card-photo img { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-photo img { transform: scale(1.03); } }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -0.02em; }
.article .date { color: var(--grey); font-weight: 600; margin-top: 12px; }
.article .lede { font-size: clamp(18px, 1.9vw, 21px); font-weight: 500; margin-top: 22px; }
.article .body p { color: var(--grey-d); margin-top: 14px; }
.article-cover { margin-block: 28px; }
.article-cover img { width: 100%; border-radius: 0; }

/* photo viewer */
dialog.viewer { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94vh; overflow: visible; opacity: 1; transition: opacity 200ms var(--ease-out); }
@starting-style { dialog.viewer[open] { opacity: 0; } }
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
dialog.viewer img { max-width: 96vw; max-height: 86vh; border-radius: 0; display: block; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: var(--white); font-size: 14px; }
.viewer-bar button { font: inherit; font-weight: 700; color: var(--black); background: var(--yellow); border: 0; border-radius: 0; padding: 10px 16px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.viewer-bar button:active { transform: scale(0.96); }

@media (max-width: 860px) {
  .two, .route-full, .goals { grid-template-columns: minmax(0, 1fr); }
  .cdm, .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card-title { font-size: 16px; }
}

/* added with the Photos pages */
.cards > li[hidden] { display: none; }
.card-empty { display: block; aspect-ratio: 4 / 3; background: var(--black) url("../assets/img/cobra-head.png") center / 38% no-repeat; }
.rows-white .row { background: var(--white); }
.results { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 6px; font-weight: 700; }
.article-more { margin-top: 28px; }
.empty-note { background: var(--wash); border-radius: 0; padding: 28px; color: var(--grey-d); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.pager a { background: var(--wash); border-radius: 0; padding: 18px 20px; text-decoration: none; font-weight: 700; transition: transform 160ms var(--ease-out); }
.pager a:active { transform: scale(0.98); }
.pager small { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-d); margin-bottom: 4px; }
.pager .next { text-align: right; }
.page-head .page-intro .textlink { color: var(--ink); }
.strip3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.strip3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.cdm .top img { object-position: center 20%; }
.start-note { margin-top: 28px; background: var(--wash); border-radius: 0; padding: 22px 24px; display: flex; gap: 20px; align-items: center; }
.start-note img { width: 96px; height: auto; flex: none; }
.start-note p { color: var(--grey-d); }
.start-note b { color: var(--ink); display: block; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 860px) { .strip3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip3 img:last-child { display: none; } }
.stage-ages { font-weight: 600; font-size: 14px; color: var(--grey-d); margin-left: 6px; }
.stages-list { list-style: none; padding: 0; }
.head + .values { margin-top: 0; }
@media (max-width: 520px) { .start-note { flex-direction: column; align-items: flex-start; } }
.more-photos { margin-top: 22px; color: var(--grey-d); }

/* ---------- Stages of development: the chart is drawn in code so it can build itself ---------- */
.stage-chart { position: sticky; top: 110px; }
.sc-bars { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 18px); align-items: end; height: clamp(300px, 36vw, 460px); padding-inline: 2px; }
.sc-bar { position: relative; height: var(--h); min-height: 74px; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px clamp(6px, 0.9vw, 12px); color: var(--black); }
.sc-bar::before { content: ""; position: absolute; inset: 0; background: var(--yellow); transform-origin: bottom; transition: background-color 200ms ease; }
.sc-bar b, .sc-bar span { position: relative; }
.sc-bar b { font-size: clamp(11px, 1.05vw, 14px); line-height: 1.2; }
.sc-bar span { font-size: clamp(9px, 0.8vw, 11px); line-height: 1.3; margin-top: 4px; }
.sc-base { height: clamp(12px, 1.6vw, 20px); background: var(--yellow); transform-origin: left; }
.sc-line { position: absolute; left: calc(50% - 1px); width: 25%; top: -6px; bottom: 0; border-left: 2px dashed var(--red); pointer-events: none; }
.sc-line span { display: block; padding: 0 12px 0 8px; font-size: clamp(9px, 0.85vw, 12px); font-weight: 700; line-height: 1.25; color: var(--ink); }
.sc-bar.hot::before { background: var(--black); }
.sc-bar.hot { color: var(--yellow); }
.sc-bar { transition: color 200ms ease; }
.stages-list li { transition: box-shadow 200ms ease; }
.stages-list li.hot { box-shadow: inset 4px 0 0 var(--yellow); }

/* the build: base line draws, the four steps rise one after another, then the red line drops in */
html.motion .sc-base { transform: scaleX(0); transition: transform 700ms var(--ease-out); }
html.motion .sc-bar::before { transform: scaleY(0); transition: transform 900ms var(--ease-out) calc(350ms + var(--n) * 170ms), background-color 200ms ease; }
html.motion .sc-bar b, html.motion .sc-bar span { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease-out calc(800ms + var(--n) * 170ms), transform 500ms var(--ease-out) calc(800ms + var(--n) * 170ms); }
html.motion .sc-line { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease-out) 1500ms; }
html.motion .sc-line span { opacity: 0; transition: opacity 400ms ease-out 2000ms; }
html.motion .stage-chart.in .sc-base { transform: none; }
html.motion .stage-chart.in .sc-bar::before { transform: none; }
html.motion .stage-chart.in .sc-bar b, html.motion .stage-chart.in .sc-bar span { opacity: 1; transform: none; }
html.motion .stage-chart.in .sc-line { clip-path: inset(0 0 0 0); }
html.motion .stage-chart.in .sc-line span { opacity: 1; }
@media (max-width: 860px) { .stage-chart { position: static; } }
@media (prefers-reduced-motion: reduce) {
  html.motion .sc-base, html.motion .sc-bar::before, html.motion .sc-bar b, html.motion .sc-bar span { transform: none; }
  html.motion .sc-line { clip-path: none; }
}

/* ---------- Members ---------- */
.member-filters { margin: 26px 0 0; }
.year-band { padding-block: 0 clamp(40px, 5vw, 72px); }
.year-band[hidden] { display: none; }
.year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 4px solid var(--yellow); padding-bottom: 10px; margin-bottom: clamp(18px, 2.2vw, 28px); }
.year-title { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1; }
.year-title small { font-size: 0.34em; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-d); margin-right: 6px; }
.year-count { font-weight: 700; color: var(--grey-d); font-size: 15px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.member { background: var(--yellow); color: var(--black); padding: 8px 8px 14px; transition: transform 220ms var(--ease-out); }
.member .coach-photo { background: #111; }
.member .coach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.member-empty { display: block; aspect-ratio: 4 / 5; background: #111 url("../assets/img/cobra-head.png") center / 46% no-repeat; }
.member-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; }
.member-name { font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; padding-bottom: 3px; }
.member-no { flex: none; font-weight: 700; font-size: clamp(30px, 3vw, 42px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.member-no small { font-size: 0.45em; font-weight: 700; vertical-align: 0.5em; margin-right: 1px; letter-spacing: 0; }
.member-tag { display: inline-block; margin-top: 8px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 600; padding: 3px 16px 3px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
@media (hover: hover) and (pointer: fine) { .member:hover { transform: translateY(-5px); } .member:hover .coach-photo img { transform: scale(1.03); } }
@media (max-width: 520px) { .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .member { padding: 6px 6px 12px; } }
.member-name.long { font-size: clamp(11px, 0.95vw, 13px); letter-spacing: 0.01em; overflow-wrap: normal; }
