/* ==========================================================================
   Nicholas Napoli, Esq. | laudyrealestate.com
   Global stylesheet. Static, no build step, no JavaScript required.

   Direction: image first. Full-screen photography, a transparent header,
   uppercase geometric display type, outline pill buttons, few words.

   Contents
   1. Tokens
   2. Base & typography
   3. Accessibility helpers
   4. Layout & sections
   5. Buttons & links
   6. Header & navigation
   7. Inner-page hero
   8. Home: full-screen cards
   9. Chapters: full-screen photos with one line of text
   10. Figures: a row of large numbers
   11. Editorial: statement, essay, photo band, photo pair
   12. Lists: neighborhood trio, checklist, sources
   13. Contact band
   14. Footer
   15. Preference & fallback queries
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --bg: #03070e;
  --bg-raised: #08111f;
  --navy-950: #050f22;
  --navy-900: #0a1c38;
  --navy-700: #183b6e;
  --navy-600: #24508f;
  --white: #ffffff;

  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.74);
  --text-faint: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.32);
  --sea: #b4cdea;

  /* Dark overlay on photography. Averages roughly rgba(0,0,0,0.5). */
  --overlay: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.52) 38%,
    rgba(0, 0, 0, 0.56) 68%,
    rgba(0, 0, 0, 0.75) 100%
  );

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --track-h1: 4px;
  --track-h2: 3px;
  --track-nav: 2px;
  --track-label: 0.28em;

  --radius-pill: 30px;

  --max: 1240px;
  --gutter: clamp(1rem, 5vw, 3rem);
  --header-h: 96px;
  --section-y: clamp(6rem, 13vw, 11rem);
  --head-gap: clamp(3rem, 6vw, 5rem);
}

/* 2. Base & typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: var(--track-h1);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: var(--track-h2);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

p,
ul,
ol,
dl {
  margin: 0 0 1.25em;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
  text-decoration-color: var(--text);
}

.eyebrow {
  display: block;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--sea);
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

.note {
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* 3. Accessibility helpers
   ========================================================================== */

/* Two-tone focus ring stays visible on dark sections and on photography. */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy-600);
  border-radius: 4px;
}

.btn:focus-visible {
  border-radius: var(--radius-pill);
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 4. Layout & sections
   ========================================================================== */
.container {
  width: min(var(--max), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--raised {
  background: var(--bg-raised);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--head-gap);
}

.section-head > :last-child {
  margin-bottom: 0;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* 5. Buttons & links
   ========================================================================== */

/* Transparent outline pill. Inverts to solid white on hover. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 1rem 2.6rem;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--track-nav);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #ffffff;
  color: var(--navy-950);
}

.btn--sm {
  min-height: 44px;
  padding: 0.7rem 1.7rem;
  font-size: 0.72rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.btn-row--center {
  justify-content: center;
}

/* 6. Header & navigation
   ========================================================================== */

/* Fixed, transparent header: split navigation around a centered name.
   At the top of a page it is fully transparent. Once the page scrolls, a
   soft top-down fade (not a solid bar) fades in so the links stay legible
   over content passing underneath. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--white);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -3rem;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 7, 14, 0.9) 0%, rgba(3, 7, 14, 0.6) 60%, rgba(3, 7, 14, 0) 100%);
  opacity: 0.6; /* browsers without scroll-driven animation keep a light fade */
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .site-header::before {
    opacity: 0;
    animation: header-fade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 50vh;
  }

  @keyframes header-fade {
    to {
      opacity: 1;
    }
  }
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "left logo right";
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.site-nav__group {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__group--left {
  grid-area: left;
}

.site-nav__group--right {
  grid-area: right;
  justify-content: flex-end;
}

.site-nav__group a {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.site-nav__group a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 2.5px; /* trailing letter-spacing */
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-nav__group a:hover::after,
.site-nav__group a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Centered name. Padding on the left balances the trailing letter-spacing
   so the word sits on the true center line. */
.wordmark {
  --logo-track: clamp(5px, 0.55vw, 9px);
  grid-area: logo;
  justify-self: center;
  padding: 0.5rem 0 0.5rem var(--logo-track);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.85rem + 0.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: var(--logo-track);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.wordmark:hover {
  color: var(--white);
}

@media (max-width: 1100px) {
  :root {
    --header-h: 112px;
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "logo logo"
      "left right";
    gap: 0.35rem 1rem;
    min-height: 0;
    padding-top: 1rem;
  }

  .site-nav__group {
    gap: 1.25rem;
  }

  .site-nav__group a {
    padding: 0.75rem 0;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 420px) {
  .wordmark {
    --logo-track: 3.5px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .site-nav__group {
    gap: 0.9rem;
  }

  .site-nav__group a {
    font-size: 0.64rem;
    letter-spacing: 1px;
  }
}

/* 7. Inner-page hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 4rem) 0 clamp(4.5rem, 12vh, 8rem);
  overflow: hidden;
  color: var(--white);
  background: #05080f;
}

/* Works for <img> and <video>. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.75) 100%);
}

.hero :is(h1, p, li),
.hero a:not(.btn) {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.75rem);
  font-weight: 300;
  line-height: 1.05;
}

.hero .lede {
  max-width: 40ch;
  margin: 1.5rem 0 0;
}

.hero__subtitle {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 0.75rem + 0.3vw, 1rem);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* Inline anchor links under a hero title. */
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__links a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  text-decoration: none;
}

.hero__links a:hover {
  text-decoration: underline;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0));
}

/* Portrait hero (About): darker on the text side, open on the subject. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero--portrait .hero__media {
  object-position: center 35%;
}

.hero--portrait::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.05) 100%);
}

.hero--portrait .hero__content > * {
  max-width: 620px;
}

@media (max-width: 700px) {
  .hero.hero--portrait {
    display: block;
    min-height: 0;
    padding: 0 0 1rem;
  }

  .hero--portrait::before {
    display: none;
  }

  .hero--portrait .hero__photo {
    position: relative;
    z-index: 0;
    aspect-ratio: 3 / 4;
  }

  .hero--portrait .hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 72%, var(--bg) 100%);
  }

  .hero--portrait .hero__media {
    object-position: center 30%;
  }

  .hero--portrait .hero__content {
    padding-top: 1rem;
  }
}

@media (max-width: 600px) {
  :root {
    --track-h1: 3px;
    --track-h2: 2px;
  }

  .hero__scroll {
    display: none;
  }

  .hero .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-row .btn {
    width: 100%;
  }
}

/* 8. Home: full-screen cards
   ========================================================================== */

/* The Home page is four full-screen cards that snap into place on scroll. */
html:has(.screens) {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
}

.screen {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100%; /* avoids a sideways scrollbar where 100vw includes it */
  height: 100vh;
  height: 100svh; /* mobile: excludes the browser toolbar */
  min-height: 34rem;
  padding: var(--header-h) var(--gutter) 4.5rem;
  overflow: hidden;
  background-color: #05080f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Dark gradient overlay so white type stays crisp on any photo. */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay);
}

/* Card photos. To change one, replace the file (keep the name). */
/* Card 1 plays a short drone clip; the poster frame shows until it loads. */
.screen--title {
  background-image: url("images/home-canal-poster.jpg");
}

.screen__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen--market {
  background-image: url("images/home-market.jpg");
}

.screen--waterfront {
  background-image: url("images/home-waterfront.jpg");
}

/* Card 4: Nick stands left of center, so the text sits on the right. */
.screen--nick {
  justify-content: flex-end;
  text-align: left;
  background-image: url("images/home-nick.jpg");
  background-position: 38% 25%;
}

.screen--nick::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.8) 100%);
}

.screen--nick .screen__content {
  max-width: min(600px, 46%);
}

.screen--nick h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
}

.screen--nick .lede {
  margin-inline: 0;
}

.screen--nick .btn-row {
  justify-content: flex-start;
}

.screen__subtitle {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.screen__content {
  max-width: 920px;
}

.screen :is(h1, h2, p, .eyebrow) {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.screen h1 {
  margin: 0;
  font-size: clamp(2.3rem, 1.1rem + 5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
}

.screen h2 {
  margin: 0;
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4.75rem);
  font-weight: 300;
  line-height: 1.08;
}

.screen .lede {
  max-width: 44ch;
  margin: 1.75rem auto 0;
}

.screen .btn-row {
  justify-content: center;
}

.site-footer {
  scroll-snap-align: end;
}

@media (max-width: 600px) {
  .screen .btn-row {
    flex-direction: column;
    align-items: center;
  }

  .screen .btn-row .btn {
    width: min(100%, 20rem);
  }
}

/* Narrow or portrait screens: vertical photo, text below his face. */
@media (max-width: 900px), (orientation: portrait) {
  .screen--nick {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background-image: url("images/home-nick-tall.jpg");
    background-position: center 30%;
  }

  .screen--nick::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.9) 100%);
  }

  .screen--nick .screen__content {
    max-width: 920px;
  }

  .screen--nick .lede {
    margin-inline: auto;
  }

  .screen--nick .btn-row {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .screen--nick {
    padding-bottom: 2.5rem;
  }

  .screen--nick .eyebrow {
    display: none;
  }

  .screen--nick h2 {
    font-size: 2rem;
  }
}

/* 9. Chapters: full-screen photos with one line of text
   ========================================================================== */
.chapter {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 11vh, 7rem);
  overflow: hidden;
  color: var(--white);
  background: #05080f;
}

.chapter__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.8) 100%);
}

.chapter__content {
  max-width: 680px;
}

.chapter--right .chapter__content {
  margin-left: auto;
  text-align: right;
}

.chapter :is(h2, p, li) {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chapter h2 {
  margin: 0;
  font-size: clamp(2.3rem, 1.2rem + 4.2vw, 5.25rem);
  font-weight: 300;
  line-height: 1.05;
}

.chapter p {
  max-width: 36ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.55;
}

.chapter--right p {
  margin-left: auto;
}

/* Short facts in one line, separated by hairlines. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: var(--track-nav);
  line-height: 1.5;
  text-transform: uppercase;
}

.chapter--right .facts {
  justify-content: flex-end;
}

.facts li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 1.1rem;
  vertical-align: -0.1em;
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 600px) {
  .chapter--right .chapter__content {
    text-align: left;
  }

  .chapter--right p {
    margin-left: 0;
  }

  .facts {
    flex-direction: column;
  }

  .chapter--right .facts {
    justify-content: flex-start;
  }

  .facts li + li::before {
    display: none;
  }
}

/* 10. Figures: a row of large numbers
   ========================================================================== */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.figure__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3.6vw, 5.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}

.figure__label {
  max-width: 22ch;
  margin: 1.1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 11. Editorial: statement, essay, photo band, photo pair
   ========================================================================== */
.statement {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.6rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--text);
  text-wrap: balance;
}

.essay {
  max-width: 62ch;
  margin-inline: auto;
}

.essay p {
  margin: 0 0 1.6em;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  line-height: 1.85;
}

.essay > :last-child {
  margin-bottom: 0;
}

.photo-band {
  height: 82vh;
  min-height: 22rem;
  margin: 0;
  overflow: hidden;
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
}

.essay + .duo {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.duo figure {
  margin: 0;
  overflow: hidden;
}

.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo__tall img {
  aspect-ratio: 4 / 5;
}

.duo__wide img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 700px) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 12. Lists: neighborhood trio, checklist, sources
   ========================================================================== */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 5vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trio h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 3px;
}

.trio p {
  margin: 0;
}

.trio .facts {
  flex-direction: column;
  margin-top: 1.5rem;
  color: var(--text);
}

.trio .facts li + li::before {
  display: none;
}

@media (max-width: 900px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checklist {
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(2rem, 6vw, 6rem);
}

.checklist li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  color: var(--text);
}

@media (max-width: 700px) {
  .checklist {
    columns: 1;
  }
}

.sources {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-faint);
}

.sources h2 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  color: var(--text-soft);
}

.sources ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 3rem;
}

.sources li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.sources a {
  color: var(--text-soft);
}

.sources p {
  margin: 0;
}

@media (max-width: 700px) {
  .sources ul {
    columns: 1;
  }
}

/* 13. Contact band
   ========================================================================== */
.band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
  text-align: center;
  background: #05080f;
}

.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
}

.band h2 {
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem);
  font-weight: 300;
}

.band p {
  max-width: 46ch;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.band :is(h2, p) {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.band .btn-row {
  justify-content: center;
}

/* 14. Footer
   ========================================================================== */
.site-footer {
  padding-block: clamp(5rem, 9vw, 7rem) 2.5rem;
  background: #010306;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.footer-wordmark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text);
}

.footer-heading {
  margin: 0 0 1.1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--track-label);
  color: var(--sea);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.6rem;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 2.5rem;
  align-items: start;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-legal p {
  margin: 0 0 0.5rem;
}

.eho {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: var(--track-nav);
  line-height: 1.4;
  text-transform: uppercase;
}

.eho svg {
  flex: none;
  width: 40px;
  height: 40px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-legal {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 15. Preference & fallback queries
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  /* Background video gives way to its poster image. */
  .screen__video,
  video.hero__media {
    display: none;
  }
}

@media (forced-colors: active) {
  .btn {
    border: 1px solid CanvasText;
  }
}

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .band,
  .skip-link,
  .hero__media,
  .hero__scroll,
  .screen__video,
  .chapter__media,
  .photo-band,
  .duo {
    display: none !important;
  }

  .hero,
  .chapter,
  .screen {
    min-height: 0;
    height: auto;
    padding: 1rem 0;
    background: none;
  }

  .hero::before,
  .chapter::before,
  .screen::before {
    display: none;
  }

  * {
    color: #000 !important;
    text-shadow: none !important;
  }
}
