/* JCN.news | My Country is Real */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --navy-900: #0b1424;
  --navy-800: #0f1b2f;
  --navy-700: #15243d;
  --navy-600: #1d3050;
  --ink: #f4f7fb;
  --muted: #b4c0d3;
  --dim: #7f8ea6;
  --sky: #6cb8ff;
  --sky-deep: #2f6fdc;
  --sand: #f2c48d;
  --line: rgba(255,255,255,.10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --header-h: 68px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
  -webkit-text-size-adjust: 100%;
  background-color: #0b1424;
  color-scheme: dark;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--navy-900); background-color: #0b1424;
  line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; width: 100%; max-width: 100%;
  min-height: 100vh; min-height: 100svh; min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--navy-900); padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; width: 100%;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(11,20,36,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand-dot { color: var(--sky); }
.brand--sm { font-size: 1.15rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 9px 16px; border-radius: 999px; color: var(--muted);
  text-decoration: none; font-weight: 500; font-size: .98rem; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.site-nav a.is-active { color: var(--ink); background: rgba(255,255,255,.09); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255,255,255,.04); padding: 0 13px; cursor: pointer; z-index: 60;
  }
  .nav-toggle-bar { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; background: rgba(11,20,36,.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 10px; }
  .site-nav a { font-size: 1.5rem; font-weight: 700; padding: 12px 28px; color: var(--ink); }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed overlay inside the header */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav-open .brand { position: relative; z-index: 60; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1.02rem;
  text-decoration: none; transition: transform .2s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(108,184,255,.45); }
.btn-solid:hover { background: #fff; }
.btn-outline { color: var(--ink); border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; width: 100%; max-width: none;
  min-height: 100vh; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px)
    0
    calc(72px + env(safe-area-inset-bottom, 0px));
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 50% -10%, #182b4b 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.hero::after { /* subtle grain-free dot texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: 50%; top: 55%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(47,111,220,.22), transparent 60%);
  filter: blur(20px);
}
.hero-inner {
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); padding: 7px 16px; border-radius: 999px; background: rgba(108,184,255,.10);
  border: 1px solid rgba(108,184,255,.25); margin-bottom: 28px;
}
.hero-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: .9;
  font-size: clamp(3.1rem, 13vw, 8.4rem);
}
.hero-title .line { display: block; position: relative; }
.hero-title .line-2 { margin-top: .04em; }
.hero-title .is { color: var(--sky); }
.hero-title .ghost {
  position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-40%, -50%);
  font-size: 1.32em; letter-spacing: -0.02em; white-space: nowrap; pointer-events: none;
  color: rgba(140,170,215,.085);
  -webkit-text-stroke: 1px rgba(108,184,255,.14);
  animation: ghost-in 1.6s ease-out .3s both;
}
@keyframes ghost-in { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: -0.02em; } }
.hero-sub {
  max-width: 640px; margin: 32px auto 0; color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.letterplay {
  display: inline-flex; align-items: center; gap: 10px; margin: 40px 0 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; color: var(--dim);
}
.letterplay svg { color: var(--sky); }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: 28px; height: 46px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; border-radius: 4px;
  background: var(--ink); transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 26px; } }
@media (max-height: 700px) { .scroll-cue { display: none; } }

@media (max-width: 560px) {
  .hero-ctas .btn { width: 100%; max-width: 340px; }
  .hero-title .ghost { font-size: 1.25em; }
  .eyebrow { font-size: .74rem; letter-spacing: .12em; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 130px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
h2 .soft { color: var(--muted); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }

/* ---------- Stories ---------- */
.stories { background: var(--navy-900); }
.shorts-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px max(22px, calc((100vw - var(--maxw)) / 2 + 40px)) 30px;
  scrollbar-width: none;
}
.shorts-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) {
  .shorts-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible;
    max-width: var(--maxw); margin: 0 auto; padding: 10px 40px 30px; }
}
.short {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  scroll-snap-align: center; isolation: isolate;
  background: var(--navy-700); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transition: transform .35s ease, box-shadow .35s ease;
}
.short:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(47,111,220,.45); }
.short-art { position: absolute; inset: 0; z-index: -1; }
.short-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,14,26,.85)); }
.blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .85; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 85%; height: 55%; top: 6%; left: -15%; }
.b2 { width: 75%; height: 50%; bottom: 10%; right: -20%; animation-delay: -6s; }
.short--a .b1 { background: #2f6fdc; } .short--a .b2 { background: #6cb8ff; }
.short--b .b1 { background: #f2a65a; } .short--b .b2 { background: #b8577a; }
.short--c .b1 { background: #3aa89a; } .short--c .b2 { background: #2f6fdc; }
.short--d .b1 { background: #8b6fe0; } .short--d .b2 { background: #f2c48d; }
@keyframes drift { to { transform: translate(12%, 8%) scale(1.12); } }

.pill-soon {
  position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(11,20,36,.55); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
}
.play {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; transform: translate(-50%, -60%);
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.short-meta { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.short-num { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.short-theme { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.rail-note { color: var(--dim); margin-top: 18px; }
.rail-note a { font-weight: 600; text-decoration: none; }
.rail-note a:hover { text-decoration: underline; }

/* ---------- People ---------- */
.people { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.people-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .people-grid { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.people-copy p:not(.lead):not(.kicker) { color: var(--muted); }
.people-copy em { color: var(--ink); font-style: italic; }
.traits { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.traits li {
  padding: 10px 18px; border-radius: 999px; font-size: .95rem; font-weight: 600;
  background: rgba(108,184,255,.08); border: 1px solid rgba(108,184,255,.25); color: var(--ink);
}
.people-art { max-width: 320px; width: 100%; margin: 0 auto; }
@media (min-width: 960px) { .people-art { max-width: 460px; } }
.orbit .fig { transform-box: fill-box; transform-origin: center; animation: bob 6s ease-in-out infinite; }
.orbit .f2 { animation-delay: -2s; } .orbit .f3 { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Mission ---------- */
.mission { background: var(--navy-800); overflow: hidden; }
.mission::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -240px; top: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,196,141,.12), transparent 65%);
}
.mission-inner { text-align: center; position: relative; }
.mission-inner .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.quote-card {
  position: relative; max-width: 860px; margin: 24px auto 64px; padding: 56px 28px 40px;
  border-radius: 40px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
@media (min-width: 768px) { .quote-card { padding: 72px 72px 52px; } }
.quote-mark {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--sky); color: var(--navy-900);
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-size: clamp(1.3rem, 3.2vw, 2rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; margin: 0;
}
.quote-card strong { color: var(--sky); font-weight: 800; }
.quote-card figcaption { margin-top: 26px; color: var(--dim); font-size: .95rem; font-weight: 600; }
.mission-points { display: grid; gap: 18px; text-align: left; }
@media (min-width: 820px) { .mission-points { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.point { padding: 30px 28px; border-radius: var(--radius-md); background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.point-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(108,184,255,.12); margin-bottom: 18px; }
.point-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { font-size: 1.2rem; margin-bottom: 8px; }
.point p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Follow ---------- */
.follow { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); }
.follow-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  max-width: 900px; margin: 0 auto; padding: 64px 24px; border-radius: 44px;
  background: linear-gradient(150deg, #1a3a6b, #132643 55%, #0f1d33);
  border: 1px solid rgba(108,184,255,.2);
}
@media (min-width: 768px) { .follow-card { padding: 80px 64px; } }
.follow-blob {
  position: absolute; z-index: -1; width: 420px; height: 420px; left: -120px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,184,255,.35), transparent 65%);
}
.follow-card .kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.follow-card .lead { max-width: 600px; margin: 0 auto; }
.socials { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: var(--muted);
  font-weight: 600; font-size: .95rem; cursor: default; user-select: none;
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
a.social { color: var(--ink); cursor: pointer; text-decoration: none; }
a.social:hover { background: rgba(255,255,255,.12); }
.follow-note { margin: 28px 0 0; display: inline-flex; align-items: center; gap: 10px; color: var(--dim); font-size: .9rem; font-weight: 600; }
.follow-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 0 rgba(242,196,141,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,196,141,0); } 100% { box-shadow: 0 0 0 0 rgba(242,196,141,0); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); background: var(--navy-900); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner p { margin: 0; color: var(--dim); font-size: .92rem; }
.to-top { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.to-top:hover { color: var(--ink); }
@media (max-width: 560px) { .footer-inner { flex-direction: column; text-align: center; } }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.mission-statement { max-width: 680px; margin: 2rem auto; text-align: center; }
