/* Ember Media: photo-only site. White, charcoal and a soft ember glow. */
:root {
  --paper: #FFFCF9;
  --cream: #FFF5EC;
  --peach: #FFD9BF;
  --ink: #1E1D1B;
  --ash: #5F5852;
  --line: #EDE4DB;
  --ember: #F2661B;
  --ember-hot: #FF8A3D;
  --ember-deep: #B8460C;
  --night: #1E1D1B;
  --on-night: #F3EEE8;
  --on-night-dim: #B5ADA4;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --measure: 60ch;
  --inset: clamp(8px, 1.2vw, 16px);
  --r-lg: clamp(18px, 2.4vw, 32px);
  --r: clamp(12px, 1.4vw, 18px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(110% 640px at 50% 0, #FFE2CC 0%, rgba(255,226,204,0) 100%) no-repeat, var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Fine film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  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");
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-weight: 500; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 50ch; }
.dim { color: var(--ash); }
.small { font-size: .875rem; }
.sub { font-size: 1.5rem; margin-bottom: 16px; }

/* Header: links either side of a centred name */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,252,249,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* Where supported, the header starts clear and gains its tint as you scroll */
@supports (animation-timeline: scroll()) {
  .site-head { animation: head-in linear both; animation-timeline: scroll(); animation-range: 0 140px; }
  @keyframes head-in {
    from { background-color: rgba(255,252,249,0); box-shadow: 0 1px 0 rgba(30,29,27,0); }
    to { background-color: rgba(255,252,249,.86); box-shadow: 0 1px 0 rgba(30,29,27,.06); }
  }
}
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 96px; }
/* Logo: "ember" in lowercase italic, finished with a glowing ember as its full stop */
.brand { grid-column: 2; grid-row: 1; text-decoration: none; text-align: center; line-height: 1; }
.brand b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.75rem; letter-spacing: -0.03em; line-height: .9; }
.brand span { display: block; font-size: .82rem; letter-spacing: .06em; color: var(--ash); margin-top: 6px; }
.brand i { display: inline-block; width: .13em; height: .13em; border-radius: 50%; background: var(--ember); margin-left: .04em; animation: ember 4s ease-in-out infinite; }
@keyframes ember { 0%, 100% { box-shadow: 0 0 .1em 0 rgba(255,110,30,.35); } 50% { box-shadow: 0 0 .35em .1em rgba(255,120,40,.7); } }
.nav { display: contents; }
.nav-l, .nav-r { display: flex; align-items: center; gap: 32px; grid-row: 1; }
.nav-l { grid-column: 1; }
.nav-r { grid-column: 3; justify-self: end; }
.nav a { text-decoration: none; font-size: .95rem; letter-spacing: .02em; }
.nav a:not(.btn) {
  background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 100% / 0 1px;
  padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s ease;
}
.nav a:not(.btn):hover { color: var(--ember-deep); background-size: 100% 1px; }
.nav a[aria-current="page"] { background-size: 100% 1px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px 0; font: inherit; font-size: .95rem; letter-spacing: .02em; color: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #FFFCF9;
  border: 0; border-radius: 999px;
  padding: 15px 30px; font: inherit; font-weight: 500; font-size: .98rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .6s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: #3B3633; box-shadow: 0 12px 32px -10px rgba(255,110,30,.75); transform: translateY(-1px); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn.small-btn { padding: 9px 20px; font-size: .9rem; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.small-btn:hover { background: var(--ink); color: #FFFCF9; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost:hover { background: rgba(242,102,27,.08); }
.hero-copy .btn, .dark .btn { background: #FFFCF9; color: var(--ink); }
.hero-copy .btn:hover, .dark .btn:hover { background: var(--peach); }
.hero-copy .btn.ghost, .dark .btn.ghost { background: transparent; color: #FFFCF9; }
.hero-copy .btn.ghost:hover, .dark .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* Sections */
section { padding: clamp(80px, 10vw, 160px) 0; }
section.tight { padding: clamp(48px, 6vw, 96px) 0; }
.band { background: radial-gradient(90% 70% at 50% 0%, var(--peach) 0%, rgba(255,217,191,0) 70%), var(--cream); }
.dark {
  background: radial-gradient(70% 55% at 50% 0%, rgba(255,110,30,.38) 0%, rgba(255,110,30,0) 70%), var(--night);
  color: var(--on-night);
}
.dark .dim { color: var(--on-night-dim); }
.section-head { max-width: 620px; margin: 0 0 clamp(36px, 5vw, 56px); }
.section-head p { margin: 16px 0 0; max-width: 52ch; }
.wrap > h2:first-child { margin-bottom: clamp(28px, 4vw, 44px) !important; }
.row-title { margin-bottom: clamp(28px, 4vw, 44px); }

/* Heading on the left, list on the right, for price lists and FAQs */
@media (min-width: 1000px) {
  .wrap:has(> .section-head + .rates), .wrap:has(> h2:first-child + .faq) {
    display: grid; grid-template-columns: 4fr 7fr; column-gap: clamp(48px, 6vw, 96px); align-items: start;
  }
  .wrap:has(> .section-head + .rates) > .section-head, .wrap:has(> h2:first-child + .faq) > h2 {
    grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 120px; margin-bottom: 0 !important;
  }
  .wrap:has(> .section-head + .rates) > :not(.section-head), .wrap:has(> h2:first-child + .faq) > :not(h2) { grid-column: 2; }
  .wrap:has(> .section-head + .rates) .rates, .wrap:has(> h2:first-child + .faq) .faq { max-width: none; margin: 0; }
}

/* Hero */
.hero { padding: 0; }
.hero-frame { isolation: isolate; position: relative; height: min(88vh, 880px); min-height: 540px; overflow: hidden; background: var(--night); margin: var(--inset) var(--inset) 0; border-radius: var(--r-lg); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 100%, rgba(255,110,30,.34) 0%, rgba(255,110,30,0) 70%),
    linear-gradient(to top, rgba(30,29,27,.72) 0%, rgba(30,29,27,.2) 45%, rgba(30,29,27,0) 70%),
    linear-gradient(to right, rgba(30,29,27,.45) 0%, rgba(30,29,27,0) 55%);
}
.hero-copy { position: absolute; inset: auto 0 0 0; z-index: 2; color: #FFFCF9; padding-bottom: clamp(40px, 6vw, 80px); }
.hero-copy h1 { max-width: 14ch; }
.hero-copy p { max-width: 44ch; margin: 24px 0 0; color: #EDE5DD; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Light leak: warm film flare drifting over the hero photo */
.leak { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; overflow: hidden; border-radius: inherit; }
.leak i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.leak i:nth-child(1) {
  width: 70%; height: 90%; left: -22%; bottom: -38%;
  background: radial-gradient(closest-side, rgba(255,120,30,1), rgba(255,96,20,.6) 45%, rgba(255,90,20,0));
  filter: blur(24px); animation: drift-a 18s ease-in-out infinite alternate;
}
.leak i:nth-child(2) {
  width: 46%; height: 70%; right: -12%; top: -26%;
  background: radial-gradient(closest-side, rgba(255,214,160,1), rgba(255,140,50,.75) 35%, rgba(255,110,30,.25) 65%, rgba(255,110,30,0));
  filter: blur(22px); animation: drift-b 22s ease-in-out infinite alternate;
}
.leak i:nth-child(3) {
  width: 130%; height: 140px; left: -15%; top: 58%; border-radius: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,215,170,.9), rgba(255,140,60,.35) 40%, rgba(255,140,60,0) 70%);
  transform: scaleY(.18); filter: blur(3px); opacity: .85;
  animation: streak 14s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(12%, -10%) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); opacity: .85; } to { transform: translate(-14%, 12%) scale(1.2); opacity: 1; } }
@keyframes streak { from { transform: translateX(-6%) scaleY(.18); opacity: .6; } to { transform: translateX(6%) scaleY(.22); opacity: 1; } }

/* Page load: the photo settles, the light blooms, then the words arrive */
.hero-frame img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
.hero-frame .leak { animation: bloom 3s ease-out .3s both; }
.hero-copy .wrap > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy .wrap > :nth-child(1) { animation-delay: .55s; }
.hero-copy .wrap > :nth-child(2) { animation-delay: .8s; }
.hero-copy .wrap > :nth-child(3) { animation-delay: 1s; }
@keyframes settle { from { transform: scale(1.08); filter: brightness(1.3) saturate(.75); } to { transform: none; filter: none; } }
@keyframes bloom { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* As you scroll past the hero, the photo drifts slower than the page and the words lift away */
@supports (animation-timeline: view()) {
  .hero-frame { view-timeline: --hero block; }
  .hero-frame img {
    animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both, parallax linear both;
    animation-timeline: auto, --hero; animation-range: normal, exit 0% exit 100%;
  }
  .hero-copy { animation: lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 70%; }
  @keyframes parallax { from { translate: 0 0; } to { translate: 0 28%; } }
  @keyframes lift { from { translate: 0 0; opacity: 1; } to { translate: 0 -40px; opacity: 0; } }
}

/* Photos develop as they scroll into view, like a print coming up in the tray */
.js .develop img {
  opacity: 0; filter: brightness(1.4) saturate(.5) sepia(.25) blur(4px); transform: scale(1.03);
  transition: opacity 1.1s ease, filter 1.8s ease, transform 1.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .develop.is-in img { opacity: 1; filter: none; transform: none; }
.door:hover .develop.is-in img { transform: scale(1.03); transition: transform 1.2s var(--ease); }

/* Hand-drawn touches: pencil frames, loops, sparks and notes in the margin */
.sketch { position: absolute; pointer-events: none; overflow: visible; fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sketch path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .sketch path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) var(--sd, .4s); }
.js .sketch path + path { transition-delay: calc(var(--sd, .4s) + .6s); }
.js .sketch.is-in path { stroke-dashoffset: 0; }
.split figure, .rate .note, .closer h2 { position: relative; isolation: isolate; }
.split figure img { position: relative; z-index: 1; }
.sketch.frame { inset: 14px -14px -14px 14px; width: 100%; height: 100%; z-index: 0; stroke-width: 1.8; }
.sketch.spark { width: 30px; height: 30px; left: -22px; top: -24px; stroke-width: 1.5; z-index: 2; }
.sketch.loop { left: -20px; top: -12px; z-index: -1; stroke-width: 1.7; transform: rotate(-3deg); }
.rate.pick .note { font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.35rem; font-weight: 600; letter-spacing: 0; margin-left: 28px; }
.closer .sketch.spark { left: auto; top: -18px; right: -30px; }
.hand {
  font-family: "Caveat", "Bradley Hand", cursive; font-weight: 500; font-size: 1.55rem; line-height: 1.1;
  color: var(--ember-deep); letter-spacing: 0; text-wrap: balance;
}
.hand svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-copy .wrap > :nth-child(4) { animation-delay: 1.5s; }
.hero-copy .hand { font-size: 1.75rem; max-width: none; color: #FFD9BF; display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0 34px; transform: rotate(-2deg); transform-origin: left; }
.hero-copy .hand svg { width: 52px; height: 40px; margin-top: -8px; }
.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.row-head .row-title { margin: 0 !important; }
.row-head .hand { display: flex; align-items: flex-end; gap: 4px; transform: rotate(-3deg); margin-bottom: -18px; }
.row-head .hand svg { width: 46px; height: 42px; }
@media (max-width: 700px) {
  .hero-copy .hand { margin-left: 18px; font-size: 1.5rem; }
  .row-head .hand { margin-bottom: 0; }
  .sketch.frame { inset: 10px -6px -10px 6px; }
  .sketch.spark { left: -8px; top: -22px; }
  .rate.pick .note { display: table; margin: 12px 0 4px 20px; }
  .closer .sketch.spark { right: 0; top: -30px; }
}

.intro .hand { margin: 18px 0 0; transform: rotate(-2deg); }

/* About: a pull-quote in handwriting */
.note-quote { margin: 36px 0 8px; padding-top: 30px; }
.note-quote p { font-family: "Caveat", "Bradley Hand", cursive; font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.15; color: var(--ink); transform: rotate(-1.5deg); transform-origin: left; margin-bottom: 10px; }
.note-quote footer { padding-left: 4px; }

/* Personal training */
.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px 32px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles h3 { margin-bottom: 4px; }
.principles p { margin: 0; color: var(--ash); }
.results { display: grid; gap: 44px 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .results { grid-template-columns: repeat(4, 1fr); } }
.results figure { margin: 0; }
.results img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.results figcaption { margin-top: 18px; }
.results figcaption b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ember-deep); line-height: 1.2; }
.results figcaption h3 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 500; margin: 4px 0 10px; }
.results figcaption p { color: var(--ash); margin: 0 0 12px; }
.results q { display: block; font-family: var(--serif); font-style: italic; line-height: 1.5; quotes: "\201C" "\201D"; }
#wedding-perks .split { align-items: start; }
.steps.steps-stack { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }

/* Words arrive in reading order as each section comes into view */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rise.is-in { opacity: 1; transform: none; }
.dark { position: relative; overflow: hidden; }
.dark > :not(.leak) { position: relative; z-index: 2; }

/* Delivery clock: the signature element */
.clock { background: radial-gradient(80% 100% at 50% 0%, var(--peach) 0%, rgba(255,217,191,0) 75%), var(--cream); }
.clock ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.clock li { padding: 48px 20px 50px; }
.clock time { display: block; font-variant-numeric: proportional-nums; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; }
.clock li:nth-child(2) time { color: var(--ember-deep); }
.clock span { display: block; color: var(--ash); margin-top: 8px; }
@media (max-width: 720px) {
  .clock ol { grid-template-columns: 1fr; }
  .clock ol { padding: 16px 0; }
  .clock li { padding: 18px 0; }
}

/* Two doors: full-bleed photo tiles */
.doors { display: grid; grid-template-columns: 1fr; gap: 48px 24px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { text-decoration: none; display: block; padding-bottom: 12px; }
.door figure { margin: 0 0 24px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--peach); border-radius: var(--r-lg); }
.door img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover img { transform: scale(1.03); }
.door h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.door .from { color: var(--ink); font-weight: 500; }
.door p { margin-top: 8px; margin-bottom: 0; max-width: 46ch; color: var(--ash); }
.door .go {
  display: inline-block; margin-top: 14px; letter-spacing: .02em; padding-bottom: 3px;
  background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 100% / 100% 1px;
  transition: background-size .6s var(--ease), padding .6s var(--ease);
}
.door:hover .go { background-size: 100% 2px; padding-right: 10px; }

/* Recent work: an even row of frames */
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .frames { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.frames figure { margin: 0; }
.frames img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.frames.land img { aspect-ratio: 3 / 2; }
@media (max-width: 899px) { .frames.land { grid-template-columns: 1fr; } }
.frames figcaption { font-size: .875rem; letter-spacing: .02em; color: var(--ash); margin-top: 12px; }

/* Gallery grid */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid figure { margin: 0; }
.grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.grid .wide { grid-column: span 2; }
.grid .wide img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .grid .wide img { height: 100%; } }

/* Gallery photos open larger */
.zoomable { cursor: zoom-in; overflow: hidden; border-radius: var(--r); }
.zoomable img { transition: transform 1.2s var(--ease), opacity 1.1s ease, filter 1.8s ease; }
.zoomable:hover img, .js .zoomable.develop.is-in:hover img { transform: scale(1.03); transition: transform 1.2s var(--ease); }
.zoomable:focus-visible { outline-offset: 4px; }
.frames .zoomable { overflow: visible; border-radius: 0; }
.frames .zoomable:hover img, .js .frames .zoomable.develop.is-in:hover img { transform: translateY(-6px); }
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(20,18,16,.94); color: var(--on-night);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .45s var(--ease); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 72px 40px; }
.lightbox img { max-width: min(92vw, 1400px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: var(--r); animation: zoom-in .6s var(--ease); }
.lightbox figcaption { font-size: .9rem; color: var(--on-night-dim); text-align: center; max-width: 60ch; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); color: var(--on-night); border: 0; border-radius: 999px;
  min-width: 48px; height: 48px; padding: 0 18px; font: inherit; font-size: .9rem; cursor: pointer;
  transition: background-color .3s var(--ease);
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lightbox figure { padding: 72px 12px 96px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; translate: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Price list, set like a menu */
.rates { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.rate {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 32px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.rate h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.rate .price { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-variant-numeric: lining-nums proportional-nums; white-space: nowrap; text-align: right; line-height: 1.3; }
.rate .price small { display: block; font-family: var(--sans); font-size: .875rem; color: var(--ash); margin-top: 4px; }
.rate p { grid-column: 1 / -1; margin: 4px 0 0; max-width: 62ch; color: var(--ash); }
.rate.pick {
  border-bottom-color: transparent; border-radius: 20px;
  margin: 8px -28px; padding: 28px;
  background: linear-gradient(105deg, #FFD3B4 0%, #FFEEE1 55%, #FFF9F4 100%);
}
.rate .note { display: inline-block; margin-left: 12px; font-family: var(--sans); font-size: .875rem; letter-spacing: .02em; color: var(--ember-deep); }
@media (max-width: 1000px) {
  .rate.pick { margin: 8px -16px; padding: 24px 16px; }
}
@media (max-width: 560px) {
  .rate { grid-template-columns: 1fr; }
  .rate .price { text-align: left; }
  .rate .note { display: block; margin: 4px 0 0; }
  .rate.pick { margin: 8px 0; padding: 22px 18px; }
}

.addons { display: grid; grid-template-columns: 1fr; gap: 0 48px; max-width: 860px; margin: 40px auto 0; }
@media (min-width: 860px) { .addons { grid-template-columns: 1fr 1fr; } }
.addons .rate { padding: 18px 0; }
.addons .rate h3 { font-size: 1.25rem; }
.addons .rate .price { font-size: 1.25rem; }

/* Two-column text + image */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split figure { margin: 0; }
.split figure img { border-radius: var(--r-lg); }
.split .rates { margin: 0; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.steps li { counter-increment: s; padding: 24px 0; border-top: 1px solid rgba(30,29,27,.12); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); color: var(--ember-deep); font-size: 1.8rem; line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ash); }

/* Quotes */
.reviews h2 { margin-bottom: clamp(36px, 5vw, 56px); }
.quotes { display: grid; grid-template-columns: 1fr; gap: 44px clamp(32px, 4vw, 64px); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } .quotes.two { grid-template-columns: repeat(2, 1fr); max-width: 1040px; } }
blockquote { margin: 0; position: relative; padding-top: 34px; }
blockquote::before {
  content: "\201C"; position: absolute; top: -14px; left: -4px;
  font-family: "Caveat", "Bradley Hand", cursive; font-weight: 600; font-size: 4.5rem; line-height: 1; color: var(--ember);
}
blockquote p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; margin: 0 0 18px; max-width: 40ch; }
blockquote footer { color: var(--ash); font-size: .875rem; }
blockquote footer b { display: block; color: var(--ink); font-weight: 500; font-size: 1.0625rem; }
.quotes-more { margin: clamp(36px, 5vw, 56px) 0 0; }
.quotes-more a { font-weight: 500; text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 100% / 100% 1px; transition: background-size .6s var(--ease); }
.quotes-more a:hover { background-size: 100% 2px; }
.todo { text-decoration: underline dotted var(--ember); text-underline-offset: .25em; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
.band .faq, .band .faq details { border-color: rgba(30,29,27,.12); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--ember-deep); transition: transform .5s var(--ease); }
.faq summary:hover { color: var(--ember-deep); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--ash); }
.faq details[open] p { animation: rise .6s var(--ease) both; }

/* Closing call to action: the ember glow */
.closer { text-align: center; }
.closer.band { background: radial-gradient(60% 90% at 50% 100%, rgba(255,110,30,.32) 0%, rgba(255,110,30,0) 70%), radial-gradient(30% 50% at 85% 10%, rgba(255,170,90,.25) 0%, rgba(255,170,90,0) 70%), var(--cream); }
.closer h2 { max-width: 18ch; margin: 0 auto; }
.closer p { margin-left: auto; margin-right: auto; }
.closer .hero-actions { margin-top: 32px; justify-content: center; }

/* Page intro (inner pages) */
.intro { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.intro h1 { max-width: 17ch; margin: 0 auto; }
.intro .lede { margin: 24px auto 0; }
.intro .hero-actions { justify-content: center; }
.wide-img { margin: 0 var(--inset); overflow: hidden; border-radius: var(--r-lg); }
.wide-img img { width: 100%; height: clamp(320px, 56vw, 720px); object-fit: cover; border-radius: var(--r-lg); }
.dark .wide-img { padding-bottom: var(--inset); }

/* Contact options */
.pair { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { border-radius: 24px; padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, #FFDCC3 0%, #FFF6EE 70%); }
.pair h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Footer */
.site-foot {
  background: radial-gradient(60% 80% at 50% 100%, rgba(255,110,30,.3) 0%, rgba(255,110,30,0) 70%), var(--night);
  color: var(--on-night-dim); padding: 64px 0 112px; font-size: .875rem;
}
.site-foot .wrap { display: grid; gap: 28px 20px; grid-template-columns: 1fr 1fr; }
.site-foot .wrap > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .site-foot .wrap > div:first-child { grid-column: auto; } }
@media (min-width: 860px) { .site-foot .wrap { grid-template-columns: 2fr 1fr 1fr; } .site-foot { padding-bottom: 36px; } }
.site-foot b { color: var(--on-night); font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.site-foot a { color: var(--on-night); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
/* Sign-off: the logo on the left, the small print on the right */
.site-foot .foot-close {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.foot-mark {
  font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.035em; line-height: .9;
  font-size: clamp(3.25rem, 7vw, 5.5rem); color: var(--on-night);
}
.foot-mark i { display: inline-block; width: .12em; height: .12em; border-radius: 50%; background: var(--ember); margin-left: .04em; box-shadow: 0 0 .25em .06em rgba(255,120,40,.6); }
.foot-close small { font-size: .875rem; }

/* Mobile */
.wa-bar { display: none; }
@media (max-width: 900px) {
  .site-head .wrap { height: 76px; }
  .nav-toggle { display: inline-block; grid-column: 1; grid-row: 1; justify-self: start; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open { display: flex; animation: menu-in .45s var(--ease) both; }
  .nav.open a { animation: rise .6s var(--ease) both; }
  .nav.open .nav-l a:nth-child(2) { animation-delay: .05s; }
  .nav.open .nav-r a:nth-child(1) { animation-delay: .1s; }
  .nav.open .nav-r a:nth-child(2) { animation-delay: .15s; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-l, .nav-r { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 0; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; }
  .nav .btn { display: none; }
  .brand b { font-size: 2.2rem; }
  .brand span { font-size: .74rem; margin-top: 5px; }
}
@media (max-width: 760px) {
  .hero-copy { padding-bottom: 100px; }
  .wa-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    box-shadow: 0 10px 30px rgba(30,29,27,.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Quote maker */
.q-layout { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) {
  .q-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .q-summary { position: sticky; top: 120px; }
}
.q-group { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.q-group legend { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 14px; padding: 0; }
.q-services legend { font-size: 1.5rem; }
.q-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.q-chip input, .q-option input[type="radio"], .q-option input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-chip span {
  display: inline-block; padding: 11px 20px; border-radius: 999px; cursor: pointer; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(30,29,27,.25); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.q-chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.q-chip input:checked + span { background: var(--ink); color: #FFFCF9; box-shadow: none; }
.q-chip input:focus-visible + span, .q-option:has(input:focus-visible) { outline: 2px solid var(--ember); outline-offset: 3px; }
.q-fields { display: grid; gap: 4px; animation: rise .5s var(--ease) both; }
.q-option {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 18px; margin-bottom: 8px; border-radius: 16px; cursor: pointer; background: var(--cream);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.q-option::before { content: ""; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(30,29,27,.35); transition: box-shadow .3s var(--ease), background-color .3s var(--ease); }
.q-check::before { border-radius: 6px; }
.q-option:hover { background: #FFEBDD; }
.q-option:has(input:checked) { background: #FFE2CE; box-shadow: inset 0 0 0 1.5px var(--ember); }
.q-option:has(input:checked)::before { background: var(--ember); box-shadow: inset 0 0 0 4px #FFE2CE, 0 0 0 1.5px var(--ember); }
.q-check:has(input:checked)::before { box-shadow: none; background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.q-option span small, .q-field small { display: block; color: var(--ash); font-size: .875rem; margin-top: 2px; }
.q-option b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-field { display: grid; gap: 8px; margin: 4px 0 22px; }
.q-field label { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.q-field label small { display: inline; font-family: var(--sans); font-size: .875rem; }
.q-field input[type="text"], .q-field input[type="date"], .q-stepper input {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid rgba(30,29,27,.2); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; width: 100%; max-width: 320px;
}
.q-field input:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.q-stepper { display: flex; align-items: center; gap: 8px; }
.q-stepper input { width: 84px; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.q-stepper input::-webkit-inner-spin-button, .q-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.q-stepper button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--cream); font: inherit; font-size: 1.4rem; cursor: pointer; color: var(--ink);
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.q-stepper button:hover { background: #FFE2CE; }
.q-stepper button:active { transform: scale(.94); }
.q-note { background: var(--cream); border-radius: 16px; padding: 16px 18px; margin: 0 0 20px; }
.q-warn { color: var(--ember-deep); font-size: .875rem; margin: 6px 0 0; }
.q-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding-top: 24px; }
.q-add p { margin: 0; }
.q-add strong { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-left: 4px; }

.q-summary {
  background: radial-gradient(90% 60% at 100% 0%, var(--peach) 0%, rgba(255,217,191,0) 70%), var(--cream);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
}
.q-summary.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.012); } }
.q-summary h2 { font-size: clamp(1.75rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.q-summary:not(.is-empty) .q-empty { display: none; }
.q-empty { color: var(--ash); }
.q-items { list-style: none; margin: 0; padding: 0; }
.q-item { padding: 16px 0 18px; box-shadow: 0 1px 0 rgba(30,29,27,.1); animation: rise .5s var(--ease) both; }
.q-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-item h3 { font-size: 1.25rem; }
.q-item h3 small { display: block; font-family: var(--sans); font-size: .875rem; font-weight: 400; color: var(--ash); margin-top: 2px; }
.q-item dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 10px 0 0; }
.q-item dt { color: var(--ash); }
.q-item dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.q-item .q-promo { color: var(--ember-deep); font-weight: 500; }
.q-bonus { font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.35rem; color: var(--ember-deep); margin: 8px 0 0; line-height: 1.2; }
.q-remove { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .875rem; color: var(--ash); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.q-remove:hover { color: var(--ember-deep); }
#q-conditions { margin-top: 16px; }
#q-conditions .q-option { background: var(--paper); }
.q-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.q-total-row span { font-family: var(--serif); font-size: 1.25rem; }
.q-total-row strong { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.q-saved { color: var(--ember-deep); font-size: .875rem; margin: 2px 0 0; min-height: 1.4em; text-align: right; }
#q-actions { display: grid; gap: 10px; margin-top: 18px; }
#q-actions .q-field { margin: 0 0 6px; }
#q-actions .q-field input { max-width: none; }
#q-actions .q-field label { font-size: 1.0625rem; }
#q-actions .q-remove { justify-self: center; margin-top: 4px; }
.q-fine { font-size: .875rem; color: var(--ash); margin: 18px 0 0; }

/* Promotions */
.promo-list { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .promo-list { grid-template-columns: 1fr 1fr; } }
.promo { background: var(--cream); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); animation: rise .7s var(--ease) both; }
.promo + .promo { animation-delay: .1s; }
.promo h2 { font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
.promo .lede { margin-top: 16px; }
.promo-when { font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.5rem; color: var(--ember-deep); margin: 0 0 6px; }
.promo-code { font-weight: 500; }
.promo-empty { background: var(--cream); border-radius: var(--r-lg); padding: 28px; }
.quote-link { margin: 28px 0 0; }
.quote-link a { font-weight: 500; text-decoration: none; padding-bottom: 3px; background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 100% / 100% 1px; transition: background-size .6s var(--ease); }
.quote-link a:hover { background-size: 100% 2px; }

/* Journal */
.post > .wrap { max-width: 860px; }
.post-head { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 56px); }
.post-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.post-head .lede { margin-top: 24px; max-width: 56ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--ash); font-size: .875rem; margin: 0 0 18px; }
.post-meta a { color: var(--ember-deep); text-decoration: none; font-weight: 500; }
.post-draft { background: var(--peach); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .875rem; }
.post-cover img { height: clamp(260px, 46vw, 620px); }
.prose { max-width: 68ch; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px); font-size: 1.125rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ember); }
.prose a { color: var(--ember-deep); text-decoration-thickness: 1px; }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose blockquote { margin: 1.8em 0; padding-top: 30px; }
.prose blockquote p { font-size: 1.35rem; }
.post-list { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .post-list { grid-template-columns: 1fr 1fr; } }
.post-card { display: block; text-decoration: none; background: var(--cream); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); transition: background-color .4s var(--ease), transform .5s var(--ease); }
.post-card:hover { background: #FFEBDD; transform: translateY(-3px); }
.post-card figure { margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) 22px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.post-card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card h2, .post-card h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.post-card p { color: var(--ash); margin-bottom: 14px; }
.post-card .go { display: inline-block; font-weight: 500; padding-bottom: 3px; background: linear-gradient(var(--ember), var(--ember)) no-repeat 0 100% / 100% 1px; }
@media (min-width: 760px) { .post-card.is-latest { grid-column: 1 / -1; } }

/* Photography touches ------------------------------------------------- */

/* Polaroids: a little stack of instant photos, taped down, captioned by hand */
.intro-split { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; text-align: left; align-items: center; }
.intro-split h1 { margin: 0; max-width: 14ch; }
.intro-split .lede { margin: 24px 0 0; }
@media (min-width: 900px) { .intro-split { grid-template-columns: 1.15fr .85fr; } }
.polaroids { position: relative; height: clamp(260px, 26vw, 330px); }
.polaroids figure {
  position: absolute; margin: 0; width: clamp(130px, 13vw, 180px); padding: 9px 9px 38px; background: #FFFEFC;
  box-shadow: 0 1px 2px rgba(30,29,27,.08), 0 14px 32px -12px rgba(30,29,27,.28);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  animation: drop-in 1.1s var(--ease) both; animation-delay: var(--d, 0s);
}
.polaroids figure::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; translate: -50% 0; rotate: var(--t, -3deg);
  background: rgba(255, 210, 170, .72); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.polaroids img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroids figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: "Caveat", "Bradley Hand", cursive; font-size: 1.35rem; color: var(--ink); }
.polaroids:hover figure { transform: translate(calc(var(--x, 0) * 1.25), var(--y, 0)) rotate(calc(var(--r, 0deg) * .4)); }
.polaroids figure:hover { z-index: 5; box-shadow: 0 1px 2px rgba(30,29,27,.08), 0 22px 44px -14px rgba(30,29,27,.35); }
@keyframes drop-in { from { opacity: 0; transform: translate(var(--x, 0), calc(var(--y, 0px) - 40px)) rotate(calc(var(--r, 0deg) * 2.5)) scale(1.06); } }
@media (max-width: 899px) { .polaroids { height: 230px; max-width: 420px; margin: 0 auto; width: 100%; } .polaroids figure { width: 31%; } .polaroids figcaption { font-size: 1.1rem; } }

/* Viewfinder: corner marks focus in around a card, and the focus point locks on */
.viewfinder { position: relative; }
.viewfinder::before {
  content: ""; position: absolute; inset: -10px; pointer-events: none; z-index: 1;
  --vf: var(--ember-deep); --vl: 26px; --vw: 2px;
  background:
    linear-gradient(var(--vf) 0 0) top left / var(--vl) var(--vw), linear-gradient(var(--vf) 0 0) top left / var(--vw) var(--vl),
    linear-gradient(var(--vf) 0 0) top right / var(--vl) var(--vw), linear-gradient(var(--vf) 0 0) top right / var(--vw) var(--vl),
    linear-gradient(var(--vf) 0 0) bottom left / var(--vl) var(--vw), linear-gradient(var(--vf) 0 0) bottom left / var(--vw) var(--vl),
    linear-gradient(var(--vf) 0 0) bottom right / var(--vl) var(--vw), linear-gradient(var(--vf) 0 0) bottom right / var(--vw) var(--vl);
  background-repeat: no-repeat;
  transition: inset 1s var(--ease), opacity .6s ease;
}
.viewfinder::after {
  content: ""; position: absolute; top: 22px; right: 22px; width: 22px; height: 16px; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1.5px var(--ember); border-radius: 2px; opacity: .9;
}
.viewfinder:hover::before { inset: -4px; }
.js .viewfinder.rise:not(.is-in)::before { inset: -30px; opacity: 0; }
.js .viewfinder.rise:not(.is-in)::after { opacity: 0; }
.js .viewfinder.rise.is-in::after { animation: af-lock 1.4s steps(1, end) .5s both; }
@keyframes af-lock { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: .15; } 45% { opacity: 1; } 60% { opacity: .15; } 75%, 100% { opacity: .9; } }

/* Film strip: a slowly scrolling 35mm roll of recent photos */
.filmstrip { padding: 0; overflow: hidden; background: var(--night); }
.film {
  position: relative; padding: 30px 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30'%3E%3Crect x='8' y='9' width='12' height='12' rx='2.5' fill='%23F3EEE8' fill-opacity='.9'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 30px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30'%3E%3Crect x='8' y='9' width='12' height='12' rx='2.5' fill='%23F3EEE8' fill-opacity='.9'/%3E%3C/svg%3E") repeat-x 0 100% / 28px 30px,
    #1A1816;
}
.film-track { display: flex; gap: 14px; width: max-content; animation: roll 70s linear infinite; }
.filmstrip:hover .film-track { animation-play-state: paused; }
.film-frame { position: relative; margin: 0; flex: none; width: clamp(200px, 22vw, 300px); }
.film-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; filter: saturate(.92) contrast(1.02); transition: filter .6s var(--ease); }
.film-frame:hover img { filter: none; }
.film-frame .edge {
  position: absolute; left: 6px; bottom: -24px; font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  color: #E8924E; opacity: .85; font-variant-numeric: tabular-nums;
}
.film-frame .edge i { font-style: normal; margin: 0 6px; }
@keyframes roll { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .film { overflow-x: auto; } }

/* 404: the page pulls into focus */
.out-of-focus h1 { animation: focus-pull 2.2s var(--ease) .2s both; }
@keyframes focus-pull { 0% { filter: blur(14px); opacity: .4; } 45% { filter: blur(2px); opacity: 1; } 65% { filter: blur(5px); } 100% { filter: blur(0); } }
