/* ==========================================================================
   HRPhotoCo — Hailey Ryan, Sheridan WY
   Design: client-supplied "SUNRISE" boho reference. Cream / blush / terracotta,
   one serif family (Newsreader, optical sizes) + one script (Ephesis).
   Archetype C (full-bleed photo, centered overlay) · Earthy/organic · P1 (client-mandated)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Ephesis";
  src: url("../fonts/ephesis-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Type scale — 1.25 modular ratio. No ad-hoc sizes anywhere below. */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;
  --text-6xl: 4.768rem;

  /* Color — 1 primary, 1 accent, 7-step warm neutral scale. No pure black/white. */
  --primary: #a76f4c;        /* clay: script accents, rules, large display only (3.77:1 on cream) */
  --accent: #8a5232;         /* deep terracotta: CTAs, links, hover (5.67:1 with cream) */
  --accent-hover: #7a4529;   /* 6.98:1 with cream */
  --n-50: #fcf8f3;           /* paper — cards, polaroids, form panel */
  --n-100: #f9f2ea;          /* cream — page */
  --n-200: #edd7c6;          /* blush — inspiration's sand panel */
  --n-300: #e2cfc0;          /* sand — footer, deeper panels */
  --n-500: #9c7c5e;          /* taupe — hairlines + decoration only, never text */
  --n-700: #6e5747;          /* muted text — cream/paper backgrounds only (6.07:1) */
  --n-900: #3a2a20;          /* ink — headings + body (12.3:1 on cream) */
  --scrim: 38 26 19;         /* rgb triplet for photo overlays */

  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-script: "Ephesis", "Segoe Script", "Brush Script MT", cursive;

  /* Spacing — 8px base unit */
  --s-half: 4px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;
  --s9: 160px;

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(var(--s6), 7vw, var(--s8));

  --header-h: 96px;
  --header-h-compact: 72px;

  /* Motion — one language: fade + rise, expo-out */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-ui: 260ms;
  --dur-reveal: 800ms;
  --stagger: 80ms;

  --shadow-soft: 0 1px 2px rgb(58 42 32 / 0.06), 0 8px 24px rgb(58 42 32 / 0.08);
  --shadow-lift: 0 2px 4px rgb(58 42 32 / 0.08), 0 18px 40px rgb(58 42 32 / 0.14);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%; /* 18px root: a serif body reads better a step up */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + var(--s2));
  scrollbar-color: var(--n-500) var(--n-100);
  -webkit-tap-highlight-color: rgb(167 111 76 / 0.16); /* on-brand tap flash instead of the default grey/blue */
}
body {
  margin: 0;
  background: var(--n-100);
  color: var(--n-900);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--n-200); color: var(--n-900); }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 200;
  background: var(--n-900); color: var(--n-50);
  padding: var(--s1) var(--s2); text-decoration: none; font-size: var(--text-sm);
  display: inline-flex; align-items: center; min-height: 44px;
}
.skip-link:focus { top: var(--s2); }
.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;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: var(--n-50); }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--n-50); }
.section--blush { background: var(--n-200); }
.section--sand { background: var(--n-300); }
.center { text-align: center; }

/* ---------- Type roles ---------- */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: 0;
  color: var(--primary);
  display: block;
}
.script--lg { font-size: var(--text-4xl); }
.script--on-dark { color: var(--n-200); }
/* on blush panels the clay script drops to ~3:1; the deeper terracotta keeps thin script strokes legible (4.5:1) */
.section--blush .script, .split__media .script { color: var(--accent); }
/* the inspiration's hand-drawn flourish under script lines */
.script--flourish { position: relative; display: inline-block; padding-bottom: var(--s1); }
.script--flourish::after {
  content: ""; position: absolute; left: 6%; right: -6%; bottom: 0; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M1 7 C 40 2, 80 9, 120 5 S 180 2, 199 6' fill='none' stroke='%23a76f4c' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.label {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
}
.h-display { font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl)); font-weight: 300; line-height: 1.04; overflow-wrap: anywhere; }
.h-1 { font-size: clamp(var(--text-3xl), 4.4vw, var(--text-5xl)); font-weight: 300; }
.h-2 { font-size: clamp(var(--text-2xl), 3.4vw, var(--text-4xl)); font-weight: 300; }
.h-3 { font-size: clamp(var(--text-xl), 2.2vw, var(--text-2xl)); font-weight: 400; }
.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--n-700); text-wrap: balance; }
.muted { color: var(--n-700); }
.heading-group { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.heading-group.center { justify-items: center; }
.heading-group .lede { max-width: 34ch; }
.heading-group.center .lede { margin-inline: auto; }

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-ui) var(--ease-out), text-underline-offset var(--dur-ui) var(--ease-out);
}
.text-link:hover { color: var(--accent-hover); text-underline-offset: 0.4em; }
.actions .text-link, .post-nav .text-link, .post-header .label a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--n-50);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px;
  padding: var(--s1) var(--s4);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.btn:hover { --btn-bg: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 120ms; }
.btn--ghost { --btn-fg: var(--accent); background: transparent; }
.btn--ghost:hover { --btn-fg: var(--n-50); background: var(--accent-hover); }
.btn--light { --btn-bg: var(--n-50); --btn-fg: var(--n-900); }
.btn--light:hover { --btn-bg: var(--n-200); }
.btn--sm { min-height: 44px; padding: var(--s-half) var(--s3); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn .arrow { transition: transform var(--dur-ui) var(--ease-out); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(249 242 234 / 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgb(156 124 94 / 0.22);
  transition: transform 400ms var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
/* Compact state is transform-only (no layout animation): the bar slides up by the height
   difference, the row slides back down half of it to stay centered, and the logo scales. */
.site-header.is-compact {
  box-shadow: 0 6px 24px rgb(58 42 32 / 0.06);
  transform: translateY(calc(var(--header-h-compact) - var(--header-h)));
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3);
  height: var(--header-h);
  transition: transform 400ms var(--ease-out);
}
.site-header.is-compact .site-header__inner { transform: translateY(calc((var(--header-h) - var(--header-h-compact)) / 2)); }
.brand { display: flex; align-items: center; min-height: 44px; justify-self: center; line-height: 0; }
.brand img { height: 58px; width: auto; transform-origin: 50% 50%; transition: transform 400ms var(--ease-out); }
.site-header.is-compact .brand img { transform: scale(0.76); }
.nav { display: flex; align-items: center; gap: clamp(var(--s2), 2.4vw, var(--s4)); }
.nav--left { justify-self: start; }
.nav--right { justify-self: end; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--primary);
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle {
  display: none; justify-self: start; align-items: center; gap: var(--s1);
  background: none; border: 0; padding: var(--s1) 0; cursor: pointer; min-height: 44px; min-width: 44px;
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 400ms var(--ease-out), top 400ms var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
.header-cta-mobile { display: none; justify-self: end; }

.mobile-menu {
  position: fixed; inset: var(--header-h-compact) 0 0 0; z-index: 99;
  background: var(--n-100);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s5) var(--gutter) var(--s5);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), visibility 0s linear 360ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu ul { display: grid; gap: var(--s1); }
.mobile-menu li { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i) * 60ms + 80ms); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu a { font-size: var(--text-3xl); font-weight: 300; text-decoration: none; line-height: 1.3; }
.mobile-menu nav a { display: inline-flex; align-items: center; min-height: 48px; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu__foot { display: grid; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid rgb(156 124 94 / 0.3); }
.mobile-menu__foot a { font-size: var(--text-base); display: inline-flex; align-items: center; min-height: 44px; }
body.menu-open { overflow: hidden; }

/* ---------- Heroes ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100svh - var(--header-h)));
  display: grid; align-items: end; justify-items: center;
  color: var(--n-50);
  background: var(--n-900);
}
.hero--page { min-height: max(460px, calc(74svh - var(--header-h))); }
.hero--page .hero__content { padding-bottom: clamp(var(--s5), 7vh, var(--s7)); gap: var(--s2); }
.hero--page .hero__content .btn { margin-top: var(--s1); }
.hero__media { position: absolute; inset: -24px 0; z-index: -2; will-change: transform; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1600ms var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { position: absolute; inset: 0; }
.hero__slide img, .hero__media > picture img, .hero__media > img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.hero__slide.is-active img { animation: hero-settle 9s var(--ease-out) both; }
.hero--page .hero__media img { animation: hero-settle 2.4s var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 50% 68%, rgb(var(--scrim) / 0.34), rgb(var(--scrim) / 0) 72%),
    linear-gradient(to top, rgb(var(--scrim) / 0.62) 0%, rgb(var(--scrim) / 0.4) 38%, rgb(var(--scrim) / 0) 70%),
    linear-gradient(to bottom, rgb(var(--scrim) / 0.18), rgb(var(--scrim) / 0) 22%);
}
.hero__content {
  width: min(100% - 2 * var(--gutter), 980px);
  padding-bottom: clamp(var(--s6), 9vh, var(--s8));
  text-align: center;
  display: grid; justify-items: center; gap: var(--s3);
  position: relative;
  /* tight shadow defines letter edges on busy photos; the wide one lifts the whole line */
  text-shadow: 0 1px 2px rgb(var(--scrim) / 0.4), 0 2px 22px rgb(var(--scrim) / 0.45);
}
/* Feathered shade that tracks the text block at any viewport, so the type always sits on
   a darker patch of photo without dimming the whole image. The ellipse is centered in its box and ends at
   closest-side, so it reaches full transparency before every edge and can't leave a straight cut-off line on
   bright photos. The last stops ease out so the rim doesn't show either. */
.hero__content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -38%; bottom: -8.4%; left: -26.8%; right: -26.8%;
  background: radial-gradient(closest-side,
    rgb(var(--scrim) / 0.62) 0%, rgb(var(--scrim) / 0.54) 33.3%, rgb(var(--scrim) / 0.26) 60%,
    rgb(var(--scrim) / 0.165) 70%, rgb(var(--scrim) / 0.08) 80%, rgb(var(--scrim) / 0.025) 90%, rgb(var(--scrim) / 0) 100%);
}
/* sized by width AND height: on short laptop screens the headline stays low, in the shaded part of the photo */
.hero__title { font-size: clamp(var(--text-4xl), min(6.2vw, 9.5vh), var(--text-6xl)); font-weight: 400; line-height: 1.04; max-width: 16ch; }
/* The word masks would clip a text-shadow into hard-edged boxes, so the headline's shadow is a filter on
   the whole title instead: it follows the visible letters only (hidden words cast nothing). */
.hero__title { text-shadow: none; filter: drop-shadow(0 1px 1.5px rgb(var(--scrim) / 0.45)) drop-shadow(0 2px 12px rgb(var(--scrim) / 0.4)); }
.hero__title .script { color: var(--n-200); font-size: 0.62em; margin-top: var(--s2); }
.hero__sub { font-size: var(--text-lg); font-weight: 500; line-height: 1.4; max-width: 30ch; margin: 0; color: var(--n-50); }

/* headline word reveal (mask + rise) */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
/* Start fully below the mask: 100% of the word plus 0.2em clears the mask's 0.08em descender
   padding at any line-height, so no letter tops peek through during the start delay. */
.reveal-words .w > span { display: inline-block; transform: translateY(calc(100% + 0.2em)); animation: word-up 1000ms var(--ease-out) both; animation-delay: calc(240ms + var(--i) * 70ms); }
@keyframes word-up { from { transform: translateY(calc(100% + 0.2em)); } to { transform: none; } }
.hero__fade { opacity: 0; animation: fade-up 1000ms var(--ease-out) forwards; animation-delay: var(--d, 700ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s2) var(--gutter);
}
.hero__caption { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--n-100); }
.hero__caption:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Split / meet section (inspiration section 2) ---------- */
.split { display: grid; grid-template-columns: 1.12fr 1fr; }
.split__text { background: var(--n-50); padding: clamp(var(--s5), 6vw, var(--s7)) clamp(var(--s3), 7vw, var(--s8)); display: grid; align-content: center; gap: var(--s3); }
.split__text > * { max-width: 34rem; }
.split__text p { margin: 0; }
.split__text .script--flourish, .heading-group .script--flourish { justify-self: start; }
.heading-group.center .script--flourish { justify-self: center; }
.split__media { background: var(--n-200); padding: clamp(var(--s5), 6vw, var(--s7)) var(--gutter); display: grid; justify-items: center; align-content: center; gap: var(--s3); text-align: center; }
.split--flip .split__text { order: 2; }
.split__caption { font-size: var(--text-sm); color: var(--n-900); font-style: italic; max-width: 26ch; }
.split .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s1); }

/* Arch frame */
.arch { position: relative; width: min(100%, 340px); }
.arch::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: 0;
  border: 1px solid var(--primary); border-radius: 999px 999px 0 0; pointer-events: none;
}
.arch__img { position: relative; z-index: 1; overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4.2; background: var(--ph, var(--n-300)); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); transition: transform 1200ms var(--ease-out); }
.arch:hover .arch__img img { transform: scale(1.03); }
.arch--sm { width: min(100%, 280px); }

/* "Find me on" row */
.found-on { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); padding-top: var(--s3); border-top: 1px solid rgb(156 124 94 / 0.3); }
.found-on .label { color: var(--n-700); width: 100%; }
.found-on a { font-size: var(--text-lg); font-style: italic; text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; min-height: 44px; gap: 0 var(--s1); overflow-wrap: anywhere; transition: color var(--dur-ui) var(--ease-out); }
.found-on a:hover { color: var(--accent); }
.found-on .stars { font-style: normal; font-size: var(--text-xs); letter-spacing: 0.12em; color: var(--accent); }

/* ---------- Polaroid service cards ---------- */
.polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(var(--s3), 4vw, var(--s6)); align-items: start; }
.polaroid {
  display: block; text-decoration: none; background: var(--n-50);
  padding: var(--s2) var(--s2) var(--s3);
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--rot, 0deg));
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.polaroids > :nth-child(1) .polaroid { --rot: -2deg; }
.polaroids > :nth-child(2) { margin-top: var(--s5); }
.polaroids > :nth-child(2) .polaroid { --rot: 1.5deg; }
.polaroids > :nth-child(3) .polaroid { --rot: -1deg; }
.polaroid:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-lift); }
.polaroid__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph, var(--n-300)); }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1200ms var(--ease-out); }
.polaroid:hover .polaroid__img img { transform: scale(1.04); }
.polaroid__cap { display: grid; justify-items: center; gap: var(--s-half); padding-top: var(--s2); text-align: center; }
.polaroid__cap .script { font-size: var(--text-3xl); }
.polaroid__cap .label { color: var(--n-700); }
.polaroid__cap p { font-size: var(--text-sm); color: var(--n-700); margin: 0; }
.polaroid__more { margin-top: var(--s1); color: var(--accent); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Gallery: justified rows ----------
   Each photo's flex share is its aspect ratio (--ar, set per photo), so every photo in a row ends up the same
   height and none is cropped. --row-h is the target height; full rows stretch slightly to fill the width. */
.gallery { --row-h: 280px; display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Soaks up the last row's spare space so a short final row keeps the target height instead of ballooning.
   Its 30% basis means a final row that's at least ~70% full pushes it onto an empty line of its own, and that
   row then stretches edge to edge like the others. */
.gallery::after { content: ""; flex: 10000 1 30%; }
.g-item {
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h));
  aspect-ratio: var(--ar);
  position: relative; display: block; overflow: hidden; background: var(--ph, var(--n-300)); cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out), filter 600ms var(--ease-out); }
/* set by main.js when the final row is mostly empty: center it at the target height */
.gallery--short-last { justify-content: center; }
.gallery--short-last::after { display: none; }
.gallery--short-last .is-last-row { flex-grow: 0; }
.g-item:hover img { transform: scale(1.025); }
.g-item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(58 42 32 / 0.06); pointer-events: none; }

/* placeholder photo slot (no-fabrication rule) */
.photo-slot {
  display: grid; place-items: center; gap: var(--s1); text-align: center;
  aspect-ratio: var(--ratio, 4 / 5);
  border: 1px dashed var(--n-500); background: repeating-linear-gradient(-45deg, var(--n-200), var(--n-200) 12px, var(--n-100) 12px, var(--n-100) 24px);
  color: var(--n-900); padding: var(--s3);
  font-size: var(--text-sm);
}
.photo-slot .script { font-size: var(--text-2xl); }

/* ---------- Detail list (wedding coverage etc.) ---------- */
.details { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s5); border-top: 1px solid rgb(156 124 94 / 0.35); }
.details li { padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid rgb(156 124 94 / 0.35); display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: baseline; }
.details li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); transform: translateY(-3px); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.price-line strong { font-size: var(--text-2xl); font-weight: 400; }

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.testimonials > .container > h2 { margin-bottom: var(--s4); }
.t-carousel { position: relative; max-width: 860px; margin-inline: auto; }
.t-track { display: grid; }
.t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 700ms; }
.t-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.t-slide blockquote { margin: 0; }
.t-slide blockquote p { font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl)); font-style: italic; font-weight: 300; line-height: 1.45; }
.t-slide figcaption { margin-top: var(--s3); display: grid; gap: var(--s-half); justify-items: center; }
.t-slide figcaption .name { font-family: var(--font-script); font-size: var(--text-3xl); color: var(--accent); line-height: 1.1; }
.t-slide figcaption .label { color: var(--n-900); }
.t-controls { display: flex; justify-content: center; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.t-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--n-500); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--n-900);
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.t-btn:hover { background: var(--n-50); border-color: var(--accent); transform: translateY(-2px); }
.t-btn svg { width: 18px; height: 18px; }
.t-dots { display: flex; gap: 0; }
.t-dot { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.t-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--n-500); transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out); }
.t-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.35); }
.t-note { margin-top: var(--s3); }

/* ---------- Inquiry / contact ---------- */
.inquire { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.inquire__aside {
  background: var(--accent); color: var(--n-50);
  padding: clamp(var(--s5), 6vw, var(--s7)) clamp(var(--s3), 6vw, var(--s7));
  display: grid; align-content: center; justify-items: center; gap: var(--s3); text-align: center;
}
.inquire__aside .arch::before { border-color: var(--n-200); }
.inquire__aside .script { color: var(--n-200); font-size: var(--text-4xl); }
.inquire__aside a { color: var(--n-50); }
.inquire__direct { display: grid; gap: var(--s1); font-size: var(--text-base); }
.inquire__direct a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.inquire__direct a:hover { text-underline-offset: 0.4em; }
.inquire__form { background: var(--n-50); padding: clamp(var(--s5), 6vw, var(--s7)) clamp(var(--s3), 6vw, var(--s8)); display: grid; align-content: center; }
.inquire__form .heading-group { margin-bottom: var(--s4); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); }
.field { display: grid; gap: var(--s1); }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--n-900); }
.field .opt { font-weight: 400; letter-spacing: 0.06em; text-transform: none; font-style: italic; color: var(--n-700); }
.field input, .field select, .field textarea {
  -webkit-appearance: none; appearance: none; /* iOS otherwise adds its own rounded, inner-shadowed field */
  width: 100%; min-height: 48px;
  background: transparent; border: 0; border-bottom: 1px solid var(--n-500); border-radius: 0;
  padding: var(--s1) 2px; font-size: var(--text-base); color: var(--n-900);
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: var(--s4);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233a2a20' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--n-700); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--n-900); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); background: rgb(237 215 198 / 0.25); }
.field [aria-invalid="true"] { border-bottom-color: #9b2c1f; }
.field__error { font-size: var(--text-sm); color: #9b2c1f; min-height: 0; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s1); }
.form__foot .muted { font-size: var(--text-sm); }
/* taller tap area for the inline email link without shifting the line */
.form__foot .text-link { padding-block: 15px; }
.form__consent { grid-column: 1 / -1; margin: 0; font-size: var(--text-sm); color: var(--n-700); }
.form__status { grid-column: 1 / -1; font-size: var(--text-base); }
.form__status:empty { display: none; }
.form__status.is-error { color: #9b2c1f; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; gap: var(--s2); justify-items: start; }
.form-success .script { font-size: var(--text-4xl); }

/* Newsletter */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.signup__form { display: flex; gap: var(--s2); align-items: end; flex-wrap: wrap; }
.signup__form .field { flex: 1 1 240px; }
.signup__status { width: 100%; font-size: var(--text-sm); }
.signup__status:empty { display: none; }

/* ---------- Journal ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); margin-bottom: var(--s6); }
.filter {
  min-height: 44px; padding: var(--s-half) var(--s3);
  border: 1px solid var(--n-500); border-radius: 999px; background: transparent; cursor: pointer;
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--n-50); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) clamp(var(--s3), 3vw, var(--s5)); align-items: start; }
.posts > :nth-child(3n + 2) { margin-top: var(--s5); }
.post-card { display: grid; gap: var(--s2); text-decoration: none; }
.post-card[hidden] { display: none; }
.post-card__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ph, var(--n-300)); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1200ms var(--ease-out); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card .label { color: var(--accent); }
.post-card h2, .post-card h3 { font-size: var(--text-xl); font-weight: 400; transition: color var(--dur-ui) var(--ease-out); }
.post-card:hover h2, .post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--n-700); font-size: var(--text-sm); margin: 0; }

.post-header { padding-top: var(--s7); padding-bottom: var(--s6); text-align: center; display: grid; justify-items: center; gap: var(--s2); }
.post-header .label a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.3em; }
.post-header .lede { max-width: 38ch; }
.post-body { display: grid; gap: var(--s6); padding-bottom: var(--s8); }
.post-figure { display: grid; gap: var(--s2); }
.post-figure figcaption { font-size: var(--text-sm); font-style: italic; color: var(--n-700); text-align: center; }
.post-figure--wide { width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; }
.post-figure--tall { width: min(100% - 2 * var(--gutter), 620px); margin-inline: auto; }
.post-pair { width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
.post-pair > :nth-child(2) { margin-top: var(--s5); }
.post-nav { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; border-top: 1px solid rgb(156 124 94 / 0.35); padding-top: var(--s4); }

/* ---------- Investment ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(var(--s3), 4vw, var(--s6)); align-items: start; }
.tiers > :nth-child(2) { margin-top: var(--s5); }
.tier { display: grid; justify-items: center; gap: var(--s3); text-align: center; }
.tier .arch { width: min(100%, 300px); }
.tier__price { display: grid; gap: var(--s-half); }
.tier__price .label { color: var(--n-700); }
.tier__price strong { font-size: var(--text-3xl); font-weight: 300; line-height: 1.1; }
.tier p { max-width: 30ch; color: var(--n-700); }

/* ---------- Footer ---------- */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; text-decoration: none; }
.ig-tile { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ph, var(--n-300)); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out), opacity 600ms var(--ease-out); }
.ig-strip:hover .ig-tile img { transform: scale(1.06); opacity: 0.88; }
.ig-strip:focus-visible { outline-offset: -4px; }
.ig-strip__badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--n-100); padding: var(--s2) var(--s4); text-align: center; pointer-events: none;
  box-shadow: var(--shadow-soft); display: grid; gap: 2px;
  /* absolutely centered boxes otherwise shrink to the half-width left of center and break the handle mid-word */
  width: max-content; max-width: calc(100% - 2 * var(--gutter));
}
.ig-strip__badge .script { font-size: var(--text-2xl); }
.site-footer { background: var(--n-300); padding-block: 0 var(--s4); }
.site-footer > .container { padding-top: var(--s6); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--s5); }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: var(--s2); max-width: 28ch; }
.site-footer h2 { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer ul { display: grid; gap: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { text-decoration: none; transition: color var(--dur-ui) var(--ease-out); }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgb(58 42 32 / 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: var(--text-sm); }

/* ---------- Lightbox ---------- */
/* dvh = the screen actually visible right now; on iPhones 100vh runs under Safari's toolbar */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(30 22 17 / 0.96); color: var(--n-50);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in 300ms var(--ease-out); }
.lightbox::backdrop { background: rgb(30 22 17 / 0.6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__top, .lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--gutter); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--s7); position: relative; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 60px rgb(0 0 0 / 0.35); }
.lightbox__stage img.is-swapping { animation: lb-img 500ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox button {
  background: transparent; border: 1px solid rgb(252 248 243 / 0.35); color: var(--n-50); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.lightbox button:hover { background: rgb(252 248 243 / 0.12); border-color: var(--n-50); }
.lightbox button svg { width: 18px; height: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--s2); }
.lightbox__next { right: var(--s2); }
.lightbox__count { font-size: var(--text-xs); letter-spacing: 0.2em; }
.lightbox__cap { font-size: var(--text-sm); font-style: italic; color: var(--n-300); margin: 0 auto; text-align: center; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: var(--s7); }
.notfound .inner { display: grid; justify-items: center; gap: var(--s3); }

/* ---------- Confirm chips (verification workflow) ---------- */
.confirm {
  display: inline-flex; align-items: center; gap: 0.35em; vertical-align: middle;
  font-family: system-ui, sans-serif; font-style: normal;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: none;
  color: #7a4b00; background: #fbe3b8; border: 1px dashed #c79320;
  padding: 3px 8px; border-radius: 6px; margin-left: 7px; line-height: 1.4; cursor: help;
}
.confirm::before { content: "\26A0"; font-size: 0.7rem; }
.confirm--block { margin-left: 0; }

/* ---------- Scroll reveal (only hides when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
/* polaroids keep their tilt after revealing */
.js .polaroids [data-reveal] { transform: translateY(32px); }
.js .polaroids [data-reveal].is-in { transform: none; }

/* ---------- Page transitions (cross-document, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease-in-out); }

/* ---------- Responsive ---------- */
@media (max-width: 67.5em) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 60em) {
  :root { --header-h: 76px; --header-h-compact: 64px; }
  .nav { display: none; }
  .menu-toggle, .header-cta-mobile { display: inline-flex; }
  .brand img { height: 46px; }
  .site-header.is-compact .brand img { transform: scale(0.87); }
  .mobile-menu { inset: var(--header-h) 0 0 0; }
  .site-header.is-compact ~ .mobile-menu { inset: var(--header-h-compact) 0 0 0; }
  .split, .inquire, .signup { grid-template-columns: 1fr; }
  .split--flip .split__text { order: 0; }
  /* stacked under the form, the contact panel drops its photo and becomes a short band */
  .inquire__aside .arch { display: none; }
  .inquire__aside { padding-block: var(--s5); gap: var(--s2); }
  .details { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .posts > :nth-child(3n + 2) { margin-top: 0; }
  .posts > :nth-child(2n) { margin-top: var(--s6); }
  .gallery { --row-h: 220px; }
  .ig-strip { grid-template-columns: repeat(3, 1fr); }
  .ig-strip > .ig-tile:nth-child(n + 4) { display: none; }
}
@media (max-width: 45em) {
  /* short enough that a tall photo and a wide one share a row on a phone */
  .gallery { --row-h: 128px; gap: var(--s1); }
  /* phones: the three service cards and the home page's journal cards become one swipeable row
     (the next card peeks in from the right) instead of three full-screen cards stacked */
  /* ul.polaroids: has to outrank the ul[role="list"] margin/padding reset */
  ul.polaroids, .posts.posts--row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(76%, 300px);
    gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: var(--s2) var(--gutter) var(--s3); scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .polaroids > *, .posts--row > * { scroll-snap-align: start; }
  .polaroids > :nth-child(2), .posts--row > :nth-child(n) { margin-top: 0; }
  /* phones: price cards and the Journal list turn into compact rows, small arch/photo on the left */
  .tiers { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: var(--s5); }
  .tiers > :nth-child(2) { margin-top: 0; }
  .tier { grid-template-columns: minmax(0, 34%) 1fr; column-gap: var(--s3); row-gap: var(--s1); justify-items: start; align-items: center; text-align: left; }
  .tier .arch { width: 100%; grid-row: 1 / span 4; }
  .tier .btn { grid-column: 1 / -1; justify-self: stretch; margin-top: var(--s2); }
  .tier .arch::before { inset: -8px -8px 8px 8px; }
  .tier .script { font-size: var(--text-2xl); }
  .tier__price strong { font-size: var(--text-2xl); }
  .posts:not(.posts--row) { row-gap: var(--s4); }
  .posts:not(.posts--row) .post-card { grid-template-columns: minmax(0, 40%) 1fr; column-gap: var(--s3); row-gap: var(--s1); align-items: center; align-content: center; }
  .posts:not(.posts--row) .post-card__img { grid-row: 1 / span 3; }
  .split__media .arch { width: min(52%, 200px); }
  /* first and last name share a line; everything else is full width */
  .form > .field:nth-child(n + 3) { grid-column: 1 / -1; }
  .form { column-gap: var(--s3); }
  .details { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .posts > :nth-child(2n) { margin-top: 0; }
  .post-pair { grid-template-columns: 1fr; }
  .post-pair > :nth-child(2) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-brand img { width: 170px; }
  .footer-explore { grid-template-columns: auto auto; justify-content: start; column-gap: var(--s5); }
  .hero__caption { display: none; }
  /* phones: one type step down keeps the headline to three lines, lower in the darker part of the photo */
  .hero__title { font-size: var(--text-3xl); }
  .hero__content::before { top: -47%; bottom: -6.6%; left: -48.4%; right: -48.4%; }
  .hero::after {
    background:
      linear-gradient(to top, rgb(var(--scrim) / 0.66) 0%, rgb(var(--scrim) / 0.42) 40%, rgb(var(--scrim) / 0) 76%),
      linear-gradient(to bottom, rgb(var(--scrim) / 0.18), rgb(var(--scrim) / 0) 22%);
  }
  .hero__slide img { object-position: var(--mpos, var(--pos, 50% 50%)); }
  .lightbox__stage { padding: 0 var(--s1); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s2); transform: none; }
  .lightbox__stage img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .header-cta-mobile.btn { padding-inline: var(--s2); }
  .arch { width: min(64%, 240px); }
  .arch--sm { width: min(60%, 220px); }
}
@media (max-width: 26.25em) {
  .header-cta-mobile.btn { letter-spacing: 0.12em; }
  .brand img { height: 40px; }
}

/* Very narrow screens, or phones with enlarged text: icon-only menu button, then the header
   Inquire button moves into the menu (it is listed there), so the header never overflows. */
@media (max-width: 22em) {
  .form { grid-template-columns: 1fr; }
  .menu-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 18em) {
  .header-cta-mobile { display: none !important; }
}

/* Phones: the hero fills exactly the first screen. The 560px floor is for short laptop windows; on a small iPhone
   it pushed the button below the fold. */
@media (max-width: 45em) {
  .hero { min-height: max(420px, calc(100svh - var(--header-h))); }
}
/* Phones held sideways (short screens): a slimmer header, and heroes sized so the headline and button show
   without scrolling. */
@media (orientation: landscape) and (max-height: 30em) {
  :root { --header-h: 60px; --header-h-compact: 56px; }
  .brand img { height: 38px; }
  .hero, .hero--page { min-height: max(260px, calc(100svh - var(--header-h))); }
  .hero__content, .hero--page .hero__content { padding-bottom: var(--s4); gap: var(--s2); }
  .hero__title { font-size: var(--text-3xl); max-width: 26ch; }
  .hero__sub { font-size: var(--text-base); }
  .hero--page .hero__content .btn { margin-top: 0; }
}

/* ---------- Touch screens ----------
   A tap leaves :hover switched on until the next tap elsewhere, so mouse-only lifts and zooms would freeze
   mid-effect (a raised button, a zoomed photo). Where nothing can hover, keep things still; :active still
   gives press feedback. */
@media (hover: none) {
  .btn:hover, .t-btn:hover { transform: none; box-shadow: none; }
  .btn:active { transform: scale(0.98); }
  .btn--ghost:hover { --btn-fg: var(--accent); background: transparent; }
  .t-btn:hover { background: transparent; border-color: var(--n-500); }
  .polaroid:hover { transform: rotate(var(--rot, 0deg)); box-shadow: var(--shadow-soft); }
  .arch:hover .arch__img img, .g-item:hover img, .polaroid:hover .polaroid__img img,
  .post-card:hover .post-card__img img, .ig-strip:hover .ig-tile img { transform: none; opacity: 1; }
  .text-link:hover { text-underline-offset: 0.25em; }
  .filter:hover { border-color: var(--n-500); color: inherit; }
  .filter[aria-pressed="true"]:hover { border-color: var(--accent); color: var(--n-50); }
  .lightbox button:hover { background: transparent; border-color: rgb(252 248 243 / 0.35); }
}

/* ---------- Large-text resilience (WCAG 1.4.4 / 1.4.10) ----------
   Long words wrap instead of pushing the page sideways when visitors enlarge text. No effect at normal sizes. */
h1, h2, h3, .script, .label, .lede, .btn, .hero__sub, .text-link, .inquire__direct a, .site-footer a, .mobile-menu a, .post-nav a { overflow-wrap: anywhere; }
.btn { max-width: 100%; text-align: center; }
/* header buttons never wrap: at large text sizes the header switches to its phone layout instead */
.nav .btn, .header-cta-mobile { white-space: nowrap; overflow-wrap: normal; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--text-xl); font-weight: 400; margin: var(--s5) 0 var(--s2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: var(--s1); }
.prose a { color: var(--accent); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose strong { font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .reveal-words .w > span { transform: none; }
  .hero__fade { opacity: 1; }
  .hero__media { inset: 0; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .hero__bar, .ig-strip, .t-controls, .inquire__form, .lightbox { display: none !important; }
  body { background: #fffefc; }
}
