/* ==========================================================================
   Reborn Photography — rebornphotography.org
   Black & white editorial theme. Photos carry the color.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0b0b;
  --ink-2: #141414;
  --ink-3: #1d1d1d;
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --bone: #e4e2dd;              /* logo color */
  --muted-dark: #a3a09a;        /* secondary text on black */
  --muted-light: #5e5b56;       /* secondary text on paper */
  --line-dark: rgba(228, 226, 221, 0.16);
  --line-light: rgba(11, 11, 11, 0.14);

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --section: clamp(4.5rem, 10vw, 9rem);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--bone); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--bone); color: var(--ink); padding: .75rem 1.25rem;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-2 { background: var(--paper-2); color: var(--ink); }
.section--ink-2 { background: var(--ink-2); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--sans); font-weight: 500;
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted-dark); margin: 0 0 1.5rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
.section--paper .eyebrow, .section--paper-2 .eyebrow { color: var(--muted-light); }
.eyebrow--center { justify-content: center; }

h1, h2, h3, .display {
  font-family: var(--serif); font-weight: 300; line-height: 1.08;
  letter-spacing: -.005em; margin: 0;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; }
.h-xl { font-size: clamp(2.6rem, 6.2vw, 5.6rem); }
.h-lg { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.h-md { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.h-sm { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1.25em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.8; }
.muted { color: var(--muted-dark); }
.section--paper .muted, .section--paper-2 .muted { color: var(--muted-light); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-fg: var(--bone); --btn-bg: transparent; --btn-line: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 52px; padding: 0 2rem;
  font-family: var(--sans); font-weight: 500; font-size: .74rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--solid { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.btn--solid:hover, .btn--solid:focus-visible { --btn-bg: transparent; --btn-fg: var(--bone); }
.section--paper .btn, .section--paper-2 .btn { --btn-fg: var(--ink); --btn-line: var(--ink); }
.section--paper .btn:hover, .section--paper-2 .btn:hover,
.section--paper .btn:focus-visible, .section--paper-2 .btn:focus-visible { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.section--paper .btn--solid, .section--paper-2 .btn--solid { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.section--paper .btn--solid:hover, .section--paper-2 .btn--solid:hover { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-weight: 500; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  padding-bottom: .35rem; border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease);
}
.link-arrow::after { content: "→"; font-size: 1rem; letter-spacing: 0; }
.link-arrow:hover { gap: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(11, 11, 11, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  --header-h: 70px;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; transition: width .4s var(--ease); }
.site-header.is-solid .brand img { width: 108px; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.nav a:not(.btn) {
  position: relative; font-weight: 400; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  padding-block: .4rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { min-height: 44px; padding: 0 1.4rem; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--bone); transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.2; }
.mobile-menu nav a[aria-current="page"] { font-style: italic; }
.mobile-menu .mobile-meta { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: grid; gap: .4rem; font-size: .95rem; color: var(--muted-dark); }
body.menu-open { overflow: hidden; }
.menu-open .site-header { z-index: 130; background: var(--ink); border-bottom-color: var(--line-dark); }

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 72px; }
  .brand img { width: 112px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 24%, rgba(0,0,0,.06) 46%, rgba(0,0,0,0) 68%, rgba(0,0,0,.35) 84%, rgba(0,0,0,.82) 100%);
}
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 8vh, 5.5rem); width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem clamp(2rem, 5vw, 5rem); align-items: end; }
.hero__content .eyebrow { color: var(--bone); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); max-width: 19ch; text-wrap: balance; }
.hero__sub { max-width: 30rem; margin: 0 0 2rem; color: rgba(228,226,221,.88); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 6rem);
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem; color: rgba(228,226,221,.75);
}
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--bone), transparent); animation: scrollCue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
  .hero__scroll { display: none; }
  .hero__media img { object-position: 53% 50%; }
  .hero__content { padding-bottom: 2.25rem; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .hero__sub { display: none; }
  .hero .btn-row { flex-wrap: nowrap; gap: .6rem; }
  .hero .btn { flex: 1; padding: 0 .75rem; min-height: 48px; font-size: .66rem; letter-spacing: .2em; white-space: nowrap; }
  .hero::after { background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 26%, rgba(0,0,0,.05) 50%, rgba(0,0,0,0) 72%, rgba(0,0,0,.35) 86%, rgba(0,0,0,.8) 100%); }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(4rem, 10vw, 8rem)) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 40rem; margin-top: 1.75rem; color: var(--muted-dark); }

/* ---------- Intro (home) ---------- */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__media .intro__small {
  position: absolute; width: 44%; right: -8%; bottom: -12%; aspect-ratio: 3 / 4;
  border: 10px solid var(--paper); object-fit: cover;
}
.intro__text p { max-width: 34rem; }
.intro__text h2 { margin-bottom: 2rem; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__media { margin-right: 12%; margin-bottom: 3rem; }
}

/* ---------- Featured work (home) ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 18ch; }
.featured {
  display: grid; gap: clamp(.6rem, 1.2vw, 1rem);
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(70px, 8vw, 120px);
}
.featured a { position: relative; overflow: hidden; background: var(--ink-3); }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.featured a:hover img { transform: scale(1.04); }
.featured .f1 { grid-column: 1 / 6;  grid-row: 1 / 7; }
.featured .f2 { grid-column: 6 / 13; grid-row: 1 / 5; }
.featured .f3 { grid-column: 6 / 9;  grid-row: 5 / 10; }
.featured .f4 { grid-column: 9 / 13; grid-row: 5 / 10; }
.featured .f5 { grid-column: 1 / 6;  grid-row: 7 / 10; }
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .featured a { aspect-ratio: 4 / 5; }
  .featured .f1, .featured .f2, .featured .f3, .featured .f4, .featured .f5 { grid-column: auto; grid-row: auto; }
  .featured .f1 { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .featured .f2, .featured .f5 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.pillar { padding: 2.75rem clamp(1.25rem, 3vw, 2.75rem) 0 0; }
.pillar + .pillar { padding-left: clamp(1.25rem, 3vw, 2.75rem); border-left: 1px solid var(--line-light); }
.pillar__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted-light); display: block; margin-bottom: 1.25rem; }
.pillar h3 { margin-bottom: 1rem; }
.pillar p { color: var(--muted-light); margin: 0; }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 2rem 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
}

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 60rem; margin-inline: auto; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.18; margin: 0; }
.quote cite { display: block; margin-top: 2rem; font-style: normal; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-dark); }
.quote__mark { font-family: var(--serif); font-size: 6rem; line-height: .5; display: block; height: 2.5rem; color: var(--muted-dark); }
.section--paper .quote cite, .section--paper .quote__mark { color: var(--muted-light); }

/* ---------- Session cards (home) ---------- */
.sessions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.session {
  background: var(--ink); padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: .9rem; min-height: 260px;
  transition: background .4s var(--ease);
}
.session:hover { background: var(--ink-2); }
.session__price { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-dark); }
.session h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.session p { color: var(--muted-dark); margin: 0; font-size: .98rem; }
.session .link-arrow { margin-top: auto; align-self: flex-start; border-bottom-color: transparent; padding-bottom: 0; }
.session:hover .link-arrow { gap: 1.2rem; }
@media (max-width: 1100px) { .sessions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sessions { grid-template-columns: 1fr; } .session { min-height: 0; } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.split__text h2 { margin-bottom: 1.75rem; }
.split__text p { max-width: 34rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-top: 1.5rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Instagram strip ---------- */
.ig { text-align: center; }
.ig h2 { margin-bottom: .75rem; }
.ig__handle { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ig__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: 3rem; }
.ig__strip a { overflow: hidden; aspect-ratio: 1; background: var(--ink-3); }
.ig__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.ig__strip a:hover img { transform: scale(1.06); opacity: .85; }
@media (max-width: 700px) { .ig__strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto 1.5rem; }
.cta p { max-width: 34rem; margin: 0 auto 2.5rem; text-wrap: balance; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-brand img { width: 170px; margin-bottom: 1.5rem; }
.footer-brand p { color: var(--muted-dark); max-width: 22rem; }
.footer-col h3 { font-family: var(--sans); font-weight: 500; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted-dark); letter-spacing: .04em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  position: relative; font-weight: 400; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted-dark); padding: .6rem 0; transition: color .3s;
}
.filter::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.filter:hover, .filter[aria-pressed="true"] { color: var(--bone); }
.filter[aria-pressed="true"]::after { right: 0; }
.filter sup { font-size: .6rem; letter-spacing: .1em; margin-left: .35rem; opacity: .7; }

.gallery { columns: 3; column-gap: clamp(.6rem, 1.2vw, 1rem); }
.gallery__item { break-inside: avoid; margin: 0 0 clamp(.6rem, 1.2vw, 1rem); position: relative; overflow: hidden; background: var(--ink-3); display: block; width: 100%; cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease), opacity .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item[hidden] { display: none; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: none; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: #050505;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-dark); }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(3.5rem, 7vw, 6rem); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; transition: opacity .3s var(--ease); }
.lightbox__stage img.is-loading { opacity: 0; }
.lightbox__caption { text-align: center; padding: 1rem var(--gutter) 1.5rem; color: var(--muted-dark); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; color: var(--bone); border: 1px solid transparent; transition: border-color .3s; }
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--line-dark); }
.lb-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(.25rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.25rem, 2vw, 1.5rem); }
@media (max-width: 600px) { .lightbox__stage { padding: 0 .5rem; } .lb-prev, .lb-next { top: auto; bottom: -3.5rem; transform: none; } }

/* ---------- About page ---------- */
.about-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); }
.about-hero .split__media img { aspect-ratio: 3 / 4; object-position: 50% 35%; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { border-top: 1px solid var(--line-light); padding-top: 1.75rem; }
.step__num { font-family: var(--serif); font-style: italic; font-size: 3rem; line-height: 1; display: block; margin-bottom: 1.25rem; color: var(--muted-light); }
.step h3 { margin-bottom: .75rem; }
.step p { color: var(--muted-light); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.price-card {
  border: 1px solid var(--line-dark); padding: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; background: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.price-card--feature { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.price-card__name { font-family: var(--sans); font-weight: 500; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 1.5rem; color: var(--muted-dark); }
.price-card--feature .price-card__name { color: var(--muted-light); }
.price { font-family: var(--serif); font-weight: 300; font-size: clamp(3.25rem, 5vw, 4.25rem); line-height: 1; margin: 0 0 .5rem; }
.price sup { font-size: .45em; vertical-align: top; position: relative; top: .35em; margin-right: .08em; }
.price-card__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted-dark); margin-bottom: 2rem; }
.price-card--feature .price-card__tag { color: var(--muted-light); }
.includes { list-style: none; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--line-dark); }
.price-card--feature .includes { border-top-color: var(--line-light); }
.includes li { padding: .85rem 0; border-bottom: 1px solid var(--line-dark); display: flex; gap: .9rem; align-items: baseline; font-size: .98rem; }
.price-card--feature .includes li { border-bottom-color: var(--line-light); }
.includes li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; transform: translateY(-.15em); }
.price-card .btn { margin-top: auto; }
.price-card--feature .btn { --btn-fg: var(--ink); --btn-line: var(--ink); }
.price-card--feature .btn:hover, .price-card--feature .btn:focus-visible { --btn-bg: var(--ink); --btn-fg: var(--bone); }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; } }

.specialty { border-top: 1px solid var(--line-light); }
.specialty__row {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 1.5rem 3rem; align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line-light);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.specialty__title h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.specialty__price { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.7rem); color: var(--muted-light); margin-top: .35rem; }
.specialty__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.75rem; color: var(--muted-light); font-size: 1rem; }
.specialty__list li { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.specialty__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.specialty__row .btn { min-height: 46px; padding: 0 1.4rem; }
@media (max-width: 860px) {
  .specialty__row { grid-template-columns: 1fr; gap: 1rem; }
  .specialty__row .btn { justify-self: start; }
}

.addons { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.rate-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.rate-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); }
.rate-list li > span:first-child { flex: 1; }
.rate-list .rate-note { display: block; font-size: .85rem; color: var(--muted-dark); margin-top: .15rem; }
.rate-list li > span:last-child { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.addons h3 { margin-bottom: 1.5rem; }
@media (max-width: 820px) { .addons { grid-template-columns: 1fr; } }
.fine-print { margin-top: 2.5rem; font-size: .9rem; color: var(--muted-dark); max-width: 46rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.contact-info { position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.contact-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list .label { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: .3rem; }
.contact-list a { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.6rem); transition: opacity .3s; word-break: break-word; }
.contact-list a:hover { opacity: .7; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-info { position: static; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-dark); }
.field label .req { color: var(--bone); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; font-weight: 300; color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  padding: .7rem 0; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e4e2dd' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .25rem center; padding-right: 2rem; cursor: pointer;
}
.field select option { background: var(--ink); color: var(--bone); }
.field input[type="date"] { color-scheme: dark; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--bone); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-bottom-color: #c9a39a; }
.field input::placeholder, .field textarea::placeholder { color: rgba(228,226,221,.35); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: .5rem; }
.form__note { font-size: .85rem; color: var(--muted-dark); margin: 0; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line-dark); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-error { border-color: #c9a39a; }
.form__success { display: none; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line-dark); }
.form__success h3 { margin-bottom: 1rem; }
.form-wrap.is-sent .form { display: none; }
.form-wrap.is-sent .form__success { display: block; }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter); }
.not-found .btn-row { justify-content: center; margin-top: 2.5rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero .reveal, .page-hero .reveal, .about-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1.1s var(--ease) both; }
.hero .reveal-delay-1, .page-hero .reveal-delay-1, .about-hero .reveal-delay-1 { animation-delay: .15s; }
.hero .reveal-delay-2, .page-hero .reveal-delay-2, .about-hero .reveal-delay-2 { animation-delay: .3s; }
.hero .reveal-delay-3, .page-hero .reveal-delay-3, .about-hero .reveal-delay-3 { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .reveal, .page-hero .reveal, .about-hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__media img { animation: none; transform: none; }
  .hero__scroll::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.lightbox[hidden] { display: none; }

.preview-note { grid-column: 1 / -1; margin: 0; padding: .9rem 1.1rem; border: 1px dashed var(--line-dark); font-size: .85rem; color: var(--muted-dark); }

.specialty__kicker { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-light); margin-bottom: .5rem; }
.specialty__price span { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-left: .35rem; }

.price-card { color: var(--bone); }
.price-card--feature { color: var(--ink); }
.field select optgroup { background: var(--ink); color: var(--muted-dark); font-style: normal; }
