/* ================================
   Luca Dal Zilio, Speaker Site
   ================================ */

:root {
  --ink: #101215;
  --paper: #FFFFFF;
  --paper-dim: #F5F5F4;
  --line: rgba(16, 18, 21, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #B5581F;
  --accent-soft: #D98A45;
  --hero-blue: #101215;
  --muted: #6C6F75;
  --muted-dark: #B3B6BC;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view .stagger-item {
  opacity: 1;
  transform: translateY(0);
}
.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.18s; }
.stagger-item:nth-child(3) { transition-delay: 0.31s; }
.stagger-item:nth-child(4) { transition-delay: 0.44s; }
.stagger-item:nth-child(5) { transition-delay: 0.57s; }
.stagger-item:nth-child(6) { transition-delay: 0.7s; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.4s ease;
}
.site-nav.scrolled .nav-name { color: var(--ink); }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color 0.4s ease, opacity 0.2s ease;
  position: relative;
}
.nav-links a:hover { opacity: 0.7; }
.site-nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a.cta {
  border: 1px solid rgba(255,255,255,0.55);
  padding: 8px 18px;
  border-radius: 999px;
}
.site-nav.scrolled .nav-links a.cta {
  border-color: var(--ink);
}
.nav-toggle { display: none; }

/* Language switch (EN / IT) */
.lang-switch { display: inline-flex; align-items: center; gap: 1px; margin: 0 2px; }
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 4px 5px;
  transition: color 0.3s ease;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.lang-switch .sep { color: rgba(255,255,255,0.35); font-size: 12px; }
.site-nav.scrolled .lang-switch button { color: var(--muted); }
.site-nav.scrolled .lang-switch button:hover,
.site-nav.scrolled .lang-switch button.is-active { color: var(--ink); }
.site-nav.scrolled .lang-switch .sep { color: rgba(16,18,21,0.25); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 116%;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* darker at the bottom and on the left, where the text sits; the face on the right stays bright */
  background:
    linear-gradient(180deg, rgba(10,10,10,0.10) 0%, rgba(10,10,10,0.16) 50%, rgba(8,8,8,0.88) 100%),
    linear-gradient(90deg, rgba(5,5,5,0.50) 0%, rgba(5,5,5,0.22) 42%, rgba(5,5,5,0) 62%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 40px 90px;
  color: #fff;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 0.05s forwards;
}
.hero-eyebrow {
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hero-blue);
  background: rgba(255,255,255,0.9);
  display: inline-block;
  padding: 8px 14px 7px;
  border-radius: 3px;
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 0.2s forwards;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 10.6em;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 0.4s forwards;
}
.hero-sub {
  margin-top: 26px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  opacity: 0;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) 0.6s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1s ease 1.1s forwards;
}
.scroll-cue .line {
  width: 1px; height: 30px;
  background: rgba(255,255,255,0.5);
  animation: pulse-line 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes pulse-line {
  0%,100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Intro ---------- */
.intro {
  padding: 130px 0 100px;
}
.intro .wrap { max-width: 880px; }
.intro p {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  font-weight: 400;
  color: #1E1F22;
}
.intro p strong { font-weight: 600; color: var(--ink); }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.01em;
}
.section-head .section-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 320px;
}

/* ---------- Media grid (Keynotes and interviews) ---------- */
.media-section { padding: 40px 0 110px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.media-card { position: relative; }
.media-card .frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #111;
  border-radius: 2px;
}
.media-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: grayscale(35%) contrast(1.03);
}
.media-card:hover img { transform: scale(1.06); filter: grayscale(0%) contrast(1.05); }
.media-card .tag {
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.media-card .cap {
  font-family: var(--serif);
  font-size: 19px;
  margin-top: 16px;
  color: var(--ink);
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.quote-band--photo { background: #000; }
.quote-band--photo .quote-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.quote-band--photo .quote-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  filter: brightness(1.02);
}
.quote-band--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.12) 0%, rgba(8,8,8,0.34) 100%);
  z-index: 1;
}
.quote-band--photo .wrap {
  position: relative;
  z-index: 2;
}
.quote-band--photo blockquote,
.quote-band--photo cite,
.quote-band--photo .quote-mark {
  text-shadow: 0 2px 4px rgba(0,0,0,0.85), 0 10px 28px rgba(0,0,0,0.65);
}
.quote-band .wrap { max-width: 940px; text-align: center; }
.quote-mark {
  font-family: var(--serif);
  font-size: 90px;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.85;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.quote-band cite {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ---------- Pillars ---------- */
.pillars { padding: 130px 0 120px; }
.research { border-top: none; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 56px;
}
.pillar {
  padding: 0;
  position: relative;
}
.pillar-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.pillar-num::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent-soft);
  margin-top: 14px;
  opacity: 0.6;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.22;
}
.pillar .pillar-kicker {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
  font-style: italic;
  font-family: var(--serif);
}
.pillar p.desc {
  color: #4B4D52;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

.cta-row {
  margin-top: 70px;
  display: flex;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.35s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-3px); background: var(--accent); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--accent-soft); color: #1a1204; }

/* ---------- Bio ---------- */
.bio {
  background: var(--paper-dim);
  padding: 130px 0;
}
.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.bio-photo {
  position: sticky;
  top: 120px;
}
.bio-photo .frame {
  overflow: hidden;
  border-radius: 3px;
}
.bio-photo img {
  width: 100%;
  filter: grayscale(15%);
}
.bio-photo .cred {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.awards-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.awards-block h4 {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.awards-list { list-style: none; }
.awards-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.awards-list li:last-child { border-bottom: none; }
.awards-list li .yr {
  flex: 0 0 auto;
  min-width: 40px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 12.5px;
}
.awards-list li .desc { color: #3A3C40; }
.bio-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #2A2C30;
  margin-bottom: 22px;
}
.bio-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  margin: 8px 10px 0 0;
  color: var(--accent);
}
.credentials {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.credentials h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.credentials ul { list-style: none; }
.credentials li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  font-size: 14.5px;
}
.credentials li .yr {
  flex: 0 0 auto;
  min-width: 84px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.credentials li .desc { color: #2A2C30; }
.credentials li .desc span.role {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ---------- Book ---------- */
.book { padding: 130px 0 100px; background: var(--paper); }
.book-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 76px;
  align-items: center;
  margin-bottom: 70px;
}
/* Book carousel */
.book-carousel {
  position: relative;
  border-radius: 2px;
  box-shadow: 0 40px 70px -28px rgba(16,18,21,0.4), 0 12px 24px -10px rgba(16,18,21,0.28);
  background: #fff;
  overflow: hidden;
}
.book-track { position: relative; aspect-ratio: 1486 / 1857; }
.book-track img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.book-track img.is-active { opacity: 1; }
.book-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(16,18,21,0.18);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 3px;
  font-family: var(--serif);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.book-arrow.prev { left: 12px; }
.book-arrow.next { right: 12px; }
.book-carousel:hover .book-arrow,
.book-carousel:focus-within .book-arrow { opacity: 1; }
.book-arrow:hover { background: var(--ink); color: #fff; }
.book-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px;
}
.book-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(16,18,21,0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.book-dots span.is-active { background: var(--accent); transform: scale(1.25); }
@media (hover: none) { .book-arrow { opacity: 1; } }
.book-info .eyebrow { margin-bottom: 16px; }
.book-info h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 46px);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.book-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.book-subtitle em { font-style: italic; color: #8A8C90; }
.book-publisher {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.book-quote {
  margin-top: 32px;
  padding-left: 22px;
  border-left: 3px solid var(--accent-soft);
}
.book-quote .orig {
  font-family: var(--serif);
  font-style: italic;
  color: #2E3034;
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.book-quote .trans {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.book-buy { margin-top: 30px; }
.book-buy-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.book-buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.book-buy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
}
.book-buy-link:hover { background: var(--ink); color: var(--paper); }
.book-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--line);
  padding-top: 50px;
}
.book-col h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.book-col p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.78;
  color: #2E3034;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .book-top { grid-template-columns: 1fr; gap: 40px; }
  .book-cover-wrap { max-width: 280px; }
  .book-columns { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Research / selected papers ---------- */
.research { padding: 130px 0 120px; background: var(--paper); border-top: 1px solid var(--line); }
.research .section-head { align-items: flex-end; }
.research .section-note { max-width: 420px; line-height: 1.6; }
.research .section-note em { font-style: italic; color: var(--ink); }
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.paper {
  display: block;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.paper:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 40px -22px rgba(16,18,21,0.35), 0 6px 14px -8px rgba(16,18,21,0.15);
}
.paper-journal {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.paper h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.paper-authors { font-size: 13px; color: var(--muted); line-height: 1.5; }
.research-cta { gap: 28px; align-items: center; margin-top: 56px; }
.text-link {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.text-link:hover { color: var(--ink); border-color: var(--accent); }
@media (max-width: 980px) { .research-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .research-grid { grid-template-columns: 1fr; } .research-cta { flex-direction: column; } }

/* ---------- Gallery ---------- */
.gallery { padding: 110px 0 110px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 10px;
  gap: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .viewfull {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .viewfull { opacity: 1; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 150px 0 90px;
  text-align: center;
}
.contact .eyebrow {
  color: var(--accent-soft);
  font-size: 20px;
  letter-spacing: 0.1em;
}
.contact .btn.light { margin-top: 40px; }
.contact-links {
  margin-top: 60px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-links a { border-bottom: 1px solid transparent; transition: border-color .3s ease, color .3s ease; padding-bottom: 4px; }
.contact-links a:hover { color: #fff; border-color: var(--accent-soft); }

footer {
  padding: 34px 0 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.96);
  transition: transform 0.35s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-cap {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lightbox .lb-close {
  position: absolute;
  top: 30px; right: 40px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
  opacity: 0.75;
  transition: opacity .2s ease, transform .2s ease;
}
.lightbox .lb-close:hover { opacity: 1; transform: rotate(90deg); }

/* ---------- Email modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16,18,21,0.72);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  background: var(--paper);
  border-radius: 4px;
  max-width: 440px;
  width: 100%;
  padding: 44px 36px 36px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.modal.open .modal-box { transform: translateY(0); }
.modal-box h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 24px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }
#emailForm { display: flex; flex-direction: column; gap: 18px; }
#emailForm label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
#emailForm input, #emailForm textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  resize: vertical;
  text-transform: none;
  letter-spacing: normal;
}
#emailForm input:focus, #emailForm textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
#emailForm .btn {
  align-self: flex-start;
  margin-top: 6px;
  border: none;
  cursor: pointer;
}
.modal-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12.5px; }
}

@media (max-width: 1060px) {
  .nav-name { white-space: nowrap; }
  .nav-links a:not(.cta) { display: none; }
}

@media (max-width: 980px) {
  .hero-media img { object-position: 78% 22%; }
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-photo { position: static; max-width: 340px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 48px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* portrait crop of the hero: face on top, text underneath */
  .hero-media img { object-position: 50% 0; }
  .hero::after {
    background: linear-gradient(180deg, rgba(10,10,10,0.04) 0%, rgba(10,10,10,0.10) 40%, rgba(8,8,8,0.90) 100%);
  }
  .hero h1 br { display: none; }
  .nav-name { white-space: nowrap; }
  .nav-links a:not(.cta) { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .site-nav { padding: 18px 16px; }
  .nav-name { font-size: 17px; white-space: nowrap; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta) { display: none; }
  .nav-links a.cta { white-space: nowrap; font-size: 11.5px; letter-spacing: 0.03em; padding: 7px 12px; }
  .lang-switch button { font-size: 11.5px; padding: 3px 4px; }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.11em; padding: 7px 10px 6px; }
  .hero-content { padding: 0 24px 48px; }
  .intro { padding: 90px 0 60px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quote-band, .pillars, .bio, .gallery, .contact { padding-top: 80px; padding-bottom: 80px; }
  .hero-sub { display: none; }
  .scroll-cue { bottom: 12px; left: 24px; }
  .scroll-cue .line { height: 18px; }
  .quote-band--photo .quote-media img { object-position: 74% 68%; }
}
