/* =========================================================
   site.css  –  Design-system stylesheet for leybzon.com
   Maintained by Gene L.
   ========================================================= */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --paper: #F1F3F6;
  --card: #FFFFFF;
  --ink: #10141B;
  --ink-soft: #535B66;
  --ink-faint: #8A929D;
  --line: #D9DEE6;
  --accent: #243BC9;
  --accent-deep: #192a93;
  --accent-soft: rgba(36,59,201,0.07);
  --grid: rgba(36,59,201,0.055);
  --display: "Space Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1140px;
}

/* ----------------------------------------------------------
   2. DARK THEME
   ---------------------------------------------------------- */
[data-theme="dark"] {
  --paper: #0f1117;
  --card: #1a1d27;
  --ink: #e8eaf0;
  --ink-soft: #a0a8b8;
  --ink-faint: #6b7385;
  --line: #2a2e3a;
  --accent: #5b73f0;
  --accent-deep: #4a60d4;
  --accent-soft: rgba(91,115,240,0.1);
  --grid: rgba(91,115,240,0.04);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --paper: #0f1117;
    --card: #1a1d27;
    --ink: #e8eaf0;
    --ink-soft: #a0a8b8;
    --ink-faint: #6b7385;
    --line: #2a2e3a;
    --accent: #5b73f0;
    --accent-deep: #4a60d4;
    --accent-soft: rgba(91,115,240,0.1);
    --grid: rgba(91,115,240,0.04);
  }
}

/* ----------------------------------------------------------
   3. RESET & BASE
   ---------------------------------------------------------- */
*  { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}
a { color: inherit; text-decoration: none }

/* ----------------------------------------------------------
   4. SKIP LINK
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  font-family: var(--display);
  border-radius: 0 0 4px 4px;
  transition: top .2s;
}
.skip-link:focus { top: 0 }

/* ----------------------------------------------------------
   5. UTILITY CLASSES
   ---------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(241,243,246,.82);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] header.nav {
  background: rgba(15,17,23,.82);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) header.nav {
    background: rgba(15,17,23,.82);
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.brand .glyph {
  width: 22px;
  height: 22px;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent) }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 2px;
  color: var(--ink) !important;
  transition: .18s;
}
.nav-cta:hover {
  background: var(--ink);
  color: #fff !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: .3s;
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0 }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Dark-mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  transition: .18s;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { border-color: var(--ink) }

/* ----------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  padding: 80px 0 68px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1faf6a;
  box-shadow: 0 0 0 4px rgba(31,175,106,.16);
}
h1.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.025em;
  color: var(--ink);
}
h1.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 19.5px;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 32em;
}
.hero-role {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 34em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 2px;
  transition: .18s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep) }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--ink) }
.btn svg { width: 15px; height: 15px }

/* ----------------------------------------------------------
   8. SCHEMATIC / DIAGRAM
   ---------------------------------------------------------- */
.schematic {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, rgba(36,59,201,.05), transparent 60%), var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.schematic .corner-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.schematic .tl { top: 12px; left: 14px }
.schematic .br { bottom: 12px; right: 14px }
svg.diagram {
  width: 100%;
  height: 100%;
  display: block;
}
.node-label {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-soft);
  letter-spacing: .04em;
}
.edge {
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  opacity: .55;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.4s ease forwards;
}
.node circle {
  fill: var(--card);
  stroke: var(--accent);
  stroke-width: 1.6;
}
.node.lead circle { fill: var(--accent) }
.pulse {
  transform-origin: center;
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes pulse {
  0%, 100% { opacity: .35; r: 5 }
  50%      { opacity: .9;  r: 6.5 }
}

/* ----------------------------------------------------------
   8b. HERO PORTRAIT
   ---------------------------------------------------------- */
.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: filter .4s ease;
}
.hero-portrait:hover img {
  filter: saturate(1) contrast(1.05);
}
.hero-portrait .corner-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-portrait .tl { top: 12px; left: 14px }
.hero-portrait .br { bottom: 12px; right: 14px }

/* ----------------------------------------------------------
   9. SECTION LAYOUT
   ---------------------------------------------------------- */
section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.sec-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.02em;
}
.gallery-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  margin-left: 16px;
  transition: .18s;
}
.gallery-link:hover {
  text-decoration: underline;
}
.sec-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.sec-link {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--accent);
}
.sec-link:hover { text-decoration: underline }

/* ----------------------------------------------------------
   10. ABOUT SECTION
   ---------------------------------------------------------- */
.lede {
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.45;
  max-width: 24em;
  letter-spacing: -.01em;
}
.lede strong {
  font-weight: 500;
  color: var(--accent);
}
.lede h2 {
  color: var(--accent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 54px;
  align-items: start;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 18px;
  max-width: 34em;
}
.about-body strong {
  font-weight: 600;
  color: var(--accent);
}
.creds {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.creds span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 6px 11px;
  border-radius: 2px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.stat {
  background: var(--card);
  padding: 24px 22px;
}
.stat .n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--accent);
}
.stat .l {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.35;
}

/* ----------------------------------------------------------
   11. BOOKS SECTION
   ---------------------------------------------------------- */
.books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bookcard {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px;
  transition: border-color .2s;
}
.bookcard:hover {
  border-color: var(--accent);
}
.book-info h3 {
  color: var(--ink);
  transition: color .2s;
}
.bookcard:hover .book-info h3 {
  color: var(--accent);
}
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 36px -18px rgba(25,42,147,.5);
}
.cover .ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.cover-img.loaded { opacity: 1 }
.ph-ai {
  background: linear-gradient(155deg, var(--accent-deep), var(--accent) 55%, #3f56e0);
}
.ph-auto {
  background: linear-gradient(160deg, #0c3a44, #11616b 55%, #1c8a82);
}
.auto-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .7;
}
.cover .ct {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.01em;
}
.cover .cb {
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255,255,255,.78);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.cover .lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 100% 16px;
  opacity: .6;
}
.bookmeta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.bookmeta .meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 15px;
}
.bookmeta p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}

/* ----------------------------------------------------------
   12. NEWSLETTER SECTION
   ---------------------------------------------------------- */
.news {
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.news::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.news .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7e93ff;
  margin-bottom: 14px;
}
.news h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  position: relative;
}
.news p {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  max-width: 30em;
  position: relative;
}
.news-title {
  color: #fff;
}
.news-sub {
  color: rgba(255,255,255,.78);
  max-width: 38em;
}
.news .side {
  position: relative;
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 36px;
}
.news .side .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
  line-height: 1.7;
}
.btn-news {
  background: #fff;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: .18s;
}
.btn-news:hover {
  background: #7e93ff;
  color: #fff;
}
.btn-news svg { width: 16px; height: 16px }

/* ----------------------------------------------------------
   13. WRITING CARDS
   ---------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: .2s;
  min-height: 230px;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19.5px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
}
.card .read {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 18px;
}
.card:hover .read { color: var(--accent) }

/* ----------------------------------------------------------
   14. SPEAKING SECTION
   ---------------------------------------------------------- */
.speak {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.speak-list { list-style: none }
.speak-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.speak-list li:first-child { padding-top: 0 }
.speak-list .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  min-width: 74px;
  padding-top: 3px;
}
.speak-list .what {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
}
.speak-list .where {
  color: var(--ink-soft);
  font-size: 14.5px;
}
.speak-card {
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 24px 30px;
  margin-top: 28px;
}
.speak-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.speak-card p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 16px;
}
.speak-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.speak-item:first-child { padding-top: 0 }
.speak-item:last-child { border-bottom: none }
.speak-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 4px;
  transition: color .18s;
}
.speak-item:hover h3 {
  color: var(--accent);
}
.speak-item p {
  color: var(--ink-soft);
  font-size: 15px;
}
.speak-card .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.speak-card .btn-ghost:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

/* ----------------------------------------------------------
   15. GALLERY SECTION
   ---------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.art {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
}
.art span {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.5));
  z-index: 1;
}
.art:hover { transform: scale(1.015) }
.art:focus-visible,
.photo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.a1 { background: radial-gradient(circle at 30% 30%, #6d8cff, #1b2a6b 70%, #0a0f2e) }
.a2 { background: radial-gradient(circle at 70% 40%, #e8a14a, #9a3b2e 60%, #2a0f12) }
.a3 { background: conic-gradient(from 200deg at 50% 50%, #243bc9, #7e3ff2, #243bc9) }
.a4 { background: radial-gradient(circle at 50% 70%, #2fae8f, #0f3b4a 70%, #04181f) }

/* ----------------------------------------------------------
   16. PHOTOGRAPHY SECTION
   ---------------------------------------------------------- */
.photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
}
.photo {
  border-radius: 3px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .2s;
  filter: saturate(.92);
}
.photo span {
  position: absolute;
  bottom: 9px;
  left: 11px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,.95);
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 2;
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.55));
  z-index: 1;
}
.photo:hover {
  transform: scale(1.012);
  filter: saturate(1);
  border-color: var(--accent);
}
.photo.wide { grid-column: span 2 }
.photo.tall { grid-row: span 2 }
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.p1 { background: linear-gradient(150deg, #6b7686, #2c333f 70%, #171b22) }
.p2 { background: linear-gradient(160deg, #caa97f, #7a5a3c 65%, #3a2a1c) }
.p3 { background: linear-gradient(150deg, #9fb0b8, #4c606a 70%, #222d33) }
.p4 { background: linear-gradient(155deg, #b08a8a, #5e3f44 65%, #2a1c20) }
.p5 { background: linear-gradient(160deg, #8a9a86, #3f5240 70%, #1c241c) }
.p6 { background: linear-gradient(150deg, #7d869c, #3a4256 70%, #1a1e29) }

/* ----------------------------------------------------------
   17. CONTACT SECTION
   ---------------------------------------------------------- */
.contact {
  text-align: center;
  padding: 92px 0;
  border-top: 2px solid var(--accent);
}
.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.025em;
  margin-bottom: 18px;
  color: var(--accent);
}
.contact p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 36em;
  margin: 0 auto 30px;
}
.advisory {
  font-size: 14.5px;
  color: var(--ink-faint);
  margin-top: 22px;
}
.advisory a { color: var(--accent) }
.socials {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.socials a { color: var(--ink-soft) }
.socials a:hover { color: var(--accent) }

/* ----------------------------------------------------------
   18. FOOTER
   ---------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   19. LIGHTBOX
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 201;
  padding: 8px;
  line-height: 1;
}

/* ----------------------------------------------------------
   20. SCROLL REVEAL
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   21. GALLERY PAGE SPECIFIC
   ---------------------------------------------------------- */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: .2s;
}
.gallery-card:hover {
  transform: scale(1.01);
  border-color: var(--accent);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.gallery-filters button {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: .18s;
}
.gallery-filters button:hover,
.gallery-filters button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ----------------------------------------------------------
   22. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px }
  .hero-portrait { max-width: 280px; margin: 0 auto; order: -1 }
  .about-grid { grid-template-columns: 1fr; gap: 34px }
  .books { grid-template-columns: 1fr }
  .bookcard { grid-template-columns: 120px 1fr; gap: 22px }
  .book { grid-template-columns: 1fr; gap: 28px }
  .cover { max-width: 160px }
  .news { grid-template-columns: 1fr; gap: 30px; padding: 36px }
  .news .side {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.16);
    padding-left: 0;
    padding-top: 28px;
  }
  .cards { grid-template-columns: 1fr }
  .speak { grid-template-columns: 1fr }
  .gallery { grid-template-columns: repeat(2, 1fr) }
  .photos { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px }
  .photo.wide { grid-column: span 2 }
  .nav-toggle { display: block }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex }
  .gallery-page-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) }
}

@media (max-width: 480px) {
  .gallery-page-grid { grid-template-columns: 1fr 1fr; gap: 10px }
  .hero-role { font-size: 11px; letter-spacing: .03em }
}

/* ----------------------------------------------------------
   23. REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .edge { animation: none; stroke-dashoffset: 0 }
  .pulse { animation: none }
  * { scroll-behavior: auto !important }
  .reveal { opacity: 1; transform: none; transition: none }
}

/* ----------------------------------------------------------
   24. FOCUS VISIBLE
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
