/* =========================================================
   FLASHLOOP — site styles (step 1: visual mockup)
   Palette from key art: deep teal night + molten orange
   ========================================================= */

:root {
  --bg: #050b0f;
  --bg-soft: #071018;
  --panel: #0a161d;
  --panel-2: #0d1c24;
  --ink: #eaf4f6;
  --ink-soft: #c6d8dd;
  --muted: #88a0a8;
  --accent: #ff8a2b;
  --accent-soft: #ffb562;
  --teal: #2bd9c2;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --rail: 288px;
  --font-display: "Bahnschrift SemiBold Condensed", "Bahnschrift Condensed", "Bahnschrift", "Arial Narrow", Impact, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(32, 132, 128, 0.16), transparent 62%),
    radial-gradient(900px 700px at 4% 102%, rgba(255, 122, 30, 0.055), transparent 62%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 200, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 200, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 72% 18%, #000 0, transparent 72%);
  mask-image: radial-gradient(circle at 72% 18%, #000 0, transparent 72%);
}

::selection { background: var(--accent); color: #140b03; }

img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  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;
  top: 10px; left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--accent);
  color: #140b03;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--rail);
  padding: 30px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(9, 18, 24, 0.97) 0%, rgba(5, 11, 15, 0.985) 100%);
  border-right: 1px solid var(--line);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }

.sidebar__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand {
  display: block;
  text-decoration: none;
  filter: drop-shadow(0 6px 24px rgba(255, 120, 30, 0.16));
}
.brand picture { display: block; }
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.brand:hover { filter: drop-shadow(0 6px 30px rgba(255, 120, 30, 0.3)); }

.brand__tag {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav__item:hover {
  color: var(--accent-soft);
  padding-left: 18px;
  border-color: rgba(255, 138, 43, 0.38);
  background: rgba(255, 138, 43, 0.05);
}
.nav__item.is-active {
  color: var(--ink);
  border-color: rgba(255, 138, 43, 0.45);
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.16), rgba(255, 138, 43, 0.02));
}
.nav__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 138, 43, 0.7);
}
.nav__item.is-active .nav__index { color: var(--accent); }

.nav__index {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.75;
  min-width: 16px;
}

.side-block { display: flex; flex-direction: column; gap: 10px; }

.side-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.socials__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.socials li + li .socials__link { border-top: 1px solid var(--line-soft); }
.socials__link:hover { color: var(--accent-soft); border-color: rgba(255, 138, 43, 0.25); }
.socials__arrow {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.socials__link:hover .socials__arrow { transform: translate(2px, -2px); color: var(--accent); }

.lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 4px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { background: var(--accent); color: #140b03; }

.sidebar__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}

.wishlist {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  background: linear-gradient(100deg, var(--accent) 0%, #ff9d4d 55%, var(--accent-soft) 100%);
  color: #170b02;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.wishlist:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wishlist__note {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Layout / main
   --------------------------------------------------------- */

.main {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 800px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") center 38% / cover no-repeat;
  transform: scale(1.02);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 15, 0.62) 0%, rgba(5, 11, 15, 0.18) 18%, rgba(5, 11, 15, 0.3) 42%, rgba(5, 11, 15, 0.82) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 11, 15, 0.88) 0%, rgba(5, 11, 15, 0.42) 52%, rgba(5, 11, 15, 0.15) 100%),
    radial-gradient(70% 60% at 82% 28%, rgba(255, 130, 40, 0.16), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  padding: 72px clamp(28px, 5.2vw, 80px) 54px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 138, 43, 0.7);
}

.hero__title { margin: 0; line-height: 0; }
.hero__title picture { display: block; line-height: 0; }

.hero__logo {
  display: block;
  width: min(600px, 78%);
  height: auto;
  margin: 0 0 20px;
  filter: drop-shadow(0 14px 46px rgba(0, 0, 0, 0.6));
}

.hero__tagline {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: #140b03; }
.btn--primary:hover { background: var(--accent-soft); }

.btn--ghost {
  background: rgba(6, 14, 19, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

.btn--small { padding: 12px 20px; font-size: 12px; }

.play-mark {
  width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

.hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta li {
  padding: 0 16px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}
.hero__meta li:first-child { padding-left: 0; border-left: 0; }

.hero__side {
  position: absolute;
  right: 22px;
  bottom: 46px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

/* ---------------------------------------------------------
   News
   --------------------------------------------------------- */

.news {
  position: relative;
  padding: 76px clamp(28px, 5.2vw, 80px) 88px;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.55) 0%, rgba(5, 11, 15, 0) 32%);
  flex: 1;
}
.news__inner { max-width: 1060px; margin: 0 auto; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-head__main { min-width: 0; }
.section-kicker {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.section-title > span:first-child { color: var(--accent); font-weight: 400; }
.section-lead {
  max-width: 300px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.news-head { margin-bottom: 28px; }

.feed { display: flex; flex-direction: column; gap: 16px; }
.feed__list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

.post {
  position: relative;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 27, 35, 0.72) 0%, rgba(8, 17, 23, 0.8) 100%);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.post:hover { border-color: rgba(255, 138, 43, 0.32); }

.post__media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: #061016;
}
.post__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}
.post:hover .post__media img { transform: scale(1.045); }
.post__media--video img { filter: brightness(0.72) saturate(1.05); }

.post__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 8px;
  background: #e62117;
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.play__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(4, 10, 14, 0.52);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.play__btn::before {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.post:hover .play__btn {
  transform: scale(1.07);
  background: rgba(255, 138, 43, 0.9);
  border-color: transparent;
}

.post__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 24px 30px 24px;
}

.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.post__meta time { white-space: nowrap; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 138, 43, 0.32);
  background: rgba(255, 138, 43, 0.07);
  color: var(--accent-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.post__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.post__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post__more {
  appearance: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.post__more span { transition: transform 0.2s ease; }
.post__more:hover span { transform: translateX(4px); }
.post__more:hover { color: var(--accent-soft); }

/* Featured card */

.post--feature {
  display: flex;
  align-items: flex-end;
  min-height: 430px;
  border-color: rgba(255, 255, 255, 0.12);
  background: #08141a;
}
.post--feature .post__media { position: absolute; inset: 0; width: 100%; min-height: 0; }
.post--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 11, 15, 0.12) 0%, rgba(5, 11, 15, 0.35) 46%, rgba(5, 11, 15, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 11, 15, 0.55) 0%, transparent 62%);
}
.post--feature .post__body {
  width: 100%;
  max-width: 760px;
  padding: 34px 38px 32px;
  justify-content: flex-end;
}
.post--feature .post__title { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.02; }
.post--feature .post__excerpt { max-width: 620px; color: var(--ink-soft); }

/* Empty state */
.feed__empty {
  padding: 40px 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
  padding: 28px clamp(28px, 5.2vw, 80px);
  border-top: 1px solid var(--line);
  background: rgba(4, 9, 12, 0.6);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.footer__left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.16s ease; }
.footer a:hover { color: var(--accent-soft); }
.footer__sep { opacity: 0.3; }

/* ---------------------------------------------------------
   About page
   --------------------------------------------------------- */

.about { flex: 1; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 84px) clamp(28px, 5.2vw, 80px) clamp(40px, 5vw, 64px);
}

.about-hero__art {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}
.about-hero__art::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(255, 138, 43, 0.35);
  z-index: -1;
}
.about-hero__art img { display: block; width: 100%; height: auto; }

.about-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.about-hero__lead {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
  text-wrap: pretty;
}
.about-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.about-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(28px, 5.2vw, 80px) 84px;
}

.about-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.about-section__label {
  position: sticky;
  top: 28px;
  align-self: start;
}
.about-section__num {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.about-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.about-section__body p {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.about-section__body p:last-child { margin-bottom: 0; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.feature__num {
  flex: none;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}

.press {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  padding: 30px 32px;
  border: 1px solid rgba(255, 138, 43, 0.28);
  background:
    linear-gradient(110deg, rgba(255, 138, 43, 0.1) 0%, rgba(255, 138, 43, 0.02) 45%, transparent 100%),
    var(--panel);
}
.press::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.press__text { max-width: 560px; }
.press__text p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.press__note { margin: 10px 0 0; font-size: 11px; color: var(--muted); opacity: 0.75; }
.press h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: #061016;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1.1); }
.gallery__item span {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 3px 6px;
  background: rgba(4, 10, 14, 0.7);
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery__item:hover span { opacity: 1; }

.req {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.req__card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.req__card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.req__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}
.req__row span:first-child { color: var(--muted); }
.req__note { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; }

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid var(--line);
  background-color: #061016;
  background-image: url("../img/keyart.jpg");
  background-repeat: no-repeat;
  background-size: 165% auto;
  background-position: right 40%;
  isolation: isolate;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 9, 12, 0.94) 0%, rgba(4, 9, 12, 0.72) 55%, rgba(4, 9, 12, 0.35) 100%);
}
.cta-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.cta-panel p { margin: 0 0 22px; max-width: 460px; color: var(--ink-soft); font-size: 14px; }

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
}
.contacts__item { display: flex; flex-direction: column; gap: 3px; }
.contacts__label { font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contacts__value { color: var(--ink); text-decoration: none; font-size: 14px; }
.contacts__value:hover { color: var(--accent-soft); }

.about-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.about-footer-actions a { color: var(--muted); text-decoration: none; }
.about-footer-actions a:hover { color: var(--accent-soft); }

/* ---------------------------------------------------------
   Dialog / lightbox
   --------------------------------------------------------- */

dialog { color: var(--ink); }

.modal {
  width: min(920px, 92vw);
  max-width: none;
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: visible;
}
.modal::backdrop {
  background: rgba(2, 6, 9, 0.84);
  backdrop-filter: blur(7px);
}
.modal__box {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08131a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.modal__box::-webkit-scrollbar { width: 6px; }
.modal__box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 11, 15, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.modal__close:hover { background: var(--accent); color: #140b03; border-color: var(--accent); }

.modal__media { position: relative; background: #04090c; }
.modal__media img { display: block; width: 100%; max-height: 44vh; object-fit: cover; }
.modal__body { padding: 30px clamp(20px, 4vw, 44px) 40px; }
.modal__body h2 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.modal__body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.modal__hint {
  margin-top: 20px !important;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 138, 43, 0.4);
  background: rgba(255, 138, 43, 0.06);
  color: var(--accent-soft) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.video-stub {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #04090c;
}
.video-stub--link {
  color: inherit;
  text-decoration: none;
}
.video-stub--link:hover .video-stub__label { color: var(--accent); }
.video-stub--link:hover .play__btn { background: rgba(255, 138, 43, 0.9); border-color: transparent; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 0;
}
.post-gallery__item {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #061016;
}
.post-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.post-gallery__item:hover img { transform: scale(1.04); }

.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 138, 43, 0.3);
  background: rgba(255, 138, 43, 0.055);
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.06em;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.post-link:hover { background: rgba(255, 138, 43, 0.12); border-color: var(--accent); }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04090c;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-stub > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: brightness(0.7);
}
.video-stub .play__btn { width: 72px; height: 72px; }
.video-stub__label {
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
  position: fixed;
  inset: 0;
}
.lightbox::backdrop { background: rgba(2, 5, 8, 0.92); backdrop-filter: blur(4px); }
.lightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}
.lightbox__inner img {
  max-width: 92vw;
  max-height: 86vh;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
}
.lightbox__close {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 3;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 11, 15, 0.7);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
body.is-modal { overflow: hidden; }
.modal:focus-visible, .lightbox:focus-visible, .modal:focus, .lightbox:focus { outline: none !important; }

/* ---------------------------------------------------------
   Annotation layer (dev review tool)
   --------------------------------------------------------- */

.anno-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
}
body.annot-on .anno-layer { display: block; }

.anno-box {
  position: absolute;
  border: 1px dashed rgba(255, 138, 43, 0.55);
  background: rgba(255, 138, 43, 0.025);
}

/* sidebar blocks are outlined in place so they follow the fixed rail */
.anno-self { position: relative; }
body.annot-on .anno-self {
  outline: 1px dashed rgba(255, 138, 43, 0.55);
  outline-offset: 2px;
}
.anno-self > .anno-num {
  position: absolute;
  top: -12px;
  left: -12px;
  z-index: 5;
}
body:not(.annot-on) .anno-self > .anno-num { display: none; }
body.annot-on .side-label { padding-left: 18px; }
.anno-num {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #140b03;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px rgba(255, 138, 43, 0.16), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.anno-toggle[hidden] { display: none; }

.anno-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 138, 43, 0.5);
  background: rgba(6, 13, 18, 0.92);
  color: var(--accent-soft);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.18s ease, color 0.18s ease;
}
.anno-toggle:hover { background: rgba(255, 138, 43, 0.14); }
.anno-toggle__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.anno-toggle[aria-pressed="false"] { color: var(--muted); border-color: var(--line); }
.anno-toggle[aria-pressed="false"] .anno-toggle__dot { background: var(--muted); }

.anno-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 95;
  width: 336px;
  max-height: calc(100vh - 92px);
  display: none;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 138, 43, 0.38);
  background: rgba(5, 12, 16, 0.95);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}
body.annot-on .anno-panel { display: flex; }

.anno-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 138, 43, 0.22);
}
.anno-panel__head b {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.anno-panel__close {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.anno-panel__close:hover { color: var(--accent); }
.anno-panel__note {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.anno-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  overflow-y: auto;
  min-height: 0;
}
.anno-list li {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.anno-list li:first-child { border-top: 0; }
.anno-list__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 138, 43, 0.16);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}
.anno-list b {
  display: block;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.anno-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero__side { display: none; }
  .post { grid-template-columns: 280px minmax(0, 1fr); }
  .about-section { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .sidebar__top { flex-direction: row; align-items: center; gap: 12px; }
  .brand { width: 168px; }
  .brand__tag { display: none; }
  .nav {
    flex-direction: row;
    border-top: 0;
    padding-top: 0;
    margin-left: auto;
  }
  .nav__item {
    padding: 7px 12px;
    font-size: 15px;
    border-top: 1px solid var(--line) !important;
  }
  .nav__item:hover { padding-left: 12px; }
  .nav__item.is-active::before { display: none; }
  .side-block { flex-direction: row; align-items: center; gap: 10px; }
  .side-label { display: none; }
  .socials { flex-direction: row; align-items: center; gap: 4px 14px; }
  .socials li + li .socials__link { border-top: 0; }
  .socials__link { padding: 2px 0; font-size: 10px; }
  .socials__arrow { display: none; }
  .lang { padding: 2px; }
  .lang__btn { padding: 4px 10px; font-size: 11px; }
  .sidebar__bottom { flex-direction: row; align-items: center; gap: 14px; margin-top: 0; margin-left: auto; padding-top: 0; }
  .wishlist { padding: 9px 13px; font-size: 11px; }
  .wishlist__note { display: none; }
  .main { margin-left: 0; }
  .hero { min-height: 620px; }
  .hero__inner { padding: 64px 40px 46px; }
  .hero__logo { width: min(520px, 82%); }
  .news { padding: 60px 40px 72px; }
  .about-hero { grid-template-columns: 280px minmax(0, 1fr); padding: 40px; }
  .about-wrap { padding: 0 40px 64px; }
  .footer { padding: 24px 40px; }
  .anno-panel { width: 300px; }
}

@media (max-width: 780px) {
  .post { grid-template-columns: 1fr; }
  .post__media { min-height: 0; aspect-ratio: 16 / 9; }
  .post__body { padding: 22px 22px 24px; }
  .post__title { font-size: 21px; }
  .post--feature { min-height: 470px; }
  .post--feature .post__body { padding: 26px 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-lead { text-align: left; max-width: 420px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .about-section__label { position: static; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__art { max-width: 320px; }
  .about-hero::after { display: none; }
  .contacts { gap: 16px 32px; }
}

@media (max-width: 620px) {
  .sidebar { padding: 12px 16px; gap: 10px 16px; }
  .brand { width: 138px; }
  .nav { margin-left: auto; }
  .nav__item { font-size: 13px; padding: 4px 6px; letter-spacing: 0.06em; }
  .nav__index { display: none; }
  .socials { gap: 2px 10px; }
  .socials__link { font-size: 9px; letter-spacing: 0.08em; }
  .sidebar__bottom { width: 100%; justify-content: space-between; }
  .wishlist { flex: 1; justify-content: center; }
  .hero { min-height: 560px; }
  .hero__inner { padding: 48px 20px 36px; }
  .hero__logo { width: 100%; }
  .hero__tagline { font-size: 14.5px; }
  .hero__actions .btn { flex: 1; padding: 13px 10px; font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
  .about-hero__actions .btn { padding: 12px 14px; font-size: 11px; letter-spacing: 0.08em; }
  .hero__meta { margin-top: 26px; }
  .hero__meta li { padding: 0 10px; font-size: 8.5px; }
  .news { padding: 48px 20px 60px; }
  .section-title { font-size: 44px; }
  .post--feature { min-height: 430px; }
  .post--feature .post__title { font-size: 25px; }
  .post__excerpt { font-size: 13px; }
  .about-hero { padding: 32px 20px; gap: 30px; }
  .about-hero__lead { font-size: 14.5px; }
  .about-wrap { padding: 0 20px 52px; }
  .press { padding: 24px 20px; }
  .gallery { gap: 8px; }
  .cta-panel { padding: 26px 20px; }
  .footer { padding: 22px 20px; flex-direction: column; align-items: flex-start; }
  .anno-panel { top: auto; bottom: 64px; left: 12px; right: 12px; width: auto; max-height: 46vh; }
  .anno-toggle { right: 12px; bottom: 12px; }
  .modal__box { max-height: 92vh; }
  .modal { width: 96vw; max-height: 92vh; }
  .modal__body { padding: 24px 18px 30px; }
  .lightbox__inner { padding: 16px; }
  .post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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