
:root {
  --bg: #05070b;
  --bg-soft: #090d14;
  --surface: #101722;
  --surface-2: #141d2a;
  --line: rgba(255,255,255,.12);
  --text: #f6f7f2;
  --muted: #a8b0ba;
  --muted-2: #6f7784;
  --gold: #ffc633;
  --blue: #35c7ff;
  --red: #ff554a;
  --max: 1180px;
}

* { box-sizing: border-box; }

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

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,198,51,.075), transparent 24rem),
    linear-gradient(124deg, transparent 0 26%, rgba(255,198,51,.09) 26.08% 26.34%, transparent 26.58% 100%),
    linear-gradient(49deg, transparent 0 58%, rgba(53,199,255,.075) 58.08% 58.32%, transparent 58.56% 100%),
    linear-gradient(112deg, transparent 0 72%, rgba(53,199,255,.045) 72.06% 72.5%, transparent 72.75% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.046) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.036) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(135deg, transparent 0 86px, rgba(53,199,255,.04) 86px 87px, transparent 87px 148px),
    linear-gradient(180deg, rgba(5,7,11,.54), rgba(5,7,11,.9));
  background-attachment: fixed;
}

body::after {
  z-index: 0;
  opacity: .17;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  pointer-events: auto;
}

main,
.site-header {
  position: relative;
}

main {
  z-index: 1;
}

.header-bar {
  min-height: 36px;
  padding: 0 clamp(12px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(5,7,11,.82), rgba(5,7,11,.62));
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}

.menu-trigger,
.menu-close {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.menu-trigger {
  width: 38px;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-trigger span {
  width: 26px;
  height: 2.5px;
  border-radius: 4px;
  background: var(--text);
  box-shadow: 0 0 18px rgba(255,255,255,.18);
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 15% 0, rgba(255,198,51,.13), transparent 18rem),
    linear-gradient(180deg, rgba(7,10,15,.98), rgba(10,15,22,.94));
  box-shadow: 0 28px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.site-header.menu-open .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-top {
  min-height: 54px;
  padding: 0 clamp(18px, 4vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.menu-top span {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.menu-close {
  position: relative;
  width: 48px;
  height: 48px;
}

.menu-close::before,
.menu-close::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 10px;
  width: 30px;
  height: 3px;
  border-radius: 4px;
  background: var(--text);
}

.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }

.menu-links {
  width: min(520px, 100%);
  padding: 26px clamp(18px, 5vw, 40px) 34px;
  display: grid;
  gap: 10px;
}

.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;
}

.menu-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: rgba(255,255,255,.035);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.menu-links a.active,
.menu-links a:hover {
  border-color: rgba(255,198,51,.65);
  background: rgba(255,198,51,.11);
  transform: translateY(-1px);
}

.menu-links a {
  min-height: 52px;
  justify-content: flex-start;
  padding: 0 18px;
  font-size: 18px;
}

.home-hero {
  min-height: min(760px, 100svh);
  position: relative;
  display: grid;
  align-items: stretch;
  background: #05070b;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: min(760px, 100svh);
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.article-section {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 96px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(5,7,11,.72), rgba(5,7,11,.56) 42%, rgba(5,7,11,.78)),
    linear-gradient(90deg, rgba(255,198,51,.045), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    inset 0 -1px 0 rgba(255,255,255,.035);
}

.article-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255,198,51,.075) 10.1% 10.35%, transparent 10.6% 100%),
    linear-gradient(122deg, transparent 0 58%, rgba(53,199,255,.07) 58.08% 58.32%, transparent 58.55% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.036) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.article-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .72;
  background:
    linear-gradient(115deg, transparent 0 66%, rgba(53,199,255,.085) 66.1% 66.65%, transparent 66.95% 100%),
    linear-gradient(115deg, transparent 0 82%, rgba(255,198,51,.065) 82.06% 82.38%, transparent 82.68% 100%);
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
}

.post-content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  margin: 0 auto;
  font-size: clamp(21px, 1.9vw, 29px);
  line-height: 1.38;
  color: #f4f5f0;
  font-weight: 400;
}

.post-content p {
  margin: 0 0 1.35em;
}

.post-content .post-lead {
  margin-bottom: 1.25em;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.2;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

.post-content strong {
  color: #fff;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(255,198,51,.62);
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}

.post-content .post-lead strong {
  font-weight: 900;
  text-decoration: none;
}

.post-content a {
  color: var(--gold);
  font-size: .9em;
  font-weight: 650;
  border-bottom: 2px solid rgba(255,198,51,.52);
}

.cta-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(8px, 2vw, 18px) 0 clamp(42px, 6vw, 76px);
  display: grid;
  place-items: center;
}

.contact-cta {
  position: relative;
  isolation: isolate;
  width: min(620px, 100%);
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,236,154,.86);
  border-radius: 999px;
  background:
    linear-gradient(115deg, #ffe487 0%, var(--gold) 34%, #ffb000 68%, #fff0a6 100%);
  color: #090806;
  box-shadow:
    0 18px 54px rgba(255,198,51,.24),
    inset 0 2px 0 rgba(255,255,255,.42),
    inset 0 -3px 0 rgba(80,50,0,.22);
  font-size: clamp(16px, 2.8vw, 22px);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.contact-cta::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  z-index: -1;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: cta-shimmer 3.8s ease-in-out infinite;
}

.contact-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 24px 70px rgba(255,198,51,.3),
    inset 0 2px 0 rgba(255,255,255,.46),
    inset 0 -3px 0 rgba(80,50,0,.22);
}

@keyframes cta-shimmer {
  0%, 38% { left: -35%; opacity: 0; }
  48% { opacity: 1; }
  72%, 100% { left: 118%; opacity: 0; }
}

.index-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) 0;
}

.materials-band {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.listing-inner h1 {
  margin: 0;
  font-family: Impact, "Arial Black", Inter, sans-serif;
  font-size: clamp(38px, 6vw, 82px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.content-card::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(5,7,11,.62);
  backdrop-filter: blur(12px);
  font-size: 17px;
  font-weight: 900;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,198,51,.52);
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}

.card-media {
  aspect-ratio: 1672 / 941;
  background: #0b111a;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card-title {
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
  color: #fff;
}

.card-excerpt {
  font-size: 14px;
  line-height: 1.46;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-hero {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 5vw, 72px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.listing-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.listing-inner p {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
  padding: 0;
  background: #05070b;
}

.detail-cover {
  width: 100%;
  height: min(760px, 100svh);
  min-height: 520px;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.detail-article {
  padding-top: clamp(26px, 4vw, 58px);
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 0;
    display: block;
  }

  .hero-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    object-fit: contain;
    background: #05070b;
  }

  .detail-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 1672 / 941;
    object-fit: contain;
    background: #05070b;
  }

  .card-grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-bar,
  .menu-top {
    min-height: 34px;
  }

  .menu-trigger {
    width: 38px;
    height: 32px;
    gap: 3.5px;
  }

  .menu-trigger span {
    width: 25px;
    height: 2.5px;
  }

  .menu-links a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .article-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post-content {
    font-size: 25px;
    line-height: 1.3;
    font-weight: 400;
  }

  .post-content .post-lead {
    font-size: 25px;
    line-height: 1.3;
  }

  .post-content a {
    font-size: .88em;
  }

  .cta-section {
    width: min(100% - 32px, 620px);
    padding-top: 0;
    padding-bottom: 46px;
  }

  .contact-cta {
    min-height: 58px;
    padding: 0 18px;
    font-size: 16px;
  }

  .section-heading h2,
  .listing-inner h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .card-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

}
