/* Sean Thurston Photography: shared styles for every page. Edit here, then run node tools/build-assets.mjs */
/* ===== BRAND FONTS (self-hosted WOFF2) ===== */
@font-face {
  font-family: 'Versailles';
  src: url('/fonts/versailles-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Borgia Pro';
  src: url('/fonts/borgia-pro-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Borgia Pro';
  src: url('/fonts/borgia-pro-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Borgia Pro';
  src: url('/fonts/borgia-pro-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Borgia Pro';
  src: url('/fonts/borgia-pro-bold-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Borgia Pro', Georgia, serif;
  color: #1a1a1a;
  background: #fafaf7;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Versailles', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}
.eyebrow {
  font-family: 'Versailles', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #222c45;
}

/* ===== SKIP LINK (A11y) ===== */
.skip { position: absolute; left: -9999px; top: 0; background: #222c45; color: #fff; padding: 12px 20px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e8e6df;
}
.nav {
  max-width: 1320px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 72px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 60px; } }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: #1a1a1a;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #222c45; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: #222c45; transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: #222c45; color: #fafaf7 !important;
  padding: 11px 22px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: #1a2236; }
.nav-cta::after { display: none; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #1a1a1a; }
.hamburger svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fafaf7; border-bottom: 1px solid #e8e6df; padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 32px; width: 100%; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 32px; text-align: center; }
  .hamburger { display: block; }
}

/* ===== HERO ===== */
.hero { padding: 80px 32px 100px; max-width: 1320px; margin: 0 auto; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-family: 'Borgia Pro', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #222c45;
}
.hero-lede {
  font-size: 19px;
  color: #4a4a45;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  font-family: 'Versailles', Georgia, serif;
  background: #222c45; color: #fafaf7;
  padding: 18px 32px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: #1a2236; transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  font-family: 'Versailles', Georgia, serif;
  color: #222c45;
  padding: 18px 8px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.btn-ghost:hover { border-color: #222c45; }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e6df;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(34, 44, 69, 0.04));
  pointer-events: none;
}
.hero-image-tag {
  font-family: 'Versailles', Georgia, serif;
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(34, 44, 69, 0.92); color: #fafaf7;
  padding: 10px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
  .hero { padding: 56px 24px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); }
  .hero-image { max-width: 520px; margin: 0 auto; }
}

/* ===== TRUST STRIP ===== */
.trust {
  background: #222c45; color: #fafaf7;
  padding: 32px;
}
.trust-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  align-items: center;
}
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-item .icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item .icon svg { width: 24px; height: 24px; }
.trust-text { font-size: 14px; line-height: 1.4; }
.trust-text strong { display: block; font-weight: 600; font-size: 15px; }
.trust-text span { color: rgba(250, 250, 247, 0.7); font-size: 13px; }
.stars { display: flex; gap: 2px; color: #e6c97a; margin-bottom: 2px; }
.stars svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .trust-inner { grid-template-columns: 1fr; gap: 20px; }
  .trust-item { justify-content: flex-start; }
}

/* ===== SECTION BASE ===== */
.section { padding: 110px 32px; max-width: 1320px; margin: 0 auto; }
.section-header { max-width: 720px; margin-bottom: 64px; }
.section-header .eyebrow { margin-bottom: 20px; }
.section-header h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-header p {
  font-size: 19px; color: #4a4a45; line-height: 1.55;
}

@media (max-width: 760px) {
  .section { padding: 72px 24px; }
  .section-header { margin-bottom: 48px; }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid #e8e6df;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(34, 44, 69, 0.15);
}
.service-card-image {
  aspect-ratio: 3 / 2; overflow: hidden; background: #e8e6df;
}
.service-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.04); }
.service-card-body {
  padding: 40px;
  flex: 1; display: flex; flex-direction: column;
}
.service-card .eyebrow { color: #83593b; margin-bottom: 14px; }
.service-card h3 {
  font-size: 32px; font-weight: 400; margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.service-card p { color: #4a4a45; margin-bottom: 24px; flex: 1; }
.service-card .price {
  font-family: 'Versailles', Georgia, serif;
  font-size: 20px; color: #222c45; font-weight: 500;
  padding-top: 24px; border-top: 1px solid #e8e6df;
  display: flex; align-items: center; justify-content: space-between;
}
.service-card .price small {
  font-family: 'Borgia Pro', Georgia, serif;
  font-size: 12px; font-weight: 500; color: #6b6b66;
  letter-spacing: 0.04em;
}
.service-card-link {
  font-family: 'Versailles', Georgia, serif;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #222c45;
  transition: gap 0.2s ease;
}
.service-card-link:hover { gap: 14px; }
.service-card-link svg { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card-body { padding: 32px 28px; }
}

/* ===== ABOUT SNIPPET ===== */
.about-section { background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}
.about-image {
  aspect-ratio: 4 / 5; overflow: hidden; background: #1a1a1a;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text .eyebrow { margin-bottom: 20px; }
.about-text h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 28px;
}
.about-text p { font-size: 18px; color: #4a4a45; line-height: 1.7; margin-bottom: 20px; max-width: 580px; }
.about-text .signature {
  font-family: 'Borgia Pro', Georgia, serif; font-style: italic;
  font-size: 24px; line-height: 1.4; color: #222c45;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid #e8e6df;
  max-width: 480px;
}
.about-text .signature small {
  display: block; font-family: 'Versailles', Georgia, serif; font-style: normal;
  font-size: 12px; font-weight: 600; color: #6b6b66;
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: 8px;
}

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 460px; margin: 0 auto; }
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: #fafaf7; padding: 110px 32px;
  border-top: 1px solid #e8e6df; border-bottom: 1px solid #e8e6df;
}
.testimonial-inner {
  max-width: 920px; margin: 0 auto; text-align: center;
}
.testimonial .quote-mark {
  font-family: 'Borgia Pro', Georgia, serif; font-size: 120px; line-height: 0.6;
  color: #83593b; margin-bottom: 16px; font-style: italic;
}
.testimonial blockquote {
  font-family: 'Borgia Pro', Georgia, serif; font-style: italic;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400; line-height: 1.4; letter-spacing: -0.005em;
  color: #1a1a1a; margin-bottom: 36px;
}
.testimonial cite {
  font-family: 'Versailles', Georgia, serif;
  font-style: normal; font-size: 13px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: #222c45;
}
.testimonial cite small {
  display: block; font-family: 'Borgia Pro', Georgia, serif;
  font-style: italic; font-weight: 400; color: #64757f; letter-spacing: 0.02em;
  text-transform: none; font-size: 14px; margin-top: 8px;
}

@media (max-width: 760px) { .testimonial { padding: 72px 24px; } }

/* ===== PORTFOLIO GRID (uniform square tiles) ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.portfolio-item {
  position: relative; overflow: hidden; background: #e8e6df;
  aspect-ratio: 1 / 1;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(34, 44, 69, 0.3));
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; /* let clicks reach the photo so the lightbox opens */
}
.portfolio-item:hover::after { opacity: 1; }

.portfolio-cta { text-align: center; margin-top: 56px; }
.portfolio-cta a {
  font-family: 'Versailles', Georgia, serif;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: #222c45; padding-bottom: 4px; border-bottom: 1px solid #222c45;
}

@media (max-width: 760px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== SERVICE AREA ===== */
.area-section { background: #fff; }
.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #e8e6df; border: 1px solid #e8e6df;
}
.area-card {
  background: #fff; padding: 36px 24px; text-align: center;
  transition: background 0.2s ease;
}
.area-card:hover { background: #fafaf7; }
.area-card .num {
  font-family: 'Borgia Pro', Georgia, serif; font-style: italic;
  font-size: 16px; color: #83593b; margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.area-card h3 {
  font-size: 22px; font-weight: 400; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.area-card p { font-size: 13px; color: #6b6b66; line-height: 1.5; margin-bottom: 16px; }
.area-card .arrow {
  font-family: 'Versailles', Georgia, serif;
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #222c45;
}
.area-card .arrow::after { content: ' →'; transition: margin-left 0.2s ease; }
.area-card:hover .arrow::after { margin-left: 4px; }

@media (max-width: 980px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } }

/* ===== PRE-FAQ ===== */
.prefaq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.prefaq-item {
  padding: 32px; background: #fff; border: 1px solid #e8e6df;
}
.prefaq-item h3 {
  font-family: 'Versailles', Georgia, serif;
  font-size: 22px; font-weight: 400; line-height: 1.25;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.prefaq-item p { font-size: 16px; color: #4a4a45; line-height: 1.6; }
.prefaq-cta { text-align: center; margin-top: 56px; }
.prefaq-cta a {
  font-family: 'Versailles', Georgia, serif;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #222c45; padding-bottom: 4px; border-bottom: 1px solid #222c45;
}

@media (max-width: 880px) { .prefaq-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ===== FINAL CTA ===== */
.final-cta {
  background: #222c45; color: #fafaf7;
  padding: 120px 32px;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(131, 89, 59, 0.08), transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  max-width: 920px; margin: 0 auto; text-align: center;
  position: relative;
}
.final-cta .eyebrow { color: #83593b; margin-bottom: 24px; }
.final-cta h2 {
  color: #fafaf7;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.final-cta p {
  font-size: 19px; color: rgba(250, 250, 247, 0.75); line-height: 1.55;
  margin-bottom: 44px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-light {
  font-family: 'Versailles', Georgia, serif;
  background: #fafaf7; color: #222c45;
  padding: 18px 32px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-outline-light {
  font-family: 'Versailles', Georgia, serif;
  background: transparent; color: #fafaf7;
  padding: 18px 32px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(250, 250, 247, 0.3);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-outline-light:hover { border-color: #fafaf7; background: rgba(250, 250, 247, 0.05); }

@media (max-width: 760px) { .final-cta { padding: 80px 24px; } }

/* ===== FOOTER ===== */
footer {
  background: #1a2236; color: rgba(250, 250, 247, 0.85);
  padding: 80px 32px 32px;
}
.footer-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(250, 250, 247, 0.1);
}
.footer-brand .brand img { height: 72px; width: auto; filter: brightness(0) invert(0.96); opacity: 0.95; }
.footer-brand p { font-size: 14px; color: rgba(250, 250, 247, 0.65); line-height: 1.6; margin-top: 24px; max-width: 320px; }
.footer-veteran {
  font-family: 'Versailles', Georgia, serif;
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; padding: 8px 14px;
  border: 1px solid rgba(131, 89, 59, 0.4);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #b98d63;
}
.footer-col h3 {
  font-family: 'Versailles', Georgia, serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fafaf7; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px; color: rgba(250, 250, 247, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #83593b; }
.footer-bottom {
  max-width: 1320px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(250, 250, 247, 0.5);
  flex-wrap: wrap; gap: 16px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250, 250, 247, 0.15);
  color: rgba(250, 250, 247, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: #83593b; color: #83593b; }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }


/* ===== GRID LIGHTBOX ===== */
.port-grid img, .portfolio-grid img, .svc-gallery-grid img { cursor: zoom-in; transition: filter .2s ease; }
.port-grid img:hover, .portfolio-grid img:hover, .svc-gallery-grid img:hover { filter: brightness(1.05); }
.stp-lb { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(15,18,30,.93); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.stp-lb.is-open { display: flex; animation: lbFade .25s ease both; }
.stp-lb__stage { position: relative; max-width: 94vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.stp-lb__img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: scale(.97); transition: opacity .3s var(--ease), transform .45s var(--ease); background: #222c45; }
.stp-lb__img.is-ready { opacity: 1; transform: none; }
.stp-lb__count { position: absolute; top: -34px; left: 0; color: #aeb4c6; font-size: 13px; letter-spacing: .04em; }
.stp-lb__btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 0; transition: background .15s ease; }
.stp-lb__btn:hover { background: rgba(255,255,255,.22); }
.stp-lb__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stp-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stp-lb__close { top: -52px; right: 0; }
.stp-lb__nav { top: 50%; transform: translateY(-50%); }
.stp-lb__prev { left: -66px; }
.stp-lb__next { right: -66px; }
@media (max-width: 820px) {
  .stp-lb__close { top: 14px; right: 14px; position: fixed; }
  .stp-lb__prev { left: 6px; }
  .stp-lb__next { right: 6px; }
  .stp-lb__nav { position: fixed; }
  .stp-lb__count { position: fixed; top: 18px; left: 18px; }
  .stp-lb__img { max-height: 80vh; }
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== MOTION =====
   One language for the whole site: short, precise moves on one easing curve.
   Three durations: --t-fast (feedback), --t-med (reveals), --t-slow (images).
   Content is always visible without JS or with reduced motion; the hidden
   starting states only apply once site.js adds .motion to <html>. */
:root {
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-fast: .2s;
  --t-med: .7s;
  --t-slow: 1.1s;
}

/* Hero: text rises in line by line; the photo opens like a shutter */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes shutter { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .eyebrow, .hero h1, .hero-lede, .hero-ctas,
.svc-hero-text > *, .about-hero-text > *, .loc-hero-text > * { animation: fadeUp var(--t-med) var(--ease) both; }
.hero .eyebrow, .svc-hero-text > :nth-child(1), .about-hero-text > :nth-child(1), .loc-hero-text > :nth-child(1) { animation-delay: .05s; }
.hero h1, .svc-hero-text > :nth-child(2), .about-hero-text > :nth-child(2), .loc-hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-lede, .svc-hero-text > :nth-child(3), .about-hero-text > :nth-child(3), .loc-hero-text > :nth-child(3) { animation-delay: .28s; }
.hero-ctas, .svc-hero-text > :nth-child(4), .about-hero-text > :nth-child(4), .loc-hero-text > :nth-child(4) { animation-delay: .4s; }
.svc-hero-image, .about-hero-image, .loc-hero-image { position: relative; }
/* a paper-coloured panel lifts off the photo; the photo itself paints at once, so LCP is untouched */
.hero-image::before, .svc-hero-image::before, .about-hero-image::before, .loc-hero-image::before { content: ''; position: absolute; inset: 0; z-index: 3; background: #e8e6df; transform-origin: top; animation: shutter var(--t-slow) var(--ease) .1s both; pointer-events: none; }
.svc-hero-image img, .about-hero-image img, .loc-hero-image img { animation: settle 1.8s var(--ease) .1s both; }

/* Hero backdrop slideshow (home): slides crossfade with a slow push-in */
/* the slides are absolutely positioned, so the frame needs an explicit width (auto margins on phones would shrink it to nothing) */
.hero-image[data-rotate] { width: 100%; }
.hero-image .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-image .slide.is-active { opacity: 1; }
.hero-image .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .slide:first-child img { animation: settle 1.8s var(--ease) .1s both; }
.hero-image .slide.is-active:not(:first-child) img { animation: drift 7s linear both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-image-tag { z-index: 2; }
.hero-image-tag.is-swap { animation: tagSwap .5s var(--ease) both; }
@keyframes tagSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rotate-controls { position: absolute; right: 20px; bottom: 24px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.rotate-controls [data-goto] { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rotate-controls [data-goto]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(250,250,247,.55); transition: background var(--t-fast) ease, transform var(--t-fast) ease; }
.rotate-controls [data-goto][aria-current="true"]::before { background: #fafaf7; transform: scale(1.3); }
.rotate-controls [data-rotate-toggle] { width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(34,44,69,.85); color: #fafaf7; display: flex; align-items: center; justify-content: center; }
.rotate-controls [data-rotate-toggle] svg { width: 12px; height: 12px; }
.rotate-controls [data-rotate-toggle] .i-play { display: none; }
.rotate-controls [data-rotate-toggle][aria-pressed="true"] .i-play { display: block; }
.rotate-controls [data-rotate-toggle][aria-pressed="true"] .i-pause { display: none; }
.rotate-controls button:focus-visible { outline: 2px solid #fafaf7; outline-offset: 2px; }
/* without JavaScript the slideshow is a single still, so its controls stay hidden */
html:not(.js) .rotate-controls { display: none; }
/* small screens: the label moves to the top corner so it never collides with the controls */
@media (max-width: 600px) {
  .hero-image[data-rotate] .hero-image-tag { top: 16px; bottom: auto; left: 16px; }
  .rotate-controls { right: 10px; bottom: 10px; }
}

/* Testimonial band slideshow (home) */
/* every quote sits in the same grid cell, so the band keeps the height of the longest one and nothing below it moves */
.testimonial-inner[data-rotate] { display: grid; }
.testimonial-inner .slide { grid-row: 2; grid-column: 1; align-self: center; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
.testimonial-inner .slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.testimonial-inner .rotate-controls { grid-row: 3; position: static; justify-content: center; margin-top: 36px; }
.testimonial-inner .rotate-controls [data-goto]::before { background: #d6d3ca; }
.testimonial-inner .rotate-controls [data-goto][aria-current="true"]::before { background: #83593b; }
.testimonial-inner .rotate-controls [data-rotate-toggle] { background: transparent; color: #222c45; border: 1px solid #d6d3ca; }
.testimonial-inner .rotate-controls button:focus-visible { outline-color: #222c45; }

/* Header settles into a compact bar once you scroll (transform only, so nothing shifts) */
header { transition: box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease); }
header .brand img { transform-origin: left center; transition: transform var(--t-med) var(--ease); }
header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(34,44,69,.35); background: rgba(250,250,247,.97); }
header.is-scrolled .brand img { transform: scale(.82); }

/* Feedback: buttons answer the press, pricing cards lift */
.btn-primary:active, .btn-light:active, .btn-outline-light:active, .nav-cta:active, .tier-cta:active, .stprev-cta-btn:active, .ct-submit:active { transform: scale(.97); }
.tier { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(34,44,69,.28); }

/* Scroll reveals */
.motion [data-reveal] { transition-property: opacity, transform, filter; transition-timing-function: var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-reveal="rise"] { opacity: 0; transform: translateY(18px); transition-duration: var(--t-med); }
.motion [data-reveal="rise"].is-in { opacity: 1; transform: none; }
/* portfolio tiles "develop" from a soft monochrome print into full colour */
.motion [data-reveal="develop"] { opacity: 0; filter: grayscale(1) contrast(.9) brightness(1.08); transition-duration: var(--t-slow); }
.motion [data-reveal="develop"].is-in { opacity: 1; filter: none; }
/* the four-step process: a rule draws across, then each step arrives in order */
.process-grid { position: relative; }
.process-grid::before { content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 1px; background: linear-gradient(90deg, #83593b, #d6d3ca); transform-origin: left; }
.motion .process-grid[data-reveal="steps"]::before { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.motion .process-grid[data-reveal="steps"].is-in::before { transform: scaleX(1); }
.motion .process-grid[data-reveal="steps"] > * { opacity: 0; transform: translateY(14px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.motion .process-grid[data-reveal="steps"].is-in > * { opacity: 1; transform: none; }
.motion .process-grid[data-reveal="steps"].is-in > :nth-child(2) { transition-delay: .25s; }
.motion .process-grid[data-reveal="steps"].is-in > :nth-child(3) { transition-delay: .5s; }
.motion .process-grid[data-reveal="steps"].is-in > :nth-child(4) { transition-delay: .75s; }
@media (max-width: 760px) { .process-grid::before { display: none; } }

/* Numbers keep their width while counting */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
