/* COBRA/CAMP feature page. Square corners, yellow/black, Bai Jamjuree; motion follows the site rules. */
.tab-row { position: relative; }
.tab-link, .rail-nav { position: absolute; right: 0; top: 0; height: calc(100% - clamp(18px, 2.2vw, 30px) - 4px); display: flex; align-items: center; gap: 8px; }
.tab-link { font-weight: 700; font-size: 14px; text-decoration: none; padding-left: 12px; }
.tab-link .arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tab-link:hover .arrow { transform: translateX(4px); } }
.story-band { background: var(--black); color: var(--white); padding: clamp(48px, 6vw, 88px) var(--gutter); }
.story-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.story-main { transition: filter 180ms ease, opacity 180ms ease; }
.story-main.swapping { filter: blur(6px); opacity: 0.6; }
.story-now { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.story-now span { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.story-now b { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-pick { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--white); text-align: left; font: inherit; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.story-pick:active { transform: scale(0.98); }
.story-pick[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 214, 0, 0.1); }
.sp-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-len { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.8); font-size: 11px; font-weight: 700; padding: 1px 6px; }
.sp-text { font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; line-height: 1.35; }
.story-pick[aria-pressed="true"] .sp-text { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .story-pick:hover { border-color: rgba(255, 255, 255, 0.6); } .story-pick[aria-pressed="true"]:hover { border-color: var(--yellow); } }
@media (max-width: 900px) { .story-layout { grid-template-columns: minmax(0, 1fr); } }
.story-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.story-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.story-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.story-icon { position: relative; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; background: var(--yellow); color: var(--black); display: grid; place-items: center; transition: transform 200ms var(--ease-out); }
.story-play:active .story-icon { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .story-play:hover .story-icon { transform: scale(1.08); } .story-play:hover img { transform: scale(1.02); } }
@media (max-width: 900px) { .tab-link { position: static; height: auto; margin: -8px 0 16px; justify-content: flex-end; } }

/* hero */
.cc-hero { position: relative; isolation: isolate; background: var(--black); color: var(--white); padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(48px, 7vw, 96px); overflow: hidden; }
.cc-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 45%, rgba(0,0,0,0.35) 100%); }
.cc-hero-in { max-width: var(--max); }
.cc-logo { width: min(420px, 82%); height: auto; display: block; margin-bottom: clamp(22px, 3vw, 34px); }
.cc-hero .page-title { color: var(--white); max-width: 16ch; }
.cc-hero .lead { color: #E6E6E6; max-width: 58ch; }
.cc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3vw, 32px); }

/* stats */
.cc-stats-band { padding-block: clamp(28px, 4vw, 44px); background: var(--yellow); }
.cc-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cc-stats li { display: grid; gap: 2px; border-left: 4px solid var(--black); padding-left: 14px; }
.cc-stats b { font-size: clamp(36px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.cc-stat-l { font-weight: 700; font-size: 16px; }
.cc-stat-s { font-size: 14px; color: #3a3a3a; }

/* films band sits on black */
.cc-films .tab { margin-bottom: clamp(18px, 2.2vw, 30px); }

/* week pillars */
.cc-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cc-pillars li { background: var(--wash); }
.cc-pillars img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cc-pillars h3 { font-size: 20px; padding: 16px 18px 0; }
.cc-pillars p { color: var(--grey-d); font-size: 15px; padding: 6px 18px 20px; }

/* day by day */
.cc-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: d; }
.cc-day { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); background: var(--white); }
.cc-day figure { margin: 0; overflow: hidden; }
.cc-day img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.cc-day-text { padding: clamp(18px, 2.6vw, 30px); display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--yellow); }
.cc-day-when { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-weight: 600; font-size: 14px; color: var(--grey-d); }
.cc-day-when span { background: var(--black); color: var(--yellow); font-weight: 700; padding: 3px 18px 3px 9px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.cc-day h3 { font-size: clamp(21px, 2.3vw, 27px); margin-top: 10px; }
.cc-day-text > p:not([class]) { color: var(--grey-d); margin-top: 8px; max-width: 56ch; }
.cc-day-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cc-ig { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--yellow); color: var(--black); font-weight: 700; font-size: 14px; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.cc-ig:active { transform: scale(0.97); }
.cc-ig.dark { background: var(--black); color: var(--white); }
.cc-ig.dark svg { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .cc-ig:hover { background: #FFE34D; } .cc-ig.dark:hover { background: #262626; } }
.cc-after { margin-top: 26px; padding-top: 22px; border-top: 1px solid #D6D6D6; }
.cc-after-title { font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.cc-after .cc-day-links { margin-top: 12px; }

/* coaches */
.cc-coaches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cc-coach { background: var(--yellow); padding: 20px 22px 24px; }
.cc-coach h3 { font-size: 22px; }
.cc-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-weight: 600; font-size: 15px; }
.cc-role span { background: var(--black); color: var(--white); font-size: 12px; padding: 4px 18px 4px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.cc-role small { font-size: 11px; color: #4a4a4a; }
.cc-coach > p:last-child { margin-top: 12px; font-size: 15px; color: #2a2a2a; }

/* places */
.cc-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cc-places img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; clip-path: var(--chamfer); }
.cc-places h3 { font-size: 20px; margin-top: 16px; color: var(--yellow); }
.cc-places p { color: var(--ice); font-size: 15px; margin-top: 8px; }

/* past editions */
.cc-past { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cc-past-card { display: flex; flex-direction: column; background: var(--wash); }
.cc-past-img { display: block; overflow: hidden; }
.cc-past-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 500ms var(--ease-out); }
.cc-past-card > div { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.cc-past-year { font-weight: 700; font-size: 20px; }
.cc-past-meta { font-size: 13px; font-weight: 600; color: var(--grey-d); }
.cc-past-card > div > p:nth-child(3) { color: var(--grey-d); font-size: 15px; }
.cc-past-links { display: flex; gap: 18px; margin-top: auto; padding-top: 6px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .cc-past-img:hover img { transform: scale(1.04); } }

/* next camp */
.cc-next { background: var(--yellow); }
.cc-next-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cc-next .lead { color: #2a2a2a; }
.cc-next img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--chamfer); }

/* reel viewer */
.cc-reel { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.cc-reel::backdrop { background: rgba(0, 0, 0, 0.82); }
.cc-reel[open] { display: grid; place-items: center; }
.cc-reel-box { width: min(420px, calc(100vw - 24px)); background: var(--black); color: var(--white); padding: 10px; display: grid; gap: 10px; animation: cc-in 260ms var(--ease-out); }
@keyframes cc-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.cc-reel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 0 6px; }
.cc-reel-name { font-size: 15px; color: var(--yellow); }
.cc-reel-close { width: 40px; height: 40px; border: 0; background: var(--tint); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.cc-reel-frame { background: #fff; height: min(720px, calc(100dvh - 140px)); overflow: hidden; }
.cc-reel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cc-reel-open { color: var(--yellow); font-size: 14px; padding: 0 6px 4px; }
@media (prefers-reduced-motion: reduce) { .cc-reel-box { animation: none; } }

@media (max-width: 1000px) {
  .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-coaches, .cc-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cc-day { grid-template-columns: minmax(0, 1fr); }
  .cc-day img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .cc-day-text { border-left: 0; border-top: 4px solid var(--yellow); }
  .cc-coaches, .cc-places, .cc-pillars { grid-template-columns: minmax(0, 1fr); }
  .cc-next-in { grid-template-columns: minmax(0, 1fr); }
  .cc-past { grid-template-columns: minmax(0, 1fr); }
}
