/* Greidson Fotografia v3 — dark editorial wedding studio
   Mobile-first: base rules are the phone; min-width layers add space. */

:root {
  --night: #14110f;
  --night-line: rgba(245, 239, 230, 0.14);
  --paper: #f5f0e8;
  --white: #fbf9f5;
  --ink: #1d1916;
  --ink-soft: #5d554c;
  --line: rgba(29, 25, 22, 0.14);
  --on-night: #f5efe6;
  --on-night-soft: rgba(245, 239, 230, 0.74);
  --bronze: #8f6240;        /* fills: white text 5.3:1 */
  --bronze-light: #d2ad88;  /* text and script on night: 8.9:1 */
  --wa-green: #1f8f4e;      /* WhatsApp glyph on the white disc: 4.1:1 */

  --serif: 'Gilda Display', 'Times New Roman', serif;
  --script: 'Mrs Saint Delafield', cursive;
  --sans: 'Jost', system-ui, sans-serif;

  --radius: 2px;
  --pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: 20px;
  --nav-h: 64px;
  --banner-h: 0px;
}
.has-banner { --banner-h: 32px; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--banner-h)); scrollbar-color: var(--bronze) var(--night); }
body {
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--bronze); color: #fff; }
:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 3px; }
.benefits :focus-visible, .portfolio :focus-visible, .contact :focus-visible { outline-color: var(--bronze); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--white); color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: calc(var(--banner-h) + 12px); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.title, .hero-title { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.title { font-size: clamp(2rem, 8.5vw, 2.5rem); }
.script { font-family: var(--script); font-weight: 400; line-height: 1; color: var(--bronze-light); }

/* ---------- Test-number banner ---------- */
.test-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--banner-h);
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: var(--bronze-light); color: var(--night);
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.test-banner[hidden] { display: none; }
.test-banner code { font-size: 0.95em; }
.tb-long { display: none; }
@media (min-width: 641px) { .tb-long { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--pill);
  font-weight: 500; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }

/* primary: bronze pill carrying a white WhatsApp disc */
.btn-wa {
  padding: 0 24px 0 8px; color: #fff;
  background: linear-gradient(180deg, #9a6a45 0%, #845a3a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 8px -4px rgba(132, 90, 58, 0.55);
}
.btn-wa:hover { background: linear-gradient(180deg, #8f6240 0%, #76502f 100%); }
.btn-disc {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--wa-green); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.btn-disc .icon { width: 22px; height: 22px; }
.wa-off .btn-disc { color: var(--bronze); }
.btn-arrow { width: 18px; height: 18px; margin-left: auto; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-wa > span:not(.btn-disc) { margin-left: auto; } /* centres the label when the pill is full-width */

/* secondary: quiet outline pill with an arrow ring */
.btn-ghost {
  padding: 0 8px 0 24px; color: var(--on-night);
  border-color: rgba(245, 239, 230, 0.32); background: rgba(245, 239, 230, 0.04);
}
.btn-ghost:hover { border-color: rgba(245, 239, 230, 0.6); }
.btn-ghost > span:not(.btn-ring) { margin-left: auto; }
.btn-ring {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border-radius: 50%;
  border: 1px solid rgba(245, 239, 230, 0.4);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.btn-ring .icon { width: 18px; height: 18px; }
.btn-ghost:hover .btn-ring { background: var(--on-night); color: var(--night); transform: rotate(-45deg); }

.btn-sm { min-height: 48px; padding: 0 18px 0 6px; font-size: 0.9375rem; gap: 10px; }
.btn-sm .btn-disc { width: 36px; height: 36px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 40; height: var(--nav-h); color: var(--on-night);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav.is-scrolled { background: rgba(20, 17, 15, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: var(--night-line); }
/* backdrop-filter would make the header the containing block of the fixed menu */
.nav.is-open { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }

.nav-links {
  position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + var(--banner-h) + 16px) var(--gutter) 32px;
  background: var(--night); visibility: hidden; opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.nav-links a {
  display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--night-line);
  font-family: var(--serif); font-size: 2rem; text-decoration: none; color: var(--on-night);
}
.nav.is-open .nav-links { visibility: visible; opacity: 1; transition-delay: 0s; }

.nav-wa {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, #9a6a45 0%, #845a3a 100%); color: #fff; text-decoration: none;
  transition: transform 0.15s var(--ease);
}
.nav-wa:active { transform: scale(0.94); }
.sticky-on .nav-wa { opacity: 0; visibility: hidden; }
.nav-wa { transition: transform 0.15s var(--ease), opacity 0.25s var(--ease), visibility 0.25s; }
.nav-wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nav-wa .icon { width: 22px; height: 22px; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon-close { display: none; }
.nav.is-open .icon-open { display: none; }
.nav.is-open .icon-close { display: block; }

/* ---------- Hero (phone: photo on top, copy below) ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); padding: calc(var(--nav-h) + var(--banner-h)) 0 40px; overflow: hidden; }
.hero-media { position: relative; height: 56svh; min-height: 340px; max-height: 620px; }
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 17, 15, 0.65), transparent);
}
.hero-media {
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
/* slideshow: slow crossfade, each photo drifting in a gentle zoom */
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-m, 50% 40%); }
.motion-ok .slide.is-active img,
.motion-ok .slide.is-leaving img { animation: drift 8s linear both; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.08); } }

.hero-controls {
  position: absolute; z-index: 3; top: calc(var(--nav-h) + var(--banner-h) + 12px); right: var(--gutter);
  display: flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: var(--pill);
  background: rgba(20, 17, 15, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hc-pause { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--on-night); cursor: pointer; border-radius: 50%; }
.hc-pause .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.hc-pause .icon-play, .hero.is-paused .hc-pause .icon-pause { display: none; }
.hero.is-paused .hc-pause .icon-play { display: block; }
html:not(.motion-ok) .hc-pause { display: none; }
.hc-dots { display: flex; }
.hc-dot { position: relative; width: 30px; height: 40px; border: 0; background: none; cursor: pointer; }
.hc-dot::before, .hc-fill {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
}
.hc-dot::before { background: rgba(245, 239, 230, 0.32); }
.hc-fill { background: var(--bronze-light); transform: scaleX(0); transform-origin: left; }
.hc-dot[aria-current] .hc-fill { transform: scaleX(1); }
.motion-ok .hc-dot[aria-current] .hc-fill { animation: progress var(--slide-ms, 6500ms) linear both; }
.hero.is-paused .hc-fill, .hero.is-paused .slide img,
.hero.is-offscreen .hc-fill, .hero.is-offscreen .slide img { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-content { position: relative; z-index: 2; margin-top: -88px; }
.hero-title { font-size: clamp(2.5rem, 11vw, 3.25rem); line-height: 1.04; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word { display: inline-block; }
.script-line { position: relative; display: inline-block; margin: -0.02em 0 0 0.45em; }
.hero-script { position: relative; display: block; font-size: 1.7em; line-height: 1; padding: 0 0.12em 0.08em; }
.hero-script.is-writing .hero-script-text { visibility: hidden; }
.hero-handwriting { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-script.is-preparing { visibility: hidden; }
.flourish { position: absolute; left: 6%; bottom: -0.02em; width: 92%; height: 0.36em; overflow: visible; pointer-events: none; }
.flourish path { fill: none; stroke: var(--bronze-light); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-lede { margin-top: 18px; max-width: 40ch; font-size: 1.0625rem; color: var(--on-night-soft); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--on-night-soft); text-align: center; }
.hero-rail { display: none; }

/* headline entrance: words rise out of their line, the script word writes itself, the flourish draws */
.motion-ok .word { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
.motion-ok .flourish path { animation: draw 0.9s var(--ease) 1.55s both; }
.motion-ok .hero-lede { animation: fade-up 0.7s var(--ease) 0.2s both; }
.motion-ok .hero-actions { animation: fade-up 0.7s var(--ease) 0.25s both; }
.motion-ok .hero-note { animation: fade-up 0.7s var(--ease) 0.35s both; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); filter: blur(4px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Benefits ---------- */
.benefits { background: var(--paper); border-bottom: 1px solid var(--line); }
.benefit-list { list-style: none; display: grid; }
.benefit-list li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; }
.benefit-list li + li { border-top: 1px solid var(--line); }
.benefit-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; background: rgba(143, 98, 64, 0.1); color: var(--bronze);
}
.benefit-icon .icon { width: 22px; height: 22px; }
.benefit-list h3 { font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1.3; }
.benefit-list p { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 64px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 28px; }
.section-head .title { max-width: 16ch; }
.section-head p { color: var(--ink-soft); max-width: 44ch; }

/* phone: swipeable row, the peeking card says there is more */
.cards {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px;
  margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.cards li { scroll-snap-align: start; }
.card {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border: 0; padding: 0; border-radius: var(--radius); background: var(--night); color: #fff; cursor: pointer; text-align: left;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,17,15,.55) 65%, rgba(20,17,15,.9) 100%); }
.card:hover img { transform: scale(1.05); }
.card-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 2px; }
.card-title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: rgba(255,255,255,.85); }
.card-meta::after {
  content: ""; width: 26px; height: 1px; background: currentColor;
  transform: scaleX(0.55); transform-origin: left; transition: transform 0.3s var(--ease);
}
.card:hover .card-meta::after { transform: none; }
.also { margin-top: 24px; color: var(--ink-soft); }
.also strong { font-weight: 500; color: var(--ink); }
.also a { color: var(--bronze); font-weight: 500; text-underline-offset: 3px; display: inline-block; min-height: 44px; line-height: 44px; }

/* ---------- About (dark) ---------- */
.about { background: var(--night); color: var(--on-night); padding: 64px 0; }
.about-grid { display: grid; gap: 40px; }
.about-photo { position: relative; isolation: isolate; max-width: 440px; margin-right: 18px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1px solid rgba(210, 173, 136, 0.45); border-radius: var(--radius);
}
.about-script { font-size: clamp(2.25rem, 10vw, 3.25rem); margin: 4px 0 20px 0.3em; }
.about-text > p:not(.script) { color: var(--on-night-soft); max-width: 52ch; margin-bottom: 14px; }
.steps { list-style: none; margin: 24px 0 32px; border-top: 1px solid var(--night-line); }
.steps li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--night-line); color: var(--on-night-soft); }
.steps strong { font-weight: 500; color: var(--on-night); }
.step-n { font-family: var(--serif); font-size: 1.375rem; color: var(--bronze-light); min-width: 1ch; }
.about-text .btn { width: 100%; }

/* ---------- Contact: service picker ---------- */
.contact { background: var(--paper); padding: 64px 0 72px; }
.contact-grid { display: grid; gap: 28px; }
.contact-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--night); color: var(--on-night); margin-bottom: 20px; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-head p { margin-top: 14px; color: var(--ink-soft); max-width: 42ch; }
.picker { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.picker fieldset { border: 0; min-width: 0; }
.picker legend { font-weight: 500; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: transparent; font-size: 0.9375rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.chip:hover span { border-color: var(--bronze); }
.chip:active span { transform: scale(0.96); }
.chip input:checked + span { background: var(--night); color: var(--on-night); border-color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.field { margin: 20px 0 22px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 1rem; caret-color: var(--bronze);
}
.field input:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: transparent; }
.preview { margin: 0 0 18px; }
.preview-label { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 8px; }
.preview-bubble {
  position: relative; padding: 12px 14px; border-radius: 12px 12px 12px 2px;
  background: var(--paper); border: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; color: var(--ink);
}
.picker-note { margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night-soft); padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand-logo { height: 60px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; font-size: 0.9375rem; }
.footer h3 { font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; color: var(--on-night); margin-bottom: 8px; }
.footer nav a, .footer-icon-link {
  display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer nav a:hover, .footer-icon-link:hover { color: var(--on-night); }
.footer-icon-link .icon { width: 18px; height: 18px; }
.footer-icon-link[hidden] { display: none; }
.footer-list { list-style: none; font-size: 0.9375rem; display: grid; gap: 6px; }
.footer-bottom {
  display: grid; gap: 6px; padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid var(--night-line); font-size: 0.8125rem;
}

/* ---------- Sticky WhatsApp (phone: bottom bar within thumb reach) ---------- */
.sticky-wa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 17, 15, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--night-line);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.sticky-wa.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: rgba(14, 12, 10, 0.97); color: var(--on-night);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade 0.3s var(--ease); }
.lightbox::backdrop { background: rgba(14, 12, 10, 0.6); }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.lb-title { font-family: var(--serif); font-size: 1.375rem; }
.lb-count { color: var(--on-night-soft); font-size: 0.9375rem; margin-right: auto; font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: var(--radius); transition: opacity 0.3s var(--ease); }
.lb-stage img.is-loading { opacity: 0; }
.lb-bottom { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
.lb-btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(245, 239, 230, 0.08); border: 1px solid var(--night-line); transition: background-color 0.2s var(--ease);
}
.lb-btn:hover { background: rgba(245, 239, 230, 0.18); }

/* ======================= ≥ 641px: large phones, small tablets ======================= */
@media (min-width: 641px) {
  :root { --gutter: 32px; }
  .title { font-size: clamp(2.25rem, 5vw, 3rem); }
  .hero-media { height: 60svh; max-height: 720px; }
  .hero-content { margin-top: -96px; }
  .hero-title { font-size: clamp(3rem, 7vw, 3.75rem); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-note { text-align: left; }
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-list li { padding: 28px 24px 28px 0; }
  .benefit-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .benefit-list li + li { border-top: 0; }
  .benefit-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .portfolio { padding: 88px 0; }
  .cards {
    grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
    overflow: visible; margin: 0; padding: 0; scroll-snap-type: none;
  }
  .cards li { grid-column: span 2; }
  .cards li:nth-child(-n+2) { grid-column: span 3; } /* weddings and pre-wedding lead */
  .about { padding: 88px 0; }
  .about-text .btn { width: auto; }
  .contact { padding: 80px 0 88px; }
  .picker { padding: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ======================= ≥ 861px: tablets landscape, laptops ======================= */
@media (min-width: 861px) {
  :root { --nav-h: 76px; --gutter: 48px; }
  .nav-inner { gap: 24px; }
  .brand { margin-right: 0; }
  .brand-logo { height: 46px; }
  .nav-links {
    position: static; z-index: auto; flex-direction: row; gap: 32px; margin: 0 auto; padding: 0;
    background: none; visibility: visible; opacity: 1; transition: none;
  }
  .nav-links a {
    position: relative; min-height: 44px; border: 0;
    font-family: var(--sans); font-size: 0.9375rem; color: var(--on-night-soft); transition: color 0.2s var(--ease);
  }
  .nav-links a:hover, .nav-links a[aria-current] { color: var(--on-night); }
  .nav-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--bronze-light); }
  .nav-wa { display: inline-flex; gap: 10px; width: auto; padding: 0 20px 0 14px; border-radius: var(--pill); font-weight: 500; font-size: 0.9375rem; }
  .nav-wa-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .nav-wa .icon { width: 20px; height: 20px; }
  .menu-btn { display: none; }
  .sticky-on .nav-wa { opacity: 1; visibility: visible; }

  /* hero: copy left, photo as a right-hand panel melting into the night */
  .hero { min-height: max(660px, 100svh); display: flex; align-items: center; padding: 0; }
  .hero-media { position: absolute; inset: 0 0 0 auto; width: min(66%, 1100px); height: 100%; min-height: 0; max-height: none; }
  .hero-media::before {
    display: block; inset: 0; width: auto; height: auto;
    background: linear-gradient(90deg, rgba(20, 17, 15, 0.9) 0%, rgba(20, 17, 15, 0.55) 22%, transparent 40%);
  }
  .hero-media {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  }
  .slide img { object-position: var(--pos-d, 50% 50%); }
  .hero-controls { top: auto; bottom: 32px; right: calc(var(--gutter) + 40px); }
  .hero-content { margin-top: 0; padding-top: calc(var(--nav-h) + var(--banner-h) + 40px); padding-bottom: 72px; }
  .hero-title { font-size: clamp(3rem, 5.2vw, 4.75rem); }
  .hero-lede { margin-top: 26px; max-width: 38ch; }
  .hero-actions { margin-top: 34px; gap: 14px; }
  .hero-rail {
    position: absolute; right: calc(var(--gutter) - 8px); top: 50%; translate: 0 -50%;
    writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; gap: 14px;
    min-width: 44px; padding: 8px; font-size: 0.8125rem; letter-spacing: 0.05em;
    color: var(--on-night-soft); text-decoration: none; transition: color 0.2s var(--ease);
  }
  .hero-rail .icon { width: 18px; height: 18px; rotate: 90deg; }
  .hero-rail::before { content: ""; width: 1px; height: 56px; background: currentColor; opacity: 0.5; }
  .hero-rail:hover { color: var(--on-night); }

  .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: 44px; }
  .section-head p { max-width: 340px; }

  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 104px); align-items: center; }
  .about-photo { max-width: none; }

  /* desktop: the sticky bar becomes a floating pill */
  .sticky-wa {
    left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateY(140%);
  }
  .sticky-wa .btn { width: auto; }
}

/* ======================= ≥ 1081px: desktop ======================= */
@media (min-width: 1081px) {
  .benefit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefit-list li, .benefit-list li:nth-child(even) { padding: 36px 24px; border-left: 0; }
  .benefit-list li:first-child { padding-left: 0; }
  .benefit-list li + li, .benefit-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .benefit-list li:nth-child(n+3) { border-top: 0; }
  .portfolio { padding: 120px 0; }
  .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards li, .cards li:nth-child(-n+2) { grid-column: auto; }
  .about { padding: 120px 0; }
  .contact { padding: 104px 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
  .picker { padding: 36px; }
  .footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
