/* ==========================================================================
   JUST US PHOTOGRAPHY & DESIGN
   Global stylesheet. One visual system, used by every page.

   Sections:
   01 Tokens      02 Base        03 Typography   04 Layout
   05 Buttons     06 Header      07 Motion       08 Cursor + rail
   09 Home        10 Portfolio   11 Lightbox     12 Services
   13 About       14 Contact     15 Footer       16 Reduced motion
   ========================================================================== */

/* 01 — TOKENS ------------------------------------------------------------ */
:root {
  --paper: #ffffff;
  --ivory: #f8f6f1;
  --ivory-deep: #f1eee7;
  --ink: #171717;
  --ink-70: #4a4a48;
  --ink-50: #6f6e6b;   /* AA on white and on ivory */
  --gold: #c09868;        /* sampled from the studio logo */
  --gold-deep: #906a3c;   /* same hue, dark enough to pass AA as small text */
  --line: rgba(23, 23, 23, 0.14);
  --line-soft: rgba(23, 23, 23, 0.08);
  --dark: #100f0e;

  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5.2vw, 78px);
  --measure: 62ch;
  --maxw: 1560px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 620ms;
  --dur-slow: 900ms;

  --section: clamp(84px, 12vw, 190px);
}

/* 02 — BASE -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; }

::selection { background: rgba(192, 152, 104, 0.3); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* 03 — TYPOGRAPHY -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.d1 { font-size: clamp(2.75rem, 7.6vw, 6.5rem); }
.d2 { font-size: clamp(2.1rem, 5.1vw, 4.05rem); line-height: 1.08; }
.d3 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.14; }
.d4 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0;
  line-height: 1.4;
}
.eyebrow--gold { color: var(--gold-deep); }

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 46ch;
}

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.text-body { color: var(--ink-70); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* 04 — LAYOUT ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 1180px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(60px, 8vw, 118px); }
.section--ivory { background: var(--ivory); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
}

.bleed { width: 100%; }

/* 05 — BUTTONS + LINKS --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

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

/* on photography */
.btn--light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.68);
  color: #fff;
}
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

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

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

/* editorial arrow link */
.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link span { transition: transform var(--dur) var(--ease); }
.link:hover { border-bottom-color: var(--ink); }
.link:hover span { transform: translateX(6px); }
.link--light { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.35); }
.link--light:hover { border-bottom-color: #fff; }

.tel-link {
  font-family: var(--serif);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.tel-link:hover { border-bottom-color: var(--gold); }

/* 06 — HEADER ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  padding-block: clamp(18px, 2.2vw, 30px);
  transition: background var(--dur) var(--ease-soft),
              padding var(--dur) var(--ease-soft),
              box-shadow var(--dur) var(--ease-soft);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header--over { color: #fff; }
.header--over .brand__name,
.header--over .brand__sub,
.header--over .nav__link,
.header--over .header__tel { color: #fff; }
.header--over .brand__sub,
.header--over .nav__link { color: rgba(255, 255, 255, 0.86); }

.header.is-stuck {
  background: rgba(255, 255, 255, 0.97);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--line-soft);
  color: var(--ink);
}
.header.is-stuck .brand__name,
.header.is-stuck .nav__link,
.header.is-stuck .header__tel { color: var(--ink); }
.header.is-stuck .brand__sub { color: var(--ink-50); }

/* logo slot — swap the <img> in when the official logo is supplied */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}
.brand__img {
  height: clamp(34px, 3.6vw, 48px);
  width: auto;
  display: block;
}
.brand__img--light { display: none; }
/* over the hero photograph the wordmark is set in white */
.header--over:not(.is-stuck) .brand__img--dark { display: none; }
.header--over:not(.is-stuck) .brand__img--light { display: block; }
/* with the drawer open the background is ivory again, so go back to black */
body.is-locked .header--over:not(.is-stuck) .brand__img--dark { display: block; }
body.is-locked .header--over:not(.is-stuck) .brand__img--light { display: none; }
body.is-locked .header--over { color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__sub {
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 42px); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-70);
  padding-block: 4px;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: currentColor; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: inherit; }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold);
  height: 2px;
}

.header__tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink);
  padding: 11px 18px;
  border: 1px solid currentColor;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.header__tel svg { width: 13px; height: 13px; flex: none; }
.header__tel:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.header--over .header__tel:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* mobile toggle */
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0 10px 10px;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn__bars { display: block; width: 26px; }
.menu-btn__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 380ms var(--ease), opacity 240ms var(--ease);
}
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.5px) rotate(9deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.5px) rotate(-9deg); }

/* mobile drawer */
.menu {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 108px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 420ms var(--ease), transform 480ms var(--ease), visibility 0s 480ms;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms var(--ease), transform 480ms var(--ease), visibility 0s;
}
.menu__list { list-style: none; margin: 0 0 44px; padding: 0; }
.menu__list li { border-bottom: 1px solid var(--line-soft); }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  text-decoration: none;
  color: var(--ink);
}
.menu__num {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}
.menu__foot { color: var(--ink-70); font-size: 0.875rem; }
.menu__foot a { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; display: block; margin-top: 6px; }

/* sticky mobile call bar */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  display: none;
  transform: translateY(101%);
  transition: transform 480ms var(--ease);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line-soft);
  padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
  backdrop-filter: saturate(1.1) blur(6px);
}
.callbar.is-visible { transform: none; }
.callbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.callbar__link svg { width: 14px; height: 14px; }

/* 07 — MOTION ------------------------------------------------------------ */
/* image reveal: the photograph rises behind a mask and settles from a slight
   scale. The mask lives on the <img>, never on the observed wrapper — an
   element clipped to zero height is never seen by IntersectionObserver. */
.reveal-img {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ivory-deep);
}
.reveal-img > img {
  width: 100%;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.06);
  transition: clip-path var(--dur-slow) var(--ease), transform 1500ms var(--ease);
}
.reveal-img.is-in > img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* text reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}
.reveal.is-in { 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; }

/* hairline that draws itself */
.draw-line {
  display: block;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease);
}
.draw-line.is-in { transform: scaleX(1); }

/* figures behave like photographic prints */
figure { margin: 0; }
.figcap {
  display: flex;
  max-width: none;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.figcap b { font-weight: 500; color: var(--ink); }
.figcap i { font-style: normal; color: var(--gold-deep); }

/* 08 — CURSOR + GOLD RAIL ------------------------------------------------ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 78px; height: 78px;
  margin: -39px 0 0 -39px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.cursor.is-active { opacity: 1; transform: scale(1); }

.rail {
  position: fixed;
  left: 26px;
  top: 22vh;
  bottom: 22vh;
  width: 1px;
  z-index: 90;
  background: var(--line-soft);
  display: none;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.rail.is-visible { opacity: 1; }
.rail__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
}
.rail__num {
  position: absolute;
  left: -3px;
  bottom: -30px;
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  color: var(--ink-50);
}

/* 09 — HOME -------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}
.hero__media {
  position: absolute;
  inset: -2% 0 0 0;
  height: 104%;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* readability without a box: a gradient weighted to the lower left */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 11, 10, 0.62) 0%, rgba(12, 11, 10, 0.2) 42%, rgba(12, 11, 10, 0) 68%),
    linear-gradient(to right, rgba(12, 11, 10, 0.52) 0%, rgba(12, 11, 10, 0.14) 38%, rgba(12, 11, 10, 0) 62%);
}
.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 9vh, 108px);
  color: #fff;
  will-change: transform;
}
.hero__title {
  font-size: clamp(2.6rem, 5.9vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  max-width: 15ch;
}
.hero__title em {
  font-style: italic;
  letter-spacing: 0;
}
.hero__sub {
  margin: 22px 0 34px;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.15vw, 1.075rem);
  color: rgba(255, 255, 255, 0.9);
}
.hero__eyebrow { color: rgba(255, 255, 255, 0.72); margin-bottom: 20px; }
.hero__meta {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 108px);
  text-align: right;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  line-height: 2;
}
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero__scroll i {
  display: block;
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0 55% 0 0;
  background: var(--gold);
}

/* intro statement */
.intro__grid { align-items: start; }
.intro__head { grid-column: 1 / span 6; }
.intro__body { grid-column: 8 / span 5; }
.intro__statement {
  font-size: clamp(2.15rem, 3.6vw, 3.15rem);
  line-height: 1.14;
  max-width: 16ch;
}
.intro__statement em { font-style: italic; }
.intro__line { width: 74px; margin-bottom: 34px; }

/* featured composition */
.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.comp { position: relative; }
.comp__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.comp__row + .comp__row { margin-top: clamp(40px, 5vw, 84px); }

.a-wedding { grid-column: 1 / span 5; grid-row: 1; }
/* the landscape frame is laid over the edge of the vertical one, the way a
   print sits on a spread — desktop only, and never more than a few percent */
.a-couple  { grid-column: 5 / span 5; grid-row: 1; align-self: end; margin-left: -3%; position: relative; z-index: 2; }
.a-couple .reveal-img { border: clamp(8px, 0.85vw, 14px) solid var(--paper); }
.a-family  { grid-column: 1 / span 8; }
.a-note    { grid-column: 10 / span 3; align-self: end; padding-bottom: 8px; }
/* runs to the edge of the page rather than the text column */
.a-quince  { grid-column: 1 / span 12; margin-inline: calc(var(--gutter) * -1); }

.card { position: relative; display: block; text-decoration: none; color: inherit; }
.card .reveal-img { background: var(--ivory-deep); }
.card img { transition: transform 900ms var(--ease); }
.card:hover .reveal-img.is-in > img { transform: scale(1.03); }
.card__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}
.card__tag::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0;
  transition: width 560ms var(--ease), margin-right 560ms var(--ease);
}
.card:hover .card__tag,
.card:focus-visible .card__tag { opacity: 1; transform: none; }
.card:hover .card__tag::before { width: 26px; margin-right: 10px; }

/* one print, very slightly off-axis */
.tilt { transform: rotate(-1.2deg); }

/* services index */
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index__item { border-bottom: 1px solid var(--line); }
.index__link {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: baseline;
  gap: clamp(14px, 3vw, 46px);
  padding: clamp(22px, 2.6vw, 34px) 0;
  text-decoration: none;
  color: inherit;
  transition: color 500ms var(--ease);
}
.index__num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: rgba(23, 23, 23, 0.16);
  transition: color 560ms var(--ease);
  line-height: 1;
}
.index__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.9rem);
  line-height: 1.08;
  transition: transform 560ms var(--ease);
  display: inline-block;
}
.index__desc {
  font-size: 0.8125rem;
  color: var(--ink-50);
  letter-spacing: 0.02em;
  text-align: right;
  max-width: 30ch;
}
.index__link:hover .index__num { color: var(--gold); }
.index__link:hover .index__title { transform: translateX(10px); }

/* full-width interlude */
.interlude {
  position: relative;
  min-height: clamp(460px, 82vh, 840px);
  display: grid;
  overflow: hidden;
  background: var(--dark);
}
.interlude__media { position: absolute; inset: -6% 0; will-change: transform; }
.interlude__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 9, 0.32), rgba(10, 10, 9, 0.14) 45%, rgba(10, 10, 9, 0.5)),
    linear-gradient(to right, rgba(10, 10, 9, 0.5) 0%, rgba(10, 10, 9, 0.12) 42%, rgba(10, 10, 9, 0) 66%);
}
.interlude__inner {
  position: relative;
  z-index: 2;
  align-self: center;
  color: #fff;
  padding-block: 80px;
}
.interlude__text {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.16;
  max-width: 18ch;
}
.interlude__text em { font-style: italic; }

/* reviews */
.reviews__grid { gap: clamp(24px, 3vw, 56px); }
.review {
  grid-column: span 4;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.review__body {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-70);
  min-height: 5.5em;
}
.review__meta {
  margin-top: 20px;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
/* EDITABLE: remove .is-placeholder styling once real reviews are pasted in */
.is-placeholder .review__body {
  color: var(--ink-50);
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2;
}

/* closing */
.closing { background: var(--ivory); }
.closing__grid { align-items: center; gap: clamp(30px, 5vw, 80px); }
.closing__media { grid-column: 1 / span 5; }
.closing__body { grid-column: 7 / span 5; }
.closing__phone {
  display: inline-block;
  margin: 28px 0 6px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-decoration: none;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
  transition: border-color 500ms var(--ease);
}
.closing__phone:hover { border-bottom-color: var(--gold); }

/* 10 — PORTFOLIO --------------------------------------------------------- */
.pagehead {
  padding-top: clamp(140px, 17vh, 210px);
  padding-bottom: clamp(40px, 6vw, 76px);
}
.pagehead__grid { align-items: end; }
.pagehead__title { grid-column: 1 / span 7; }
.pagehead__note { grid-column: 9 / span 4; }
.crumbs {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  margin-bottom: clamp(34px, 5vw, 64px);
}
.filter {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-50);
  cursor: pointer;
  position: relative;
  transition: color 420ms var(--ease);
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

.gallery {
  column-count: 3;
  column-gap: clamp(16px, 2vw, 34px);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(16px, 2vw, 34px);
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  display: block;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.gallery__item .reveal-img { background: var(--ivory-deep); }
.gallery__item img { transition: transform 900ms var(--ease); width: 100%; }
.gallery__item:hover .reveal-img.is-in > img { transform: scale(1.03); }
.gallery__frame {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.gallery__item:hover .gallery__frame,
.gallery__item:focus-visible .gallery__frame { opacity: 1; }
.gallery__frame i { font-style: normal; color: var(--gold-deep); }

.gallery-empty {
  padding: 60px 0;
  color: var(--ink-50);
  font-size: 0.875rem;
}

/* 11 — LIGHTBOX ---------------------------------------------------------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0e0e0d;
  display: none;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.lb.is-open { display: block; }
.lb.is-visible { opacity: 1; }
.lb__stage {
  position: absolute;
  inset: 76px 76px 84px;
  display: grid;
  place-items: center;
}
.lb__img {
  width: auto;
  height: auto;
  max-width: 100%;
  /* viewport units rather than percentages: the stage is a grid area and a
     percentage height does not resolve against it reliably */
  max-height: calc(100vh - 160px);
  max-height: calc(100svh - 160px);
  object-fit: contain;   /* never crops, never stretches */
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
}
.lb__img.is-shown { opacity: 1; transform: none; }
.lb__btn {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 16px;
  transition: color 320ms var(--ease);
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lb__btn:hover { color: #fff; }
.lb__btn svg { width: 26px; height: 26px; display: block; }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 6px; top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  max-width: none;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
}
.lb__count i { font-style: normal; color: var(--gold); }

/* 12 — SERVICES ---------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(22px, 3vw, 60px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service__media { grid-column: 1 / span 6; }
.service__body { grid-column: 8 / span 5; }
.service--flip .service__media { grid-column: 7 / span 6; order: 2; }
.service--flip .service__body { grid-column: 1 / span 5; order: 1; }
.service__num {
  font-family: var(--serif);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 16px;
}
.service__title { margin-bottom: 18px; }
.service__list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--ink-70);
}
.service__list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.04em;
}

/* 13 — ABOUT ------------------------------------------------------------- */
.about-lead { grid-column: 1 / span 6; }
.about-side { grid-column: 8 / span 5; }
.expect { list-style: none; margin: 0; padding: 0; }
.expect li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: clamp(14px, 2vw, 30px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.expect li:last-child { border-bottom: 1px solid var(--line); }
.expect__n {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--gold-deep);
  line-height: 1.5;
}
.expect__t { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 6px; line-height: 1.25; }
.expect p { font-size: 0.9375rem; color: var(--ink-70); margin: 0; }

.stack { display: grid; gap: clamp(20px, 3vw, 42px); }
.areas {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--ink-70);
}
.areas li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }

/* 14 — CONTACT ----------------------------------------------------------- */
.contact__grid { gap: clamp(30px, 5vw, 86px); align-items: start; }
.contact__main { grid-column: 1 / span 6; }
.contact__aside { grid-column: 8 / span 5; }
.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.05;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 500ms var(--ease);
}
.contact__phone:hover { border-bottom-color: var(--gold); }

.form { margin-top: clamp(34px, 4vw, 54px); }
.field { margin-bottom: 26px; }
.field--split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field--split > .field { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 420ms var(--ease);
  min-height: 46px;
}
.field select { appearance: none; background-image: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field__hint { font-size: 0.75rem; color: var(--ink-50); margin-top: 8px; }

.form__note {
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--ink-70);
}
.form__status {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--ink-70);
  min-height: 1.4em;
}

/* 15 — FOOTER ------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(56px, 7vw, 92px) 34px;
  font-size: 0.8125rem;
}
.footer a { text-decoration: none; }
.footer__grid { gap: clamp(28px, 3vw, 48px); }
.footer__brand { grid-column: 1 / span 4; }
.footer__nav { grid-column: 6 / span 3; }
.footer__contact { grid-column: 9 / span 4; }
.footer__logo { width: clamp(180px, 20vw, 230px); height: auto; }
.footer__sub { font-size: 0.5625rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.footer h3 {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 5px 0; }
.footer li a:hover { color: #fff; }
.footer__tel {
  font-family: var(--serif);
  font-size: 1.625rem;
  color: #fff;
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.footer__tel:hover { border-bottom-color: var(--gold); }
.footer__base {
  margin-top: clamp(44px, 5vw, 70px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   RESPONSIVE
   Compositions change on smaller screens rather than simply shrinking.
   ========================================================================== */
@media (min-width: 1100px) {
  .rail { display: block; }
}

@media (max-width: 1099px) {
  .intro__head { grid-column: 1 / span 12; }
  .intro__body { grid-column: 1 / span 12; margin-top: 26px; }
  .a-wedding { grid-column: 1 / span 6; }
  .a-couple  { grid-column: 7 / span 6; grid-row: auto; margin-left: 0; }
  .a-wedding { grid-row: auto; }
  .a-family  { grid-column: 1 / span 12; }
  .a-note    { grid-column: 1 / span 12; }
  .closing__media { grid-column: 1 / span 12; }
  .closing__body { grid-column: 1 / span 12; }
  .pagehead__title { grid-column: 1 / span 12; }
  .pagehead__note { grid-column: 1 / span 12; margin-top: 20px; }
  .service__media, .service--flip .service__media { grid-column: 1 / span 6; order: 1; }
  .service__body, .service--flip .service__body { grid-column: 8 / span 5; order: 2; }
  .about-lead, .about-side { grid-column: 1 / span 12; }
  .contact__main { grid-column: 1 / span 7; }
  .contact__aside { grid-column: 9 / span 4; }
  .footer__brand { grid-column: 1 / span 5; }
  .footer__nav { grid-column: 7 / span 2; }
  .footer__contact { grid-column: 10 / span 3; }
  .gallery { column-count: 2; }
  .review { grid-column: span 6; }
}

@media (max-width: 900px) {
  .nav__list, .header__tel { display: none; }

  /* nothing hovers on a touch screen, so category labels simply stay put */
  .card__tag { opacity: 1; transform: none; }
  .card__tag::before { width: 22px; margin-right: 9px; }
  .menu-btn { display: inline-flex; }
  .callbar { display: block; }
  body { padding-bottom: 0; }
}

@media (max-width: 700px) {
  :root { --section: clamp(64px, 14vw, 104px); }

  /* every twelve-column arrangement collapses to a single column */
  .grid > * { grid-column: 1 / -1 !important; }

  .hero { height: 92svh; min-height: 520px; }
  .hero__title { font-size: clamp(2.35rem, 11vw, 3.4rem); max-width: 12ch; }
  .hero__meta { display: none; }
  .hero__scroll { display: none; }
  .hero__content { padding-bottom: 96px; }
  .hero__scrim {
    background: linear-gradient(to top, rgba(12, 11, 10, 0.82) 0%, rgba(12, 11, 10, 0.55) 34%, rgba(12, 11, 10, 0.12) 68%, rgba(12, 11, 10, 0) 100%);
  }
  .btn-row .btn { flex: 1 1 100%; }

  .grid { gap: 22px; }
  .intro__statement { max-width: 100%; }

  .comp__row { display: block; }
  .comp__row > * + * { margin-top: 22px; }
  .a-couple { margin-bottom: 0; }
  .tilt { transform: none; }

  .index__link { grid-template-columns: 46px 1fr; row-gap: 4px; }
  .index__desc { display: none; }

  .gallery { column-count: 1; }
  .gallery__frame { opacity: 1; }

  .service { display: block; padding-block: 46px; }
  .service__body { margin-top: 24px; }

  .expect li { grid-template-columns: 36px 1fr; }
  .areas { columns: 1; }

  .contact__main, .contact__aside { grid-column: 1 / span 12; }
  .contact__aside { margin-top: 44px; }
  .field--split { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .field--split > .field { margin-bottom: 26px; }

  /* category navigation stays on one line and scrolls, rather than
     stacking into three rows of shouting capitals */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 26px;
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; }

  .review { grid-column: span 12; }

  .footer__brand, .footer__nav, .footer__contact { grid-column: 1 / span 12; }
  .footer__base { flex-direction: column; }

  .lb__stage { inset: 62px 12px 74px; }
  .lb__img { max-height: calc(100vh - 136px); max-height: calc(100svh - 136px); }
  .lb__prev, .lb__next { padding: 12px 4px; }

  /* keep the mobile call bar clear of page-ending content */
  .footer { padding-bottom: 96px; }
}

/* 16 — REDUCED MOTION ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-img > img { opacity: 1 !important; transform: none !important; }
  .reveal-img > img { clip-path: none !important; }
  .draw-line { transform: scaleX(1) !important; }
  .cursor { display: none !important; }
  .tilt { transform: none !important; }
}

@media print {
  .header, .callbar, .cursor, .rail, .lb, .menu { display: none !important; }
  .reveal, .reveal-img { opacity: 1; clip-path: none; }
}
