/* ==========================================================================
   On Your Bike: site template
   (C) 2026 The Design Company. GPL-2.0-or-later.
   ========================================================================== */

:root {
  --night: #0c1715;
  --night-2: #12221f;
  --deep: #070d0c;
  --ink: #f4ecdc;
  --muted: #a9b3a6;
  --dusk-1: #ffb35c;
  --dusk-2: #ff6a3d;
  --dusk-3: #c2456b;
  --dusk-4: #3a2a5c;
  --accent: #ff6a3d;
  --accent-2: #ffd166;
  --teal: #7fd1b9;
  --line: rgba(244, 236, 220, .14);
  --card: #f4ecdc;
  --card-ink: #1b2622;
  --r-fit: #e0a100;
  --r-tech: #e2552a;
  --r-fun: #2f8f75;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 6vw, 96px);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.visually-hidden, .element-invisible { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent-2); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.kicker { display: inline-block; font: 700 13px/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
a.kicker:hover { color: var(--accent-2); }
.lede { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; max-width: 30ch; }
.count-pill { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--night); font-weight: 700; font-size: 13px; line-height: 1.3; }
.btn, .btn-primary, .btn-secondary, button.validate {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.btn--solid, .btn-primary, button.validate { background: var(--accent); color: var(--night); }
.btn--solid:hover, .btn-primary:hover, button.validate:hover { transform: translateY(-3px); background: var(--accent-2); }
.btn--ghost, .btn-secondary { border-color: rgba(244, 236, 220, .5); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn-secondary:hover { background: rgba(244, 236, 220, .1); border-color: var(--ink); }

/* ---------- header / nav ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(16px, 4vw, 48px); transition: background .4s, height .3s, border-color .4s; border-bottom: 1px solid transparent; }
.site-head.scrolled, .is-inner .site-head { background: rgba(12, 23, 21, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-head.scrolled { height: 64px; }
.logo img { height: clamp(30px, 4vw, 44px); width: auto; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 15px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a, .nav__label { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; transition: background .25s, color .25s; }
.nav__item > a:hover, .nav__item.active > a { background: rgba(244, 236, 220, .1); }
.nav__item.active > a { color: var(--accent-2); }
.nav__toggle { display: none; }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .25s; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; transform: none; pointer-events: auto; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; text-decoration: none; }
.nav__sub a:hover, .nav__sub .active > a { background: rgba(255, 106, 61, .15); color: var(--accent-2); }
.burger { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font: 700 14px var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.burger__icon { display: grid; gap: 5px; }
.burger__icon i { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .3s; }
.nav-open .burger__icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .burger__icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: inline-flex; z-index: 2; }
  .site-nav { position: fixed; inset: 0; background: var(--night); padding: calc(var(--head-h) + 20px) var(--gutter) 40px; overflow-y: auto; clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
  .nav-open .site-nav { clip-path: circle(150% at calc(100% - 40px) 38px); }
  .nav-open { overflow: hidden; }
  .nav { flex-direction: column; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item > a, .nav__label { flex: 1; padding: 16px 0; border-radius: 0; font: 900 clamp(32px, 9vw, 48px)/1 var(--display); text-transform: uppercase; }
  .nav__item > a:hover, .nav__item.active > a { background: none; }
  .nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
  .nav__toggle::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
  .nav__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
  .nav__sub { position: static; flex-basis: 100%; opacity: 1; transform: none; pointer-events: auto; background: none; border: 0; box-shadow: none; padding: 0 0 12px; display: none; }
  .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sub a { font-size: 17px; padding: 10px 0; }
}

/* ---------- sections ---------- */
main { position: relative; }
.section { position: relative; z-index: 1; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.section__head { position: relative; }
.section__title, .page-head__title { font: 900 clamp(48px, 8vw, 112px)/.9 var(--display); text-transform: uppercase; margin: 14px 0 26px; }
.section__more { position: absolute; right: var(--gutter); margin-top: -90px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.section__more:hover { color: var(--accent-2); }
@media (max-width: 700px) { .section__more { position: static; display: inline-block; margin: 0 0 24px; } }

.trail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.trail__ghost { stroke-dasharray: 2 12; opacity: .5; }
@media (max-width: 700px) { .trail { display: none; } }
.topo { position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none; width: 100%; height: 100%; }
.topo path { fill: none; stroke: var(--ink); stroke-width: 1; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #1d2140 0%, var(--night) 60%); }
.hero__reel { position: absolute; inset: 13vh 11vw 17vh; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); overflow: hidden; background: #1a1a22; }
.hero__slide { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); }
.hero__slide.is-on { clip-path: inset(0 0 0 0); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.15); transform: scale(1.15); }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #2a1f45; mix-blend-mode: lighten; }
.hero__shade { position: absolute; inset: 0; z-index: 2; mix-blend-mode: multiply; background: linear-gradient(160deg, #ffe2a0 0%, #ff8a4d 45%, #d4506f 100%); }
.hero__slide--dusk .hero__shade { background: linear-gradient(160deg, #ffc27a 0%, #e0607a 55%, #7a4a9c 100%); }
.hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 3; background-image: radial-gradient(rgba(12, 23, 21, .45) 1px, transparent 1.6px); background-size: 5px 5px; mix-blend-mode: multiply; }
.hero__title { position: relative; z-index: 4; font: 900 clamp(96px, 19vw, 330px)/.8 var(--display); text-transform: uppercase; text-align: center; letter-spacing: -.01em; pointer-events: none; margin: 0; }
.hero__row { display: block; white-space: nowrap; }
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__row--outline { color: transparent; -webkit-text-stroke: 3px var(--ink); }
.hero__row--fill { color: var(--accent); text-shadow: 8px 8px 0 var(--night); }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; width: 100%; z-index: 5; }
.hero__ridge .w { transform-box: fill-box; transform-origin: center; animation: oyb-rot .6s linear infinite; }
.hero__tagline { position: absolute; z-index: 6; left: clamp(16px, 4vw, 48px); bottom: 30px; margin: 0; font: 700 clamp(18px, 2vw, 26px)/1.05 var(--display); letter-spacing: .06em; text-transform: uppercase; max-width: 20ch; }
.hero__tagline::after { content: ""; display: block; height: 4px; margin-top: 10px; background: var(--accent); border-radius: 4px; transform-origin: left; transform: scaleX(var(--u, 1)); transition: transform .8s .9s; }
.hero__badge { position: absolute; z-index: 6; right: clamp(16px, 4vw, 48px); bottom: 22px; width: clamp(104px, 11vw, 150px); aspect-ratio: 1; }
.hero__badge svg { width: 100%; height: 100%; }
.hero__badge text { font: 700 15.5px var(--body); letter-spacing: 3.5px; fill: var(--ink); }
.hero__badge-ring { animation: oyb-rot 14s linear infinite; transform-origin: center; }
.hero__badge-rim { fill: none; stroke: var(--accent-2); stroke-width: 8; }
.hero__badge-spokes { stroke: var(--accent-2); stroke-width: 2.5; animation: oyb-rot 2s linear infinite; transform-origin: center; }
.hero__badge-hub { fill: var(--accent); }
.hero__count { position: absolute; z-index: 6; top: 50%; right: clamp(16px, 3vw, 40px); transform: translateY(-50%); writing-mode: vertical-rl; font: 700 12px var(--body); letter-spacing: .3em; color: var(--muted); }
@keyframes oyb-rot { to { transform: rotate(360deg); } }
@media (max-width: 980px) { .hero__reel { inset: 16vh 4vw 24vh; } }
@media (max-width: 620px) { .hero__count { display: none; } .hero__tagline { max-width: 13ch; } }

/* ---------- home intro + stats ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-article.prose h2, .home-article h2 { font: 900 clamp(44px, 6vw, 92px)/.9 var(--display); text-transform: uppercase; margin: 14px 0 26px; }
.home-article.prose p { color: var(--muted); max-width: 52ch; font-size: 17px; }
.home-article.prose { max-width: none; }
.home-article.prose .lede { color: var(--ink); max-width: 30ch; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; }
.archive-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 209, 102, .08); border: 1px dashed rgba(255, 209, 102, .4); color: #f1dfb4 !important; font-size: 15px; max-width: 52ch; }
.archive-note::before { content: "⚑"; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .04), transparent); }
.stat b { display: block; font: 900 clamp(56px, 7vw, 96px)/.9 var(--display); color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .intro { grid-template-columns: 1fr; } }

/* ---------- track map module ---------- */
.trackmap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.trackmap__map svg { width: 100%; height: auto; overflow: visible; }
.trackmap__land { fill: #132520; stroke: rgba(244, 236, 220, .75); stroke-width: 1.6; stroke-linejoin: round; }
.trackmap__topo path { fill: none; stroke: rgba(244, 236, 220, .1); stroke-width: 1; }
.trackmap__route { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; }
.trackmap__places circle { fill: var(--muted); }
.trackmap__places text { font: italic 14px var(--body); fill: var(--muted); }
.trackmap__pin { cursor: pointer; outline: none; }
.trackmap__dot { fill: var(--accent); stroke: var(--night); stroke-width: 3; transition: fill .3s; }
.trackmap__halo { fill: var(--accent); opacity: .3; transform-box: fill-box; transform-origin: center; animation: oyb-pulse 2.2s ease-out infinite; }
.trackmap__pin text { font: 900 30px var(--display); text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: var(--night); stroke-width: 6px; }
.trackmap__pin:focus-visible .trackmap__dot { stroke: var(--accent-2); }
.trackmap__pin.is-dim .trackmap__dot { fill: #5b6a60; }
.trackmap__pin.is-dim .trackmap__halo { display: none; }
.trackmap__pin.is-dim text { fill: var(--muted); }
.trackmap__dots circle { fill: var(--ink); opacity: .35; transition: opacity .3s, fill .3s; }
.trackmap__dots a.is-on circle { opacity: 1; fill: var(--accent-2); }
@keyframes oyb-pulse { from { transform: scale(.6); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.trackmap__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.trackmap__pills button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 14px; cursor: pointer; transition: .25s; }
.trackmap__pills button:hover { border-color: var(--accent); }
.trackmap__pills button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--night); font-weight: 700; }
.trackmap__card { border-radius: 24px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.trackmap__ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.trackmap__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.trackmap__ph:hover img { transform: scale(1.05); }
.trackmap__body { padding: 22px 24px 26px; }
.trackmap__name { font: 900 clamp(36px, 4vw, 54px)/.95 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.trackmap__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.trackmap__list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; transition: color .2s, padding .3s; }
.trackmap__list a:hover { color: var(--accent-2); padding-left: 6px; }
.trackmap__list .more a { color: var(--accent-2); }
.trackmap__all { display: inline-block; margin-top: 16px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }
@media (max-width: 980px) { .trackmap { grid-template-columns: 1fr; } }

/* ---------- rating dots ---------- */
.rating { margin: 8px 0 0; display: grid; gap: 5px; }
.rating__row { display: grid; grid-template-columns: 84px 1fr; align-items: center; }
.rating dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rating dd { margin: 0; display: flex; gap: 5px; }
.rating i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.rating i.on { opacity: 1; }
.rating__row--fitness i.on { background: var(--r-fit); border-color: var(--r-fit); }
.rating__row--technical i.on { background: var(--r-tech); border-color: var(--r-tech); }
.rating__row--fun i.on { background: var(--r-fun); border-color: var(--r-fun); }
.rating--dark .rating__row--fitness i.on { background: var(--accent-2); border-color: var(--accent-2); }
.rating--dark .rating__row--technical i.on { background: var(--accent); border-color: var(--accent); }
.rating--dark .rating__row--fun i.on { background: var(--teal); border-color: var(--teal); }
.rating-legend { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 34px; }
.rating-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.rating-legend__fitness::before { background: var(--r-fit); }
.rating-legend__technical::before { background: var(--r-tech); }
.rating-legend__fun::before { background: var(--r-fun); }
.rating-legend a { opacity: .8; }

/* ---------- ride cards ---------- */
.ride-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.ride-cards--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px 26px; }
.ride-card { position: relative; display: block; background: var(--card); color: var(--card-ink); padding: 14px 14px 20px; border-radius: 6px; text-decoration: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background-image: repeating-linear-gradient(transparent 0 29px, rgba(27, 38, 34, .1) 29px 30px); background-position: 0 10px; transition: rotate .35s, translate .35s; }
.ride-card:nth-child(odd) { rotate: -1.4deg; }
.ride-card:nth-child(even) { rotate: 1.6deg; translate: 0 16px; }
.ride-card:hover, .ride-card:focus-visible { rotate: 0deg; translate: 0 -8px; }
.ride-card__ph { display: block; overflow: hidden; border-radius: 3px; margin-bottom: 14px; }
.ride-card__ph img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s; }
.ride-card:hover .ride-card__ph img { transform: scale(1.06); }
.ride-card__title { font: 900 26px/1 var(--display); text-transform: uppercase; }
.ride-card__where { display: block; font-size: 13px; color: #5b6a60; margin: 4px 0 10px; }
.ride-card__stamp { position: absolute; right: 18px; top: 22px; z-index: 2; border: 3px solid var(--accent); color: var(--accent); font: 900 15px var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 2px 10px; border-radius: 6px; rotate: -12deg; background: rgba(244, 236, 220, .75); }
@media (max-width: 1180px) { .ride-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .ride-cards, .ride-cards--grid { grid-template-columns: 1fr 1fr; gap: 18px; } .ride-card__title { font-size: 21px; } }
@media (min-width: 421px) and (max-width: 620px) { .ride-card .rating__row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ride-cards, .ride-cards--grid { grid-template-columns: 1fr; } }

/* ---------- film strip ---------- */
.section--gallery { padding-inline: 0; }
.section--gallery .section__head { padding-inline: var(--gutter); }
.section--gallery .section__more { right: var(--gutter); }
@media (max-width: 700px) { .section--gallery .section__more { margin-left: var(--gutter); } }
.film { position: relative; background: var(--deep); padding: 36px 0; overflow: hidden; rotate: -1.5deg; margin: 10px -2vw 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(244, 236, 220, .85) 12px 24px, transparent 24px 36px); border-radius: 2px; }
.film::before { top: 11px; }
.film::after { bottom: 11px; }
.film__track { display: flex; gap: 14px; width: max-content; cursor: grab; user-select: none; -webkit-user-select: none; }
.film__track.is-dragging { cursor: grabbing; }
.film__frame { width: clamp(240px, 24vw, 340px); flex: 0 0 auto; position: relative; overflow: hidden; display: block; text-decoration: none; }
.film__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85) sepia(.12); transition: filter .35s, transform .5s; pointer-events: none; }
.film__frame:hover img, .film__frame:focus-visible img { filter: none; transform: scale(1.05); }
.film__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-weight: 700; font-size: 15px; line-height: 1.3; }
.film__cap small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.film__num { position: absolute; right: 8px; top: 6px; z-index: 2; font: 700 11px var(--body); color: var(--accent-2); letter-spacing: .12em; }

/* ---------- link cards ---------- */
.link-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.link-card { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 170px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, background-color .25s, translate .25s; background: linear-gradient(160deg, rgba(255, 255, 255, .03), transparent); }
.link-card:hover { border-color: var(--accent); background-color: rgba(255, 106, 61, .08); translate: 0 -4px; }
.link-card b { font: 900 30px/.95 var(--display); text-transform: uppercase; }
.link-card span { color: var(--muted); font-size: 14px; }
.link-card i { font-style: normal; font-size: 22px; color: var(--accent); }
@media (max-width: 1180px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .link-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- shop (custom HTML module: .shop-grid > a.tee) ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tee { display: block; background: var(--card); color: var(--night); border-radius: 22px; overflow: hidden; text-decoration: none; transition: translate .35s, rotate .35s; }
.tee:hover { translate: 0 -8px; rotate: -1deg; }
.tee img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.tee span { display: block; padding: 16px 18px 20px; }
.tee b { display: block; font-size: 15px; line-height: 1.3; }
.tee em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 13px; color: #b8431f; }
@media (max-width: 980px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- inner pages ---------- */
.is-inner main.page { padding: calc(var(--head-h) + 40px) var(--gutter) clamp(60px, 8vw, 120px); min-height: 60vh; }
.page-top { position: absolute; top: 0; left: 0; right: 0; height: 420px; pointer-events: none; background: radial-gradient(90% 100% at 70% 0%, rgba(58, 42, 92, .55), transparent 70%); }
.page-top__ridge { position: absolute; bottom: 0; width: 100%; height: 120px; }
.page-top__ridge path { fill: var(--night); }
.page-head { position: relative; z-index: 1; max-width: 1100px; margin-bottom: clamp(30px, 5vw, 60px); }
.page-head__title { font-size: clamp(44px, 7vw, 100px); margin-bottom: 18px; }
.page-head__desc { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.page-head__desc p { margin: 0; }

.mod-breadcrumbs, .breadcrumb { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 26px; font-size: 13px; color: var(--muted); }
.mod-breadcrumbs__here { display: none; }
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before, .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; opacity: .5; }
.mod-breadcrumbs a, .breadcrumb a { text-decoration: none; }
.mod-breadcrumbs a:hover { color: var(--accent-2); }

/* prose: article bodies */
.prose { position: relative; z-index: 1; max-width: 760px; font-size: 18px; line-height: 1.7; }
.prose > p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--ink); }
.prose p, .prose li { color: #d9d4c6; }
.prose a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose h2 { font: 900 clamp(34px, 4vw, 52px)/1 var(--display); text-transform: uppercase; margin: 1.6em 0 .5em; }
.prose h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 900 clamp(26px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; margin: 1.8em 0 .5em; color: var(--ink); }
.leg-time { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: none; padding: 7px 12px; border-radius: 999px; background: rgba(255, 209, 102, .12); color: var(--accent-2); border: 1px solid rgba(255, 209, 102, .35); }
.leg-time::before { content: "⏱"; }
.leg-time--dist::before { content: "🚗"; }
.prose img { border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 1.1em; }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: 14px; }
.prose .small-print { font-size: 14px; color: var(--muted); margin-top: 2.5em; }
.oyb-map { margin: 2em 0; padding: 0; background: #142722; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.oyb-map img { width: 100%; height: auto; border-radius: 0; }
.oyb-inline-gallery { margin: 1.8em 0; }
.oyb-video { margin: 1.8em 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--deep); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.oyb-video iframe { width: 100%; height: 100%; border: 0; border-radius: 0; }

/* track page */
.track-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.track-hero__img { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); rotate: -1.2deg; }
.track-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.track-hero__title { font: 900 clamp(46px, 6.5vw, 96px)/.88 var(--display); text-transform: uppercase; margin: 14px 0 16px; }
.track-hero__summary { font-size: clamp(18px, 1.8vw, 22px); color: var(--accent-2); margin-bottom: 22px; }
.track-hero__ratings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.track-hero__ratings .rating { margin: 0; }
.track-hero__how { font-size: 13px; color: var(--muted); }
.track__body { margin-inline: auto; }
.track .archive-note { margin: 50px auto 0; max-width: 760px; }
.track__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; max-width: 760px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.track__nav .pagenavigation, .track__nav .pagination { display: flex; gap: 10px; margin: 0; }
.pagenavigation .btn, .pagenavigation a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; background: none; color: var(--ink); }
.pagenavigation a:hover { border-color: var(--accent); color: var(--accent-2); }
.pagenavigation [class^="icon-"] { display: none; }
@media (max-width: 900px) { .track-hero { grid-template-columns: 1fr; } }

/* region page */
.region-hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 5vw, 70px); align-items: center; margin-bottom: clamp(50px, 7vw, 90px); }
.region-hero__img { margin: 0; order: 2; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 11; rotate: 1.2deg; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.region-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.region-hero .page-head__title { margin-bottom: 14px; }
.region-hero .page-head__desc { margin-top: 18px; }
@media (max-width: 900px) { .region-hero { grid-template-columns: 1fr; } .region-hero__img { order: 0; } }

/* regions overview */
.regions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.region-card { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4.3; isolation: isolate; text-decoration: none; transition: transform .2s; }
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.region-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 23, 21, 0) 25%, rgba(12, 23, 21, .94)); }
.region-card:hover img { transform: scale(1.02); }
.region-card__meta { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 10px; justify-items: start; }
.region-card__title { font: 900 clamp(30px, 3vw, 44px)/.95 var(--display); text-transform: uppercase; }
.region-card__desc { color: #d9d4c6; font-size: 14px; line-height: 1.45; }
.region-card__num { position: absolute; top: 18px; right: 20px; font: 700 15px var(--display); letter-spacing: .2em; opacity: .8; }
@media (max-width: 1100px) { .regions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .regions-grid { grid-template-columns: 1fr; } .region-card { aspect-ratio: 4 / 3.4; } }

/* generic category list (Links) */
.entries { display: grid; gap: clamp(40px, 5vw, 70px); position: relative; z-index: 1; }
.entry__title { font: 900 clamp(34px, 4vw, 54px)/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.entry__title a { text-decoration: none; }
.entry__title a:hover { color: var(--accent-2); }
.oyb-links { list-style: none; padding: 0 !important; margin: 20px 0 0; display: grid; gap: 12px; max-width: 900px; }
.oyb-links li { padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .03), transparent); transition: border-color .25s; }
.oyb-links li:hover { border-color: var(--accent); }
.oyb-links li > a { font: 900 24px/1.1 var(--display); text-transform: uppercase; color: var(--ink) !important; text-decoration: none; }
.oyb-links li > a::after { content: " ↗"; color: var(--accent); }
.oyb-links .link-host { margin-left: 8px; font-size: 13px; color: var(--muted); }
.oyb-links p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.entries .oyb-links p:first-child { font-size: 15px; }

/* ---------- forms (contact) ---------- */
.com-contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.com-contact__info { color: var(--muted); }
.com-contact__form, .contact-form { background: var(--night-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 36px); }
.com-contact legend, .contact-form legend { font: 900 28px var(--display); text-transform: uppercase; margin-bottom: 16px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.control-group { margin-bottom: 18px; }
.control-label label, label { display: inline-block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.star { color: var(--accent); }
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); font: 16px var(--body);
}
.form-control:focus, textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255, 209, 102, .2); }
textarea { min-height: 170px; resize: vertical; }
.form-check-input { accent-color: var(--accent); }
.invalid { border-color: #ff7b7b !important; }
.form-control-feedback { color: #ff9b9b; font-size: 13px; }
@media (max-width: 900px) { .com-contact { grid-template-columns: 1fr; } }

/* system messages */
#system-message-container { position: relative; z-index: 2; }
joomla-alert, .alert { display: block; margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--line); color: var(--ink); }
joomla-alert[type="success"], .alert-success { border-color: var(--teal); }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { border-color: #ff7b7b; }
joomla-alert .joomla-alert--close { background: none; border: 0; color: var(--ink); float: right; font-size: 22px; cursor: pointer; }

/* pagination */
.pagination-wrap .pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 50px 0 0; }
.pagination .page-link { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; padding: 0 14px; }
.pagination .active .page-link { background: var(--accent); color: var(--night); border-color: var(--accent); }

/* ---------- GalleryLab Pro theming ---------- */
.gallerylabpro { --gl-overlay-bg: #0c1715; --gl-overlay-text: #f4ecdc; }
.option-com_gallerylabpro main.page > *:not(.trail) { position: relative; z-index: 1; }
.option-com_gallerylabpro h1, .option-com_gallerylabpro .page-header h1 { font: 900 clamp(44px, 7vw, 100px)/.9 var(--display); text-transform: uppercase; margin: 14px 0 26px; }
.option-com_gallerylabpro h2 { font: 900 clamp(26px, 3vw, 38px)/1 var(--display); text-transform: uppercase; }


/* photo gallery listing */
.photo-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photo-card { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.3; isolation: isolate; text-decoration: none; background: var(--night-2); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.9); }
.photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 23, 21, 0) 35%, rgba(12, 23, 21, .92)); }
.photo-card:hover img { transform: scale(1); filter: none; }
.photo-card__meta { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 6px; justify-items: start; }
.photo-card__title { font: 900 clamp(24px, 2.4vw, 32px)/1 var(--display); text-transform: uppercase; }
.photo-card__desc { font-size: 13px; color: #d9d4c6; line-height: 1.4; }

/* single gallery page (GalleryLab Pro markup) */
.option-com_gallerylabpro .gallerylabpro-title { font: 900 clamp(44px, 7vw, 100px)/.9 var(--display); text-transform: uppercase; margin: 14px 0 18px; color: var(--ink); }
.option-com_gallerylabpro .gallerylabpro-description { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-bottom: 30px; max-width: 60ch; }
.gallerylabpro-embed .gallerylabpro-title { display: none; }

/* contact */
.contact__place { color: var(--muted); margin-top: 20px; }
.com-contact .page-head { margin-bottom: 26px; }
.com-contact__info .page-head__title { color: var(--ink); }
.com-contact__form .contact-form, .com-contact__form fieldset { background: none; border: 0; padding: 0; border-radius: 0; }

/* ---------- footer ---------- */
.site-foot { position: relative; padding: 140px var(--gutter) 40px; overflow: hidden; background: var(--deep); }
.site-foot__ridge { position: absolute; top: 0; left: 0; width: 100%; height: 140px; }
.site-foot__ridge path { fill: var(--night); }
.site-foot__big { font: 900 clamp(60px, 12vw, 180px)/.85 var(--display); text-transform: uppercase; margin-bottom: 40px; }
.site-foot__big span { color: var(--accent); }
.site-foot__row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.site-foot__row p { margin: 0; }
.site-foot__row a { color: var(--ink); }
.site-foot__row .foot-row { display: flex; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; width: 100%; }

/* ---------- error page ---------- */
.error-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: calc(var(--head-h) + 40px) var(--gutter) 60px; }
.error-page__img { margin: 0; border-radius: 26px; overflow: hidden; rotate: -2deg; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.error-page h1 { font: 900 clamp(60px, 9vw, 140px)/.85 var(--display); text-transform: uppercase; margin: 12px 0 20px; }
.error-page__debug { margin-top: 30px; font-size: 12px; overflow: auto; }
@media (max-width: 900px) { .error-page { grid-template-columns: 1fr; } }

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