:root {
  --paper: #f3eee6;
  --ink: #15120f;
  --muted: #6f675e;
  --line: rgba(21, 18, 15, .16);
  --accent: #b8323a;
  --bg: var(--paper);
  --fg: var(--ink);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: 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; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }

.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
/* Room for ascenders, descenders and italic overhang, taken back with negative margins so spacing is unchanged. */
.line { display: block; overflow: hidden; padding: .12em .08em .24em; margin: -.12em -.08em -.24em; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.loader__sig {
  font-family: var(--script); font-size: clamp(64px, 14vw, 190px); line-height: 1;
  clip-path: inset(0 100% 0 0); padding: .45em .35em; line-height: 1.4;
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--serif); font-size: clamp(56px, 10vw, 140px); line-height: .8; overflow: hidden;
}
.loader__label {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}

/* ---------- chrome ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 7%); }
  80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80;
  background: var(--fg); transform-origin: 0 50%; transform: scaleX(0);
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.cursor__label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: #000; opacity: 0; transition: opacity .3s;
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter); color: var(--fg);
  transition: transform .6s var(--ease), background-color .5s, padding .5s var(--ease), color .9s var(--ease);
}
/* Once the page moves, the bar gets a frosted backing in the current page colour, so text never scrolls
   through it; it slides away while reading down and returns on the way back up. */
.nav.is-scrolled {
  padding-block: 14px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 12%, transparent);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--serif); font-size: 22px; letter-spacing: -.01em; }
.nav__logo em { margin-left: .25em; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 13px; }
.nav__links a, .ulink { position: relative; }
.nav__links a::after, .ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease);
}
.nav__links a:hover::after, .ulink:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 110px var(--gutter) 40px;
  display: grid; grid-template-columns: repeat(12, 1fr); align-content: center; overflow: hidden;
}
.hero__kicker {
  grid-column: 1 / -1; margin: 0 0 2vh; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.hero__name {
  grid-column: 1 / -1; position: relative; z-index: 3; margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: clamp(88px, 19vw, 330px);
  line-height: .82; letter-spacing: -.035em; pointer-events: none;
}
.hero__name .line--indent { padding-left: 22vw; }
.hero__figure {
  position: absolute; z-index: 2; margin: 0;
  right: calc(var(--gutter) + 14vw); top: 50%; translate: 0 -50%;
  width: clamp(150px, 17vw, 270px); aspect-ratio: 700 / 1711;
}
.hero__img { width: 100%; height: 100%; overflow: hidden; clip-path: inset(100% 0 0 0); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.hero__fly {
  position: absolute; z-index: 4; width: clamp(90px, 11vw, 170px); left: 36%; top: 14%;
  opacity: 0; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.14));
}
.hero__meta {
  grid-column: 1 / 7; margin-top: 5vh; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; color: var(--muted);
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.hero__scroll i { display: block; width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--fg); animation: drip 2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(40px, 7vw, 104px); line-height: 1; padding-right: .4em;
}
.marquee__track i { font-style: normal; font-size: .4em; vertical-align: middle; color: var(--accent); margin: 0 .3em; }

/* ---------- statement ---------- */
.statement { padding: clamp(96px, 18vh, 200px) var(--gutter); }
.statement__text, .about__lead {
  margin: 0; max-width: 20ch; font-family: var(--serif); font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.02; letter-spacing: -.02em;
}
.statement__text { max-width: 22ch; }
[data-words] .w { opacity: .14; }

/* ---------- index ---------- */
.index { padding: 0 var(--gutter) clamp(80px, 14vh, 160px); position: relative; }
.index__head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.index__list { list-style: none; margin: 0; padding: 0; }
.index__item a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.index__item a::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease);
}
.index__item a:hover::before { transform: scaleY(1); }
.index__item a:hover { color: var(--bg); }
.index__num { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.index__title {
  font-family: var(--serif); font-size: clamp(40px, 7vw, 110px); line-height: .95; letter-spacing: -.02em;
  transition: transform .6s var(--ease);
}
.index__item a:hover .index__title { transform: translateX(18px); font-style: italic; }
.index__tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: right; }
.index__preview {
  position: fixed; top: 0; left: 0; z-index: 60; width: 300px; aspect-ratio: 3307 / 2340; pointer-events: none;
  overflow: hidden; opacity: 0; transform: scale(.6); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .index__preview { display: none; } }

/* ---------- chapters ---------- */
.chapter { position: relative; }
.chapter__pin {
  height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  padding-top: 70px;
}
.chapter__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px;
  padding: 0 var(--gutter) 3vh;
}
.chapter__no { font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); font-style: italic; }
.chapter__title {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 11vw, 190px);
  line-height: .85; letter-spacing: -.03em;
}
.chapter__title small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
/* Devanagari vowel signs rise well above the Latin cap height; give them their own headroom. */
.chapter__title.is-deva .line { padding-top: .42em; margin-top: -.1em; }
.chapter__concept { max-width: 34ch; font-size: 14px; line-height: 1.55; margin: 0; opacity: .82; }
.chapter__track {
  display: flex; gap: clamp(14px, 2vw, 28px); padding: 0 var(--gutter); will-change: transform; width: max-content;
}
.page {
  position: relative; flex: 0 0 auto; height: min(52svh, 40vw); aspect-ratio: var(--ratio, 1.413); margin: 0;
  overflow: hidden; background: rgba(255,255,255,.4);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.45);
}
.page img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.12);
}
.page figcaption {
  position: absolute; left: 12px; bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; background: var(--ink); color: var(--paper); padding: 4px 8px;
  transform: translateY(160%); transition: transform .6s var(--ease);
}
.page:hover figcaption { transform: none; }
.page--end {
  display: grid; place-items: center; background: none; box-shadow: none; aspect-ratio: auto; width: min(40vw, 460px);
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; text-align: center;
}
.page--end em { display: block; }
.chapter__bar {
  margin: 4vh var(--gutter) 0; height: 1px; background: currentColor; opacity: .25; position: relative;
}
.chapter__bar i { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); opacity: 1; }


/* ---------- signature chapters ---------- */
/* Vellala: a light glint crosses the photograph, like a cut stone catching the light. */
.fx-gem .page[data-k]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 48%, rgba(255,255,255,0) 60%);
  transform: translateX(-120%); transition: transform 1.1s var(--ease);
}
.fx-gem .page[data-k]:hover::after { transform: translateX(120%); }
.fx-gem .chapter__no::after { content: " ◆"; font-style: normal; font-size: .6em; vertical-align: middle; color: #d98f8f; }

/* Wedding styling: petals in her Warm Autumn palette drift through while the chapter is on screen. */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; opacity: 0; transition: opacity 1.2s var(--ease); }
.petals.is-live { opacity: 1; }
.petals i {
  position: absolute; top: -40px; width: 20px; height: 28px; border-radius: 100% 0 100% 0;
  background: var(--c, #e39a8c); opacity: .85;
  animation: fall var(--t, 11s) linear var(--d, 0s) infinite, sway calc(var(--t, 11s) / 3) ease-in-out var(--d, 0s) infinite alternate;
  animation-play-state: paused;
}
.petals.is-live i { animation-play-state: running; }
.petals i:nth-child(4n+1) { --c: #c0643f; } .petals i:nth-child(4n+2) { --c: #d8a73c; }
.petals i:nth-child(4n+3) { --c: #f6ecdc; } .petals i:nth-child(4n) { --c: #e39a8c; }
.petals i:nth-child(1) { left: 11%; --t: 9s; --d: -0s; scale: 0.6; }
.petals i:nth-child(2) { left: 48%; --t: 16s; --d: -2s; scale: 0.6; }
.petals i:nth-child(3) { left: 85%; --t: 15s; --d: -4s; scale: 0.6; }
.petals i:nth-child(4) { left: 22%; --t: 14s; --d: -6s; scale: 0.6; }
.petals i:nth-child(5) { left: 59%; --t: 13s; --d: -8s; scale: 0.6; }
.petals i:nth-child(6) { left: 96%; --t: 12s; --d: -10s; scale: 0.6; }
.petals i:nth-child(7) { left: 33%; --t: 11s; --d: -1s; scale: 0.6; }
.petals i:nth-child(8) { left: 70%; --t: 10s; --d: -3s; scale: 0.6; }
.petals i:nth-child(9) { left: 7%; --t: 9s; --d: -5s; scale: 0.6; }
.petals i:nth-child(10) { left: 44%; --t: 16s; --d: -7s; scale: 0.6; }
.petals i:nth-child(11) { left: 81%; --t: 15s; --d: -9s; scale: 0.6; }
.petals i:nth-child(12) { left: 18%; --t: 14s; --d: -0s; scale: 0.6; }
.petals i:nth-child(13) { left: 55%; --t: 13s; --d: -2s; scale: 0.6; }
.petals i:nth-child(14) { left: 92%; --t: 12s; --d: -4s; scale: 0.6; }
.petals i:nth-child(15) { left: 29%; --t: 11s; --d: -6s; scale: 0.6; }
.petals i:nth-child(16) { left: 66%; --t: 10s; --d: -8s; scale: 0.6; }
@keyframes fall { from { translate: 0 0; rotate: 0deg; } to { translate: 0 calc(100svh + 80px); rotate: 540deg; } }
@keyframes sway { from { margin-left: -30px; } to { margin-left: 30px; } }

/* ---------- about ---------- */
.about { padding: clamp(96px, 18vh, 200px) var(--gutter); }
.about__intro { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; margin-bottom: clamp(64px, 12vh, 140px); }
.about__lead { max-width: 24ch; font-size: clamp(32px, 4.4vw, 68px); }
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.cv__title {
  margin: 0 0 24px; font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(40px, 5vw, 72px); line-height: 1; overflow: hidden;
  padding: .1em .08em .25em; margin-top: -.1em; margin-bottom: calc(24px - .25em);
}
.cv__row {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line);
  transition: padding .6s var(--ease);
}
.cv__row:hover { padding-left: 12px; }
.cv__when { font-size: 13px; font-weight: 600; }
.cv__what h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.cv__what h3 span { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 4px; }
.cv__what p { margin: 0; font-size: 15px; max-width: 46ch; }


/* ---------- contact ---------- */
.contact {
  background: var(--ink); color: var(--paper); padding: clamp(96px, 16vh, 180px) var(--gutter) 60px;
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
}
.contact__big {
  margin: 20px 0 clamp(48px, 8vh, 96px); font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 14vw, 240px); line-height: .86; letter-spacing: -.035em;
}
.contact__big .line:nth-child(2) { padding-left: 12vw; color: #e7b9a8; }
.contact__row { display: flex; align-items: center; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
/* Say hello: her portrait in a circle, with the words turning slowly around it. */
.hello {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: clamp(180px, 19vw, 250px); aspect-ratio: 1;
}
.hello__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; overflow: visible; }
.hello:hover .hello__ring { animation-duration: 6s; }
.hello__ring text { fill: var(--paper); font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: .32em; }
@keyframes spin { to { rotate: 360deg; } }
.hello__face {
  width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: block;
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px rgba(243,238,230,.35);
}
.hello__face img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hello:hover .hello__face img { transform: scale(1.1); }
.hello__fly {
  position: absolute; width: 30%; right: 2%; top: 4%; rotate: 18deg; pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); animation: flap .3s ease-in-out infinite alternate, perch 3.2s ease-in-out infinite alternate;
}
@keyframes flap { to { scale: .45 1; } }
@keyframes perch { to { translate: 4px -10px; } }
.contact__links { display: flex; flex-direction: column; gap: 10px; font-size: clamp(16px, 1.8vw, 22px); }
.contact__links a { align-self: flex-start; }

.foot {
  background: var(--ink); color: rgba(243,238,230,.6); display: flex; justify-content: space-between;
  padding: 24px var(--gutter) 28px; font-size: 12px; border-top: 1px solid rgba(243,238,230,.12);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 85; background: rgba(12,10,8,.94); color: var(--paper);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  visibility: hidden; opacity: 0;
}
.lightbox.is-open { visibility: visible; }
.lightbox__stage { margin: 0; display: grid; place-items: center; height: 100svh; min-width: 0; padding: 64px 0; }
.lightbox__stage img { max-height: calc(100svh - 150px); width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 40px 80px -30px #000; }
.lightbox__nav { font-size: 28px; height: 100%; }
.lightbox__close {
  position: absolute; top: 18px; right: var(--gutter); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; z-index: 2;
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { align-content: start; padding-top: 96px; }
  .hero__name { font-size: clamp(76px, 23vw, 160px); }
  .hero__name .line--indent { padding-left: 8vw; }
  .hero__figure { position: relative; right: auto; top: auto; translate: none; grid-column: 6 / -1; width: auto; margin-top: -14vw; }
  .hero__fly { left: 10%; top: 50%; }
  .hero__meta { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
  .chapter__head { grid-template-columns: 1fr; gap: 12px; }
  .chapter__no { order: -1; }
  .page { height: auto; width: 82vw; }
  .petals i { width: 13px; height: 18px; }
  .page--end { width: 60vw; }
  .about__intro, .cv { grid-template-columns: 1fr; }
  .index__item a { grid-template-columns: 36px 1fr; }
  .index__tag { grid-column: 2; text-align: left; }
  .lightbox { grid-template-columns: 1fr 1fr; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 1; padding: 64px 12px; }
  .lightbox__nav { grid-row: 1; align-self: end; height: 64px; z-index: 2; }
  .lightbox__prev { grid-column: 1; } .lightbox__next { grid-column: 2; }
  .lightbox__cap { bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__img { clip-path: none; } .hero__img img { transform: none; }
  .hero__fly { opacity: 1; } [data-words] .w { opacity: 1; }
  .loader { display: none; }
}
