/* ============================================
   DR. LEY · CARLOS RAMÍREZ LÓPEZ
   carlosramirezlopez.com
   Aesthetic: Quiet Authority — modern law/literary review
   Cream + deep navy + oxblood, with motion components.
   ============================================ */

:root {
  /* Palette */
  --bg:           #f5f3ee;
  --bg-2:         #ebe8e0;
  --bg-3:         #e0dccf;
  --navy:         #14202d;
  --navy-2:       #1f2d3e;
  --navy-3:       #2c3a4d;
  --ink:          #14202d;
  --ink-2:        #4f5663;
  --ink-3:        #828893;
  --line:         #d8d3c8;
  --line-2:       #c5beae;
  --accent:       #8b3a3a;
  --accent-2:     #a85050;
  --accent-soft:  #c47878;
  --gold:         #b8954a;
  --gold-soft:    #c9a76a;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Layout */
  --max-w:    1320px;
  --max-text: 720px;
  --pad-x:    clamp(1.5rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
a:hover { color: var(--ink); }
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   CURSOR GLOW (subtle ambient effect)
   ============================================ */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 58, 58, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 1; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-words] {
  display: inline-block;
}
[data-reveal-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal-words].is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-words] .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .cursor-glow { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 243, 238, 0.95);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  transition: opacity .25s var(--ease-out);
}
.brand-mark:hover { opacity: 0.7; }
.brand-mark__logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.95;
  transition: transform .35s var(--ease-spring);
}
.brand-mark:hover .brand-mark__logo { transform: rotate(-4deg) scale(1.05); }
.brand-mark__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--navy);
}
.site-nav {
  display: flex;
  gap: 2.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
.site-nav a {
  color: inherit;
  position: relative;
  padding: 4px 0;
  overflow: hidden;
}
.site-nav a span {
  display: inline-block;
  transition: transform .35s var(--ease-out);
}
.site-nav a::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--accent);
  transition: transform .35s var(--ease-out);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease-out);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .brand-mark__logo { height: 28px; }
  .brand-mark__name { font-size: 1.2rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 58, 58, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 4rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  min-height: 65vh;
  position: relative;
}
.hero__primary { position: relative; }

.hero__index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-3);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}
.hero__index em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-2);
  margin-right: 0.4rem;
}
.hero__index-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink-3);
}
.section__index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin: 0 0 1.2rem;
}
.section__index em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}
.section__index-rule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink-3);
}
.section__index--center {
  justify-content: center;
}
.section__index--center .section__index-rule { width: 40px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 2rem;
}
.hero__title-line {
  display: block;
}
.hero__title-line--accent {
  font-style: italic;
  color: var(--accent);
}

.hero__byline {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__byline-rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--ink-2);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s var(--ease-out);
  will-change: transform;
}
.btn__label {
  position: relative;
  z-index: 2;
}
.btn__icon {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  transition: transform .35s var(--ease-out);
}
.btn--primary {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
  z-index: 1;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover .btn__icon { transform: translateX(4px); }
.btn--primary:hover { color: var(--bg); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
  z-index: 1;
}
.btn--ghost:hover::before { transform: translateY(0); }
.btn--ghost:hover { color: var(--bg); }
.btn--ghost:hover .btn__icon { transform: translateY(2px); }

/* Hero sidebar */
.hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 0.5rem;
}
.hero__quote {
  margin: 0;
  position: relative;
}
.hero__quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}
.hero__quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}
.hero__quote blockquote em {
  color: var(--accent);
  font-weight: 500;
}
.hero__quote figcaption {
  margin-top: 0.8rem;
  padding-left: 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.hero__credentials {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero__credentials p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}
.hero__credentials strong {
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-bottom: 3rem;
  }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--navy);
  color: var(--bg);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--navy-3);
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--navy), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--navy), transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--bg);
  letter-spacing: 0.01em;
}
.marquee__dot {
  color: var(--gold-soft);
  font-size: 0.6rem;
  opacity: 0.7;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   STATS BENTO
   ============================================ */
.stats {
  background: var(--bg-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
}
.stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-2);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat__num--text em {
  font-style: italic;
  color: var(--accent);
}
.stat__label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-2); padding-right: 1rem; }
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x);
  position: relative;
}
.section__head {
  margin: 0 0 3.5rem;
  max-width: 720px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}
.section__title em {
  font-style: italic;
  color: var(--accent);
}
.section__sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
  line-height: 1.6;
}
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }
.section__foot {
  margin-top: 4rem;
  text-align: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy);
  border-bottom: 1px solid currentColor;
  padding: 0 0 6px;
  transition: color .25s var(--ease-out), gap .25s var(--ease-out);
}
.link-arrow:hover {
  color: var(--accent);
  gap: 0.9rem;
}
.link-arrow__icon {
  transition: transform .3s var(--ease-out);
}
.link-arrow:hover .link-arrow__icon {
  transform: translateX(3px);
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}
.articles-loading {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
  color: var(--ink-3);
  padding: 3rem 0;
}
.article-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 58, 58, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease-out);
  pointer-events: none;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: 0 12px 30px -10px rgba(20, 32, 45, 0.15);
}
.article-card:hover::before { opacity: 1; }

.article-card__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--bg-2);
  margin: -1.5rem -1.5rem 1.4rem;
  width: calc(100% + 3rem);
  overflow: hidden;
  position: relative;
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.88);
  transition: transform .8s var(--ease-out), filter .4s var(--ease-out);
}
.article-card:hover .article-card__image img {
  transform: scale(1.05);
  filter: contrast(1.08) saturate(0.95);
}
.article-card__image--placeholder {
  background:
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card__image--placeholder::before {
  content: '§';
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.5;
}
.article-card__meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.article-card__date { color: var(--accent); }
.article-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.04em;
}
.article-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.18;
  margin: 0 0 0.7rem;
}
.article-card__title a {
  color: var(--navy);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease-out), color .25s var(--ease-out);
}
.article-card__title a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}
.article-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 1.2rem;
  flex: 1;
}
.article-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  align-self: flex-start;
  transition: gap .3s var(--ease-out);
}
.article-card__readmore:hover { gap: 0.7rem; }
.article-card__readmore::after {
  content: '→';
  transition: transform .3s var(--ease-out);
}

/* ============================================
   VIDEOS
   ============================================ */
.section--videos {
  background: var(--navy);
  color: var(--bg);
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  margin: 4rem 0;
}
.section--videos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  opacity: 0.15;
}
.section--videos > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section--videos .section__title { color: var(--bg); }
.section--videos .section__title em { color: var(--gold-soft); }
.section--videos .section__sub { color: rgba(245, 243, 238, 0.7); }
.section--videos .section__index { color: rgba(245, 243, 238, 0.6); }
.section--videos .section__index em { color: var(--gold-soft); }
.section--videos .section__index-rule { background: rgba(245, 243, 238, 0.4); }
.section--videos .link-arrow {
  color: var(--bg);
}
.section--videos .link-arrow:hover { color: var(--gold-soft); }

.video-feature {
  margin: 0 auto 4rem;
  max-width: 1000px;
}
.video-feature__embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  transition: transform .5s var(--ease-out);
}
.video-feature__embed:hover { transform: translateY(-3px); }
.video-feature__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-feature__meta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.video-feature__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.7rem;
}
.video-feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--bg);
}
.video-feature__desc {
  color: rgba(245, 243, 238, 0.7);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.video-card {
  display: block;
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease-out);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
}
.video-card__thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__thumb::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(245, 243, 238, 0.95);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  transition: all .3s var(--ease-spring);
  z-index: 2;
}
.video-card:hover .video-card__thumb::after {
  background: var(--accent);
  color: var(--bg);
  transform: translate(-50%, -50%) scale(1.12);
}
.video-card__title {
  padding: 1rem 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--bg);
  margin: 0;
}

/* ============================================
   BIO BENTO
   ============================================ */
.section--bio {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.bio-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bio-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 1rem;
}
.bio-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.8rem;
  position: relative;
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out);
}
.bio-cell:hover {
  border-color: var(--navy);
}
.bio-cell--head {
  grid-column: span 7;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bio-cell--head:hover { border: none; }
.bio-cell--head .section__title { margin-bottom: 0; }

.bio-cell--logo {
  grid-column: span 5;
  grid-row: span 2;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow: hidden;
}
.bio-cell--logo img {
  width: 70%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}
.bio-cell__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold-soft);
}
.bio-cell__corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.bio-cell__corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.bio-cell--lede {
  grid-column: span 7;
  background: var(--bg-2);
  display: flex;
  align-items: center;
}
.bio-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}
.bio-lede mark {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  padding: 0;
}

.bio-cell--p1 {
  grid-column: span 7;
  display: flex;
  align-items: center;
}
.bio-cell--p1 p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.bio-cell--p1 strong {
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

.bio-cell--tags {
  grid-column: span 5;
}
.bio-cell__title {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  margin: 0 0 1.2rem;
}
.bio-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bio-tags li {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  padding: 0.4rem 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all .25s var(--ease-out);
  cursor: default;
}
.bio-tags li:hover {
  background: var(--navy);
  color: var(--bg);
  border-color: var(--navy);
  transform: translateY(-2px);
}

@media (max-width: 920px) {
  .bio-bento { grid-template-columns: 1fr; }
  .bio-cell--head, .bio-cell--logo, .bio-cell--lede,
  .bio-cell--p1, .bio-cell--tags {
    grid-column: span 1;
    grid-row: auto;
  }
  .bio-cell--logo { aspect-ratio: 4 / 3; }
}

/* ============================================
   CONTACT
   ============================================ */
.section--contact {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.contact-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 1080px;
}
.contact-card {
  position: relative;
  display: block;
  padding: 2.2rem 1.8rem 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  transition: transform .4s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.contact-card:hover {
  color: var(--bg);
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(20, 32, 45, 0.3);
}
.contact-card:hover::before { transform: translateY(0); }
.contact-card__platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--accent);
  transition: color .25s var(--ease-out);
}
.contact-card:hover .contact-card__platform { color: var(--gold-soft); }
.contact-card__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.contact-card__handle {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  transition: color .25s var(--ease-out);
}
.contact-card:hover .contact-card__handle { color: var(--bg); }
.contact-card__desc {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color .25s var(--ease-out);
}
.contact-card:hover .contact-card__desc { color: rgba(245, 243, 238, 0.78); }
.contact-card__arrow {
  position: absolute;
  top: 2.2rem;
  right: 1.8rem;
  font-size: 1rem;
  color: var(--accent);
  transition: all .3s var(--ease-out);
}
.contact-card:hover .contact-card__arrow {
  transform: translate(4px, -4px);
  color: var(--gold-soft);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: var(--bg);
  padding: 0;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.8rem var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--navy-3);
}
.site-footer__col--name {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.site-footer__col--motto {
  text-align: center;
}
.site-footer__col--motto em {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}
.site-footer__col--meta {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 243, 238, 0.65);
}
.site-footer__credit {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad-x);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.45);
  text-align: center;
}
@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
  }
  .site-footer__col--name,
  .site-footer__col--meta { text-align: center; }
}

/* ============================================
   ARTICLE PAGE (article.html)
   ============================================ */
.article-page {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad-x) 5rem;
}
.article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 2.5rem;
  transition: gap .3s var(--ease-out), color .25s var(--ease-out);
}
.article-page__back::before { content: '←'; }
.article-page__back:hover {
  color: var(--accent);
  gap: 0.9rem;
}
.article-page__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1.5rem;
}
.article-page__meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.article-page__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  color: var(--navy);
}
.article-page__deck {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 2.5rem;
}
.article-page__hero-image {
  width: 100%;
  margin: 0 0 3rem;
  border: 1px solid var(--line);
}
.article-page__hero-image img {
  width: 100%;
  display: block;
  filter: contrast(1.04) saturate(0.9);
}
.article-page__hero-image figcaption {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.8rem;
  text-align: center;
}
.article-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.5rem; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  float: left;
  font-size: 4.8rem;
  line-height: 0.85;
  margin: 0.25rem 0.6rem 0 0;
  color: var(--accent);
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 3rem 0 1rem;
}
.article-body h2 em {
  font-style: italic;
  color: var(--accent);
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 2.2rem 0 0.8rem;
}
.article-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--navy);
}
.article-body img {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid var(--line);
  filter: contrast(1.04) saturate(0.9);
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: color .25s var(--ease-out);
}
.article-body a:hover { color: var(--navy); }
.article-body strong {
  color: var(--navy);
  font-weight: 600;
}
.article-page__footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-page__footer a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: color .25s var(--ease-out);
}
.article-page__footer a:hover { color: var(--navy); }

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .site-footer, .hero__cta, .section__foot,
  .marquee, .stats, .cursor-glow { display: none; }
  body { background: white; color: black; }
  [data-reveal], [data-reveal-words] .word { opacity: 1 !important; transform: none !important; }
}
