/* ==========================================================================
   Yoonverse — Editorial Beige Design System
   ========================================================================== */
:root {
  --bg: #f6f1e8;
  --bg-soft: #efe7da;
  --surface: #fffdf9;
  --ink: #1d1b18;
  --ink-soft: #4a453e;
  --muted: #7d766b;
  --line: #e2d8c8;
  --accent: #c0532a;
  --accent-soft: #f4dccf;
  --olive: #4f5d3f;
  --olive-soft: #e3e6d6;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29,27,24,.04), 0 12px 32px -12px rgba(29,27,24,.12);
  --ease: cubic-bezier(.16,1,.3,1);
  --max: 1160px;
}

[data-theme="dark"] {
  --bg: #141311;
  --bg-soft: #1d1b18;
  --surface: #1b1916;
  --ink: #f5eee3;
  --ink-soft: #c9c0b1;
  --muted: #8c8375;
  --line: #2b2721;
  --accent: #e26d42;
  --accent-soft: #382218;
  --olive: #92a97a;
  --olive-soft: #252e1d;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 16px 36px -12px rgba(0,0,0,.6);
}
[data-theme="dark"] body::before { opacity: .12; }
[data-theme="dark"] .seo-cosmos-zone {
  background: radial-gradient(ellipse at 50% 50%, #1c1a16 0%, #141311 70%, #0d0c0a 100%);
  border-color: #2b2721;
}
[data-theme="dark"] .big-word-cosmic {
  -webkit-text-stroke: 1.5px rgba(245,238,227,.22);
}
[data-theme="dark"] .sim-card {
  background: #191815; border-color: #2b2721;
}
[data-theme="dark"] .sim-header {
  background: #141311; border-color: #2b2721;
}
[data-theme="dark"] .sim-search-input {
  background: #1e1c19; border-color: #2b2721;
}
[data-theme="dark"] .serp-item {
  background: #1e1c19; border-color: #2b2721;
}
[data-theme="dark"] .sim-metric-cell {
  background: #1e1c19; border-color: #2b2721;
}
[data-theme="dark"] .radar-scan {
  border-color: #2b2721;
}
[data-theme="dark"] .celestial-body {
  background: rgba(27,25,22,.92); border-color: #2b2721;
}
[data-theme="dark"] .cosmos-tooltip {
  background: #1c1a17; border-color: #2b2721;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Grain overlay for a paper feel */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.6rem; }
em.accent, .accent { color: var(--accent); font-style: italic; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.65rem; text-decoration: none; display: flex; align-items: center; gap: .65rem; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 1rem; font-family: var(--serif); font-style: italic;
}
.logo-img {
  width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important;
  border-radius: 50% !important; object-fit: cover !important; display: inline-block !important;
  vertical-align: middle !important; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(29,27,24,.08);
  flex-shrink: 0 !important;
}
.portrait-img {
  width: 100%; height: 100%; object-fit: contain; display: block; padding: 1.5rem;
}
.nav-links { display: flex; gap: 2.1rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--accent);
}
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px;
  border-radius: 8px; position: relative; z-index: 1001; -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto;
  transition: transform .3s var(--ease), opacity .2s ease; border-radius: 2px;
}
.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-cta-item { display: none; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: grid;
  place-items: center; font-size: 1.05rem; transition: transform .2s var(--ease), border-color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.theme-btn:hover { transform: scale(1.08); border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .93rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), background .2s, box-shadow .3s; font-family: var(--sans);
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(29,27,24,.5); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin: 1.2rem 0 1.5rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-note { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px var(--olive-soft); }

/* Hero visual: mock SERP card */
.serp {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); position: relative; animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px); } }
.serp-search {
  display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; background: var(--bg);
}
.serp-search .cursor { width: 1px; height: 16px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp-result { padding: .9rem 0; border-top: 1px dashed var(--line); }
.serp-result:first-of-type { border-top: 0; }
.serp-url { font-size: .76rem; color: var(--olive); }
.serp-title { font-family: var(--serif); font-size: 1.25rem; color: #1a3d8f; line-height: 1.25; }
.serp-desc { font-size: .82rem; color: var(--muted); }
.serp-result.top { position: relative; }
.rank-badge {
  position: absolute; right: 0; top: .9rem; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
}
.serp-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); margin-top: .45rem; }
.serp-bar.w60 { width: 60%; } .serp-bar.w80 { width: 80%; } .serp-bar.w45 { width: 45%; }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .6rem .9rem; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow); display: flex; gap: .5rem; align-items: center;
}
.float-chip.c1 { top: -18px; left: -24px; animation: floaty 6s ease-in-out infinite reverse; }
.float-chip.c2 { bottom: -20px; right: -16px; animation: floaty 8s ease-in-out infinite; }
.float-chip .up { color: var(--olive); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: var(--bg-soft); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; color: var(--ink-soft); display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: '✦'; color: var(--accent); font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.section-head h2 { margin-top: .8rem; max-width: 640px; }

/* Topic cards */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.topic {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; position: relative; overflow: hidden;
}
.topic:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d4c6b0; }
.topic-num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.topic h3 { margin: 1.4rem 0 .6rem; }
.topic p { color: var(--ink-soft); font-size: .95rem; }
.topic-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center;
  position: absolute; top: 1.6rem; right: 1.6rem; font-size: 1.3rem; transition: transform .4s var(--ease), background .3s;
}
.topic:hover .topic-icon { transform: rotate(-8deg) scale(1.08); background: var(--accent-soft); }

/* Split / philosophy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.quote-card {
  background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 3rem; position: relative;
}
.quote-card blockquote { font-family: var(--serif); font-size: 2rem; line-height: 1.2; }
.quote-card cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: .85rem; color: #b8afa1; }
.quote-card::before { content: '“'; position: absolute; top: -.2rem; right: 1.6rem; font-family: var(--serif); font-size: 7rem; color: var(--accent); line-height: 1; }
.checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: start; color: var(--ink-soft); }
.checklist li::before {
  content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--olive-soft);
  color: var(--olive); font-size: .75rem; font-weight: 700; display: grid; place-items: center; margin-top: .15rem;
}

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { text-decoration: none; display: flex; flex-direction: column; group: card; }
.post-thumb {
  aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 1.2rem;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.post-thumb .glyph { font-family: var(--serif); font-size: 4.5rem; font-style: italic; transition: transform .6s var(--ease); }
.post-card:hover .glyph { transform: scale(1.12) rotate(-4deg); }
.t1 { background: linear-gradient(135deg, #f4dccf, #ecc7b3); color: var(--accent); }
.t2 { background: linear-gradient(135deg, #e3e6d6, #cfd5bb); color: var(--olive); }
.t3 { background: linear-gradient(135deg, #ece3d3, #ddcfb7); color: var(--ink); }
.t4 { background: linear-gradient(135deg, #e6dff0, #d3c8e3); color: #5b4a7d; }
.t5 { background: linear-gradient(135deg, #dfe9ec, #c4d7dc); color: #2f5d68; }
.t6 { background: linear-gradient(135deg, #f1e4c9, #e6d2a6); color: #8a6420; }
.post-meta { font-size: .78rem; color: var(--muted); display: flex; gap: .7rem; align-items: center; margin-bottom: .5rem; }
.tag { background: var(--bg-soft); border: 1px solid var(--line); padding: .15rem .6rem; border-radius: 999px; font-weight: 600; color: var(--ink-soft); }
.post-card h3 { font-size: 1.5rem; transition: color .2s; }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--ink-soft); font-size: .93rem; margin-top: .5rem; }

/* Newsletter / CTA */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.cta::before { width: 280px; height: 280px; background: var(--accent-soft); top: -100px; left: -60px; }
.cta::after { width: 260px; height: 260px; background: var(--olive-soft); bottom: -110px; right: -40px; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 640px; margin: 1rem auto; }
.cta p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }
.subscribe { display: flex; gap: .6rem; max-width: 460px; margin: 2rem auto 0; }
.subscribe input {
  flex: 1; padding: .85rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: .93rem; color: var(--ink); outline: none; transition: border-color .2s;
}
.subscribe input:focus { border-color: var(--ink); }
.form-msg { margin-top: 1rem; font-size: .88rem; color: var(--olive); min-height: 1.3em; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin: 1rem 0; max-width: 820px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.portrait {
  aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #e9dcc7, #d8c4a5);
  display: grid; place-items: center; position: sticky; top: 100px; border: 1px solid var(--line); overflow: hidden;
}
.portrait span { font-family: var(--serif); font-style: italic; font-size: 9rem; color: rgba(29,27,24,.75); }
.portrait::after {
  content: 'SEO Strategist'; position: absolute; bottom: 1.2rem; left: 1.2rem; background: var(--surface);
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.prose { font-size: 1.07rem; color: var(--ink-soft); }
.prose p { margin-bottom: 1.3rem; }
.prose h2 { font-size: 2.2rem; color: var(--ink); margin: 2.8rem 0 1rem; }
.prose h3 { font-size: 1.55rem; color: var(--ink); margin: 2rem 0 .7rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { background: var(--bg-soft); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.4rem; margin: 2rem 0;
  font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.3;
}
.callout { background: var(--olive-soft); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 1.8rem 0; color: var(--ink); font-size: .98rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem; }
.value strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; margin-bottom: .3rem; }
.value p { margin: 0; font-size: .92rem; }

/* Blog list filter */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: .87rem; font-weight: 500; cursor: pointer; color: var(--ink-soft); transition: .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.post-card.hide { display: none; }
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; text-decoration: none;
  margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line);
}
.featured .post-thumb { margin: 0; aspect-ratio: 16/10; }
.featured h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: .6rem 0 1rem; transition: color .2s; }
.featured:hover h2 { color: var(--accent); }
.featured p { color: var(--ink-soft); }

/* Article */
.article-head { padding: 4.5rem 0 2.5rem; text-align: center; }
.article-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 860px; margin: 1.2rem auto; }
.article-head .post-meta { justify-content: center; }
.article-body { max-width: 720px; margin: 0 auto; padding-bottom: 4rem; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 200; }
.back-link { display: inline-flex; gap: .4rem; text-decoration: none; font-size: .88rem; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.toc strong { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.toc ol { margin: .7rem 0 0 1.2rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact-list { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .95rem; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 300px; margin-top: 1rem; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid ul a { text-decoration: none; font-size: .93rem; color: var(--ink-soft); }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .83rem; color: var(--muted); flex-wrap: wrap; gap: 1rem; }
/* ---------- SEO Cosmos (Universe of SEO) ---------- */
.seo-cosmos-zone {
  margin: 3.5rem 0 2rem;
  padding: 3.5rem 1.5rem 2rem;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 50%, #fefcf9 0%, #f7f2ea 65%, #ece3d4 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px -16px rgba(29,27,24,.06);
  user-select: none;
}
.cosmos-header { text-align: center; margin-bottom: 1.5rem; position: relative; z-index: 5; }
.cosmos-badge {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; color: var(--accent); background: var(--accent-soft);
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: .6rem;
}
.cosmos-title { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; color: var(--ink); }
.cosmos-caption { font-size: .92rem; color: var(--muted); max-width: 540px; margin: .3rem auto 0; line-height: 1.5; }

.cosmos-stage {
  position: relative; width: 100%; height: 320px; display: flex; align-items: center; justify-content: center;
}
.cosmos-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1;
}

/* Orbital Rings */
.cosmos-orbit {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed var(--line); pointer-events: none; z-index: 2;
}
.orbit-1 { width: 340px; height: 140px; border-color: rgba(192,83,42,.3); }
.orbit-2 { width: 560px; height: 210px; border-color: rgba(79,93,63,.28); }
.orbit-3 { width: 780px; height: 280px; border-color: rgba(29,27,24,.18); }

/* Celestial Orbiting Bodies */
.celestial-body {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; border-radius: 999px; background: rgba(255,253,249,.94);
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(29,27,24,.08);
  font-size: .76rem; font-weight: 600; color: var(--ink); cursor: pointer;
  backdrop-filter: blur(8px); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.celestial-body:hover, .celestial-body:focus-visible {
  border-color: var(--accent); box-shadow: 0 8px 24px -4px rgba(192,83,42,.28);
  transform: scale(1.12); z-index: 15; outline: none;
}
.body-icon { font-size: 1rem; }
.body-tag { font-family: var(--sans); }

/* Elliptical Orbits */
@keyframes orbitPath1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(170px) rotate(-360deg); }
}
@keyframes orbitPath2 {
  0% { transform: translate(-50%, -50%) rotate(120deg) translateX(280px) rotate(-120deg); }
  100% { transform: translate(-50%, -50%) rotate(480deg) translateX(280px) rotate(-480deg); }
}
@keyframes orbitPath3 {
  0% { transform: translate(-50%, -50%) rotate(240deg) translateX(390px) rotate(-240deg); }
  100% { transform: translate(-50%, -50%) rotate(600deg) translateX(390px) rotate(-600deg); }
}
@keyframes orbitPath4 {
  0% { transform: translate(-50%, -50%) rotate(60deg) translateX(220px) rotate(-60deg); }
  100% { transform: translate(-50%, -50%) rotate(420deg) translateX(220px) rotate(-420deg); }
}
@keyframes orbitPath5 {
  0% { transform: translate(-50%, -50%) rotate(180deg) translateX(340px) rotate(-180deg); }
  100% { transform: translate(-50%, -50%) rotate(540deg) translateX(340px) rotate(-540deg); }
}

.planet-intent { left: 50%; top: 50%; animation: orbitPath1 32s linear infinite; }
.planet-bot { left: 50%; top: 50%; animation: orbitPath2 44s linear infinite; }
.planet-vitals { left: 50%; top: 50%; animation: orbitPath3 58s linear infinite; }
.planet-eeat { left: 50%; top: 50%; animation: orbitPath4 38s linear infinite; }
.planet-authority { left: 50%; top: 50%; animation: orbitPath5 52s linear infinite; }

.cosmos-stage:hover .celestial-body { animation-play-state: paused; }

/* Grand Galactic Core Typography */
.big-word-cosmic {
  position: relative; z-index: 3; font-family: var(--serif);
  font-size: clamp(3.8rem, 14vw, 10.5rem); line-height: .9;
  letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(29,27,24,.22);
  display: flex; justify-content: center; align-items: center;
  transition: all .4s var(--ease);
}
.cosmic-char {
  display: inline-block; transition: transform .35s var(--ease), color .35s, -webkit-text-stroke .35s, text-shadow .35s;
  cursor: default; padding: 0 1px;
}
.cosmic-char:hover {
  transform: translateY(-8px) scale(1.08);
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--accent);
  text-shadow: 0 10px 28px rgba(192,83,42,.35);
}

/* Tooltip */
.cosmos-tooltip {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem 1.2rem; box-shadow: 0 14px 32px -8px rgba(29,27,24,.18);
  z-index: 20; max-width: 400px; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, transform .25s ease;
}
.cosmos-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tooltip-chip {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--olive); margin-bottom: .2rem;
}
.tooltip-title { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.tooltip-desc { font-size: .83rem; color: var(--ink-soft); margin-top: .2rem; line-height: 1.4; }

.cosmos-footer-bar { text-align: center; margin-top: 1rem; position: relative; z-index: 5; }
.cosmos-hint { font-size: .78rem; color: var(--muted); font-weight: 500; }
.hint-sparkle { color: var(--accent); display: inline-block; animation: sparkleSpin 4s linear infinite; }
@keyframes sparkleSpin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }


/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ---------- Global Scroll Progress Gauge ---------- */
.global-progress { display: none; }

/* ---------- Hero Scroll Cue ---------- */
.hero-subrow {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem;
}
.hero-scroll-cue {
  display: inline-flex; align-items: center; gap: .65rem; font-size: .84rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; transition: color .2s, transform .2s;
}
.hero-scroll-cue:hover { color: var(--accent); transform: translateY(2px); }
.cue-pill {
  width: 18px; height: 28px; border-radius: 999px; border: 1.5px solid var(--ink-soft);
  position: relative; display: inline-block;
}
.cue-dot {
  width: 4px; height: 6px; border-radius: 999px; background: var(--accent);
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  animation: scrollBounce 2s cubic-bezier(.16,1,.3,1) infinite;
}
@keyframes scrollBounce {
  0%, 20% { transform: translate(-50%, 0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translate(-50%, 12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Interactive Scroll Journey Section ---------- */
.scroll-journey {
  padding: 6.5rem 0 7rem; background: var(--bg); position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.journey-intro { margin-bottom: 4rem; max-width: 820px; }
.journey-header h2 { margin-top: .8rem; margin-bottom: 1rem; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.journey-sticky-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 4.5rem; align-items: start; position: relative;
}
.journey-steps {
  position: relative; padding-left: 2.2rem;
}
.journey-progress-rail {
  position: absolute; left: 0; top: 1.5rem; bottom: 3rem; width: 3px;
  background: var(--line); border-radius: 999px; overflow: hidden;
}
.journey-progress-bar {
  width: 100%; height: 33%; background: linear-gradient(180deg, var(--olive), var(--accent));
  transition: height .35s var(--ease);
}
.journey-step {
  padding: 2.2rem 2.2rem; margin-bottom: 3.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, opacity .3s;
  opacity: .5; cursor: pointer;
}
.journey-step:last-child { margin-bottom: 1rem; }
.journey-step.is-active {
  opacity: 1; border-color: var(--accent); transform: translateX(8px);
  box-shadow: 0 16px 36px -12px rgba(192,83,42,.15);
}
.step-badge-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.step-num-badge {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; transition: background .3s;
}
.journey-step.is-active .step-num-badge { background: var(--accent); color: #fff; }
.step-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--olive); }
.journey-step h3 { font-size: 1.65rem; margin-bottom: .7rem; font-family: var(--serif); line-height: 1.2; }
.journey-step p { font-size: .98rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 1.2rem; }
.step-stats {
  display: flex; gap: 2rem; padding: .9rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 1.1rem;
}
.step-stat { display: flex; flex-direction: column; }
.stat-val { font-size: 1.2rem; font-weight: 700; color: var(--ink); font-family: var(--serif); }
.stat-lbl { font-size: .73rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.step-stat.highlight .stat-val { color: var(--accent); }
.step-takeaway {
  font-size: .88rem; color: var(--ink-soft); background: var(--bg-soft); padding: .75rem 1rem;
  border-radius: var(--radius-sm); border-left: 3px solid var(--accent); line-height: 1.5;
}

/* Sticky Viewport & Simulator */
.journey-sticky-viewport { position: sticky; top: 32px; z-index: 10; }
.sim-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 48px -16px rgba(29,27,24,.14); overflow: hidden; transition: all .4s var(--ease);
}
.sim-header {
  padding: .85rem 1.2rem; background: #f9f5ee; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.sim-dots { display: flex; gap: 6px; }
.sim-dots span { width: 10px; height: 10px; border-radius: 50%; }
.sim-dots span:nth-child(1) { background: #ff5f56; }
.sim-dots span:nth-child(2) { background: #ffbd2e; }
.sim-dots span:nth-child(3) { background: #27c93f; }
.sim-address-bar {
  flex: 1; display: flex; align-items: center; gap: .4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .76rem;
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px;
}
.sim-status-pill {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 999px; background: var(--olive-soft); color: var(--olive);
  transition: all .3s ease;
}
.sim-status-pill.pill-rank { background: #fff4db; color: #b46d05; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

.sim-body {
  padding: 1.4rem; position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
}
.sim-search-input {
  display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1rem; background: var(--bg); margin-bottom: 1.2rem; box-shadow: 0 2px 6px rgba(29,27,24,.03);
}
.sim-search-icon { font-size: .85rem; }
.sim-query-text { flex: 1; font-size: .88rem; color: var(--ink); font-weight: 500; }
.sim-search-btn {
  font-size: .75rem; font-weight: 600; background: var(--ink); color: var(--bg);
  padding: .25rem .7rem; border-radius: 999px;
}

.sim-stage-view { flex: 1; position: relative; }
.stage-1-view { display: block; }
.stage-serp-view { display: none; }
[data-stage="2"] .stage-1-view, [data-stage="3"] .stage-1-view { display: none; }
[data-stage="2"] .stage-serp-view, [data-stage="3"] .stage-serp-view { display: block; }

/* Radar & Terminal */
.radar-scan {
  position: relative; width: 100%; height: 180px; background: #1a1917; border-radius: var(--radius-sm);
  overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.08);
}
.radar-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(79,93,63,.45); }
.rc1 { width: 60px; height: 60px; }
.rc2 { width: 120px; height: 120px; }
.rc3 { width: 180px; height: 180px; }
.radar-sweep {
  position: absolute; inset: -40px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(79,93,63,.35) 60deg, transparent 65deg);
  animation: radarRotate 4s linear infinite; border-radius: 50%;
}
@keyframes radarRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-node {
  position: absolute; z-index: 2; padding: .3rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; backdrop-filter: blur(8px);
}
.node-spider { top: 24px; left: 28px; background: rgba(79,93,63,.9); color: #fff; }
.node-url {
  bottom: 24px; right: 28px; background: rgba(192,83,42,.9); color: #fff;
  animation: floatUrl 3s ease-in-out infinite;
}
@keyframes floatUrl { 50% { transform: translateY(-4px); } }

.sim-log-terminal {
  background: #141312; border-radius: var(--radius-sm); padding: .9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .78rem; line-height: 1.6; color: #a49e93; border: 1px solid rgba(255,255,255,.06);
}
.terminal-line { margin-bottom: .25rem; }
.t-green { color: #6ee7b7; font-weight: 600; }
.t-blue { color: #93c5fd; font-weight: 600; }
.t-accent { color: #fca5a5; font-weight: 600; }

/* SERP Ladder */
.serp-ladder {
  display: flex; flex-direction: column; gap: .75rem; position: relative; min-height: 250px;
}
.serp-item {
  padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid var(--line); display: flex; gap: .8rem; align-items: flex-start;
  transition: all .6s cubic-bezier(.16,1,.3,1); position: relative;
}
.ladder-rank {
  font-size: .88rem; font-weight: 700; color: var(--muted); min-width: 24px;
  padding-top: .15rem; font-family: var(--serif);
}
.ladder-content { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.ladder-url { font-size: .72rem; color: var(--olive); }
.ladder-url.highlight { color: var(--accent); font-weight: 600; }
.ladder-title { font-size: .95rem; font-family: var(--serif); font-weight: 500; color: #1a3d8f; line-height: 1.25; }
.ladder-snippet {
  font-size: .78rem; color: var(--muted); line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yoon-brand-row { display: flex; align-items: center; gap: .4rem; }
.sim-favicon {
  width: 16px !important; height: 16px !important; max-width: 16px !important; max-height: 16px !important;
  border-radius: 50% !important; object-fit: cover !important; flex-shrink: 0 !important;
}
.yoon-metrics-bar { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.metric-chip {
  font-size: .68rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line);
}
.gold-chip { display: none; background: #fff5da; color: #b46d05; border-color: #ffd88a; }
.climb-badge {
  position: absolute; right: 1rem; top: .85rem; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  transition: all .3s ease;
}

/* Stage 2 Transitions */
[data-stage="2"] .yoon-item {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 8px 24px -6px rgba(192,83,42,.12);
}
[data-stage="2"] .climb-badge { background: var(--olive-soft); color: var(--olive); }

/* Stage 3 Transitions (Rank #1 Crown) */
[data-stage="3"] .yoon-item {
  order: -1; background: linear-gradient(135deg, #fffdf8, #fff8ec);
  border: 2px solid #e5a93c; box-shadow: 0 14px 32px -8px rgba(229,169,60,.3);
  transform: translateY(-2px);
}
[data-stage="3"] .yoon-rank { color: #b46d05; font-weight: 800; font-size: 1.1rem; }
[data-stage="3"] .gold-chip { display: inline-block; }
[data-stage="3"] .climb-badge {
  background: linear-gradient(135deg, #d48817, #f59e0b); color: #fff;
  box-shadow: 0 2px 8px rgba(212,136,23,.4);
}

/* Sim Footer Metrics */
.sim-footer-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding-top: 1rem;
  border-top: 1px solid var(--line); margin-top: 1rem;
}
.sim-metric-cell {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .8rem; text-align: center;
}
.sim-m-label {
  display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .2rem;
}
.sim-m-val {
  display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); transition: color .3s;
}
.sim-m-val.highlight { color: var(--accent); }

/* ---------- Search Intent Decoder Lab ---------- */
.intent-lab-section { border-top: 1px solid var(--line); }
.intent-lab-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.intent-search-box {
  display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--line);
  border-radius: 999px; padding: .6rem .8rem .6rem 1.4rem; background: var(--bg);
  box-shadow: 0 4px 12px rgba(29,27,24,.03); transition: border-color .2s;
}
.intent-search-box:focus-within { border-color: var(--accent); }
.intent-search-icon { font-size: 1.1rem; color: var(--muted); }
.intent-search-box input {
  flex: 1; border: none; background: transparent; font-family: var(--sans);
  font-size: 1.05rem; color: var(--ink); outline: none;
}
.intent-presets {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0 2.2rem;
}
.presets-lbl { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: .4rem; }
.preset-chip {
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--sans); font-size: .83rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all .2s;
}
.preset-chip:hover { border-color: var(--ink); color: var(--ink); }
.preset-chip.active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.intent-result-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem;
}
.intent-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
}
.card-eyebrow {
  display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--olive); margin-bottom: .6rem;
}
.intent-badge-lg {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent); font-weight: 500; margin-bottom: .4rem;
}
.intent-summary { font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }
.card-title { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); font-weight: 500; margin-bottom: .3rem; }
.card-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.intent-strat-card { grid-column: span 2; background: var(--olive-soft); border-color: transparent; }
.strat-tip { font-size: .98rem; font-weight: 500; color: var(--ink); line-height: 1.5; }

/* Article TOC ScrollSpy */
.toc a.active-toc {
  color: var(--accent) !important; font-weight: 600;
}

/* ---------- Responsive System ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .about-grid, .contact-grid, .featured { grid-template-columns: 1fr; gap: 2.5rem; }
  .journey-sticky-grid { grid-template-columns: 1fr; gap: 3rem; }
  .journey-sticky-viewport { position: relative; top: 0; }
  .journey-steps { padding-left: 0; }
  .journey-progress-rail { display: none; }
  .journey-step { margin-bottom: 2rem; }
  .sim-body { min-height: 420px; }
  .topics, .posts { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portrait { position: static; max-width: 380px; }
  .serp { max-width: 480px; }
  .intent-result-grid { grid-template-columns: 1fr; }
  .intent-strat-card { grid-column: span 1; }
}

@media (max-width: 680px) {
  /* Container & Global Spacing */
  .container { padding: 0 1.15rem; }
  h1 { font-size: clamp(2.1rem, 7.8vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 5.8vw, 2.3rem); }
  h3 { font-size: 1.35rem; }
  .lead { font-size: 1.02rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 3rem 0 1.8rem; }
  
  /* Mobile Navigation Menu */
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface) !important;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 20px 48px rgba(0,0,0,0.16);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height .35s var(--ease), opacity .25s ease;
    z-index: 1000;
  }
  .nav-links.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li a {
    display: block;
    padding: 1.05rem 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--ink);
  }
  .nav-links li a:active, .nav-links li a:hover {
    background: var(--bg-soft);
    color: var(--accent);
  }
  .nav-links a::after { display: none; }
  .mobile-cta-item { display: block; padding: .65rem 1.5rem 1.25rem; }
  .mobile-menu-cta {
    display: block !important;
    text-align: center;
    background: var(--ink) !important;
    color: var(--bg) !important;
    border-radius: 999px;
    padding: .8rem 1.2rem !important;
    font-weight: 600 !important;
    margin-top: .4rem;
    border-top: none !important;
  }
  .menu-btn { display: block; }
  .nav #nav-cta { display: none; }
  
  [data-theme="dark"] .nav-links {
    background: #181614 !important;
    border-color: #2b2721;
    box-shadow: 0 20px 48px rgba(0,0,0,0.6);
  }

  /* Hero Section */
  .hero { padding: 3.2rem 0 2.2rem; }
  .hero-actions { display: flex; flex-direction: column; width: 100%; gap: .75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-subrow { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .float-chip { display: none; }

  /* Interactive Simulation: The SEO Climb */
  .journey-sticky-grid { gap: 2rem; }
  .journey-step { padding: 1.35rem 1.15rem; margin-bottom: 1.6rem; }
  .journey-step h3 { font-size: 1.45rem; }
  .journey-step p { font-size: .92rem; }
  .step-stats { gap: 1.2rem; flex-wrap: wrap; }
  .stat-val { font-size: 1.15rem; }
  .stat-lbl { font-size: .7rem; }
  .step-takeaway { font-size: .84rem; padding: .65rem .85rem; }
  
  .sim-card { border-radius: var(--radius-sm); }
  .sim-header { padding: .75rem .95rem; gap: .5rem; }
  .sim-address-bar { max-width: 170px; font-size: .72rem; padding: .3rem .6rem; }
  .sim-status-pill { font-size: .7rem; padding: .25rem .6rem; }
  .sim-body { padding: 1rem; min-height: 380px; }
  .sim-search-input { padding: .5rem .85rem; margin-bottom: 1rem; }
  .radar-scan { height: 155px; }
  .sim-log-terminal { font-size: .73rem; padding: .75rem; line-height: 1.5; }
  .serp-item { padding: .75rem .85rem; gap: .6rem; }
  .ladder-rank { min-width: 20px; font-size: .82rem; }
  .ladder-title { font-size: .9rem; }
  .ladder-snippet { font-size: .74rem; -webkit-line-clamp: 2; }
  .climb-badge { top: .65rem; right: .65rem; font-size: .65rem; padding: .15rem .45rem; }
  .sim-footer-metrics { gap: .4rem; padding-top: .75rem; margin-top: .75rem; }
  .sim-metric-cell { padding: .45rem .35rem; }
  .sim-m-label { font-size: .62rem; }
  .sim-m-val { font-size: 1rem; }

  /* Search Intent Decoder Lab */
  .intent-lab-section { padding: 3.5rem 0; }
  .intent-lab-card { padding: 1.5rem 1.1rem; border-radius: var(--radius-sm); }
  .intent-search-box { padding: .45rem .5rem .45rem .95rem; gap: .45rem; }
  .intent-search-box input { font-size: 16px !important; } /* Prevents iOS Safari zoom */
  .intent-search-btn { padding: .55rem .95rem; font-size: .82rem; flex-shrink: 0; }
  .intent-presets { margin: 1rem 0 1.6rem; gap: .45rem; }
  .presets-lbl { width: 100%; margin-bottom: .2rem; font-size: .75rem; }
  .preset-chip { padding: .4rem .75rem; font-size: .78rem; min-height: 36px; display: inline-flex; align-items: center; }
  .intent-result-grid { grid-template-columns: 1fr; gap: 1rem; }
  .intent-strat-card { grid-column: span 1; }
  .intent-card { padding: 1.2rem; }
  .intent-badge-lg { font-size: 1.45rem; }
  .card-title { font-size: 1.2rem; }
  .card-desc, .intent-summary, .strat-tip { font-size: .88rem; }

  /* The SEO Cosmos (Planetary System) */
  .seo-cosmos-zone {
    padding: 2.5rem 1rem 1.6rem;
    margin: 2.5rem 0 1.5rem;
  }
  .cosmos-stage { height: 230px; }
  .cosmos-title { font-size: 1.55rem; }
  .cosmos-caption { font-size: .84rem; padding: 0 .4rem; }
  .orbit-1 { width: 180px; height: 90px; }
  .orbit-2 { width: 270px; height: 130px; }
  .orbit-3 { display: none; }
  .planet-vitals, .planet-authority { display: none; }
  
  /* Dedicated Mobile Orbits that stay strictly inside mobile viewport */
  @keyframes orbitPath1Mobile {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(90px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(90px) rotate(-360deg); }
  }
  @keyframes orbitPath2Mobile {
    0% { transform: translate(-50%, -50%) rotate(120deg) translateX(135px) rotate(-120deg); }
    100% { transform: translate(-50%, -50%) rotate(480deg) translateX(135px) rotate(-480deg); }
  }
  @keyframes orbitPath3Mobile {
    0% { transform: translate(-50%, -50%) rotate(240deg) translateX(110px) rotate(-240deg); }
    100% { transform: translate(-50%, -50%) rotate(600deg) translateX(110px) rotate(-600deg); }
  }
  
  .planet-intent { animation: orbitPath1Mobile 26s linear infinite !important; }
  .planet-bot { animation: orbitPath2Mobile 34s linear infinite !important; }
  .planet-eeat { animation: orbitPath3Mobile 30s linear infinite !important; display: flex !important; }
  
  .big-word-cosmic { font-size: clamp(2.4rem, 11vw, 3.8rem); }
  
  .cosmos-tooltip {
    bottom: 8px;
    left: 10px;
    right: 10px;
    transform: none !important;
    max-width: none;
    padding: .65rem 1rem;
  }
  .cosmos-tooltip.show {
    transform: none !important;
  }
  .cosmos-hint { font-size: .73rem; }

  /* Content Cards & Grids */
  .topics, .posts, .values { grid-template-columns: 1fr; }
  .topic { padding: 1.5rem 1.25rem; }
  .quote-card { padding: 2rem 1.4rem; }
  .quote-card blockquote { font-size: 1.55rem; }
  .quote-card::before { font-size: 5rem; right: 1rem; top: -.5rem; }
  .cta { padding: 2.5rem 1.3rem; }
  .subscribe { flex-direction: column; }
  .subscribe input { font-size: 16px !important; }

  /* Article / Blog / Inner Pages */
  .article-head { padding: 2.8rem 0 1.6rem; }
  .article-head h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); line-height: 1.15; word-wrap: break-word; overflow-wrap: break-word; }
  .article-body { padding-bottom: 2.5rem; }
  .toc { padding: 1.1rem 1.25rem; }
  .toc ol { margin: .5rem 0 0 1rem; }
  .toc a { display: inline-block; padding: .2rem 0; font-size: .92rem; }
  .prose { font-size: 1.02rem; line-height: 1.7; }
  .prose h2 { font-size: 1.8rem; margin: 2.2rem 0 .8rem; }
  .prose h3 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
  .prose pre, .prose code, .prose table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prose blockquote { font-size: 1.35rem; padding-left: 1rem; margin: 1.5rem 0; }
  .callout { padding: 1rem 1.15rem; font-size: .92rem; }
  .featured { padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
  .featured h2 { font-size: 1.8rem; }
  .form { padding: 1.5rem 1.1rem; }
  input, textarea, select { font-size: 16px !important; } /* Prevents iOS Safari auto-zoom */

  /* Footer */
  .site-footer { padding: 3rem 0 1.8rem; margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid ul a { display: inline-block; padding: .3rem 0; }
  .footer-bottom { flex-direction: column; gap: .6rem; text-align: center; }
}

/* Small Phones (< 400px) */
@media (max-width: 400px) {
  .container { padding: 0 .9rem; }
  .logo { font-size: 1.35rem; }
  .logo-img { width: 34px !important; height: 34px !important; }
  .sim-header { flex-wrap: wrap; }
  .sim-address-bar { max-width: 140px; }
  .preset-chip { font-size: .75rem; padding: .35rem .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
