@font-face {
  font-family: "Rionaldo Angelo";
  src: url("fonts/Rionaldo-Angelo.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #4d4ddb;
  --indigo-deep: #2a2ad1;
  --periwinkle: #9a9aeb;
  --lavender: #e6e6fa;
  --lilac: #c0c0f2;
  --icon: #7373e3;
  --blush: #ede8ec;
  --ink: #1d1a33;
  --content: 1120px;
  --frame: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.5;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a { color: inherit; }

.script {
  margin: 0 0 32px;
  font-family: "Rionaldo Angelo", "Segoe Script", cursive;
  font-weight: 400;
  line-height: 0.95;
  text-align: center;
  text-wrap: balance;
}

.script-light { color: var(--lilac); font-size: clamp(3.4rem, 6.4vw, 5.4rem); }
.script-indigo { color: var(--indigo); font-size: clamp(3.2rem, 6vw, 5rem); }

.wrap {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
}

.band-indigo { background: var(--indigo); color: var(--lavender); }
.band-periwinkle { background: var(--periwinkle); color: var(--indigo-deep); }
.band-plain { background: #fff; }

.band-indigo,
.band-periwinkle,
.band-plain { padding: 84px 0; }

/* A picture and the copy beside it share one row, so the photo is exactly as tall as the text. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 28px;
}

.pair-media {
  position: relative;
  min-height: 100%;
  border: var(--frame) solid var(--periwinkle);
  background: #241f4a;
}

.pair-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pair-flip { grid-template-columns: 1fr minmax(220px, 300px); }
.pair-flip .pair-media { order: 2; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.hero > *,
.pair > *,
.about-rest > * { min-width: 0; }

.hero-story {
  display: grid;
  place-items: center;
  min-height: 640px;
  padding: 64px 40px;
  background:
    linear-gradient(rgba(154, 154, 235, 0.28), rgba(154, 154, 235, 0.28)),
    url("media/header-bg.jpg") center / cover no-repeat;
  color: var(--lavender);
}

.hero-story-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(440px, 100%);
}

.roles {
  margin: 0;
  display: grid;
  gap: 0.12em;
  text-align: center;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.socials a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--lavender);
  background: rgba(230, 230, 250, 0.16);
  border: 1px solid rgba(230, 230, 250, 0.55);
  border-radius: 50%;
}

.socials svg { width: 22px; height: 22px; fill: currentColor; }

.hero-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 72px 36px;
  background: var(--periwinkle);
  text-align: center;
}

.portrait-hero {
  width: min(42vh, 340px);
  height: min(42vh, 340px);
  border-radius: 50%;
  object-fit: cover;
  border: 12px solid var(--lavender);
}

.hero-identity h1 {
  margin: 8px 0 0;
  color: var(--indigo);
  font-family: "Rionaldo Angelo", "Segoe Script", cursive;
  font-size: clamp(4.6rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.85;
  text-wrap: balance;
}

.about-lead { grid-template-columns: 1.05fr 0.95fr; }

.about-lead .pair-media img { object-position: center 30%; }

.about-copy {
  background: var(--lilac);
  color: var(--indigo-deep);
  padding: 36px 40px;
  font-weight: 400;
}

.about-copy p { margin: 0; }
.lead-word { font-size: 1.45em; }
.about-copy a,
.about-rest a { font-weight: 700; }

.about-rest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  margin-top: 28px;
  padding: 36px 40px 28px;
  background: var(--lilac);
  color: var(--indigo-deep);
}

.about-rest p { margin: 0 0 1em; }

.testimonials { margin-top: 88px; }

.quote {
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 32px;
  margin-top: 28px;
  min-height: 280px;
}

.quote.pair-flip { grid-template-columns: 1fr minmax(220px, 300px); }

.quote .pair-media { border-color: var(--lilac); }
.quote .pair-media img { object-position: center 20%; }
.quote:first-of-type .pair-media img { object-position: 68% center; }

.quote p { margin: 0 0 0.7em; color: var(--blush); font-size: 1.12rem; }
.quote h3 { margin: 0; color: var(--lavender); font-size: 1.7rem; }
.quote .role { margin: 0.15em 0 0; color: var(--lavender); font-size: 1.15rem; }

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.videos video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1b1736;
  border: var(--frame) solid var(--lilac);
  object-fit: contain;
}

.carousel-wrap { margin-top: 36px; }

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.carousel-window { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
}

.slide {
  flex: 0 0 calc((100% - 36px) / 4);
  padding: 0;
  border: var(--frame) solid var(--lilac);
  background: #1b1736;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--indigo);
  background: var(--lavender);
  color: var(--indigo);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-arrow svg { width: 22px; height: 22px; }

.watch { align-items: stretch; }

.vimeo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1b1736;
  border: var(--frame) solid var(--lilac);
}

.watch .pair-media { border-color: var(--lilac); }

.vimeo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.questions-layout { grid-template-columns: 1.15fr 0.85fr; }

.questions-panel {
  background: var(--lavender);
  color: var(--indigo-deep);
  padding: 36px 40px;
}

.questions-panel ol {
  margin: 0;
  padding-left: 1.25em;
}

.questions-panel li { margin: 0.28em 0; }

.questions-layout .pair-media img { object-position: center 18%; }

.site-footer {
  background: var(--lavender);
  padding: 72px 0;
}

.footer-grid {
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  min-height: 540px;
}

.footer-portrait { border-color: var(--lilac); }
.footer-portrait img { object-position: center 15%; }

.socials-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 1;
}

.socials-footer a {
  background: var(--lavender);
  color: var(--icon);
  border-color: transparent;
}

.contact { min-width: 0; }

.contact-fields {
  display: grid;
  gap: 12px;
  height: 100%;
  align-content: center;
}

.contact label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid var(--periwinkle);
  border-radius: 8px;
  background: transparent;
  color: var(--indigo-deep);
  font: inherit;
  padding: 14px 16px;
}

.contact input::placeholder,
.contact textarea::placeholder { color: var(--icon); }

.contact textarea { min-height: 140px; resize: vertical; }

.contact button {
  justify-self: start;
  min-height: 48px;
  border: 3px solid var(--periwinkle);
  border-radius: 50px;
  background: transparent;
  color: var(--indigo);
  font: inherit;
  font-size: 1.15rem;
  padding: 8px 32px;
  cursor: pointer;
}

.contact button:hover,
.carousel-arrow:hover,
.socials a:hover { filter: brightness(0.94); }

.form-error { color: #dd4420; margin: 0; }

.form-thanks {
  margin: 0;
  color: #1f8a32;
  font-size: 1.8rem;
}

.colophon {
  background: var(--indigo-deep);
  color: var(--lavender);
  padding: 52px 0 calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}

.colophon-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.colophon-name {
  margin: 0;
  font-family: "Rionaldo Angelo", "Segoe Script", cursive;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 0.9;
  color: var(--lilac);
}

.colophon-roles,
.colophon-meta,
.copyright { margin: 0; }

.colophon-roles { font-size: 1.2rem; }

.colophon-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.colophon-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--lilac);
}

.lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100svh - 24px);
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop { background: rgba(17, 16, 40, 0.82); }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 120px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

:focus-visible {
  outline: 3px solid var(--indigo-deep);
  outline-offset: 3px;
}

.band-indigo :focus-visible,
.colophon :focus-visible,
.hero-story :focus-visible { outline-color: var(--lavender); }

.lightbox-close {
  align-self: flex-end;
  border: 0;
  background: var(--lavender);
  color: var(--indigo);
  font: inherit;
  min-height: 44px;
  padding: 8px 16px;
  cursor: pointer;
}

/* Wide monitors: the bands stay full bleed, and the column grows just enough to use the screen. */
@media (min-width: 1600px) {
  :root { --content: 1280px; }
  .quote,
  .quote.pair-flip {
    width: min(100%, 980px);
    margin-inline: auto;
  }
  .quote { grid-template-columns: 280px minmax(0, 1fr); }
  .quote.pair-flip { grid-template-columns: minmax(0, 1fr) 280px; }
  .portrait-hero { width: min(48vh, 460px); height: min(48vh, 460px); }
  .band-indigo,
  .band-periwinkle,
  .band-plain { padding: 104px 0; }
}

@media (min-width: 2000px) {
  :root { --content: 1420px; }
  body { font-size: 22px; }
  .portrait-hero { width: min(46vh, 520px); height: min(46vh, 520px); }
  .hero-identity h1 { font-size: clamp(6rem, 5.5vw, 8.75rem); }
  .roles { font-size: 2.4rem; }
}

/* Carousel counts stay in step with perView() in main.js. */
@media (max-width: 1400px) {
  .slide { flex-basis: calc((100% - 24px) / 3); }
}

@media (max-width: 1020px) {
  .slide { flex-basis: calc((100% - 12px) / 2); }
}

@media (max-width: 900px) {
  .hero,
  .pair,
  .about-rest,
  .videos,
  .quote,
  .quote.pair-flip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100svh;
    grid-template-rows: minmax(260px, 1fr) auto;
  }

  .hero-story { min-height: 0; padding: 48px 24px; }

  .pair-media {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .questions-layout .pair-media { aspect-ratio: 3 / 4; }
  .footer-grid { min-height: 0; }
  .footer-portrait { aspect-ratio: 4 / 5; }
  .pair-flip .pair-media { order: 0; }
  .hero-identity { padding: 48px 24px 56px; }
  .portrait-hero { width: min(52vw, 240px); height: min(52vw, 240px); }
  .hero-identity h1 { font-size: clamp(3.6rem, 16vw, 5.4rem); }
  .about-copy,
  .about-rest,
  .questions-panel { padding: 28px 22px; }
  .band-indigo,
  .band-periwinkle,
  .band-plain,
  .site-footer { padding: 56px 0; }
  body { font-size: 19px; }
  .videos { gap: 16px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, var(--content)); }
  .slide { flex-basis: 100%; }
  .roles { font-size: 1.55rem; }
  body { font-size: 18px; }
  .script-light { font-size: clamp(2.3rem, 9vw, 3.3rem); }
  .script-indigo { font-size: clamp(2.2rem, 8.5vw, 3.1rem); }
  .script { padding-inline: 0.12em; }
  .contact textarea { min-height: 120px; }
}

@media (max-width: 680px) and (max-height: 700px) {
  .hero { grid-template-rows: minmax(150px, 1fr) auto; }
  .hero-story { padding: 28px 16px; }
  .hero-identity { padding: 24px 16px 28px; }
  .portrait-hero { width: 140px; height: 140px; border-width: 8px; }
  .hero-identity h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
}

/* Sideways phones are short, so the hero stays two columns and the videos stay side by side. */
@media (max-height: 520px) and (min-width: 540px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    min-height: 100svh;
  }

  .hero-story { min-height: 0; padding: 16px 18px; }
  .hero-story-inner { gap: 12px; }
  .hero-identity { padding: 12px 16px; gap: 2px; }
  .portrait-hero {
    width: min(46vh, 150px);
    height: min(46vh, 150px);
    border-width: 6px;
  }
  .hero-identity h1 { font-size: clamp(2.1rem, 12vh, 3rem); }
  .roles { font-size: clamp(1.05rem, 4.2vh, 1.35rem); }
  .socials { gap: 8px; }
  .socials a { width: 40px; height: 40px; }
  .videos,
  .watch { grid-template-columns: 1fr 1fr; }
  .watch .pair-media { aspect-ratio: 16 / 9; }
  .band-indigo,
  .band-periwinkle,
  .band-plain,
  .site-footer { padding: 36px 0; }
  .testimonials { margin-top: 36px; }
  .script { margin-bottom: 18px; }
}

@media (max-width: 380px) {
  .hero-story { padding: 36px 16px; }
  .socials { gap: 8px; }
  .socials a { width: 44px; height: 44px; }
  .about-copy,
  .about-rest,
  .questions-panel { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
