/* Maestri Pools — Young Serif + Montserrat. Full-bleed still, lower-left paper dock, ledger panes. */
:root {
  --navy: #1A2F5A;
  --paper: #F4F0E6;
  --wash: #E8E2D4;
  --ink: #1A2F5A;
  --on-navy: #F4F0E6;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1240px;
  --dock-h: 0px;
  --radius: 28px;
  --shadow-island: 0 28px 64px rgba(26, 47, 90, .18);
  --shadow-card: 0 18px 44px rgba(26, 47, 90, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  background: url("assets/grain.png");
  opacity: .04;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3 {
  font-family: "Young Serif", "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(3.1rem, 6.4vw, 5.6rem); line-height: 0.94; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 0.98; }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.12; }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.eyebrow--on-navy { color: var(--on-navy); opacity: .82; }
.subhead { max-width: 40rem; margin-top: 16px; }
.section-head { margin-bottom: 48px; max-width: 46rem; }
section[id] { scroll-margin-top: 96px; }

.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--navy); color: var(--on-navy);
  padding: 8px 12px; z-index: 90;
}
.skip:focus { top: 12px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 26px;
  font-family: "Montserrat", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary {
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 10px 24px rgba(26, 47, 90, .22);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn--ghost:hover { transform: translateY(-2px); }
.btn--on-navy {
  background: var(--paper);
  color: var(--navy);
}
.btn--on-navy:hover { transform: translateY(-2px); }
.btn--ghost-on-navy {
  background: transparent;
  color: var(--on-navy);
  box-shadow: inset 0 0 0 2px rgba(244, 240, 230, .55);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.more .arr { transition: transform .18s var(--ease); }
.more:hover .arr { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(26, 47, 90, .08);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand__mark {
  width: 88px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.brand__name {
  font-family: "Young Serif", serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { opacity: .62; }
.header__call { flex: 0 0 auto; }

.m-nav { display: none; position: relative; flex: 0 0 auto; }
.m-nav summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 12px;
  cursor: pointer;
}
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav summary span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.m-nav[open] summary span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.m-nav[open] summary span:nth-child(2) { opacity: 0; }
.m-nav[open] summary span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.m-nav__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, 82vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px;
}
.m-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.m-nav__panel .btn { margin-top: 8px; justify-content: center; }

/* ---------- hero: full-bleed still + lower-left paper dock ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 900px);
  background: var(--navy);
  padding: 0;
}
.hero__film {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}
.hero__film picture,
.hero__film img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 46%;
  max-width: none;
}
.hero__film img {
  transition: transform .7s var(--ease);
}
.hero__stage {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: 48px 0 56px;
}
.hero__dock {
  width: min(32rem, 100%);
  padding: 32px 36px 34px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-island);
}
.hero h1 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
}
.hero .lede {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- trust ---------- */
.trust {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0;
}
.trust__line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .92rem;
  font-weight: 500;
}
.trust__line span { opacity: .88; }

/* ---------- services: ledger panes ---------- */
.services { padding: 100px 0; background: var(--paper); }
.ledgers {
  display: grid;
  gap: 20px;
}
.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
  transform: scale(0.92);
  transform-origin: center center;
  transition: transform .62s var(--ease), box-shadow .62s var(--ease);
}
.ledger.is-on {
  transform: scale(1);
  box-shadow: var(--shadow-island);
  z-index: 2;
}
.ledger__copy {
  display: flex;
  flex-direction: column;
  padding: 28px 28px;
  min-width: 0;
  transition: padding .62s var(--ease);
}
.ledger.is-on .ledger__copy { padding: 48px 40px; }
.ledger h3 { transition: font-size .62s var(--ease); }
.ledger.is-on h3 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); }
.ledger__n {
  font-family: "Young Serif", serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  opacity: .55;
}
.ledger__copy p { margin-top: 12px; flex: 1 1 auto; }
.ledger__still {
  margin: 0;
  background: var(--navy);
  min-width: 0;
  overflow: hidden;
}
.ledger__still picture,
.ledger__still img {
  display: block;
  width: 100%;
  height: 100%;
}
.ledger__still img {
  min-height: 260px;
  object-fit: cover;
  object-position: 50% 45%;
  max-width: none;
  transition: transform .7s var(--ease), min-height .62s var(--ease), filter .62s var(--ease);
}
.ledger.is-on .ledger__still img { min-height: 460px; }
.ledger:not(.is-on) .ledger__still img { filter: saturate(0.78) brightness(0.94); }

/* ---------- about ---------- */
.about {
  padding: 100px 0;
  background: var(--wash);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}
.about__copy p + p { margin-top: 18px; }
.about__pillars {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.about__pillars li {
  padding: 14px 18px;
  background: var(--paper);
  border-radius: var(--radius);
  font-family: "Young Serif", serif;
  letter-spacing: -0.02em;
}
.about__still {
  margin: 0;
  background: var(--navy);
  overflow: hidden;
  border-radius: 0;
}
.about__still picture {
  display: block;
  width: 100%;
}
.about__still img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 1134;
  object-fit: contain;
  object-position: 50% 50%;
  max-width: none;
}
.about__still figcaption {
  padding: 14px 4px 0;
  background: var(--wash);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
}

/* ---------- process ---------- */
.process { padding: 100px 0; background: var(--paper); }
.beats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.beats li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 32px;
  min-width: 0;
}
.beats__n {
  display: block;
  font-family: "Young Serif", serif;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.beats p { margin-top: 10px; }

/* ---------- reviews: even 2x2 paper notes ---------- */
.reviews { padding: 100px 0; background: var(--paper); }
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
}
.quote {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 22rem;
  min-width: 0;
  margin: 0;
  padding: 32px 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.quote p {
  flex: 1 1 auto;
  font-family: "Young Serif", serif;
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.quote footer {
  margin-top: 18px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- styles pair + gallery mosaic ---------- */
.styles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.styles article { min-width: 0; }
.styles figure {
  margin: 0 0 16px;
  background: var(--navy);
  overflow: hidden;
}
.styles img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: none;
  transition: transform .7s var(--ease);
}
.styles h3 { margin-bottom: 6px; }
.gallery { padding: 0 0 100px; background: var(--paper); }
.gallery__mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.gallery__mosaic figure { margin: 0; background: var(--navy); overflow: hidden; min-width: 0; }
.gallery__mosaic--wide { grid-row: 1 / -1; }
.gallery__mosaic img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  max-width: none;
  transition: transform .7s var(--ease);
}
.gallery__mosaic--wide img { min-height: 520px; }

/* ---------- cta ---------- */
.cta {
  padding: 100px 0;
  background: var(--navy);
  color: var(--on-navy);
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.cta h2 { color: var(--on-navy); }
.cta p { margin-top: 16px; max-width: 38rem; }
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta__still {
  margin: 0;
  overflow: hidden;
  background: #0d182c;
}
.cta__still img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  max-width: none;
}

/* ---------- faq ---------- */
.faq { padding: 100px 0; background: var(--wash); }
.faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.faq__item {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 16px 22px;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { padding: 0 22px 20px; }

/* ---------- contact ---------- */
.contact { padding: 100px 0; background: var(--paper); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
}
.contact__phone {
  display: block;
  margin: 12px 0 8px;
  font-family: "Young Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--navy);
}
.contact__phone--alt {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
.contact__place { margin-bottom: 16px; }
.contact__trust {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
}
.contact__trust li {
  padding: 10px 16px;
  background: var(--wash);
  border-radius: var(--radius);
}
.form {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.form__field { display: grid; gap: 6px; }
.form__field span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__submit { width: 100%; }
.form__note { font-size: .85rem; }
.form__note a { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: 72px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 48px;
}
.footer__name {
  font-family: "Young Serif", serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
}
.footer__head {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .72;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer__col a {
  color: var(--on-navy);
  text-decoration: none;
  min-height: 32px;
}
.footer__phone {
  font-family: "Young Serif", serif;
  font-size: 1.35rem;
  color: var(--on-navy);
  text-decoration: none;
}
.footer__text { opacity: .82; }
.footer__base {
  padding-top: 22px;
  box-shadow: inset 0 1px 0 rgba(244, 240, 230, .16);
  font-size: .8rem;
  opacity: .7;
}
.footer__mark {
  width: 88px;
  height: 48px;
  object-fit: contain;
}

.dock { display: none; }

.rise { animation: riseScale .62s var(--ease) both; }
.d1 { animation-delay: .06s; }
.d2 { animation-delay: .14s; }

@keyframes riseScale {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal,
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity .62s var(--ease), transform .62s var(--ease);
  }
  .reveal.is-in,
  .reveal-stagger > *.is-in {
    opacity: 1;
    transform: none;
  }
  .reveal-stagger > *:nth-child(2).is-in { transition-delay: .08s; }
  .reveal-stagger > *:nth-child(3).is-in { transition-delay: .16s; }
  .reveal-stagger > *:nth-child(4).is-in { transition-delay: .22s; }
  .ledger:hover .ledger__still img,
  .styles article:hover img,
  .gallery__mosaic figure:hover img,
  .hero__film:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal, .reveal-stagger > *,
  .ledger, .ledger.is-on,
  .ledger__still img, .styles img, .gallery__mosaic img, .hero__film img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ledger,
  .ledger.is-on { box-shadow: var(--shadow-card); }
  .ledger__still img,
  .ledger.is-on .ledger__still img { min-height: 340px; }
  .ledger:not(.is-on) .ledger__still img { filter: none; }
  .ledger__copy,
  .ledger.is-on .ledger__copy { padding: 40px 36px; }
}

@media (max-width: 1100px) {
  .header__call { display: none; }
}

@media (max-width: 1024px) {
  .about__grid,
  .contact__grid,
  .cta__grid,
  .quotes,
  .styles,
  .gallery__mosaic,
  .faq__list,
  .beats { grid-template-columns: minmax(0, 1fr); }
  .quote { min-height: 0; }
  .gallery__mosaic { grid-template-rows: none; }
  .gallery__mosaic--wide { grid-row: auto; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger__still img { min-height: 220px; }
  .ledger.is-on .ledger__still img { min-height: 320px; }
  .ledger__copy,
  .ledger.is-on .ledger__copy { padding: 28px 22px; }
  .hero { min-height: min(78vh, 820px); }
  .hero__dock { padding: 28px 26px 30px; }
  .about__still img { min-height: 0; }
  .gallery__mosaic--wide img,
  .gallery__mosaic img { min-height: 280px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav, .header__call { display: none; }
  .m-nav { display: block; }
  .header__inner,
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .hero { min-height: 72vh; }
  .hero__film img { object-position: 58% 82%; }
  .hero__stage { padding: 16px 0 16px; }
  .hero__dock { padding: 20px 18px 22px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.25rem); }
  .hero__ctas .btn--ghost { display: none; }
  .hero__ctas .btn { width: 100%; }
  .services, .about, .process, .reviews, .cta, .faq, .contact { padding: 64px 0; }
  .gallery { padding-bottom: 64px; }
  .ledger__copy { padding: 28px 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --dock-h: 64px; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--paper);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -8px 24px rgba(26, 47, 90, .1);
  }
  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--radius);
  }
  .dock__call { background: var(--navy); color: var(--on-navy); }
  .dock__quote { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
}
