/* Ark Productions — site styles */

/* ---------- Fonts (Onest, SIL OFL — Latin + Cyrillic) ---------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-latin-wght-normal.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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg-elev: #141417;
  --bg-elev-2: #1c1c21;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.18);
  --text: #f4f4f5;
  --text-muted: #a8a8b3;
  --text-dim: #6f6f7a;
  --red: #e30613;
  --red-hover: #ff2533;
  --red-soft: rgb(227 6 19 / 0.12);
  --red-glow: rgb(227 6 19 / 0.45);
  --amber: #ffb020;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: 16px;
  --header-h: 72px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  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: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 0.8rem 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: var(--btn-pad);
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2;
  cursor: pointer; background: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 32px -14px var(--red-glow); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 16px 36px -12px var(--red-glow); }
.btn-outline { border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--red); background: var(--red-soft); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.btn-sm { --btn-pad: 0.55rem 1rem; font-size: 0.78rem; }
.btn-lg { --btn-pad: 1rem 1.7rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
body:not(.page-home) .site-header {
  background: rgb(11 11 13 / 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand-name { font-weight: 900; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: 8px 12px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.2s;
}
.nav-list a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active, .nav-list a[aria-current='page'] { color: var(--text); }
.nav-list a.is-active::after, .nav-list a[aria-current='page']::after { transform: scaleX(1); }
.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
}
.lang-switch > * { padding: 5px 10px; border-radius: 999px; line-height: 1; }
.lang-switch a { color: var(--text-muted); transition: color 0.2s; }
.lang-switch a:hover { color: var(--text); }
.lang-current { background: var(--text); color: var(--bg); }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer;
}
.menu-toggle .icon-close, .menu-toggle[aria-expanded='true'] .icon-menu { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 1079px) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: rgb(11 11 13 / 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .js .nav-open .nav { opacity: 1; visibility: visible; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { padding: 14px 0; font-size: 1.6rem; font-weight: 800; color: var(--text); border-bottom: 1px solid var(--line); }
  .js .nav-list a::after { display: none; }
  .js .nav-list a:hover { color: var(--red); }
  .js .nav-extra { display: grid; gap: 14px; color: var(--text-muted); }
  .js .nav-extra > a { display: inline-flex; align-items: center; gap: 10px; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu inside the header, so drop it while open */
  .js .nav-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.js) .site-header { position: absolute; height: auto; padding-block: 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}
@media (max-width: 479px) {
  .brand-name { display: none; }
}

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
}
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-kicker { color: #ff3b47; text-shadow: 0 1px 12px rgb(0 0 0 / 0.9); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  margin-top: 14px;
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
}
.section-lead { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.prose { color: #c9c9d1; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose strong { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(40px, 7vw, 80px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: hero-drift 24s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 20% 30%, rgb(227 6 19 / 0.22), transparent 70%),
    linear-gradient(180deg, rgb(11 11 13 / 0.55) 0%, rgb(11 11 13 / 0.25) 35%, rgb(11 11 13 / 0.85) 75%, var(--bg) 100%);
}
@keyframes hero-drift { from { transform: scale(1.05); } to { transform: scale(1.15) translateX(-2%); } }
.hero-title { margin-top: 18px; }
.hero-name {
  display: block;
  font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 10px 40px rgb(0 0 0 / 0.5);
}
.hero-tagline {
  display: block; margin-top: 18px; max-width: 36ch;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.3; color: #e4e4e7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 20px 0; margin-top: clamp(40px, 7vw, 72px);
  padding-top: 24px; border-top: 1px solid var(--line-strong);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; padding-right: clamp(20px, 5vw, 56px); margin-right: clamp(20px, 5vw, 56px); border-right: 1px solid var(--line); }
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dd { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stats dt { margin-top: 6px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 599px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats > div { margin-right: 0; padding-right: 0; border-right: 0; }
  .hero-stats dt { font-size: 0.66rem; letter-spacing: 0.04em; line-height: 1.3; }
}

/* ---------- Upcoming ---------- */
.section-upcoming { padding-bottom: clamp(48px, 7vw, 80px); }
.upcoming-list { display: grid; gap: 24px; }
.empty-state {
  position: relative; overflow: hidden;
  display: grid; gap: 20px; align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(60% 120% at 0% 0%, var(--red-soft), transparent 60%), var(--bg-elev);
}
.empty-icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red-soft); color: var(--red);
}
.empty-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); max-width: 56ch; }
@media (min-width: 860px) {
  .empty-state { grid-template-columns: auto 1fr auto; gap: 28px; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-elev); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.marquee-track .dot { color: var(--red); font-size: 0.9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Archive ---------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.year-nav a {
  padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted); transition: all 0.2s;
}
.year-nav a:hover { color: var(--text); border-color: var(--red); background: var(--red-soft); }
.year-group { margin-top: clamp(40px, 6vw, 64px); }
.year-label { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.year-label span {
  font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.22);
}
.year-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.event-grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Event card ---------- */
.event-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.event-card:hover { border-color: rgb(227 6 19 / 0.45); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.9); }
.event-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 965 / 330; background: var(--bg-elev-2); overflow: hidden;
}
.event-media picture, .event-media img { width: 100%; height: 100%; }
.event-media img { object-fit: cover; transition: transform 0.7s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.04); }
.date-badge {
  position: absolute; left: 12px; top: 12px;
  display: grid; justify-items: center; min-width: 56px; padding: 8px 10px 7px;
  border-radius: 12px; background: rgb(11 11 13 / 0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}
.date-badge-day { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.date-badge-month { margin-top: 3px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.event-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.event-when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.event-title { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.event-where { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; color: var(--text-muted); }
.event-where .icon { color: var(--red); }
.event-excerpt {
  font-size: 0.95rem; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.event-card template { display: none; }

.event-card--featured { border-color: rgb(227 6 19 / 0.35); }
@media (min-width: 960px) {
  .event-card--featured { display: grid; grid-template-columns: 1.35fr 1fr; }
  .event-card--featured .event-media { aspect-ratio: auto; min-height: 100%; }
  .event-card--featured .event-body { padding: 32px; justify-content: center; }
  .event-card--featured .event-title { font-size: 2.1rem; }
  .event-card--featured .event-excerpt { -webkit-line-clamp: 5; line-clamp: 5; }
}

/* ---------- About ---------- */
.section-about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%); }
.about-grid { display: grid; gap: 40px; }
.about-lead { margin: 24px 0 32px; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--text); }
.about-text p:last-child { margin-top: 1.6em; padding-left: 18px; border-left: 3px solid var(--red); }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; }
  .about-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .about-text { padding-top: 56px; }
}

/* ---------- Services ---------- */
.section-services { background: var(--bg-elev); padding-top: 0; }
.services-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); counter-reset: svc; }
.service {
  display: flex; gap: 16px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color 0.3s, background-color 0.3s;
}
.service:hover { border-color: rgb(227 6 19 / 0.45); background: #101013; }
.service-num { font-size: 0.85rem; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; padding-top: 2px; }
.service-text { font-size: 0.98rem; line-height: 1.5; }
.service:last-child {
  grid-column: 1 / -1; align-items: center;
  border-color: rgb(227 6 19 / 0.4);
  background: linear-gradient(90deg, var(--red-soft), transparent 70%), var(--bg);
}
.service:last-child .service-text { font-size: 1.1rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.page-home .site-footer { border-top: 0; }
.footer-cta {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(70% 140% at 0% 0%, rgb(227 6 19 / 0.28), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgb(255 176 32 / 0.1), transparent 60%),
    var(--bg-elev);
}
.footer-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.footer-text { margin-top: 12px; color: var(--text-muted); max-width: 48ch; }
.footer-contacts { display: grid; gap: 12px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; word-break: break-word;
  transition: color 0.2s;
}
.contact-link .icon { padding: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; }
.contact-link:hover { color: var(--red-hover); }
@media (min-width: 900px) {
  .footer-cta { grid-template-columns: 1.2fr 1fr; }
  .footer-contacts { justify-items: end; }
}
.footer-bottom {
  display: grid; gap: 20px; justify-items: center; text-align: center;
  padding-block: 40px 48px; font-size: 0.88rem; color: var(--text-dim);
}
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text-muted); }
.credits { display: inline-flex; align-items: center; gap: 10px; }
.credits a { opacity: 0.7; transition: opacity 0.2s; }
.credits a:hover { opacity: 1; }
@media (min-width: 900px) {
  .footer-bottom { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .footer-bottom .social, .credits { justify-self: end; }
}

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.social-lg a { width: 52px; height: 52px; }

/* ---------- Dialog (event details) ---------- */
.dialog {
  width: min(920px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--bg-elev); color: var(--text);
  overflow: auto; overscroll-behavior: contain;
}
.dialog[open] { animation: dialog-in 0.35s var(--ease); }
.dialog::backdrop { background: rgb(0 0 0 / 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dialog-close {
  position: sticky; top: 12px; z-index: 2; float: right; margin: 12px 12px -56px 0;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: rgb(11 11 13 / 0.8); cursor: pointer; transition: background-color 0.2s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dialog-close:hover { background: var(--red); border-color: var(--red); }
.dialog-media { position: relative; aspect-ratio: 965 / 330; background: var(--bg-elev-2); overflow: hidden; }
.dialog-media picture, .dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-media.is-map { aspect-ratio: 16 / 9; }
.dialog-map, .dialog-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dialog-body { padding: 28px clamp(20px, 4vw, 40px) 36px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-muted); font-size: 0.95rem; }
.meta-list li { display: inline-flex; align-items: center; gap: 8px; }
.meta-list .icon { color: var(--red); }
.dialog-title { margin: 18px 0 16px; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.has-dialog { overflow: hidden; }

/* ---------- Photos page ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 8px;
  background: radial-gradient(60% 80% at 15% 0%, rgb(227 6 19 / 0.16), transparent 70%);
}
.page-hero .section-head { margin-bottom: 28px; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; transition: all 0.2s;
}
.chip span { color: var(--text-dim); font-weight: 500; }
.chip:hover { border-color: var(--red); background: var(--red-soft); }
.galleries { padding-bottom: 24px; }
.gallery { margin-top: clamp(56px, 8vw, 88px); }
.gallery-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.gallery-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.gallery-meta { margin-top: 6px; color: var(--text-muted); }
.gallery-count { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.9rem; }
.gallery-grid { columns: 2; column-gap: 10px; }
@media (min-width: 700px) { .gallery-grid { columns: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .gallery-grid { columns: 4; } }
.gallery-grid--few { columns: 1; max-width: 560px; }
.gallery-item {
  position: relative; display: block; margin-bottom: 10px; break-inside: avoid;
  border-radius: 12px; overflow: hidden; background: var(--bg-elev-2);
}
@media (min-width: 700px) { .gallery-item { margin-bottom: 12px; } }
.gallery-item img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { box-shadow: inset 0 0 0 2px var(--red); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 6 7 / 0.97); color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in 0.25s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-figure { display: grid; justify-items: center; gap: 14px; padding: 64px 16px 88px; touch-action: pan-y; }
.lightbox-figure img { max-width: min(100%, 1600px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; }
.lightbox-caption { font-size: 0.9rem; color: var(--text-muted); text-align: center; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgb(255 255 255 / 0.06); cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lightbox-btn:hover { background: var(--red); border-color: var(--red); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev, .lightbox-next { bottom: 20px; }
.lightbox-prev { left: calc(50% - 64px); }
.lightbox-next { right: calc(50% - 64px); }
@media (min-width: 900px) {
  .lightbox-figure { padding: 48px 110px; }
  .lightbox-figure img { max-height: calc(100dvh - 130px); }
  .lightbox-prev, .lightbox-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox-prev { left: 28px; }
  .lightbox-next { right: 28px; }
}

/* ---------- Error page ---------- */
.error-section { min-height: 70vh; display: grid; align-items: center; padding-top: calc(var(--header-h) + 64px); }
.error-inner { display: grid; justify-items: start; gap: 8px; }
.error-code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--red); }
.error-inner .btn { margin-top: 24px; }

/* ---------- Preview bar (maintenance preview) ---------- */
.preview-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 500; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  padding: 8px 16px; border-radius: 999px; background: var(--amber); color: #111; font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.5);
}
.preview-bar a { text-decoration: underline; margin-left: 6px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding-inline: 16px; }
  .marquee-group + .marquee-group { display: none; }
}
