/* ============================================================
   Cristián Roberts Castro — Personal Website
   Direction: warm, human-forward, editorial
   ============================================================ */

:root {
  /* — Palette (warm) — */
  --paper:      #f7f3ea;   /* warm off-white, primary background */
  --paper-2:    #efe8da;   /* deeper sand panel */
  --paper-3:    #e7ddca;   /* stone, hairline panels */
  --ink:        #1c2330;   /* warm navy-ink, headings + body */
  --ink-soft:   #4c5365;   /* secondary text */
  --ink-faint:  #8b8576;   /* captions / labels on paper */
  --bronze:     #9a6a39;   /* accent — legacy & warmth, used sparingly */
  --bronze-2:   #b98a52;   /* lighter bronze for hovers */
  --blue:       #234a6b;   /* support — deep institutional blue */
  --blue-deep:  #15324c;   /* deep blue for full-width bands */
  --line:       rgba(28,35,48,0.14);
  --line-soft:  rgba(28,35,48,0.08);

  /* — Type — */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  /* — Rhythm — */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --section-y: clamp(72px, 11vh, 150px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(154,106,57,0.22); }

/* ---------- Typography ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--bronze); }

h2.section-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
}
h2.section-title em { font-style: italic; color: var(--bronze); }

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--bronze);
  opacity: 0.6;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { position: relative; }
.section-pad { padding: var(--section-y) 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 72px;
  background: rgba(247,243,234,0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, background .35s ease, height .35s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: rgba(247,243,234,0.92);
  height: 64px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width .28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 7px 13px;
  cursor: pointer;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: background .2s ease, color .2s ease;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle { display: none; }

/* Nav transparent + light while over the hero image (top of page) */
.nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav:not(.scrolled) .brand,
.nav:not(.scrolled) .nav-links a { color: #f4efe4; }
.nav:not(.scrolled) .brand .brand-sub { color: rgba(244,239,228,0.6); }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .lang-toggle { border-color: rgba(244,239,228,0.42); }
.nav:not(.scrolled) .lang-toggle button { color: rgba(244,239,228,0.78); }
.nav:not(.scrolled) .lang-toggle button.active { background: #f4efe4; color: var(--ink); }
.nav:not(.scrolled) .nav-toggle { color: #f4efe4; }
.nav-links.open a,
.nav:not(.scrolled) .nav-links.open a { color: var(--ink-soft); }
.nav-links.open a:hover,
.nav:not(.scrolled) .nav-links.open a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  border-radius: 100px;
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  padding: 14px 4px;
  position: relative;
}
.btn-ghost .arrow { transition: transform .25s ease; color: var(--bronze); }
.btn-ghost:hover .arrow { transform: translateX(5px); }
.btn-ghost::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: 8px;
  height: 1px; background: var(--line);
}

/* ---------- Hero ---------- */
/* ---------- Hero (full-bleed background image) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg image-slot { width: 100%; height: 100%; display: block; --is-bg: #233042; background: #233042; }
.hero-photo {
  width: 100%; height: 100%;
  background-image: url("assets/hero-tokyo-tower.jpg");
  background-size: cover;
  background-position: 50% 8%;
  background-repeat: no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(176deg,
      rgba(13,19,29,0.70) 0%,
      rgba(13,19,29,0.34) 24%,
      rgba(13,19,29,0.40) 48%,
      rgba(13,19,29,0.82) 80%,
      rgba(13,19,29,0.95) 100%),
    linear-gradient(90deg,
      rgba(13,19,29,0.62) 0%,
      rgba(13,19,29,0.30) 42%,
      rgba(13,19,29,0.04) 72%,
      rgba(13,19,29,0.00) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(54px, 9vh, 116px);
}
.hero-copy { max-width: 800px; color: #f5f0e6; text-shadow: 0 1px 22px rgba(8,12,20,0.45); }
.hero-copy .eyebrow { color: var(--bronze-2); text-shadow: none; }
.hero-copy .eyebrow::before { background: var(--bronze-2); }
.hero h1 {
  color: #f7f2e8;
  margin-bottom: 0.5em;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  max-width: 20ch;
}
.hero h1 em { color: var(--bronze-2); }
.hero .lede { color: rgba(245,240,230,0.9); margin-bottom: 2.2rem; max-width: 56ch; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
}
.hero-actions .btn-primary { background: var(--bronze); }
.hero-actions .btn-primary:hover { background: var(--bronze-2); }
.hero-actions .btn-ghost { color: #f5f0e6; }
.hero-actions .btn-ghost::after { background: rgba(245,240,230,0.4); }
.scroll-hint {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: clamp(54px, 9vh, 116px);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(245,240,230,0.7);
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(rgba(245,240,230,0.7), transparent);
}
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* ---------- Numbers ---------- */
.numbers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: clamp(28px, 4vw, 48px) clamp(14px, 2vw, 32px);
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  line-height: 1.5;
}

/* ---------- Generic two-col ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.measure { max-width: 56ch; }

/* ---------- What I Do ---------- */
.threads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin-top: clamp(40px, 6vw, 72px);
}
.thread {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.thread .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}
.thread h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.15;
}
.thread p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Real photos ---------- */
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.legacy-img { position: relative; overflow: hidden; }
.legacy-img .photo { aspect-ratio: 4/5; }
.photo-tag {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--paper);
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.connect-portrait { overflow: hidden; }
.connect-portrait .photo { aspect-ratio: 3/4; object-position: 50% 18%; }

/* ---------- Speaking gallery ---------- */
.speaking {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(40px, 5vw, 64px);
}
.sp-figure { position: relative; overflow: hidden; margin: 0; }
.sp-figure .photo { width: 100%; height: 100%; }
.sp-main { grid-row: 1 / span 2; }
.sp-main .photo { aspect-ratio: 16/10; }
.sp-side .photo { aspect-ratio: 16/9; }
.sp-cap {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(21,50,76,0.9);
  color: #eef3f8;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Currently / Now ---------- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(26px, 3.4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}
.now-k {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.now-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.now-item:last-child { border-bottom: none; }
.ni-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.14;
  color: var(--ink);
}
.ni-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.45;
}

/* ---------- Conviction (sticky core) ---------- */
.conviction {
  position: relative;
  background: var(--blue-deep);
  color: #e6ecf2;
  overflow: hidden;
}
.conviction-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("assets/crc-ritz-cr.jpg");
  background-size: cover;
  background-position: 50% 38%;
}
.conviction-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    rgba(13,28,44,0.92) 0%,
    rgba(13,28,44,0.80) 36%,
    rgba(13,28,44,0.52) 64%,
    rgba(13,28,44,0.30) 100%);
}
.conviction .wrap { position: relative; z-index: 2; padding-top: clamp(80px,12vh,150px); padding-bottom: clamp(80px,12vh,150px); }
.conviction .eyebrow { color: var(--bronze-2); }
.conviction .eyebrow::before { background: var(--bronze-2); }
.conviction blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.conviction blockquote .hl { color: var(--bronze-2); font-style: italic; }
.conviction .source {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236,230,216,0.6);
  margin-top: 2.4rem;
}

/* ---------- About / Legacy ---------- */
.legacy-img { position: relative; }
.legacy-img image-slot { width: 100%; aspect-ratio: 4/5; display:block; }
.legacy-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
}
.legacy-card .est {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 18px;
}
.legacy-card p { font-size: 1.05rem; }

/* values strip */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 64px);
}
.value {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px) clamp(18px,2vw,28px);
}
.value .vn {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.value .vd { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Convictions list ---------- */
.section-alt { background: var(--paper-2); }
.belief-list {
  margin-top: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.belief {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.belief .bn {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--bronze);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.belief .bt {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.18;
  margin-bottom: 0.4em;
}
.belief .bb { font-size: 1.02rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Insights & Speaking ---------- */
.forums {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(28px,3vw,40px) 0;
}
.forum-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  color: var(--ink);
  background: var(--paper);
}
.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.topic { background: var(--paper); padding: 26px 28px; }
.topic .tnum { font-family: var(--mono); font-size: 0.7rem; color: var(--bronze); letter-spacing: 0.1em; }
.topic .tt { font-family: var(--serif); font-size: 1.25rem; margin-top: 10px; }

.newsletter {
  margin-top: clamp(40px,5vw,64px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(32px,4vw,52px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.newsletter h3 { color: var(--paper); font-size: 1.6rem; margin-bottom: 8px; }
.newsletter p { color: rgba(247,243,234,0.7); font-size: 0.98rem; margin: 0; }
.signup { display: flex; gap: 10px; }
.signup input {
  background: rgba(247,243,234,0.08);
  border: 1px solid rgba(247,243,234,0.25);
  color: var(--paper);
  padding: 13px 18px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.95rem;
  min-width: 240px;
}
.signup input::placeholder { color: rgba(247,243,234,0.5); }
.signup .btn-primary { background: var(--bronze); }
.signup .btn-primary:hover { background: var(--bronze-2); }
.newsletter .signup-li { background: var(--bronze); justify-self: start; white-space: nowrap; }
.newsletter .signup-li:hover { background: var(--bronze-2); }

/* ---------- Resources ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(36px, 5vw, 60px);
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(22px, 2.6vw, 32px);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.resource-card:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(28,35,48,0.09);
}
.resource-card .rc-type {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}
.resource-card .rc-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.2;
}
.resource-card:hover .rc-title { color: var(--bronze); }
.resource-card .rc-desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1 1 auto;
}
.resource-card .rc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.resource-card .rc-meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.resource-card .rc-action {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.resource-card .rc-action .arrow { transition: transform .25s ease; }
.resource-card:hover .rc-action .arrow { transform: translateX(4px); }
.resources-empty {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
@media (max-width: 720px) {
  .resources-grid { grid-template-columns: 1fr; }
}

/* ---------- Connect ---------- */
.connect { background: var(--blue-deep); color: #e6ecf2; }
.connect .eyebrow { color: var(--bronze-2); }
.connect .eyebrow::before { background: var(--bronze-2); }
.connect h2 { color: #f4efe4; }
.connect .lede { color: rgba(236,230,216,0.82); }
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-form { display: grid; gap: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236,230,216,0.6);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(236,230,216,0.06);
  border: 1px solid rgba(236,230,216,0.2);
  color: #f4efe4;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 6px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze-2); }
.contact-meta { display: grid; gap: 26px; align-content: start; }
.contact-meta .ci .ck {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(236,230,216,0.55); margin-bottom: 7px;
}
.contact-meta .ci a, .contact-meta .ci span {
  font-family: var(--serif); font-size: 1.3rem; color: #f4efe4; text-decoration: none;
}
.contact-meta .ci a:hover { color: var(--bronze-2); }
.connect-portrait image-slot { width: 100%; aspect-ratio: 3/4; display:block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(247,243,234,0.6);
  padding: 48px 0;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--paper); }
.footer .brand .brand-sub { color: rgba(247,243,234,0.45); }
.footer-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }

/* ---------- image-slot base look ---------- */
image-slot {
  --is-bg: var(--paper-3);
  background: var(--paper-3);
}

/* ---------- reveal animation ---------- */
/* CRITICAL: opacity stays static at 1 at all times — content can NEVER be
   hidden. The reveal is a transform-only rise. Some embedded/preview engines
   freeze animations at frame 0; because we never animate opacity, a frozen
   animation at worst leaves an element offset ~20px — still fully visible. */
@keyframes revealRise {
  from { transform: translateY(20px); }
  to   { transform: none; }
}
html.js-reveal .reveal.in {
  animation: revealRise .9s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal.in { animation: none; }
}

/* ---------- bilingual: hide inactive handled by JS swapping text ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) and (min-width: 941px) {
  .now-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}
@media (max-width: 940px) {
  body { font-size: 17px; }
  .now-grid { grid-template-columns: 1fr; gap: 8px; }
  .speaking { grid-template-columns: 1fr; }
  .sp-main { grid-row: auto; }
  .hero { min-height: 88svh; }
  .hero h1 { font-size: clamp(2.1rem, 7vw, 3rem); }
  .split, .split.reverse, .connect-grid { grid-template-columns: 1fr; }
  .threads { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .signup { flex-wrap: wrap; }
  .signup input { min-width: 0; flex: 1; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 20px var(--gutter); gap: 18px; align-items: flex-start;
  }
  .nav-toggle {
    display: inline-flex; background: none; border: none; cursor: pointer;
    color: var(--ink); padding: 8px; font-size: 1.2rem;
  }
  /* Keep the menu controls on-screen: let the brand shrink, not the toggles */
  .brand { min-width: 0; overflow: hidden; }
  .nav > div:last-child { flex-shrink: 0; }
}
@media (max-width: 540px) {
  .brand { font-size: 1.04rem; white-space: nowrap; text-overflow: ellipsis; }
  .brand .brand-sub { display: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .values { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 1fr; gap: 8px; }
}
