:root {
  --cream: #f6f1ea;
  --paper: #fbf8f3;
  --ink: #1d1a17;
  --ink-soft: #5a524b;
  --blush: #e9c9bd;
  --clay: #b5573b;
  --line: rgba(29, 26, 23, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 0.95; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--clay); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { font-family: var(--serif); font-style: italic; font-size: 1.5rem; text-decoration: none; }
.nav__links { display: flex; gap: clamp(0.9rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.nav__links a:not(.nav__cta):hover { color: var(--clay); }
.nav__cta { padding: 0.55rem 1rem; border: 1px solid var(--ink); border-radius: 999px; transition: background .2s, color .2s; }
.nav__cta:hover { background: var(--ink); color: var(--cream); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--clay); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--line { border-color: rgba(246, 241, 234, .5); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); }

.eyebrow, .section__num {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--clay); margin: 0 0 1.25rem;
}

/* PHOTO FRAMES + PLACEHOLDERS */
.frame { position: relative; margin: 0; overflow: hidden; background: #e7ddd2; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.frame.is-empty img { display: none; }
.frame.is-empty {
  background:
    radial-gradient(120% 80% at 30% 20%, #f1e4da 0%, transparent 60%),
    linear-gradient(160deg, #e6d3c6, #cdb7a8 60%, #b99e8c);
}
.frame.is-empty::after {
  content: attr(data-label) " · add photo";
  position: absolute; inset: auto 0 50% 0; transform: translateY(50%);
  text-align: center; font: italic 300 1.1rem var(--serif); color: rgba(29,26,23,.55);
}

/* HERO */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: end;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero__name { font-size: clamp(5.5rem, 17vw, 15rem); margin-left: -0.05em; }
.hero__lede { max-width: 34ch; font-size: 1.1rem; color: var(--ink-soft); margin: 2rem 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__photo { aspect-ratio: 4 / 5; border-radius: 300px 300px 4px 4px; }
.hero__vertical {
  position: absolute; right: calc(var(--pad) / 3); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin: 0;
}

/* MARQUEE */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; padding: 1.1rem 0; animation: slide 38s linear infinite; }
.marquee__track span { font: italic 300 1.6rem var(--serif); white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--clay); font-style: normal; font-size: 1rem; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.section__head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: baseline; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.section__head .section__num { margin: 0; }
.section__head h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.section__note { margin: 0; color: var(--ink-soft); max-width: 32ch; font-size: 0.95rem; }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-auto-flow: dense; }
.tile { aspect-ratio: 4 / 5; border-radius: 4px; }
.tile--tall { grid-row: span 2; aspect-ratio: auto; }
.tile--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.tile figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .35rem .75rem; border-radius: 999px; background: rgba(251,248,243,.9);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: .3s;
}
.tile:hover img { transform: scale(1.04); }
.tile:hover figcaption, .tile.is-empty figcaption { opacity: 1; transform: none; }

/* COMP CARD */
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .section__head { border-color: rgba(246,241,234,.18); }
.section--ink .section__note { color: rgba(246,241,234,.65); }
.section--ink .section__num { color: var(--blush); }
.comp { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.comp__photo { aspect-ratio: 3 / 4; border-radius: 4px; }
.comp__name { font: italic 300 clamp(3rem, 6vw, 4.5rem)/1 var(--serif); margin: 0; }
.comp__type { margin: .75rem 0 2.5rem; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; color: var(--blush); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 2.5rem; border-top: 1px solid rgba(246,241,234,.18); }
.stats div { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid rgba(246,241,234,.18); }
.stats dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,241,234,.6); }
.stats dd { margin: .35rem 0 0; font: 400 1.6rem var(--serif); }
.stats dd small { display: block; margin-top: .2rem; font: 400 .8rem var(--sans); letter-spacing: .06em; color: rgba(246,241,234,.6); }
.comp__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.comp__digitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.comp__digitals figure { margin: 0; aspect-ratio: 2 / 3; border-radius: 4px; }
.comp__digitals figcaption { position: absolute; left: .75rem; bottom: .6rem; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.comp__digitals .is-empty figcaption { display: none; }

/* EXPERIENCE */
.credits { list-style: none; margin: 0; padding: 0; }
.credits li {
  display: grid; grid-template-columns: 6rem 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding .3s, color .3s;
}
.credits li:hover { padding-left: .75rem; color: var(--clay); }
.credits__year { font-size: .8rem; letter-spacing: .14em; color: var(--ink-soft); font-weight: 600; }
.credits__client { font: 400 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--serif); }
.credits__kind { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* BOOKING */
.section--blush { background: var(--blush); }
.book { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); }
.book__intro h2 { font-size: clamp(3rem, 7vw, 5.5rem); margin-bottom: 1.5rem; }
.book__intro p { max-width: 38ch; }
.book__small { font-size: .85rem; color: var(--ink-soft); }
.form { display: grid; gap: 1.1rem; background: var(--paper); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(29,26,23,.45); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .6rem 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; border: 1px solid var(--line); padding: .75rem; border-radius: 4px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); }
.form__submit { justify-self: start; margin-top: .5rem; }

/* FOOTER */
.footer { padding: 3rem var(--pad); text-align: center; color: var(--ink-soft); font-size: .85rem; }
.footer__name { font: italic 300 2.5rem var(--serif); color: var(--ink); margin: 0 0 .5rem; }
.footer__copy { font-size: .75rem; }

/* THANK YOU */
.thanks { min-height: 100vh; display: grid; place-items: center; background: var(--blush); padding: var(--pad); }
.thanks__box { text-align: center; max-width: 34rem; }
.thanks__box h1 { font-size: clamp(4rem, 12vw, 8rem); margin-bottom: 1.5rem; }
.thanks__box p { margin-bottom: 2rem; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero, .comp, .book { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; }
  .hero__vertical { display: none; }
  .section__head { grid-template-columns: 1fr; gap: .5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav__links li:not(:last-child) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .tile--tall { grid-row: auto; aspect-ratio: 4 / 5; }
  .tile--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .credits li { grid-template-columns: 1fr; gap: .25rem; }
}

/* PRINT: comp card only */
@media print {
  body { background: #fff; }
  .nav, .hero, .marquee, #portfolio, #experience, #book, .footer, .comp__actions, .section__head { display: none !important; }
  .section--ink { background: #fff; color: #000; padding: 0; }
  .comp { grid-template-columns: 1fr 1fr; }
  .stats, .stats div { border-color: #ccc; }
  .stats dt, .stats dd small, .comp__type { color: #555; }
  .comp__digitals { margin-top: 1.5rem; }
  .comp__digitals figcaption { color: #555; text-shadow: none; position: static; padding-top: .3rem; }
  .comp__digitals figure { aspect-ratio: auto; }
  .reveal { opacity: 1; transform: none; }
}
