/* ==========================================================================
   ST Carter Photography — styles
   Sections: 1 tokens · 2 base · 3 type · 4 buttons · 5 header/nav · 6 footer
             7 shared blocks · 8 home · 9 portfolio · 10 lightbox · 11 services
             12 about · 13 contact · 14 thanks/404 · 15 motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #6B6A66;
  --line: #E2E0DA;
  --dark: #0E0E0E;
  --accent: #C8102E;

  --on-dark: #FFFFFF;
  --on-dark-muted: #B4B2AB;
  --on-dark-line: rgba(255, 255, 255, 0.16);

  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 72px;
  --gutter: 8px;
  --pad: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 10vw, 152px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::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) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.lb :focus-visible,
.hero :focus-visible {
  outline-color: #FFFFFF;
}

::selection { background: var(--ink); color: #FFFFFF; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.section--surface { background: var(--surface); }

main { display: block; }
.page-top { padding-top: var(--header-h); }

/* 3. Type ------------------------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-wrap: balance;
}

.h-hero { font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; }
.h-page { font-size: clamp(2.75rem, 7vw, 6rem); }
.h-section { font-size: clamp(2.25rem, 5vw, 4.25rem); }
.h-sub { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; line-height: 1.02; }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.on-dark .eyebrow, .eyebrow--light { color: #FFFFFF; }

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; }
.prose { max-width: 65ch; }
.prose p + p { margin-top: 1.1em; }
.prose + .btn-row { margin-top: 32px; }
.muted { color: var(--muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 9px);
  background-size: 100% 1px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.text-link:hover { color: var(--accent); background-size: 100% 2px; }
.on-dark .text-link:hover { color: #FFFFFF; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.btn--light:hover { background: transparent; color: #FFFFFF; }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #FFFFFF; }

.btn--outline-light { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn--outline-light:hover { background: #FFFFFF; color: var(--ink); }

.btn--small { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Header and navigation ------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--ink);
  color: #FFFFFF;
  transition: background-color 0.3s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* Home: transparent over the hero until the page scrolls */
.home .site-header { background: transparent; }
.home .site-header.is-solid,
.nav-open .site-header { background: var(--ink); }

.wordmark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding-block: 6px;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wordmark__tag {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}
.wordmark { align-items: center; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav-toggle__bars { top: 23px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 859px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--pad) 40px;
    background: var(--dark);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s, visibility 0s;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .site-nav__link {
    min-height: 64px;
    font-family: var(--font-head);
    font-size: clamp(2.75rem, 13vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
  }
  .site-nav__link::after { bottom: 4px; height: 3px; }
  .site-nav__cta { margin-top: 28px; }
  .site-nav__cta .btn { min-height: 56px; padding-inline: 32px; font-size: 1.25rem; }
  .wordmark__name { font-size: 1.5rem; }
}

@media (max-width: 359px) {
  .wordmark__tag { display: none; }
}

body.nav-open, body.lb-open { overflow: hidden; }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: #FFFFFF;
  padding-block: clamp(48px, 6vw, 80px) 32px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--on-dark-line);
}
.site-footer .wordmark__name { font-size: 2.25rem; }
.site-footer__tagline { margin-top: 10px; color: var(--on-dark-muted); font-size: 0.9375rem; }
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  list-style: none;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-footer__bottom {
  padding-top: 24px;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

/* 7. Shared blocks --------------------------------------------------------- */
.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 56px); }
.page-head .lede { margin-top: 28px; max-width: 60ch; }

/* Photo tile: a link/button that crops its image and zooms gently on hover */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #DAD8D2;
  color: #FFFFFF;
  text-decoration: none;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
a.tile:hover img, a.tile:focus-visible img { transform: scale(1.03); }
a.tile:focus-visible { outline-offset: -3px; outline-color: #FFFFFF; box-shadow: inset 0 0 0 6px var(--accent); }
a.tile[data-lb] { cursor: zoom-in; }

/* Dark call-to-action band */
.cta-band {
  background: var(--dark);
  color: #FFFFFF;
  padding-block: clamp(72px, 9vw, 136px);
  border-bottom: 1px solid var(--on-dark-line);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.cta-band h2 { max-width: 14ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Numbered list used on About and Services */
.numbered {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  list-style: none;
  counter-reset: n;
}
.numbered > li {
  counter-increment: n;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.numbered h3 { margin-bottom: 10px; }
.numbered p { color: var(--muted); font-size: 1rem; }
@media (max-width: 899px) { .numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .numbered { grid-template-columns: 1fr; gap: 32px; } }

.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

/* 8. Home ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  color: #FFFFFF;
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 42%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0) 170px),
    linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(40px, 7vw, 96px);
}
.hero h1 { max-width: 9.5em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero .eyebrow { margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero .btn-row { margin-top: clamp(28px, 4vw, 44px); }
@media (orientation: portrait) {
  .hero__media img { object-position: 50% 22%; }
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro .text-link { margin-top: 20px; }
@media (max-width: 799px) { .intro { grid-template-columns: 1fr; } }

/* Selected work: three columns of two photos, widths tuned so the bottoms line up */
.selected {
  display: grid;
  grid-template-columns: 33fr 30.4fr 36.6fr;
  gap: var(--gutter);
  aspect-ratio: 1000 / 832;
}
.selected__col {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  min-height: 0;
}
.selected .tile { flex: var(--r, 1) 1 0; min-height: 0; }
.selected .tile img { position: absolute; inset: 0; }
.selected-more { margin-top: 28px; text-align: right; }

@media (max-width: 699px) {
  .selected { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .selected__col { display: contents; }
  .selected .tile { flex: none; aspect-ratio: 3 / 4; }
  .selected .tile--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; order: 2; }
  .selected .tile--square { grid-column: 1 / -1; aspect-ratio: 1 / 1; order: 4; }
  .selected .tile--m1 { order: 1; }
  .selected .tile--m3 { order: 3; }
  .selected-more { text-align: left; }
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.cat { aspect-ratio: 3 / 4; }
.cat img { object-position: 50% 25%; }
.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 55%);
}
.cat__label {
  position: absolute;
  left: clamp(18px, 2.4vw, 36px);
  right: clamp(18px, 2.4vw, 36px);
  bottom: clamp(16px, 2.2vw, 32px);
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cat__name {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.cat__go {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cat__go::after { content: " \2192"; display: inline-block; transition: transform 0.3s var(--ease); }
.cat:hover .cat__go::after { transform: translateX(5px); }
@media (max-width: 699px) {
  .cats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 5 / 4; }
}

.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 78vh, 860px);
  background: var(--dark);
  color: #FFFFFF;
  overflow: hidden;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.2) 100%);
}
.band__quote {
  position: relative;
  z-index: 1;
  max-width: 13em;
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  line-height: 0.95;
  padding-block: 64px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  list-style: none;
}
.facts li {
  padding: 28px clamp(16px, 2.5vw, 40px) 28px 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.facts li + li { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--line); }
.facts-more { margin-top: 12px; }
@media (max-width: 699px) {
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 22px 0; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* 9. Portfolio ------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.chip {
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--ink); color: #FFFFFF; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.pf-grid { column-count: 3; column-gap: var(--gutter); }
.pf-grid .tile {
  margin-bottom: var(--gutter);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.pf-grid .tile img { height: auto; }
.pf-count { margin-top: 20px; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 999px) { .pf-grid { column-count: 2; } }
@media (max-width: 419px) { .pf-grid { column-count: 1; } }

/* 10. Lightbox ------------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  background: rgba(8, 8, 8, 0.97);
  color: #FFFFFF;
  touch-action: pan-y;
  animation: lb-in 0.25s ease both;
}
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb__count {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: center;
  padding-left: 24px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lb__btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb__btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.lb__close { grid-column: 3; grid-row: 1; place-self: center; }
.lb__prev { grid-column: 1; grid-row: 2; place-self: center; }
.lb__next { grid-column: 3; grid-row: 2; place-self: center; }
.lb__stage {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}
.lb__stage { position: relative; }
.lb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb__img.is-swapping { animation: lb-in 0.25s ease both; }
.lb__caption {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 16px 24px 24px;
  color: #D9D7D1;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 699px) {
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; grid-template-rows: 60px minmax(0, 1fr) auto 72px; }
  .lb__count { padding-left: 20px; }
  .lb__close { grid-column: 2; justify-self: end; margin-right: 4px; }
  .lb__count { grid-column: 2; }
  .lb__caption { grid-row: 3; padding: 14px 20px 4px; }
  .lb__prev, .lb__next { grid-row: 4; grid-column: 2; }
  .lb__prev { justify-self: start; margin-left: 8px; }
  .lb__next { justify-self: end; margin-right: 8px; }
}

/* 11. Services ------------------------------------------------------------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}
.package {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.package__summary { margin-top: 14px; color: var(--muted); font-size: 1rem; }
.package ul {
  margin-block: 24px 28px;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.package li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.package__foot { margin-top: auto; }
.package__price {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
}
@media (max-width: 999px) { .packages { grid-template-columns: 1fr; max-width: 640px; } }

.faq { max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 65ch; padding: 0 56px 26px 0; color: #3B3A37; }

/* 12. About ---------------------------------------------------------------- */
.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(calc(100vh - var(--header-h)), 900px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
}
.split-hero__media { position: relative; min-height: 420px; background: #DAD8D2; }
.split-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.split-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 6vw, 96px) var(--pad);
}
.split-hero__text .lede { margin-top: 24px; max-width: 34ch; }
@media (max-width: 799px) {
  .split-hero { grid-template-columns: 1fr; min-height: 0; }
  .split-hero__media { min-height: 0; aspect-ratio: 4 / 5; }
  .split-hero__text { order: -1; padding-block: 48px 36px; }
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(32px, 6vw, 96px);
  padding-block: clamp(36px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
}
.story:first-child { border-top: 0; padding-top: 0; }
.story:last-child { padding-bottom: 0; }
@media (max-width: 799px) { .story { grid-template-columns: 1fr; } }

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.strip .tile { aspect-ratio: 4 / 5; }
.strip .tile img { object-position: 50% 30%; }
@media (max-width: 559px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .tile:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
}

/* 13. Contact -------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(56px, 8vw, 112px) var(--section);
}
.contact__intro .lede { margin-top: 24px; max-width: 40ch; }
.details {
  margin-top: 32px;
  list-style: none;
  border-top: 2px solid var(--ink);
}
.details li {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-block: 6px;
  border-bottom: 1px solid var(--line);
}
.contact__photo { margin-top: 40px; aspect-ratio: 4 / 5; overflow: hidden; background: #DAD8D2; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 899px) {
  .contact { grid-template-columns: 1fr; }
  .contact__photo { display: none; }
}

.form {
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #8D8B85;
  border-radius: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: var(--ink);
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}
.form__note { color: var(--muted); font-size: 0.875rem; }
.form__status { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 0.9375rem; }
.form__status[hidden] { display: none; }
@media (max-width: 559px) {
  .form__grid { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
}

/* 14. Thanks and 404 ------------------------------------------------------- */
.notice {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dark);
  color: #FFFFFF;
  overflow: hidden;
}
.notice > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.notice::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.25) 100%);
}
.notice__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.notice .lede { margin-top: 20px; max-width: 36ch; }
.notice .btn-row { margin-top: 32px; align-items: center; gap: 12px 28px; }

/* 15. Motion --------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.pf-grid .tile { animation: pf-in 0.5s var(--ease) both; }
@keyframes pf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  a.tile:hover img, a.tile:focus-visible img { transform: none; }
}

@media print {
  .site-header, .cta-band, .lb { display: none; }
  .page-top { padding-top: 0; }
}
