:root {
  --mist: #f4f6fb;
  --mist-deep: #e8edf5;
  --slate: #0a0f1c;
  --slate-soft: #151c2e;
  --ink: #111827;
  --sky: #38bdf8;
  --violet: #8b5cf6;
  --line: rgba(17, 24, 39, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--mist);
  color: var(--ink);
  overflow-x: hidden;
  cursor: auto;
  font-size: 17px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.shell { max-width: 1440px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.shell-narrow { max-width: 920px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

.mesh-bg {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(15, 23, 42, 0.06), transparent 60%),
    var(--mist);
}

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.08);
}

.neon-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(10, 15, 28, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.neon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.neon-card:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(56, 189, 248, 0.18); }
.neon-card:hover::before { opacity: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(10, 15, 28, 0.2);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 15, 28, 0.65));
  pointer-events: none;
}

.page-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    var(--mist);
}

.page-hero-inner { padding-bottom: 3rem; }

.page-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: rgba(17, 24, 39, 0.72);
  max-width: 52rem;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.5);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover { color: var(--sky); }
.breadcrumb span { opacity: 0.4; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.meta-row dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.25rem;
}

.page-hero-media {
  width: 100%;
  height: clamp(320px, 55vh, 620px);
  object-fit: cover;
  border-radius: 0;
}

.article-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 4rem 5rem;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1.25rem;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: 0 12px 40px rgba(10, 15, 28, 0.06);
}

.sidebar-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.toc a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: rgba(17, 24, 39, 0.65);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.toc a:hover { color: var(--sky); padding-left: 0.35rem; }

.glance-list { display: grid; gap: 0.85rem; }
.glance-list div { display: grid; gap: 0.15rem; }
.glance-list span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.article-prose { max-width: 760px; }
.article-prose .lead {
  font-size: 1.35rem;
  line-height: 1.75;
  color: rgba(17, 24, 39, 0.82);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.article-prose h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 3rem 0 1rem;
  letter-spacing: -0.02em;
}

.article-prose p { margin-bottom: 1.35rem; color: rgba(17, 24, 39, 0.82); }
.article-prose ul { margin: 0 0 1.5rem 1.25rem; list-style: disc; color: rgba(17, 24, 39, 0.78); }
.article-prose li { margin-bottom: 0.5rem; }

.pull-quote {
  margin: 3rem 0;
  padding: 2rem 2.25rem;
  border-left: 4px solid var(--sky);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent);
  border-radius: 0 1rem 1rem 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--slate);
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.photo-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(10, 15, 28, 0.12);
}

.photo-row .wide { grid-column: span 8; height: 360px; }
.photo-row .tall { grid-column: span 4; height: 360px; }
.photo-row .half { grid-column: span 6; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 3rem;
}

.tip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem;
}

.tip-card strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.section-band {
  background: var(--slate);
  color: var(--mist);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-band h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.12);
}

.related-card img { width: 100%; height: 200px; object-fit: cover; }
.related-card div { padding: 1.25rem 1.35rem 1.5rem; }

.cta-band {
  background:
    radial-gradient(circle at 0% 50%, rgba(56, 189, 248, 0.2), transparent 45%),
    radial-gradient(circle at 100% 50%, rgba(139, 92, 246, 0.18), transparent 45%),
    var(--slate);
  color: var(--mist);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.cta-band h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  margin-top: 3rem;
}

.stat-cell {
  background: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-cell strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-cell span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(17, 24, 39, 0.55);
}

.featured-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 520px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 15, 28, 0.1);
}

.featured-split img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.featured-split .copy { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }

.listing-row {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.listing-row:hover { background: rgba(255, 255, 255, 0.55); }
.listing-row img { width: 100%; height: 220px; object-fit: cover; border-radius: 1rem; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  padding-block: 4rem 5rem;
}

.legal-nav { position: sticky; top: 6.5rem; }
.legal-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.legal-nav a:hover { color: var(--sky); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem 5rem;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.08);
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17, 24, 39, 0.15);
  outline: none;
  font-size: 1rem;
}

.contact-panel input:focus,
.contact-panel textarea:focus { border-bottom-color: var(--sky); }

.site-footer {
  background: var(--slate);
  color: var(--mist);
  margin-top: 0;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  font-size: 0.8rem;
  color: rgba(244, 246, 251, 0.45);
}

.beam {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  filter: blur(8px);
  animation: drift 12s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -30px); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--slate);
  color: var(--mist);
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  padding: 1rem 0;
  font-family: "JetBrains Mono", monospace;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.reveal { opacity: 0; transform: translateY(24px); animation: rise 0.85s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

@keyframes rise { to { opacity: 1; transform: none; } }

.in-view { opacity: 0; transform: translateY(36px); transition: opacity 0.75s ease, transform 0.75s ease; }
.in-view.is-seen { opacity: 1; transform: none; }

.ken { overflow: hidden; }
.ken img { transform: scale(1.06); animation: ken 16s ease-in-out infinite alternate; }
@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1.14); } }

.nav-link { position: relative; transition: color 0.25s ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--violet));
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sky), var(--violet));
  z-index: 90;
}

.chapter-num {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.45);
  opacity: 0.55;
}

.glow-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glow-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.glow-btn:hover::before { transform: scaleX(1); }
.glow-btn:hover { color: #fff; box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35); }

.grid-offset > *:nth-child(even) { transform: translateY(22px); }

.bento-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.1);
}

.stat-float {
  position: absolute;
  padding: 0.85rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(10, 15, 28, 0.12);
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(244, 246, 251, 0.88);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.menu-panel {
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.15), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(139, 92, 246, 0.2), transparent 45%),
    var(--slate);
}

.menu-panel.open { transform: none; }

.cookie-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.18);
  border-radius: 1rem;
}

.dash-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}

.legal p { margin-bottom: 1rem; line-height: 1.75; }
.legal h2 {
  margin: 2.5rem 0 0.85rem;
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
}
.legal ul { margin: 0.5rem 0 1.25rem 1.25rem; list-style: disc; }

#cookie-banner {
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#cookie-banner.show { transform: none; }

@media (max-width: 1024px) {
  .article-shell, .legal-layout, .contact-grid, .featured-split, .stats-strip { grid-template-columns: 1fr; }
  .article-sidebar, .legal-nav { position: static; }
  .listing-row { grid-template-columns: 1fr; }
  .listing-row .chapter-num { font-size: 3rem; }
  .photo-row .wide, .photo-row .tall, .photo-row .half { grid-column: span 12; height: 240px; }
  .site-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-offset > *:nth-child(even) { transform: none; }
  .site-footer-top { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
}
