/* ==========================================================================
   cherylkahla.com
   Single shared stylesheet. Dark editorial system, Lynch LLP energy,
   adapted for a journalist and media entrepreneur.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #090909;
  --text: #F7F7F7;
  --text-60: rgba(247, 247, 247, 0.6);
  --text-30: rgba(247, 247, 247, 0.3);
  --accent: #D4622A;
  --accent-light: #E8855A;
  --accent-deep: #A84B1E;
  --amber: #D4920A;
  --copper: #B8704A;
  --green: #00FF41;
  --purple: #A879E0;
  --border: rgba(247, 247, 247, 0.1);
  --surface: rgba(247, 247, 247, 0.05);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-width: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-light); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--text); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-card { position: relative; overflow: hidden; }

.gradient-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gradient-card > * { position: relative; z-index: 1; }

/* ---------- Utility type ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 9, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-60);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--accent);
  border: none;
  padding: 10px 18px;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.25s ease;
}

.nav-cta:hover { background: var(--accent-light); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at center,
    rgba(212, 98, 42, 0.22) 0%,
    rgba(212, 146, 10, 0.1) 35%,
    rgba(9, 9, 9, 0) 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 900px;
}

.hero h1 span { color: var(--accent); }

.hero-sub {
  margin-top: 28px;
  max-width: 500px;
  color: var(--text-60);
  font-size: 1.05rem;
}

.hero-buttons { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 3px;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary { background: var(--accent); color: var(--text); }
.btn-primary:hover { background: var(--accent-light); color: var(--text); }

.btn-ghost { border: 1px solid var(--text-30); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-invert { background: var(--text); color: #090909; }
.btn-invert:hover { background: #ffffff; color: #090909; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.ticker-track {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #090909;
  padding: 0 28px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section numbering ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}

.section-numblock { flex-shrink: 0; }

.section-slash {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--text);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 8px;
}

.section-headline {
  flex: 1;
  min-width: 280px;
}

.section-headline h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 760px;
}

.section-headline h2 .accent-green { color: var(--green); }
.section-headline h2 .accent-orange { color: var(--accent); }

.section-viewall {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 12px;
}

.section-links { margin-left: auto; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; padding-top: 12px; }
.section-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Body copy offset to align with headline, not the number block */
.section-body {
  max-width: 620px;
  margin-left: clamp(0px, calc(100px + 6vw), 180px);
}

.section-body p { margin-bottom: 1.3em; color: var(--text-60); font-size: 1.02rem; }
.section-body p:last-child { margin-bottom: 0; }

/* ---------- DNA chips ---------- */
.dna-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 48px;
}

.dna-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-60);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---------- Entity cards ---------- */
.entity-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.entity-card {
  flex: 0 1 calc(33.333% - 14px);
  min-width: 260px;
  border-radius: 8px;
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.entity-card .card-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(9, 9, 9, 0.75);
  margin-bottom: auto;
}

.entity-card .card-type {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(9, 9, 9, 0.7);
  margin-top: 32px;
}

.entity-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #090909;
  margin-top: 6px;
}

.entity-card p {
  color: rgba(9, 9, 9, 0.8);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 8px;
}

.entity-card .card-arrow {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #090909;
}

.entity-card .card-arrow:hover { color: #090909; transform: translateX(4px); }

.grad-tnn { background: linear-gradient(135deg, #E85D26 0%, #FF6B8A 55%, #D4622A 100%); }
.grad-rockdiff { background: linear-gradient(135deg, #FF1E8E 0%, #FF6B00 55%, #D4622A 100%); }
.grad-kayde { background: linear-gradient(135deg, #2D1B69 0%, #6B3FA0 55%, #A0E8FF 100%); }
.grad-kahlamity { background: linear-gradient(135deg, #D4622A 0%, #D4920A 55%, #A84B1E 100%); }
.grad-hollywell { background: linear-gradient(135deg, #1B2D5E 0%, #6B3FA0 55%, #2D1B69 100%); }

.grad-kayde .card-num, .grad-kayde .card-type, .grad-kayde h3, .grad-kayde p, .grad-kayde .card-arrow,
.grad-hollywell .card-num, .grad-hollywell .card-type, .grad-hollywell h3, .grad-hollywell p, .grad-hollywell .card-arrow {
  color: #F7F7F7;
}
.grad-kayde .card-num, .grad-kayde .card-type { color: rgba(247, 247, 247, 0.7); }
.grad-hollywell .card-num, .grad-hollywell .card-type { color: rgba(247, 247, 247, 0.7); }
.grad-kayde p, .grad-hollywell p { color: rgba(247, 247, 247, 0.8); }

/* ---------- Subscribe block ---------- */
.subscribe-banner {
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--amber) 55%, var(--copper) 100%);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.subscribe-banner h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: #090909;
}

.subscribe-banner p {
  color: rgba(9, 9, 9, 0.8);
  max-width: 480px;
  margin-top: 8px;
  font-size: 0.95rem;
}

.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }

.subscribe-form input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 13px 16px;
  border-radius: 3px;
  border: 1px solid rgba(9, 9, 9, 0.3);
  background: rgba(247, 247, 247, 0.92);
  color: #090909;
  min-width: 240px;
}

.subscribe-form .btn { background: #090909; color: var(--text); border: none; }
.subscribe-form .btn:hover { background: #1a1a1a; }

/* ---------- Build log cards ---------- */
.buildlog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.case-card:hover { border-color: var(--text-30); }

.case-band {
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 120px;
}

.case-band .band-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(9, 9, 9, 0.75);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-band .band-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: right;
  color: #090909;
}

.grad-case-tnn { background: linear-gradient(120deg, #E85D26 0%, #6B3FA0 100%); }
.grad-case-brand { background: linear-gradient(120deg, #1B4A8A 0%, #1E8A7A 55%, #2AA84B 100%); }
.grad-case-os { background: linear-gradient(120deg, #FF1E8E 0%, #6B3FA0 100%); }
.grad-case-kayde { background: linear-gradient(120deg, #D4622A 0%, #D4920A 55%, #CCB020 100%); }

.grad-case-tnn .band-title, .grad-case-os .band-title { color: #F7F7F7; }
.grad-case-tnn .band-meta, .grad-case-os .band-meta { color: rgba(247, 247, 247, 0.75); }
.grad-case-brand .band-title { color: #F7F7F7; }
.grad-case-brand .band-meta { color: rgba(247, 247, 247, 0.75); }

.case-body { padding: 24px; flex: 1; }

.case-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.case-body p { color: var(--text-60); font-size: 0.9rem; margin-top: 10px; }

.case-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.case-foot .case-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-30);
}

.case-foot a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Speaking cards ---------- */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.speak-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.speak-card .speak-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  color: rgba(247, 247, 247, 0.1);
  line-height: 1;
}

.speak-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 18px;
}

.speak-card p { color: var(--text-60); font-size: 0.85rem; margin-top: 10px; flex: 1; }

.speak-status {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status-open { color: var(--green); }
.status-dev { color: var(--purple); }
.status-building { color: var(--text-30); }

/* ---------- Field notes cards ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}

.note-card:hover { border-color: var(--text-30); }

.note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.note-cat {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cat-tnn { color: var(--accent); }
.cat-kahlamity { color: var(--amber); }
.cat-thought { color: var(--green); }
.cat-ai { color: var(--purple); }
.cat-editorial { color: var(--accent-light); }

.note-date {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-30);
}

.note-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}

.note-card .note-read {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Connect ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.connect-panel {
  border-radius: 10px;
  padding: clamp(28px, 4vw, 44px);
}

.connect-left {
  background: var(--surface);
  border: 1px solid var(--border);
}

.connect-left h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.connect-left > p { color: var(--text-60); font-size: 0.92rem; margin-top: 14px; }

.channel-list { margin-top: 28px; display: flex; flex-direction: column; }

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.channel-row:first-child { border-top: 1px solid var(--border); }
.channel-row:hover { color: var(--accent-light); }

.channel-row .ch-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.channel-row .ch-handle {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-60);
}

.channel-row .ch-arrow { font-family: var(--font-mono); color: var(--accent); }

.connect-right {
  background: linear-gradient(140deg, var(--accent) 0%, var(--amber) 55%, var(--copper) 100%);
}

.connect-right h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #090909;
}

.connect-right p { color: rgba(9, 9, 9, 0.8); font-size: 0.92rem; margin-top: 12px; }

.connect-right .subscribe-form { margin-top: 26px; }

/* ---------- Main Quest ---------- */
.main-quest {
  background: linear-gradient(120deg, var(--accent) 0%, var(--amber) 55%, var(--copper) 100%);
  padding: clamp(72px, 10vw, 130px) 0;
}

.main-quest .mq-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.main-quest h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #090909;
  max-width: 900px;
}

.main-quest h2 strong { color: var(--green); font-weight: 700; }

.main-quest p {
  color: rgba(9, 9, 9, 0.8);
  max-width: 540px;
  margin-top: 22px;
  font-size: 1.02rem;
}

.main-quest .btn { margin-top: 36px; }

/* ---------- Mora universe block ---------- */
.mora-block {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 80px) 0;
}

.mora-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.mora-block p { color: var(--text-60); margin-top: 12px; max-width: 560px; font-size: 0.95rem; }

.mora-block .dna-chips { margin: 28px 0 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 80px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.footer-logo span { color: var(--accent); }

.footer-desc { color: var(--text-60); font-size: 0.85rem; margin-top: 14px; max-width: 280px; }

.footer-loc {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-30);
  margin-top: 18px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-30);
  margin-bottom: 18px;
}

.footer-col a, .footer-col span.dead {
  display: block;
  color: var(--text-60);
  font-size: 0.85rem;
  padding: 5px 0;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-30);
}

.footer-tagline {
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-30);
  transition: color 2s ease;
}

.footer-tagline:hover { color: var(--accent); }

.mora-mark {
  display: block;
  width: 24px;
  height: 24px;
  margin: 20px auto 0;
}

.mora-mark svg { width: 24px; height: 24px; }

.mora-mark path, .mora-mark circle {
  stroke: rgba(247, 247, 247, 0.06);
  transition: stroke 0.4s ease, filter 0.4s ease;
}

.mora-mark circle.eye { fill: rgba(247, 247, 247, 0.06); stroke: none; }

.mora-mark:hover path, .mora-mark:hover circle {
  stroke: rgba(247, 247, 247, 0.25);
  filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.55));
}

.mora-mark:hover circle.eye { fill: rgba(247, 247, 247, 0.25); stroke: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 170px 0 40px; }

.page-hero .hero-eyebrow { margin-bottom: 20px; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero p { color: var(--text-60); max-width: 560px; margin-top: 20px; font-size: 1rem; }

/* ---------- About page ---------- */
.about-body { max-width: 680px; }
.about-body p { margin-bottom: 1.4em; color: var(--text-60); font-size: 1rem; }

.about-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 2.2em 0 0.8em;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-30);
  line-height: 2;
}

/* ---------- Blog listing ---------- */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 48px;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-60);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.filter-tab:hover { color: var(--text); border-color: var(--text-30); }

.filter-tab.active {
  color: #090909;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Article (blog post) ---------- */
.article-header { padding: 170px 0 24px; max-width: 780px; margin: 0 auto; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.article-excerpt { color: var(--text-60); font-size: 1.1rem; margin-top: 20px; max-width: 620px; }

.article-body {
  max-width: 680px;
  margin: 40px auto 0;
  font-weight: 400;
  line-height: 1.8;
}

.article-body p { margin-bottom: 1.5em; color: rgba(247, 247, 247, 0.85); font-size: 1.02rem; }

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 2em 0 0.7em;
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.6em;
}

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  color: var(--text-60);
  font-style: italic;
}

.article-body a { border-bottom: 1px solid rgba(212, 98, 42, 0.4); }

.article-body strong { font-weight: 600; color: var(--text); }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--green);
}

.article-body img { border-radius: 8px; margin: 2em 0; }

.article-footer {
  max-width: 680px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-footer a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Case study page ---------- */
.case-hero {
  padding: 150px 0 70px;
  margin-top: 0;
}

.case-hero .container { position: relative; z-index: 1; }

.case-hero .hero-eyebrow { color: rgba(9, 9, 9, 0.75); }

.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #090909;
}

.case-hero p { color: rgba(9, 9, 9, 0.8); margin-top: 18px; max-width: 560px; }

.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
}

.overview-grid .ov-context p { color: var(--text-60); margin-bottom: 1.3em; }

.meta-list { display: flex; flex-direction: column; }

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.meta-row:first-child { border-top: 1px solid var(--border); }

.meta-row .meta-key {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-30);
}

.meta-row .meta-val { font-size: 0.88rem; color: var(--text); text-align: right; }

.timeline { border-left: 2px solid var(--green); padding-left: 32px; display: flex; flex-direction: column; gap: 36px; max-width: 680px; }

.timeline-entry { position: relative; }

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.timeline-entry .tl-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
}

.timeline-entry h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 8px;
}

.timeline-entry p { color: var(--text-60); font-size: 0.92rem; margin-top: 6px; }

.lessons { display: flex; flex-direction: column; gap: 32px; max-width: 680px; }

.lesson .lesson-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lesson h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 8px;
}

.lesson p { color: var(--text-60); font-size: 0.95rem; margin-top: 8px; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.result-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
}

.result-card .result-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.result-card p { color: var(--text-60); font-size: 0.85rem; margin-top: 8px; }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 .inner-404 { padding: 0 var(--pad-x); }

.page-404 h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.03em;
}

.page-404 p { color: var(--text-60); max-width: 480px; margin: 20px auto 0; }

.page-404 .btn { margin-top: 36px; }

.sudo-msg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-top: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sudo-msg.show { opacity: 1; }

/* ---------- Flash effects (easter eggs) ---------- */
.flash-orange::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9998;
  pointer-events: none;
  animation: orange-flash 0.6s ease forwards;
}

@keyframes orange-flash {
  0% { opacity: 0; }
  33% { opacity: 0.55; }
  100% { opacity: 0; }
}

.acid-flash { animation: acid-section-flash 0.3s ease; }

@keyframes acid-section-flash {
  0%, 100% { filter: none; }
  50% { filter: invert(1) hue-rotate(90deg) saturate(3); }
}

/* ---------- Acid mode (Konami) ---------- */
body.acid {
  --bg: #000000;
  --text: #CCFF00;
  --text-60: rgba(204, 255, 0, 0.6);
  --text-30: rgba(204, 255, 0, 0.3);
  --accent: #00FF41;
  --accent-light: #66FF80;
  --accent-deep: #00B32E;
  --amber: #99CC00;
  --copper: #669900;
  --purple: #00FF41;
  --border: rgba(204, 255, 0, 0.13);
  --surface: rgba(204, 255, 0, 0.05);
  background: #000000;
  color: #CCFF00;
}

body.acid .nav { background: rgba(0, 0, 0, 0.75); }

body.acid .hero::before {
  background: radial-gradient(circle at center,
    rgba(0, 255, 65, 0.16) 0%,
    rgba(204, 255, 0, 0.07) 35%,
    rgba(0, 0, 0, 0) 70%);
}

body.acid .ticker { background: #CCFF00; }
body.acid .ticker-track span { color: #000000; }

body.acid .grad-tnn, body.acid .grad-rockdiff, body.acid .grad-kayde,
body.acid .grad-kahlamity, body.acid .grad-hollywell,
body.acid .grad-case-tnn, body.acid .grad-case-brand,
body.acid .grad-case-os, body.acid .grad-case-kayde,
body.acid .subscribe-banner, body.acid .connect-right,
body.acid .main-quest, body.acid .case-hero.gradient-card {
  background: linear-gradient(130deg, #0A1F00 0%, #1E3D00 55%, #3D6B00 100%);
}

body.acid .entity-card .card-num, body.acid .entity-card .card-type,
body.acid .entity-card h3, body.acid .entity-card p, body.acid .entity-card .card-arrow,
body.acid .case-band .band-meta, body.acid .case-band .band-title,
body.acid .subscribe-banner h3, body.acid .subscribe-banner p,
body.acid .connect-right h3, body.acid .connect-right p,
body.acid .main-quest .mq-eyebrow, body.acid .main-quest h2, body.acid .main-quest p,
body.acid .case-hero .hero-eyebrow, body.acid .case-hero h1, body.acid .case-hero p {
  color: #CCFF00;
}

body.acid .main-quest h2 strong { color: #00FF41; }

body.acid .btn-primary { background: #00FF41; color: #000000; }
body.acid .btn-invert { background: #CCFF00; color: #000000; }
body.acid .subscribe-form .btn { background: #000000; color: #CCFF00; border: 1px solid #CCFF0040; }
body.acid .subscribe-form input { background: rgba(0, 0, 0, 0.8); color: #CCFF00; border-color: #CCFF0040; }
body.acid .filter-tab.active { background: #00FF41; border-color: #00FF41; color: #000000; }
body.acid ::selection { background: #00FF41; color: #000000; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .buildlog-grid { grid-template-columns: 1fr; }
  .speaking-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .entity-card { flex-basis: calc(50% - 10px); }
  .section-body { margin-left: 0; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero::before { opacity: 0.6; }
  .speaking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .entity-card { flex-basis: 100%; }
  .photo-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 24px; }
  .section-links, .section-viewall { margin-left: 0; align-items: flex-start; padding-top: 0; }
  .case-band { flex-direction: column; align-items: flex-start; }
  .case-band .band-title { text-align: left; }
  .subscribe-banner { flex-direction: column; align-items: flex-start; }
  .subscribe-form input { min-width: 0; width: 100%; }
  .subscribe-form { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ticker-track { animation: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
