/* ==========================================================================
   rdi.photography — styles
   Design tokens documented in design-system/rdi-photography/MASTER.md
   ========================================================================== */

:root {
  --bg: #f5f0e8;
  --bg-2: #ece4d6;
  --ink: #1f1a17;
  --ink-2: #4a413b;
  --muted: #6b6057;
  --accent: #9a5b27;
  --accent-hover: #7f4a1f;
  --moss: #5f6b4a;
  --line: rgba(31, 26, 23, 0.14);
  --on-dark: #f5f0e8;
  --on-dark-muted: rgba(245, 240, 232, 0.72);
  --danger: #a3301f;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 140px;

  --container: 1240px;
  --gutter: 16px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--on-dark); padding: 10px 14px; border-radius: var(--radius); z-index: 1000; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* Grid children must be allowed to shrink below their content size, otherwise images push single-column layouts wider than the viewport. */
.about, .booking, .story, .ig-head, .services, .ig-grid, .story__media, .form-grid, .contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
.about > *, .booking > *, .story > *, .ig-head > *, .services > *, .ig-grid > *, .story__media > *, .form-grid > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
@media (min-width: 1024px) { .section { padding-top: var(--space-7); padding-bottom: var(--space-7); } }
.section--tight { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .eyebrow { color: #b9c29e; }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-muted); }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); margin-bottom: var(--space-2); display: block; }
.display-xl { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; }
.display-lg { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(31, 26, 23, 0.06); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { color: var(--on-dark); border-color: rgba(245, 240, 232, 0.55); }
.btn--ghost-light:hover { background: rgba(245, 240, 232, 0.1); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--on-dark);
  transition: background-color var(--dur) ease, color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.brand { white-space: nowrap; }
.site-header.is-solid, .site-header.is-open { background: rgba(245, 240, 232, 0.92); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand__mark { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 30px; line-height: 1; }
.brand__word { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.9; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 50%; margin-right: -8px; }
.menu-toggle span { position: relative; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease-out), background-color var(--dur); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav, .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg);
  padding: var(--space-4) var(--gutter); display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: var(--space-2); align-self: flex-start; }
.mobile-menu .social-row { margin-top: auto; }
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: #2b241f url("../img/hero/hero-wide-lqip.webp") center/cover no-repeat; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,26,23,0.35) 0%, rgba(31,26,23,0.05) 35%, rgba(31,26,23,0.55) 75%, rgba(31,26,23,0.82) 100%); }
.hero__content { position: relative; padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-5); width: 100%; }
.hero__content > * { opacity: 0; transform: translateY(16px); animation: rise var(--dur-slow) var(--ease-out) forwards; }
.hero__content > *:nth-child(1) { animation-delay: 120ms; }
.hero__content > *:nth-child(2) { animation-delay: 220ms; }
.hero__content > *:nth-child(3) { animation-delay: 320ms; }
.hero__content > *:nth-child(4) { animation-delay: 420ms; }
.hero__content > *:nth-child(5) { animation-delay: 520ms; }
.hero__content .eyebrow { color: #d9c8a6; }
.hero__title { max-width: 14ch; margin-bottom: var(--space-3); text-wrap: balance; }
.hero__lead { max-width: 52ch; color: rgba(245, 240, 232, 0.86); font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: var(--space-3); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245, 240, 232, 0.72); margin-top: var(--space-4); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: var(--space-3); display: none; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 240, 232, 0.7); text-decoration: none; }
.scroll-cue i { width: 1px; height: 44px; background: currentColor; display: block; transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@media (min-width: 900px) { .scroll-cue { display: inline-flex; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Intro strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: var(--space-3) 0; display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
.strip li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.strip svg { width: 20px; height: 20px; flex: none; color: var(--moss); margin-top: 2px; }
@media (min-width: 720px) { .strip ul { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; gap: var(--space-4); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about__media .frame-note { position: absolute; left: -8px; bottom: 24px; background: var(--bg); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; color: var(--ink-2); box-shadow: 0 6px 24px rgba(31, 26, 23, 0.12); }
.about__text .lead { margin-bottom: var(--space-3); }
.about__facts { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.about__facts li { position: relative; padding-left: 30px; font-size: 15px; }
.about__facts li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 18px; height: 1px; background: var(--moss); }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 6fr; gap: var(--space-6); } .about__media { order: 0; } }

/* ---------- Services ---------- */
.services { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { position: relative; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.service:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(31, 26, 23, 0.12); }
.service__media { aspect-ratio: 4 / 5; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.service:hover .service__media img { transform: scale(1.04); }
.service__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service__body h3 { font-size: 1.7rem; margin: 0; }
.service__body p { color: var(--ink-2); font-size: 15px; margin: 0; flex: 1; }
.service__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; text-decoration: none; color: var(--accent); margin-top: 6px; min-height: 44px; }
.service__link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) ease; }
.service__link:hover svg { transform: translateX(3px); }

/* ---------- Portfolio ---------- */
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.filter small { opacity: 0.65; margin-left: 4px; font-size: 12px; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.masonry { columns: 2; column-gap: 12px; transition: opacity var(--dur) ease; }
.masonry.is-fading { opacity: 0; }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; column-gap: 20px; } }
.photo { break-inside: avoid; margin: 0 0 12px; position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
@media (min-width: 720px) { .photo { margin-bottom: 16px; } }
@media (min-width: 1100px) { .photo { margin-bottom: 20px; } }
.photo img { width: 100%; height: auto; transition: transform 800ms var(--ease-out), opacity var(--dur-slow) ease; opacity: 0; }
.photo img.is-loaded { opacity: 1; }
.photo:hover img, .photo:focus-visible img { transform: scale(1.03); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(31,26,23,0.45)); opacity: 0; transition: opacity var(--dur) ease; }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
.photo__label { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: 12px; letter-spacing: 0.04em; opacity: 0; transform: translateY(6px); transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out); z-index: 1; text-align: left; }
.photo:hover .photo__label, .photo:focus-visible .photo__label { opacity: 1; transform: none; }
.portfolio-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: var(--space-4); }
.portfolio-foot .muted { font-size: 14px; }

/* ---------- Stories ---------- */
.story { display: grid; gap: var(--space-3); align-items: center; padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; padding-top: 0; }
.story__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.story__media img:first-child { grid-row: span 2; aspect-ratio: auto; }
.story__text h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.story__text p { color: var(--ink-2); max-width: 50ch; }
@media (min-width: 900px) {
  .story { grid-template-columns: 7fr 5fr; gap: var(--space-6); }
  .story:nth-of-type(even) .story__media { order: 2; }
}

/* ---------- Instagram ---------- */
.ig-head { display: grid; gap: var(--space-3); align-items: end; margin-bottom: var(--space-4); }
@media (min-width: 900px) { .ig-head { grid-template-columns: 1fr auto; } }
.ig-handles { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.chip:hover { border-color: var(--ink); background: rgba(31,26,23,0.04); }
.chip svg { width: 18px; height: 18px; }
.ig-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); min-height: 320px; border: 1px solid var(--line); }
.ig-card__preview { position: relative; display: block; aspect-ratio: 4 / 5; }
.ig-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.ig-card__caption { padding: var(--space-2) var(--space-3); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ig-card__caption a { font-weight: 500; }
.ig-card.is-embedded .ig-card__preview, .ig-card.is-embedded .ig-card__caption { display: none; }
.ig-card blockquote.instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: var(--radius-lg) !important; }
.ig-consent { margin-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; color: var(--muted); }

/* ---------- Booking ---------- */
.booking { display: grid; gap: var(--space-5); }
@media (min-width: 1000px) { .booking { grid-template-columns: 5fr 7fr; gap: var(--space-6); } }
.booking__intro .lead { margin-bottom: var(--space-3); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 44px; min-height: 30px; font-size: 15px; color: var(--ink-2); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.notice { border-left: 2px solid var(--moss); padding: 10px 16px; background: rgba(95,107,74,0.08); font-size: 14px; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; margin-top: var(--space-3); }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
@media (min-width: 640px) { .form { padding: var(--space-4); } }
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid rgba(31,26,23,0.25); border-radius: var(--radius);
  min-height: 48px; padding: 10px 14px; width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,91,39,0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--danger); display: none; }
.field.has-error .error { display: block; }
.form-summary { display: none; margin-bottom: var(--space-2); padding: 12px 16px; border: 1px solid var(--danger); border-radius: var(--radius); color: var(--danger); font-size: 14px; background: rgba(163,48,31,0.06); }
.form-summary.is-visible { display: block; }
.form-summary ul { margin: 6px 0 0; padding-left: 18px; }
.form-summary a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: var(--space-3); }
.form-actions .muted { font-size: 13px; }
.form-result { display: none; margin-top: var(--space-3); padding: var(--space-3); border-radius: var(--radius-lg); background: rgba(95,107,74,0.1); border: 1px solid rgba(95,107,74,0.3); }
.form-result.is-visible { display: block; animation: rise var(--dur) var(--ease-out); }
.form-result h3 { font-size: 1.6rem; margin-bottom: 8px; }
.form-result textarea { width: 100%; min-height: 180px; font: 14px/1.5 var(--font-body); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.form-result .btn-row { margin-top: 12px; }
.copy-status { font-size: 13px; color: var(--moss); min-height: 1.2em; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform var(--dur) var(--ease-out); color: var(--moss); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 65ch; }
/* Answers slide open/closed instead of jumping (needs interpolate-size, Chrome 131+; others fall back to the instant toggle) */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height var(--dur) var(--ease-out), content-visibility var(--dur) allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- Contact / CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-3); }
.contact-grid { display: grid; gap: var(--space-3); margin-top: var(--space-5); text-align: left; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: var(--space-3); border: 1px solid rgba(245,240,232,0.18); border-radius: var(--radius-lg); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-card p { color: var(--on-dark-muted); font-size: 15px; margin: 0; }
.contact-card a { color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: #171310; color: var(--on-dark-muted); padding: var(--space-5) 0 var(--space-3); font-size: 14px; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--on-dark); font-family: var(--font-body); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .brand { color: var(--on-dark); margin-bottom: 12px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(245,240,232,0.2); border-radius: 999px; }
.social-row a:hover { border-color: var(--on-dark); }
.social-row svg { width: 18px; height: 18px; }
.mobile-menu .social-row a { border-color: var(--line); color: var(--ink); }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(245,240,232,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(23, 19, 16, 0.96); display: none; align-items: center; justify-content: center; color: var(--on-dark); }
.lightbox.is-open { display: flex; animation: fadeIn 220ms ease; }
.lightbox__figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px var(--gutter) 72px; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); animation: zoomIn 220ms var(--ease-out); }
.lightbox__img.is-switching { animation: none; opacity: 0.35; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--on-dark-muted); background: linear-gradient(0deg, rgba(23,19,16,0.9), transparent); }
.lightbox__caption a { color: var(--on-dark); }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(245,240,232,0.25); background: rgba(23,19,16,0.5); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur-fast); }
.lightbox__btn:hover { background: rgba(245,240,232,0.15); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
@media (max-width: 719px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 64px; transform: none; } .lightbox__figure { padding-bottom: 130px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(1.02); } }
/* FLIP open: main.js sizes the image from the photo's aspect ratio so the thumbnail placeholder and the full file share one box */
.lightbox.is-flip .lightbox__img { width: var(--lb-w); height: var(--lb-h); max-width: none; max-height: none; transform-origin: 0 0; will-change: transform; animation: none; }
.lightbox.is-flip.is-open { animation: lbBgIn 360ms ease; }
.lightbox.is-flip.is-open .lightbox__btn, .lightbox.is-flip.is-open .lightbox__caption { animation: fadeIn 240ms ease 200ms both; }
.lightbox.is-closing { pointer-events: none; }
@keyframes lbBgIn { from { background-color: rgba(23, 19, 16, 0); } }
body.is-locked { overflow: hidden; }

/* ---------- Legal pages ---------- */
.page-hero { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-4); background: var(--ink); color: var(--on-dark); }
.page-hero .eyebrow { color: #b9c29e; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.9rem; margin-top: var(--space-4); }
.prose h3 { font-size: 1.4rem; margin-top: var(--space-3); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.draft-banner { background: #f4e5c6; color: #5c4414; border: 1px solid #e3cd98; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: var(--space-4); }
.site-header.is-static { position: sticky; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

/* ---------- Extra motion (transform/opacity only) ---------- */
/* Scroll progress line under the header */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 101; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity var(--dur) ease; pointer-events: none; }
.progress.is-visible { opacity: 0.9; }

/* Hero headline: word-by-word rise once the title has been split by JS */
.hero__title.is-split { animation: none; opacity: 1; transform: none; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); transform-origin: left bottom; animation: wordRise 820ms var(--ease-out) forwards; animation-delay: calc(160ms + var(--i) * 55ms); will-change: transform, opacity; }
@keyframes wordRise { to { opacity: 1; transform: none; } }

/* Hero: slow breathe on the photo (parallax adds translate on top via JS) */
.hero__media img { animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { from { scale: 1.08; } to { scale: 1.15; } }

/* Gallery cards: staggered entrance per batch + gentle settle of each thumbnail */
.photo { animation: cardIn 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.photo img { transform: scale(1.04); }
.photo img.is-loaded { transform: scale(1); }
.photo:hover img.is-loaded, .photo:focus-visible img.is-loaded { transform: scale(1.03); }

/* Lightbox: slide in the direction of travel */
.lightbox__img.anim-next { animation: slideNext 320ms var(--ease-out); }
.lightbox__img.anim-prev { animation: slidePrev 320ms var(--ease-out); }
@keyframes slideNext { from { opacity: 0; transform: translateX(28px); } }
@keyframes slidePrev { from { opacity: 0; transform: translateX(-28px); } }

/* Buttons & links: lift + arrow nudge */
.btn--primary, .btn--light { box-shadow: 0 0 0 rgba(31,26,23,0); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.btn--primary:hover, .btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,26,23,0.18); }
.btn--primary:active, .btn--light:active { transform: translateY(0); box-shadow: none; }
.chip:hover svg, .social-row a:hover svg { transform: rotate(-8deg) scale(1.08); }
.chip svg, .social-row svg { transition: transform var(--dur) var(--ease-out); }
.filter { transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.filter:active { transform: scale(0.96); }

/* Eyebrow rule draws in with the reveal */
.reveal .eyebrow::before, .hero__content .eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; margin-right: 10px; vertical-align: middle; transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out) 120ms; }
.reveal.is-visible .eyebrow::before { transform: scaleX(1); }
.hero__content .eyebrow::before { animation: ruleIn 700ms var(--ease-out) 300ms forwards; }
@keyframes ruleIn { to { transform: scaleX(1); } }

/* Service cards: image drifts up slightly on hover, text follows */
.service__body { transition: transform var(--dur) var(--ease-out); }
.service:hover .service__body { transform: translateY(-2px); }

/* Story images: subtle parallax handled by JS via [data-parallax]; keep them composited */
[data-parallax] { will-change: transform; }

/* Category marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-style: italic; color: var(--ink-2); white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--moss); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ answer slides in when opened */
.faq details[open] .answer { animation: answerIn 360ms var(--ease-out); }
@keyframes answerIn { from { opacity: 0; transform: translateY(-6px); } }

/* Mobile menu links cascade in */
.mobile-menu.is-open > a { animation: rise 480ms var(--ease-out) both; }
.mobile-menu.is-open > a:nth-child(1) { animation-delay: 40ms; }
.mobile-menu.is-open > a:nth-child(2) { animation-delay: 90ms; }
.mobile-menu.is-open > a:nth-child(3) { animation-delay: 140ms; }
.mobile-menu.is-open > a:nth-child(4) { animation-delay: 190ms; }
.mobile-menu.is-open > a:nth-child(5) { animation-delay: 240ms; }
.mobile-menu.is-open > a:nth-child(6) { animation-delay: 300ms; }

/* About image: soft frame slides out on reveal */
.about__media .frame-note { transform: translateX(-12px); opacity: 0; transition: transform 600ms var(--ease-out) 350ms, opacity 600ms ease 350ms; }
.about__media.is-visible .frame-note { transform: none; opacity: 1; }

/* ---------- Reduced motion ---------- */
/* Image wipe: the photo is unmasked top-down instead of fading; the container itself stays put */
.reveal.reveal--wipe { --wipe-r: var(--radius); opacity: 1; transform: none; transition: none; }
.about__media.reveal--wipe { --wipe-r: var(--radius-lg); }
.reveal--wipe img { clip-path: inset(0 0 100% 0 round var(--wipe-r)); transition: clip-path 900ms var(--ease-in-out); }
.reveal--wipe.is-visible img { clip-path: inset(0 0 0 0 round var(--wipe-r)); }
.reveal--wipe img:nth-child(2) { transition-delay: 140ms; }
.reveal--wipe img:nth-child(3) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__content > * { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .photo img { opacity: 1; transform: none; }
  .photo { animation: none; }
  .scroll-cue i { animation: none; }
  .hero__media img { animation: none; }
  .hero__title .w { opacity: 1; transform: none; animation: none; }
  .marquee__track { animation: none; }
  .reveal .eyebrow::before, .hero__content .eyebrow::before { transform: none; animation: none; }
  .about__media .frame-note { transform: none; opacity: 1; }
  .progress { display: none; }
  .reveal--wipe img { clip-path: none; transition: none; }
  .faq details::details-content { transition: none; }
}
