/* Elise Marlow — wedding photographer. Bodoni Moda + Work Sans. Paper, ink, blush, mauve. */
:root {
  --bg: #fbfaf7;
  --blush: #f0e6e2;
  --ink: #1c1a1a;
  --muted: #7b7473;
  --line: rgba(28, 26, 26, 0.14);
  --accent: #96717f;
  --display: 'Bodoni Moda', 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 70px); line-height: 1.06; letter-spacing: -0.015em; }
em { font-style: italic; color: var(--accent); }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1.3s var(--ease) var(--d, 0ms), transform 1.5s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.w-i { display: inline-block; transform: translateY(115%); transition: transform 1.4s var(--ease); }
.is-in .w-i { transform: none; }

.media { position: relative; overflow: hidden; background: var(--blush); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 19px 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; font-size: 11px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; transition: background 0.6s var(--ease), color 0.6s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px var(--pad); background: rgba(251, 250, 247, 0); transition: padding 0.6s var(--ease), background 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.header.is-scrolled { padding-block: 12px; background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { position: relative; font-size: 11px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__note { text-align: right; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; justify-self: end; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { padding-top: 96px; }
.hero__strip { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(8px, 1.2vw, 18px); align-items: end; padding-inline: clamp(8px, 1.2vw, 18px); }
.hero__strip .media { height: clamp(260px, 50vh, 520px); }
.hero__strip .media:nth-child(2) { height: clamp(320px, 62vh, 660px); }
.hero__copy { text-align: center; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(60px, 8vw, 120px); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 7.6vw, 128px); line-height: 0.98; letter-spacing: -0.025em; max-width: 14ch; margin-inline: auto; }
.hero__lede { margin: 28px auto 0; max-width: 40ch; color: var(--muted); font-size: 18px; }

/* Hello */
.hello { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 8vw, 140px); align-items: center; padding-bottom: clamp(96px, 13vw, 190px); }
.hello__media { aspect-ratio: 4 / 5; }
.hello__copy > p:not(.eyebrow) { margin-top: 24px; max-width: 50ch; color: var(--muted); }
.sign { width: 190px; height: 60px; margin-top: 34px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sign path { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 3s var(--ease) 0.4s; }
.sign.is-in path { stroke-dashoffset: 0; }

/* Stories */
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--center { text-align: center; }
.stories { background: var(--blush); padding-block: clamp(96px, 12vw, 180px) clamp(40px, 6vw, 90px); }
.story { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(20px, 4vw, 70px); align-items: end; padding-inline: var(--pad); max-width: 1400px; margin: 0 auto clamp(56px, 8vw, 120px); }
.story .media { aspect-ratio: 16 / 10; background: #e4d6d1; }
.story--flip { grid-template-columns: 4fr 8fr; }
.story--flip .media { order: 2; }
.story--flip .story__text { text-align: right; }
.story img { transition: scale 2.2s var(--ease); }
.story:hover img { scale: 1.04; }
.story__text span { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.story h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 14px; }
.story p { color: var(--muted); font-size: 16px; }
.story__text::after { content: 'View the story'; display: inline-block; margin-top: 22px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--ink); transition: letter-spacing 0.8s var(--ease); }
.story:hover .story__text::after { letter-spacing: 0.38em; }

/* Frames */
.frames { padding-block: clamp(96px, 12vw, 180px); }
.masonry { columns: 3; column-gap: clamp(8px, 1.2vw, 18px); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 18px); overflow: hidden; background: var(--blush); }
.masonry img { width: 100%; transition: transform 1.8s var(--ease), filter 1s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry:hover figure:not(:hover) img { filter: grayscale(0.7) opacity(0.75); }

/* Collections */
.collections { border-block: 1px solid var(--line); padding-block: clamp(96px, 11vw, 170px); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols article { padding: 0 clamp(20px, 4vw, 64px); text-align: center; }
.cols article + article { border-left: 1px solid var(--line); }
.cols span { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--accent); }
.cols h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; margin: 10px 0 0; }
.price { font-family: var(--display); font-size: clamp(50px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 30px 0; }
.cols li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cols li:last-child { border-bottom: 1px solid var(--line); }

/* Words */
.words { text-align: center; padding-block: clamp(96px, 13vw, 190px); }
.words blockquote { font-family: var(--display); font-style: italic; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; margin-inline: auto; }
.words p { margin-top: 34px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

/* Enquire */
.enquire { background: var(--blush); padding-block: clamp(96px, 11vw, 170px); }
.enquire__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.enquire__lede { margin-top: 26px; max-width: 40ch; color: var(--muted); }
.enquire__mail { margin-top: 30px; font-family: var(--display); font-style: italic; font-size: clamp(20px, 2vw, 28px); }
.enquire__mail a { border-bottom: 1px solid var(--line); transition: border-color 0.5s var(--ease); }
.enquire__mail a:hover { border-color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.form input, .form select { display: block; width: 100%; margin-top: 8px; padding: 10px 0 13px; background: transparent; border: 0; border-bottom: 1px solid rgba(28, 26, 26, 0.4); border-radius: 0; font-family: var(--display); font-size: 21px; letter-spacing: 0; text-transform: none; color: var(--ink); transition: border-color 0.5s var(--ease); }
.form input::placeholder { color: rgba(28, 26, 26, 0.3); font-style: italic; }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form__note { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--accent); min-height: 1.7em; opacity: 0; transition: opacity 0.7s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 38px; font-size: 13px; color: var(--muted); }
.footer .brand { color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; }
.footer nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .header { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; z-index: 2; }
  .burger { display: block; z-index: 2; }
  .header__note { display: none; }
  .nav { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 12px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
  .nav a { font-family: var(--display); font-style: italic; font-size: 42px; letter-spacing: 0; text-transform: none; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .hello, .enquire__inner { grid-template-columns: 1fr; }
  .hello__media { max-width: 400px; }
  .story, .story--flip { grid-template-columns: 1fr; }
  .story--flip .media { order: 0; }
  .story--flip .story__text { text-align: left; }
  .cols { grid-template-columns: 1fr; gap: 56px; }
  .cols article + article { border-left: 0; }
  .masonry { columns: 2; }
}
@media (max-width: 600px) {
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip .media:nth-child(2) { grid-column: 1 / -1; grid-row: 1; height: 56vh; }
  .hero__strip .media { height: 30vh; }
  .form { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .sign path { stroke-dashoffset: 0; }
}
