/* ══════════════════════════════════════════
   NICKLAS LINDBY — PORTFOLIO
   Dark premium · indigo accent
   ══════════════════════════════════════════ */

:root {
  --bg:       #1a1817;
  --surface:  #242120;
  --purple:   #5a5ad4;
  --text:     #ffffff;
  --muted:    rgba(255, 255, 255, 0.5);
  --dim:      rgba(255, 255, 255, 0.12);

  --font:   'Space Grotesk', sans-serif;
  --max-w:  1100px;
  --pad:    clamp(24px, 5vw, 72px);
  --nav-h:  68px;
}

/* ── LIGHT THEME ── */
body.light {
  --bg:      #f2f1ef;
  --surface: #e6e5e3;
  --text:    #111110;
  --muted:   rgba(0, 0, 0, 0.5);
  --dim:     rgba(0, 0, 0, 0.1);
}

body.light .nav-links a {
  color: rgba(0,0,0,0.38);
}
body.light .nav-links a:hover,
body.light .nav-links a.active {
  color: var(--text);
}
body.light .nav-avatar {
  border-color: rgba(0,0,0,0.22);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
@media (min-width: 901px) {
  body.light .hero-text { background: #eae9e7; }
}
body.light .stat-cell { background: var(--purple); }
body.light .tag {
  background: rgba(90,90,212,0.12);
  border-color: rgba(90,90,212,0.3);
  color: rgba(0,0,0,0.65);
}
body.light .btn-outline {
  border-color: rgba(0,0,0,0.45);
  color: var(--text);
}
body.light .btn-outline:hover {
  border-color: rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.05);
}
body.light .contact-btn {
  background: var(--surface);
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}
body.light .contact-btn:hover {
  border-color: rgba(90,90,212,0.5);
  background: rgba(90,90,212,0.08);
}

/* Mobile hero — keep photo visible in light mode, keep text readable */
@media (max-width: 900px) {
  body.light .hero-photo::after {
    background: linear-gradient(
      to bottom,
      transparent            0%,
      transparent            40%,
      rgba(242,241,239,0.55) 65%,
      rgba(242,241,239,0.93) 100%
    );
  }
  body.light .hero-name,
  body.light .hero-title    { color: #111110; }
  body.light .hero-greeting { color: rgba(0,0,0,0.55); }
  body.light .hero-location { color: rgba(0,0,0,0.38); }
}

/* Hero location */
body.light .hero-location { color: rgba(0,0,0,0.38); }

/* About section body text */
body.light .about-right p           { color: rgba(0,0,0,0.62); }
body.light .about-right .lead       { color: var(--text); }

/* Savier card */
body.light .savier-card             { background: rgba(90,90,212,0.06); border-color: rgba(90,90,212,0.25); }
body.light .savier-name             { color: var(--text); }
body.light .savier-desc             { color: rgba(0,0,0,0.55); }
body.light .savier-link             { color: rgba(60,60,180,0.75); }

/* Experience */
body.light .exp-detail              { color: rgba(0,0,0,0.52); }
body.light .exp-year                { color: rgba(0,0,0,0.45); }
body.light .exp-row                 { border-color: rgba(0,0,0,0.1); }
body.light .exp-badge-award         { color: rgba(90,55,0,0.9); background: rgba(200,155,30,0.18); border-color: rgba(180,130,20,0.4); }

/* Speaking section */
body.light .speak-bio p             { color: rgba(0,0,0,0.62); }
body.light .speak-bio .lead        { color: var(--text); }
body.light .speak-corporate > p    { color: rgba(0,0,0,0.62); }
body.light .speak-corporate .lead  { color: var(--text); }
body.light .corp-topic span        { color: rgba(0,0,0,0.52); }
body.light .corp-topic strong      { color: var(--text); }
body.light .corp-topic            { border-color: rgba(0,0,0,0.1); }
body.light .corp-topics           { border-color: rgba(0,0,0,0.1); }
body.light .speak-eng p           { color: rgba(0,0,0,0.52); }
body.light .speak-img-wrap        { background: var(--surface); }

/* Stats section */
body.light .stats-left            { background: var(--bg); }

/* Footer */
body.light .site-footer           { background: var(--bg); }
body.light .footer-inner > span   { color: rgba(0,0,0,0.45); }
body.light .footer-icons a        { color: var(--text); }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}
body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s;
}

#nav.scrolled {
  background: rgba(26, 24, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dim);
}

body.light #nav.scrolled {
  background: rgba(242, 241, 239, 0.88);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
}

/* Profile avatar — left, hidden until hero photo scrolls out */
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s;
}
.nav-avatar.visible {
  opacity: 1;
  pointer-events: auto;
}
.nav-avatar.visible:hover { opacity: 0.8; }
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Nav right spacer keeps grid balanced */
.nav-right-spacer { width: 34px; }

/* Nav left — avatar + flag */
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language toggle */
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.15s;
}
.nav-avatar.visible + .lang-toggle {
  opacity: 0.55;
  pointer-events: auto;
}
.nav-avatar.visible + .lang-toggle:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* ── THEME TOGGLE — top right ── */
.theme-toggle-float {
  position: fixed;
  top: calc(var(--nav-h) / 2);
  right: 20px;
  transform: translateY(-50%);
  z-index: 210;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

/* ── CONTACT ICONS — bottom right ── */
.contact-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.light .contact-float .dock-btn {
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.55);
}
body.light .contact-float .dock-btn:hover {
  background: rgba(255,255,255,0.85);
  color: rgba(0,0,0,0.85);
}

/* ── SLIDER TOGGLE ── */
.theme-toggle-float input { display: none; }

.theme-toggle-float .slider-track {
  position: relative;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light .theme-toggle-float .slider-track {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.14);
}

.s-icon {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: opacity 0.25s, color 0.25s;
}

/* Dark mode: moon dark (sits over white thumb), sun white (on dark track) */
.s-moon { color: #1e1e2e; opacity: 0.9; }
.s-sun  { color: #ffffff; opacity: 0.28; }

/* Light mode: moon dark (on light track), sun dark (sits over white thumb) */
body.light .s-moon { color: #1e1e2e; opacity: 0.55; }
body.light .s-sun  { color: #1e1e2e; opacity: 0.9; }

.slider-thumb {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  z-index: 0;
}

/* Checked = light: thumb slides right */
.theme-toggle-float input:checked ~ .slider-track .slider-thumb {
  transform: translateX(26px);
}

/* ── DOCK BUTTONS ── */
.dock-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.dock-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

body.light .dock-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.09);
  color: rgba(0,0,0,0.5);
}
body.light .dock-btn:hover {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.85);
}

/* ── HERO ── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-text {
  background: #1e1c1b;
  display: flex;
  align-items: center;
  padding: var(--nav-h) clamp(32px, 5vw, 80px) 40px clamp(32px, 5vw, 80px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-greeting {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-location {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  padding: 11px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 11px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* ── STATS SECTION (Image 7 style — full width, no max-w) ── */
#stats {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 380px;
}

.stats-left {
  background: var(--bg);
  padding: clamp(48px, 7vw, 80px) clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* subtle dot pattern */
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.stats-heading {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stats-right {
  background: var(--purple);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background-color: rgba(255,255,255,0.12); /* divider color */
  gap: 1px;
}

.stat-cell {
  background: var(--purple);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-big {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
}

.stat-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  margin-top: -2px;
}

.stat-cell p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── OVERLINE LABEL ── */
.overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 16px;
}

/* ── SECTION SHARED ── */
.section {
  border-top: 1px solid var(--dim);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 100px) var(--pad);
}

.section-heading {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 18px;
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about-left .section-heading { margin-top: 0; }

.about-right p { color: rgba(255,255,255,0.7); font-size: 0.97rem; }
.about-right .lead { color: var(--text); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  background: rgba(90, 90, 212, 0.18);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(90, 90, 212, 0.4);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── SAVIER CARD ── */
.savier-card {
  display: block;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(90, 90, 212, 0.3);
  border-radius: 8px;
  background: rgba(90, 90, 212, 0.07);
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.savier-card:hover {
  border-color: rgba(90, 90, 212, 0.6);
  background: rgba(90, 90, 212, 0.13);
}

.savier-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.savier-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
}

.savier-header svg {
  color: var(--purple);
  opacity: 0.8;
}

.savier-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.savier-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin-bottom: 10px;
}

.savier-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(160,160,255,0.7);
  letter-spacing: 0.03em;
}

/* ── EXPERIENCE ── */
.exp-list { margin-top: 40px; }

.exp-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--dim);
  align-items: start;
}
.exp-row:first-child { border-top: 1px solid var(--dim); }

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.exp-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.exp-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.exp-badge-award {
  background: rgba(212, 175, 55, 0.25);
  color: rgba(255, 220, 120, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.exp-role {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.exp-co {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.exp-detail {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── SPEAK ── */
.speak-img-wrap {
  position: relative;
  margin: 40px 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.speak-img-wrap img { width: 100%; height: auto; display: block; }
.speak-img-wrap.img-missing img { display: none; }

.img-fallback {
  display: none;
  height: 320px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.speak-img-wrap.img-missing .img-fallback { display: flex; }

.speak-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: rgba(255,255,255,0.7);
  padding: 32px 20px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.speak-stats-row {
  display: flex;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--dim);
  margin: 0 0 48px;
  flex-wrap: wrap;
  gap: 0;
}

.speak-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.speak-stat:first-child { padding-left: 0; }

.speak-divider {
  width: 1px;
  height: 48px;
  background: var(--dim);
  flex-shrink: 0;
}

.speak-n {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.speak-l {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.speak-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.speak-bio p { color: rgba(255,255,255,0.7); font-size: 0.97rem; }
.speak-bio .lead { color: var(--text); }

.speak-engs { display: flex; flex-direction: column; }

.speak-corporate { display: flex; flex-direction: column; }
.speak-corporate .lead { color: var(--text); }
.speak-corporate > p { color: rgba(255,255,255,0.7); font-size: 0.97rem; margin-bottom: 0; }

.corp-topics {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  border-top: 1px solid var(--dim);
}

.corp-topic {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dim);
}

.corp-topic strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.corp-topic span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.speak-eng {
  padding: 20px 0;
  border-bottom: 1px solid var(--dim);
}
.speak-eng:first-child { border-top: 1px solid var(--dim); }
.speak-eng p { font-size: 0.84rem; color: var(--muted); margin-top: 8px; margin-bottom: 0; }

.eng-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.eng-head strong { font-size: 0.95rem; font-weight: 700; }

.eng-badge {
  background: rgba(90,90,212,0.25);
  color: rgba(180,180,255,0.9);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 20px;
}

.contact-loc {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-right .lead { margin-bottom: 28px; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--dim);
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  width: fit-content;
}
.contact-btn:hover {
  border-color: rgba(90,90,212,0.6);
  background: rgba(90,90,212,0.12);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--dim);
  background: var(--bg);
}

.footer-vibe {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.45;
  font-style: italic;
  letter-spacing: 0.01em;
}

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

.footer-inner > span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.footer-icons { display: flex; gap: 18px; align-items: center; }
.footer-icons a { color: var(--text); opacity: 0.4; transition: opacity 0.2s; display: flex; }
.footer-icons a:hover { opacity: 1; }

/* ── EASTER EGG ── */
.easter-egg-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  opacity: 0.25;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
  display: inline;
}
.easter-egg-btn:hover {
  opacity: 0.7;
  transform: rotate(20deg) scale(1.2);
}

.egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.egg-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.egg-img {
  max-width: min(90vw, 640px);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  object-fit: contain;
}

.egg-caption {
  margin-top: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.01em;
}

.egg-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.egg-close:hover { background: rgba(255,255,255,0.22); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Hero: full-screen photo with text overlaid at bottom */
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100svh;
    min-height: 600px;
    position: relative;
  }

  .hero-photo {
    grid-area: 1 / 1;
    height: 100%;
    max-height: none;
  }

  /* Dark gradient so text is readable over the photo */
  .hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(26, 24, 23, 0.1) 0%,
      rgba(26, 24, 23, 0.15) 35%,
      rgba(26, 24, 23, 0.75) 60%,
      rgba(26, 24, 23, 0.97) 100%
    );
  }

  .hero-text {
    grid-area: 1 / 1;
    background: transparent;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding: 0 var(--pad) 52px;
  }

  #stats { grid-template-columns: 1fr; }

  .about-layout { grid-template-columns: 1fr; }
  .speak-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }

  .nav-links { display: none; }
}

@media (max-width: 580px) {
  .stats-right { grid-template-columns: 1fr; }

  .speak-stats-row { gap: 24px; }
  .speak-divider { display: none; }
  .speak-stat { padding: 0; flex: none; width: calc(50% - 12px); }
  .speak-stat:first-child { padding-left: 0; }

  .exp-row { grid-template-columns: 1fr; gap: 8px; }
}
