/* ==========================================================================
   Base
   ========================================================================== */
:root {
  --bg: #f7f2f1;
  --bg-alt: #f1e6e7;
  --ink: #171614;
  --ink-soft: #5d5a54;
  --line: rgba(23, 22, 20, 0.14);
  --accent: #f4b8c9;        /* pastel pink: fills, bars, dots, dark-section text */
  --accent-soft: #fbe3ea;   /* blush: hover washes, tints */
  --accent-ink: #b85a7c;    /* deeper rose: pink text on light backgrounds */
  --dark: #151412;
  --dark-ink: #efebe4;

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

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; color: var(--accent-ink); }
.reel .display em, .cta .display em { color: var(--accent); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 38ch; }

section { position: relative; }

/* ==========================================================================
   Scroll progress + navigation
   ========================================================================== */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav.is-scrolled { background: rgba(247, 242, 241, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }

.brand { font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 22px; height: 22px;  color: var(--accent-ink); }

.nav__links { display: flex; gap: 2.25rem; font-size: 0.9rem; }
.nav__links a { position: relative; padding: 0.25rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 1rem var(--pad) 2rem;
    font-size: 1.75rem; font-family: var(--font-display);
    clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease);
  }
  .nav__links a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav.is-open { background: var(--bg); }
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.6rem; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 0.95rem; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--ink); }
.btn--light { border-color: var(--dark-ink); color: var(--dark-ink); }
.btn--light::before { background: var(--accent); }
.btn--light:hover { color: var(--dark); border-color: var(--accent); }

/* ==========================================================================
   Reveal animations (driven by js/main.js)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Word-by-word split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.06s + var(--d, 0s));
}
.split.is-in .w > span { transform: none; }

/* Image wipe */
.js [data-wipe] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js [data-wipe].is-in { clip-path: inset(0 0 0 0); }
[data-wipe] .media__inner { transform: scale(1.25); transition: transform 2s var(--ease); transition-delay: var(--d, 0s); }
[data-wipe].is-in .media__inner { transform: scale(1); }

/* ==========================================================================
   Media placeholders — swap the inner div for an <img> when you have photos
   ========================================================================== */
.media { position: relative; overflow: hidden; background: var(--bg-alt); }
.media__inner, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__inner {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(23,22,20,0.035) 22px 23px),
    linear-gradient(160deg, #f6e4e8, #e8c9d2);
}
.media--dark .media__inner {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.03) 22px 23px),
    linear-gradient(160deg, #3a332b, #231f1b);
}
.media__label {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(23,22,20,0.55);
}
.media--dark .media__label { color: rgba(239,235,228,0.55); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
}
.hero__lines { position: absolute; inset: 0; pointer-events: none; }
.hero__lines i { position: absolute; background: var(--line); animation: grow 1.8s var(--ease) both; }
.hero__lines .v { top: 0; bottom: 0; width: 1px; transform-origin: top; }
.hero__lines .h { left: 0; right: 0; height: 1px; transform-origin: left; }
.hero__lines .v { --axis: scaleY(0); }
.hero__lines .h { --axis: scaleX(0); }
@keyframes grow { from { transform: var(--axis); } to { transform: none; } }
.story__art text { fill: var(--ink-soft); stroke: none; font: 11px var(--font-sans); letter-spacing: 0.08em; }
.hero__content { position: relative; }
.hero__title { font-size: clamp(3.4rem, 11.5vw, 11.5rem); }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 5vh, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero__meta { display: flex; gap: clamp(1.5rem, 4vw, 4rem); font-size: 0.85rem; color: var(--ink-soft); flex-wrap: wrap; }
.hero__meta strong { display: block; color: var(--ink); font-weight: 500; }

.scroll-cue { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-cue__line { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--accent-ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ==========================================================================
   Intro statement
   ========================================================================== */
.statement { padding: clamp(6rem, 16vh, 11rem) 0; }
.statement__text {
  font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.1; letter-spacing: -0.015em; max-width: 22ch; margin: 1.5rem 0 0;
}
.statement__text .word { opacity: 0.14; transition: opacity 0.3s linear; }
.statement__text .word.is-lit { opacity: 1; }

/* ==========================================================================
   Story — pinned drawing that builds as you scroll
   ========================================================================== */
.story { height: 420vh; }
.story__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--pad);
}
.story__art { position: relative; aspect-ratio: 1 / 1; max-height: 78vh; width: 100%; }
.story__art svg { width: 100%; height: 100%; overflow: visible; }
.story__art path, .story__art line, .story__art rect, .story__art polyline {
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.story__art .layer-sheet rect { fill: rgba(244,184,201,0.22); stroke: var(--ink-soft); }
.story__art .layer-trim * { stroke: var(--accent-ink); stroke-width: 2.2; }
.story__art .layer-floor line { stroke: var(--ink-soft); }
.story__art .dim { stroke: var(--ink-soft); stroke-dasharray: 3 5; stroke-width: 1; }

.story__steps { position: relative; height: 60vh; }
.story__step {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(40px); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.story__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story__step.is-past { opacity: 0; transform: translateY(-40px); }
.story__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-ink); }
.story__step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1; margin: 0.6rem 0 1.25rem; letter-spacing: -0.015em; }
.story__step p { color: var(--ink-soft); max-width: 40ch; margin: 0; font-size: 1.05rem; }
.story__dots { display: flex; gap: 0.5rem; position: absolute; bottom: 0; left: 0; }
.story__dots span { width: 28px; height: 2px; background: var(--line); transition: background 0.5s var(--ease); }
.story__dots span.is-active { background: var(--ink); }

@media (max-width: 860px) {
  .story { height: 380vh; }
  .story__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 1rem; padding-top: 80px; }
  .story__art { max-height: 42vh; aspect-ratio: auto; height: 42vh; }
  .story__steps { height: 34vh; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: clamp(6rem, 14vh, 10rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 7vh, 5rem); }
.section-head .display { font-size: clamp(2.8rem, 7vw, 6.5rem); }

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 5rem 1fr 1.1fr 2rem; gap: 1.5rem; align-items: center;
  padding: clamp(1.4rem, 3vh, 2.2rem) 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-soft); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.service > * { transition: color 0.5s var(--ease), transform 0.6s var(--ease); }
.service__num { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.1em; }
.service__name { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.015em; }
.service__desc { color: var(--ink-soft); font-size: 0.98rem; max-width: 44ch; }
.service__arrow { width: 22px; height: 22px; justify-self: end; opacity: 0.4; }
@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover > * { color: var(--ink); }
  .service:hover .service__num, .service:hover .service__arrow { color: var(--accent-ink); }
  .service:hover .service__name { transform: translateX(1rem); }
  .service:hover .service__arrow { opacity: 1; transform: rotate(-45deg); }
}
.service { isolation: isolate; }
@media (max-width: 760px) {
  .service { grid-template-columns: 2.5rem 1fr; row-gap: 0.5rem; }
  .service__desc { grid-column: 2; }
  .service__arrow { display: none; }
}

/* ==========================================================================
   Horizontal work reel
   ========================================================================== */
.reel { background: var(--dark); color: var(--dark-ink); height: 400vh; }
.reel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.reel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.reel__head .eyebrow { color: rgba(239,235,228,0.6); }
.reel__head .display { font-size: clamp(2.2rem, min(5.5vw, 7.5vh), 5rem); }
.reel__count { font-family: var(--font-display); font-size: 1.4rem; white-space: nowrap; }
.reel__track { display: flex; align-items: flex-start; gap: clamp(1rem, 2.5vw, 2rem); padding: 0 var(--pad); will-change: transform; }
/* Photos are sized by viewport height so the whole pinned section always fits on screen */
.reel { --reel-h: clamp(200px, 48vh, 520px); }
.reel__item { flex: 0 0 auto; }
.reel__item:nth-child(even) { margin-top: clamp(0.75rem, 3vh, 2rem); }
.reel__item .media { height: var(--reel-h); width: calc(var(--reel-h) * 0.8); }
.reel__item:nth-child(3n) .media { width: calc(var(--reel-h) * 1.25); }
@media (max-width: 760px) { .reel { --reel-h: clamp(200px, 44vh, 420px); } }

/* "See all my work" tile at the end of the reel */
.reel__more { display: block; color: var(--dark-ink); }
.reel__more-box {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: var(--reel-h); width: calc(var(--reel-h) * 0.8); padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--accent); overflow: hidden; isolation: isolate;
  transition: color 0.6s var(--ease);
}
.reel__more-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform 0.7s var(--ease);
}
.reel__more-count { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); transition: color 0.6s var(--ease); }
.reel__more-title { font-family: var(--font-display); font-size: clamp(2.2rem, min(4.5vw, 7vh), 4.2rem); line-height: 0.95; letter-spacing: -0.02em; }
.reel__more-title em { color: var(--accent); transition: color 0.6s var(--ease); }
.reel__more-arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; transition: transform 0.6s var(--ease);
}
.reel__more-arrow svg { width: 20px; height: 20px; }
.reel__more:hover .reel__more-box, .reel__more:focus-visible .reel__more-box { color: var(--dark); }
.reel__more:hover .reel__more-box::before, .reel__more:focus-visible .reel__more-box::before { transform: translateY(0); }
.reel__more:hover .reel__more-count, .reel__more:hover .reel__more-title em { color: var(--dark); }
.reel__more:hover .reel__more-arrow { transform: translateX(6px) rotate(-45deg); }
.reel__more:focus-visible { outline: none; }
.reel__cap { display: flex; justify-content: space-between; margin-top: 0.9rem; font-size: 0.9rem; }
.reel__cap span:last-child { color: rgba(239,235,228,0.55); }
.reel__bar { margin: clamp(1.5rem, 4vh, 2.5rem) var(--pad) 0; height: 1px; background: rgba(239,235,228,0.15); }
.reel__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================================
   Principles / numbers
   ========================================================================== */
.principles { padding: clamp(6rem, 14vh, 10rem) 0; }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 2rem; }
.principle:last-child { border-right: 0; }
.principle__big { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7.5rem); line-height: 1; letter-spacing: -0.03em; }
.principle__big sup { font-size: 0.35em; vertical-align: top; margin-left: 0.15em; color: var(--accent-ink); }
.principle h3 { font-size: 1rem; font-weight: 500; margin: 1.25rem 0 0.5rem; }
.principle p { margin: 0; color: var(--ink-soft); max-width: 34ch; }
@media (max-width: 860px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Pricing (small-jobs page) — same layout and collapse as .principles__grid
   ========================================================================== */
.pricing { padding: 0 0 clamp(6rem, 14vh, 10rem); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.price-card { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.price-card + .price-card { padding-left: 2rem; }
.price-card:last-child { border-right: 0; }
.price-card__label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.price-card__amount { font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.03em; }
.price-card__from { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); vertical-align: top; margin-right: 0.5rem; }
.price-card--featured .price-card__amount { color: var(--accent-ink); }
.price-card p { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.pricing .badges { margin-top: 2rem; }
@media (max-width: 860px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .price-card, .price-card + .price-card { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Proof strip (small-jobs page) */
.proof { padding: 0 0 clamp(6rem, 14vh, 10rem); }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.proof__item { margin: 0; }
.proof__item .media { aspect-ratio: 4 / 5; }
.proof__item [data-wipe] img { transform: scale(1.2); transition: transform 2s var(--ease); }
.proof__item [data-wipe].is-in img { transform: none; }
.proof__item figcaption { padding-top: 0.8rem; font-size: 0.88rem; }
@media (max-width: 860px) { .proof__grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 0 0 clamp(6rem, 14vh, 10rem); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__img { aspect-ratio: 4 / 5; }
.about__img .media__inner { will-change: transform; }
.about h2 { font-size: clamp(2.6rem, 5.5vw, 5rem); margin: 1.25rem 0 1.75rem; }
.about p { color: var(--ink-soft); max-width: 46ch; }
.about__sign { margin-top: 2rem; display: flex; gap: 2.5rem; flex-wrap: wrap; font-size: 0.9rem; }
.about__sign strong { display: block; font-weight: 500; }
.about__sign span { color: var(--ink-soft); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Service area marquee
   ========================================================================== */
.area { padding: clamp(4rem, 10vh, 7rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.area__head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.area__head p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.marquee { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1.1;
  padding: 0 clamp(1rem, 2vw, 2rem); white-space: nowrap; display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem);
}
.marquee__item::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { background: var(--dark); color: var(--dark-ink); padding: clamp(7rem, 18vh, 12rem) 0; overflow: hidden; }
.cta .eyebrow { color: rgba(239,235,228,0.6); }
.cta__title { font-size: clamp(3.2rem, 11vw, 10.5rem); margin: 1.5rem 0 3rem; }
.cta__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.cta__row p { margin: 0; max-width: 36ch; color: rgba(239,235,228,0.65); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--dark); color: rgba(239,235,228,0.6); font-size: 0.85rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid rgba(239,235,228,0.12); }
.footer a:hover { color: var(--accent); }
.footer__links { display: flex; gap: 1.75rem; flex-wrap: wrap; }

/* ==========================================================================
   Page header (gallery / contact)
   ========================================================================== */
.page-head { padding: clamp(9rem, 22vh, 13rem) 0 clamp(3rem, 8vh, 5rem); }
.page-head .display { font-size: clamp(3.6rem, 12vw, 11rem); margin-top: 1.25rem; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.filter {
  padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.filter:hover { border-color: var(--accent-ink); }
.filter.is-active { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.masonry { columns: 3 320px; column-gap: clamp(0.75rem, 1.6vw, 1.5rem); padding-bottom: clamp(6rem, 14vh, 10rem); }
.tile {
  break-inside: avoid; margin-bottom: clamp(0.75rem, 1.6vw, 1.5rem); display: block; width: 100%; text-align: left;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tile.is-filtered { display: none; }
.tile .media { transition: transform 0.8s var(--ease); }
.tile .media__inner, .tile .media img { transition: transform 1.2s var(--ease); }
.tile:hover .media__inner, .tile:hover .media img { transform: scale(1.05); }
.tile__cap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0 0; font-size: 0.88rem; }
.tile__cap span:last-child { color: var(--ink-soft); }
/* Real photos keep their own shape in the gallery; placeholders use the tile shapes */
.tile .media.has-img { aspect-ratio: auto; }
.tile .media.has-img img { position: static; height: auto; }
.lightbox .media.has-img { background: transparent; }
.lightbox .media img { object-fit: contain; }
.gallery-empty { color: var(--ink-soft); padding-bottom: 4rem; }
.tile--tall .media { aspect-ratio: 3 / 4; }
.tile--wide .media { aspect-ratio: 4 / 3; }
.tile--square .media { aspect-ratio: 1 / 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(21,20,18,0.94); color: var(--dark-ink);
  display: grid; place-items: center; padding: 5rem var(--pad);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(1000px, 100%); transform: scale(0.96); transition: transform 0.6s var(--ease); }
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__frame .media { aspect-ratio: 3 / 2; max-height: 72vh; }
.lightbox__cap { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.9rem; }
.lightbox__cap span:last-child { color: rgba(239,235,228,0.55); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border: 1px solid rgba(239,235,228,0.3); border-radius: 50%;
  display: grid; place-items: center; transition: background 0.3s, color 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.lightbox__close { top: 1.25rem; right: var(--pad); }
.lightbox__nav--prev { left: var(--pad); top: 50%; }
.lightbox__nav--next { right: var(--pad); top: 50%; }
.lightbox svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .lightbox__nav { top: auto; bottom: 1.25rem; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding-bottom: clamp(6rem, 14vh, 10rem); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); border-top: 1px solid var(--line); padding-top: clamp(3rem, 7vh, 4.5rem); }
.info { display: flex; flex-direction: column; gap: 2.25rem; }
.info__label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.info__value { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.info__value a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.info__value a:hover { background-size: 100% 1px; }
.info__note { color: var(--ink-soft); font-size: 0.95rem; margin: 0.4rem 0 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.75rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.4rem 0 0.7rem; outline: none;
  transition: border-color 0.4s var(--ease); -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field label {
  position: absolute; left: 0; top: 1.4rem; color: var(--ink-soft); pointer-events: none;
  transform-origin: 0 0; transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-1.35rem) scale(0.78); }
.field::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 1.9rem, calc(100% - 5px) 1.9rem; background-size: 5px 5px; background-repeat: no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip-group legend { font-size: 0.78rem; color: var(--ink-soft); padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.badges span { padding: 0.45rem 0.95rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); font-size: 0.82rem; }
.chip span:hover { border-color: var(--accent-ink); }
.chip input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form__foot small { color: var(--ink-soft); max-width: 36ch; }
.form__status { grid-column: 1 / -1; margin: 0; color: var(--accent-ink); min-height: 1.5em; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page transition curtain
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--dark); pointer-events: none;
  transform: translateY(0); transition: transform 0.9s var(--ease);
}
.curtain.is-up { transform: translateY(-100%); }
.curtain.is-down { transform: translateY(0); transition-duration: 0.6s; }
.no-js .curtain { display: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .split .w > span, .js [data-wipe] { opacity: 1; transform: none; clip-path: none; }
  .statement__text .word { opacity: 1; }
  .curtain { display: none; }
}
