body { overflow-x: hidden; }

.quotes { background: var(--paper); }
.quotes-list {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  gap: 24px;
  max-width: 880px;
  margin: 40px auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.quotes-list::-webkit-scrollbar { display: none; }
.quotes-list blockquote {
  min-width: 0;
  margin: 0;
  padding: 0 0 4px 28px;
  border-left: 2px solid #8cbcdf;
  scroll-snap-align: start;
  font-size: clamp(18px, 1.65vw, 23px);
  font-style: normal;
  line-height: 1.65;
}
.quotes-list p { margin: 0; }
.quotes-list p + p { margin-top: 1em; }
.quotes-controls { max-width: 880px; margin: 28px auto 0; display: flex; align-items: center; gap: 16px; }
.quotes-controls[hidden] { display: none; }
.quotes-controls > button {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.quotes-controls > button:hover:not(:disabled) { background: #d8edfc; }
.quotes-controls > button:disabled { opacity: .3; cursor: default; }
.quotes-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quote-dots { display: flex; gap: 0; margin-left: auto; }
.quote-dots button { display: grid; place-items: center; width: 36px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.quote-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9fb5c8; transition: background .2s, transform .2s; }
.quote-dots button[aria-current="true"]::before { background: var(--green); transform: scale(1.4); }
#quote-counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quotes-list:focus-visible, .quotes-controls button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (max-width: 600px) {
  .quotes-list { margin-top: 28px; }
  .quotes-list blockquote { padding-left: 16px; font-size: 17px; line-height: 1.6; }
  .quotes-controls { gap: 8px; margin-top: 20px; }
  .quote-dots button { width: 30px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(42px, 11.5vw, 56px); }
}

/* White, blue and sky-blue palette. */
.hero {
  background: linear-gradient(120deg, #ffffff 15%, #edf7ff 58%, #c6e7ff 100%);
  color: var(--ink);
}
.hero::before {
  background: radial-gradient(circle at 78% 45%, rgba(72, 165, 235, .18), transparent 45%);
}
.site-header { color: var(--ink); border-bottom-color: var(--line); }
h1 em { color: #2376bb; }
.hero-lead { color: #46647e; }
.hero .button.primary { background: #2465a3; color: #ffffff; }
.hero .button.primary:hover { background: #194e82; }
.hero .button.text-button { color: #2465a3; border-bottom-color: #8cbcdf; }
.file-note, .scroll-note { color: #5f758b; }
.language { border-color: #8cbcdf; }
.language .active { background: #2465a3; color: #ffffff; }
.book-cover { box-shadow: 24px 32px 65px rgba(31, 90, 139, .2), inset 12px 0 24px rgba(31, 90, 139, .04); }
.orbit { border-color: rgba(36, 101, 163, .22); }
.closing { background: linear-gradient(120deg, #1b4f85, #287fbb); }
.menu-toggle i { background: var(--ink); }
@media (max-width: 820px) {
  .nav { background: #ffffff; }
}

.book-cover .book-subtitle { font-size: 10px; letter-spacing: .02em; text-transform: none; line-height: 1.5; }

.contact-links { display: flex; flex-wrap: wrap; gap: 16px; }
section.second-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .4fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
  padding: 48px clamp(24px, 8vw, 128px);
  background: linear-gradient(120deg, #e9e4f4, #f7f4fc);
  color: #2d2441;
  border-block: 1px solid rgba(83,62,119,.12);
}
.second-book-copy { max-width: 680px; min-width: 0; }
.second-book .kicker { margin: 0 0 18px; color: #755699; }
.second-book h2 { margin: 0; font: 400 clamp(30px, 3.4vw, 48px)/1.1 var(--serif); letter-spacing: -.03em; }
.second-book-description { margin: 20px 0 24px; color: #625a71; font-size: 17px; line-height: 1.65; }
.second-book .button { background: #594078; color: #fff; }
.second-book .button:hover { background: #38284d; }
.second-book-cover { display: flex; justify-content: center; min-width: 0; }
.second-book-cover img {
  display: block; width: auto; max-width: 100%; height: auto;
  max-height: min(300px, 50svh);
  box-shadow: 12px 18px 32px rgba(45,36,65,.18);
  border-radius: 2px;
}
@media (max-width: 600px) {
  section.second-book { grid-template-columns: minmax(0, 1fr) 104px; padding: 32px 22px; gap: 20px; }
  .second-book .kicker { font-size: 9px; letter-spacing: .1em; margin-bottom: 12px; }
  .second-book .kicker::before { display: none; }
  .second-book h2 { font-size: clamp(24px, 6vw, 32px); }
  .second-book-description { font-size: 14px; line-height: 1.5; margin: 16px 0 20px; }
  .second-book .button { min-height: 48px; padding-inline: 12px; font-size: 9px; letter-spacing: .05em; gap: 12px; }
}

.mobile-copy { display: none; }
@media (max-width: 600px) {
  .desktop-copy { display: none; }
  .mobile-copy { display: block; }
  .quotes-list { margin-top: 28px; }
  .manifesto, .quotes, .listen, .about, .closing { padding: 52px 22px; }
  .closing { padding-bottom: 90px; min-height: auto; }
  .hero { min-height: auto; padding-bottom: 36px; }
  .hero-art { margin: 16px 0 0; }
  .book-cover { width: 190px; padding: 20px; }
  .book-title { font-size: 28px; }
  .book-symbol { width: 80px; height: 80px; }
  .book-cover .book-subtitle { font-size: 8px; }
  .scroll-note, .orbit { display: none; }
  .kicker { margin-bottom: 18px; }
  .manifesto { gap: 24px; }
  .manifesto-copy blockquote { display: none; }
  .about { gap: 32px; }
  .portrait-wrap { max-width: 280px; margin-inline: auto; width: 100%; }
  .portrait-wrap img { height: 280px; object-fit: cover; object-position: center 25%; }
  .facts { margin-top: 24px; padding-top: 20px; }
  .listen-head { gap: 20px; }
  .player { margin-top: 24px; }
  .now-playing { padding: 24px 0; gap: 16px; }
  .now-playing h3 { font-size: 22px; }
  .playlist { margin-top: 28px; }
  .playlist button { min-height: 48px; padding: 16px 0; }
  .closing h2 { font-size: clamp(36px, 9vw, 54px); line-height: 1.05; }
  .closing > p:not(.kicker) { font-size: 18px; }
  .contact-links { width: 100%; gap: 12px; }
  .contact-links .button { flex: 1; margin-top: 8px; padding-inline: 16px; gap: 14px; }
  .closing-meta { flex-wrap: wrap; gap: 12px; font-size: 9px; }
}

.hero-art { min-width: 0; }
.hero-book-image {
  display: block;
  width: 360px;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 4px;
  box-shadow: 20px 28px 55px rgba(31, 90, 139, .24);
}
@media (max-width: 820px) {
  .hero-book-image { width: 300px; }
}
@media (max-width: 600px) {
  .hero-book-image { width: 190px; }
}

/* Full audiobook player. */
.player [hidden], .mini-player[hidden] { display: none !important; }
.player button, .player select, .mini-player button { touch-action: manipulation; }
.player button:focus-visible, .player select:focus-visible, .player summary:focus-visible,
.mini-player button:focus-visible, .mini-player a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.player button:disabled { opacity: .35; cursor: default; }
.player .timeline { height: 6px; border-radius: 6px; margin-block: 12px; }
.player .timeline span { border-radius: inherit; }
.player .timeline input { height: 44px; top: -19px; margin: 0; }
.player .timeline:focus-within { outline: 2px solid var(--lime); outline-offset: 4px; }
.player .time-row { font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.75); }
.audio-transport { display: flex; justify-content: center; gap: 12px; margin: 28px 0; }
.audio-transport button, .mini-player button {
  min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; color: var(--cream); background: transparent; font: 16px var(--sans); cursor: pointer;
}
.audio-transport button:hover:not(:disabled), .mini-player button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.audio-status, .resume-note { font-size: 14px; line-height: 1.5; color: var(--lime); }
.audio-status { min-height: 21px; margin: 16px 0; }
.resume-note { background: rgba(145,211,245,.1); border-left: 2px solid var(--lime); padding: 14px 18px; margin: 24px 0 0; }
.player .playlist { margin: 0; }
.player .playlist button { align-items: center; min-height: 64px; gap: 12px; font-size: 16px; grid-template-columns: 40px minmax(0,1fr) auto; }
.player .playlist time { font-size: 12px; font-variant-numeric: tabular-nums; }
.player .playlist .track-no { font-variant-numeric: tabular-nums; }
.player .playlist button:hover { background: rgba(255,255,255,.04); }
.player .playlist .active button { color: white; background: rgba(145,211,245,.12); }
.player .playlist li.active { box-shadow: inset 2px 0 var(--lime); }
.player .playlist button { padding: 16px 12px; }
.track-label { min-width: 0; }
.track-completed { display: inline-block; margin-left: 14px; font-size: 11px; color: var(--lime); }
.audio-catalog { margin-top: 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.audio-catalog summary { padding: 18px; cursor: pointer; min-height: 56px; font-size: 14px; color: var(--cream); }
.audio-catalog summary::marker { color: var(--lime); }
.audio-catalog .playlist { max-height: 390px; overflow-y: auto; overscroll-behavior: contain; position: relative; scrollbar-color: var(--lime) #1b4265; }
.mini-player {
  position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 12px max(22px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  background: #142c46; color: var(--cream); box-shadow: 0 -6px 30px rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.25);
}
.mini-player a { color: inherit; font-size: 16px; text-decoration: none; margin-right: auto; }
.mini-player time { font-size: 12px; font-variant-numeric: tabular-nums; }
.mini-player button:disabled { opacity: .35; cursor: default; }
.mini-player #mini-play { background: var(--lime); color: var(--ink); }
body.has-mini-player { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
#listen { scroll-margin-top: 24px; }
@media (max-width: 600px) {
  .audio-transport { gap: 16px; margin: 24px 0; }
  .player .playlist button { font-size: 15px; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; }
  .track-completed { display: block; margin: 3px 0 0; }
  .audio-catalog .playlist { max-height: 330px; }
  .mini-player { gap: 8px; padding-inline: 12px; }
  .mini-player a { font-size: 14px; }
  .mini-player button { min-width: 44px; min-height: 44px; font-size: 14px; }
}

/* First screen: landscape from the book cover. */
.hero-landscape {
  display: flex;
  align-items: center;
  min-height: max(760px, 100svh);
  background: #101f30;
  color: #fff9f1;
  isolation: isolate;
}
.hero-background {
  position: absolute;
  inset: 0 0 0 auto;
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  z-index: -2;
}
.hero-landscape::before {
  z-index: -1;
  background: linear-gradient(90deg, #101f30 0%, #101f30 24%, rgba(16,31,48,.72) 42%, rgba(16,31,48,.15) 72%, rgba(16,31,48,.06)),
    linear-gradient(0deg, rgba(9,20,31,.48), transparent 35%, transparent 80%, rgba(9,20,31,.3));
}
.hero-landscape .hero-copy { max-width: 680px; }
.hero-landscape h1 { font-size: clamp(64px, 7.7vw, 118px); }
.hero-landscape h1 em { color: #f3c6a6; }
.hero-landscape .hero-lead { max-width: 560px; color: rgba(255,249,241,.84); }
.hero-landscape .kicker { color: #f3c6a6; }
.hero-landscape .button.primary { background: #f3c6a6; color: #142c46; }
.hero-landscape .button.primary:hover { background: #fff9f1; }
.hero-landscape .button.text-button { color: #fff9f1; border-bottom-color: rgba(255,249,241,.55); }
.hero-landscape .file-note, .hero-landscape .scroll-note { color: rgba(255,249,241,.7); }
.site-header { color: #fff9f1; border-bottom-color: rgba(255,249,241,.2); }
.language { border-color: rgba(255,249,241,.5); }
.language .active { background: #fff9f1; color: #142c46; }
.menu-toggle i { background: #fff9f1; }
@media (max-width: 820px) {
  .nav { background: #142c46; }
  .hero-landscape { padding-top: 130px; }
  .hero-background { width: 100%; object-position: 56% center; }
  .hero-landscape::before {
    background: linear-gradient(90deg, rgba(10,23,36,.8), rgba(10,23,36,.28)),
      linear-gradient(0deg, rgba(10,23,36,.45), transparent 45%, rgba(10,23,36,.38));
  }
}
@media (max-width: 600px) {
  .hero-landscape { align-items: flex-start; padding: 112px 22px 250px; min-height: max(800px, 100svh); }
  .hero-background { object-position: 52% center; }
  .hero-landscape::before {
    background: linear-gradient(180deg, rgba(10,23,36,.7) 0%, rgba(10,23,36,.76) 35%, rgba(10,23,36,.38) 58%, rgba(10,23,36,.04) 76%, rgba(10,23,36,.32)),
      linear-gradient(90deg, rgba(10,23,36,.15), transparent);
  }
  .hero-landscape h1 { font-size: clamp(42px, 12.5vw, 66px); line-height: 1; }
  .hero-landscape .hero-lead { font-size: 18px; line-height: 1.5; margin: 20px 0 24px; max-width: 350px; }
  .hero-landscape .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .hero-landscape .button { font-size: 10px; padding-inline: 18px; min-height: 48px; }
  .hero-landscape .button.text-button { padding-inline: 0; gap: 12px; }
  .hero-landscape .file-note { font-size: 10px; }
}

section.gift-edition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 44px clamp(24px, 8vw, 128px);
  background: linear-gradient(125deg, #f3e5d9, #fffaf5 60%);
  border-bottom: 1px solid var(--line);
}
.gift-copy { max-width: 640px; min-width: 0; }
.gift-copy .kicker { color: #80523b; margin-bottom: 16px; }
.gift-copy h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; }
.gift-copy .gift-lead { font: 20px/1.5 var(--serif); margin: 18px 0 22px; }
.gift-button { background: var(--ink); color: #fff9f1; gap: 20px; min-height: 48px; }
.gift-button:hover { background: #80523b; transform: translateY(-2px); }
.gift-button:focus-visible { outline: 2px solid #80523b; outline-offset: 4px; }
.gift-copy .gift-note { font-size: 12px; line-height: 1.5; color: #6f6a65; margin: 12px 0 0; }
.gift-cover { display: flex; justify-content: center; min-width: 0; }
.gift-cover img {
  display: block; width: 190px; max-width: 100%; height: auto; border-radius: 3px;
  box-shadow: 14px 20px 36px rgba(60,42,30,.2);
}
@media (max-width: 820px) {
  section.gift-edition { grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; padding-block: 36px; }
  .gift-button { font-size: 10px; padding-inline: 18px; letter-spacing: .06em; }
}
@media (max-width: 600px) {
  section.gift-edition { grid-template-columns: minmax(0, 1fr) 108px; padding: 32px 22px; gap: 20px; }
  .gift-copy .kicker { font-size: 9px; letter-spacing: .1em; margin-bottom: 12px; }
  .gift-copy .kicker::before { display: none; }
  .gift-copy h2 { font-size: clamp(24px, 6vw, 32px); }
  .gift-copy h2 br { display: none; }
  .gift-copy .gift-lead { font-size: 16px; line-height: 1.45; margin: 14px 0 18px; }
  .gift-button { width: 100%; padding: 10px 12px; gap: 8px; font-size: 9px; text-align: center; }
  .gift-button span:first-child { min-width: 0; }
  .gift-copy .gift-note { font-size: 11px; }
}

.hero-author {
  margin: 0 0 24px;
  color: #fff9f1;
  font: 24px/1.35 var(--serif);
  letter-spacing: .04em;
}
.hero-landscape .hero-actions { flex-wrap: wrap; gap: 16px 24px; }
.hero-landscape .hero-buy { color: #fff9f1; border: 1px solid rgba(255,249,241,.6); }
.hero-landscape .hero-buy:hover { background: rgba(255,249,241,.12); border-color: #fff9f1; }
.hero-landscape .hero-actions a:focus-visible { outline: 2px solid #f3c6a6; outline-offset: 4px; }
@media (max-width: 600px) {
  .hero-author { font-size: 21px; margin-bottom: 20px; }
  .hero-landscape .hero-actions { gap: 12px 18px; }
  .hero-landscape .hero-lead { font-size: 18px; }
}

[data-audio-action="play"] {
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  flex-shrink: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.audio-icon { display: block; width: 26px; height: 26px; pointer-events: none; }
[data-audio-action="play"] .icon-play { transform: translateX(-1px); }
[data-audio-action="play"] .icon-pause { display: none; }
[data-audio-action="play"][aria-pressed="true"] .icon-play { display: none; }
[data-audio-action="play"][aria-pressed="true"] .icon-pause { display: block; }
.play-main { box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: background .2s, box-shadow .2s; }
.play-main:hover { background: var(--cream); box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.mini-player .audio-icon { width: 22px; height: 22px; }

/* Numbered photo gallery and quotes share the book/author section layout. */
section.photo-gallery {
  position: relative;
  padding: 64px clamp(24px, 8vw, 128px);
  background: var(--paper2);
}
.gallery-heading, .gallery-grid, .quotes-heading, .quotes-copy { position: relative; z-index: 1; min-width: 0; }
.gallery-heading h2 { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.08; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.gallery-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #d7e4ee; border-radius: 3px; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform .3s; }
.gallery-photo:hover img { transform: scale(1.035); }
.gallery-photo:last-child img { object-position: center top; }
.gallery-expand { display: grid; place-items: center; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; background: rgba(16,31,48,.75); border-radius: 50%; color: #fff; }
.gallery-expand svg, .gallery-lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gallery-photo:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
section.quotes { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 7vw; border-bottom: 1px solid var(--line); }
.quotes .section-number, .photo-gallery .section-number { pointer-events: none; }
.quotes .quotes-list { max-width: none; margin: 0; }
.quotes .quotes-controls { max-width: none; }
.quotes-heading h2 { font-size: clamp(48px, 5.5vw, 84px); }
.gallery-lightbox {
  width: min(1000px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100svh - 32px); padding: 56px 24px 20px;
  color: #fff9f1; background: #101f30; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
}
.gallery-lightbox::backdrop { background: rgba(5,12,20,.88); }
.gallery-lightbox figure { margin: 0; text-align: center; }
.gallery-lightbox figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 220px); margin: 0 auto; object-fit: contain; }
.gallery-lightbox figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.75); }
.gallery-lightbox button { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; border: 1px solid rgba(255,255,255,.3); background: transparent; border-radius: 50%; cursor: pointer; }
.gallery-lightbox button:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.gallery-lightbox button:disabled { opacity: .3; cursor: default; }
.gallery-lightbox button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.gallery-close { position: absolute; right: 12px; top: 8px; }
.gallery-lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; }
#gallery-counter { min-width: 42px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  section.quotes { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  section.photo-gallery, section.quotes { padding: 48px 22px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .gallery-expand { width: 28px; height: 28px; right: 8px; bottom: 8px; }
  .gallery-expand svg { width: 16px; height: 16px; }
  .gallery-heading h2 { font-size: 36px; }
  .gallery-lightbox { width: calc(100vw - 20px); padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo img { transition: none; }
}

/* Photos and text move as one quote slide. */
section.quotes { display: block; }
.quotes-heading { margin-bottom: 36px; }
.quote-slide { scroll-snap-align: start; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; min-width: 0; }
.quote-photos { min-width: 0; }
.quote-photos .gallery-photo { width: 220px; max-width: 100%; aspect-ratio: 4 / 3; }
.quote-photos .gallery-photo img { object-position: center; }
.quotes-list .quote-slide blockquote { scroll-snap-align: none; padding-left: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
section.closing { min-height: auto; padding: 64px clamp(24px, 8vw, 128px) 110px; }
.contact-copy { max-width: 800px; }
.contact-copy h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.contact-copy p { margin: 24px 0 0; font-size: 18px; line-height: 1.7; color: rgba(245,250,255,.85); }
.contact-copy .contact-invite { color: var(--cream); font-weight: 600; }
.contact-socials { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.social-icon { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.social-icon svg { display: block; width: 27px; height: 27px; fill: currentColor; }
.social-telegram { background: #229ed9; }
.social-vk { background: #0077ff; }
.social-email { background: var(--cream); color: var(--ink); }
.social-email svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-icon:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.social-icon:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
@media (max-width: 820px) {
  .quote-slide { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .quotes-heading { margin-bottom: 28px; }
  .quote-slide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .quote-photos .gallery-photo { width: 180px; }
  .quotes-list .quote-slide blockquote { padding-left: 16px; font-size: 16px; line-height: 1.6; }
  section.closing { padding: 48px 22px 100px; }
  .contact-copy p { font-size: 16px; line-height: 1.65; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .social-icon { transition: none; }
}


/* Gentle entrance motion uses the existing reveal/visible states. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.delay-1 { --reveal-delay: 120ms; }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); }
.hero-background { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.12); will-change: transform; }
.section-number { transform: translate3d(0, var(--parallax-y, 0px), 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .hero-background, .section-number { transform: none; will-change: auto; }
}

/* Compact player directly below the hero, with a quiet contour pattern. */
section.listen {
  display: grid;
  grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 32px clamp(24px, 8vw, 128px);
  background-color: #102e3e;
  background-image:
    radial-gradient(ellipse at 90% 0%, rgba(74,166,169,.25), transparent 65%),
    repeating-radial-gradient(ellipse at 80% -50%, transparent 0px, transparent 34px, rgba(145,211,245,.06) 35px, rgba(145,211,245,.06) 36px, transparent 37px, transparent 70px),
    linear-gradient(110deg, #102636, #164552);
}
.listen .listen-head { display: block; min-width: 0; }
.listen .listen-head .kicker { margin-bottom: 12px; }
.listen .listen-head h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.listen .player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'resume resume' 'now transport' 'timeline timeline' 'times times' 'status status' 'catalog catalog';
  min-width: 0; margin: 0; padding: 20px 24px;
  background: rgba(6,21,31,.5); border: 1px solid rgba(145,211,245,.2); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.listen .resume-note { grid-area: resume; margin: 0 0 14px; padding: 8px 12px; font-size: 12px; }
.listen .now-playing { grid-area: now; padding: 0; gap: 14px; grid-template-columns: auto minmax(0, 1fr); }
.listen .now-playing > time { display: none; }
.listen .now-playing h3 { font-size: 23px; margin: 3px 0 0; }
.listen .play-main { width: 50px; height: 50px; }
.listen .play-main .audio-icon { width: 24px; height: 24px; }
.listen .audio-transport { grid-area: transport; margin: 0 0 0 16px; gap: 8px; align-items: center; }
.listen .audio-transport button { min-width: 44px; min-height: 44px; font-size: 13px; }
.listen .timeline { grid-area: timeline; margin: 18px 0 0; height: 4px; }
.listen .time-row { grid-area: times; padding-top: 9px; font-size: 11px; }
.listen .audio-status { grid-area: status; min-height: 0; margin: 12px 0 0; font-size: 12px; }
.listen .audio-catalog { grid-area: catalog; margin-top: 14px; border-color: rgba(145,211,245,.2); }
.listen .audio-catalog summary { padding: 11px 14px; min-height: 44px; font-size: 13px; }
.listen .audio-catalog .playlist { max-height: 300px; }
@media (max-width: 820px) {
  section.listen { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px; }
  .listen .listen-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
  .listen .listen-head .kicker { margin: 0; }
  .listen .listen-head h2 { font-size: 36px; }
}
@media (max-width: 600px) {
  section.listen { padding: 26px 22px; gap: 18px; }
  .listen .player {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'resume' 'now' 'timeline' 'times' 'transport' 'status' 'catalog';
    padding: 16px 18px;
  }
  .listen .audio-transport { margin: 14px 0 0; gap: 14px; }
  .listen .now-playing h3 { font-size: 22px; }
  .listen .timeline { margin-top: 16px; }
  .listen .audio-catalog { margin-top: 12px; }
}

@media (min-width: 1024px) {
  .hero-landscape .hero-copy { width: 100%; max-width: 900px; }
  .hero-landscape .hero-actions { flex-wrap: nowrap; gap: 20px; }
  .hero-landscape .hero-actions > .button { flex-shrink: 0; white-space: nowrap; }
}

.hero-background-video { opacity: 0; pointer-events: none; transform: none; will-change: auto; transition: opacity .6s ease; }
.hero-landscape.has-playing-video .hero-background-video { opacity: 1; }
.hero-landscape.video-background-enabled .hero-background { transform: none; will-change: auto; }
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero-background-video { display: none; }
}

.hero-landscape h1 em { font-size: clamp(34px, 4.8vw, 70px); }
@media (max-width: 600px) {
  .hero-landscape h1 em { font-size: clamp(28px, 7.4vw, 42px); }
}
