/* Everbright — polish layer (loads last on every page).
   Goal: "expensive", not "busier". Material (grain, one light source per section), signature detail (roofline
   dividers), editorial structure (numerals, hairlines, a real hierarchy for services) and hand-built motion.
   Rules: opacity/transform only wherever possible; everything quiet under prefers-reduced-motion. */

/* ---------- 1. material: film grain over the whole page (one static layer) ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 75; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .55 0 0 0 0 .55 0 0 0 1.1 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media print { body::after { display: none; } }

/* ---------- 2. one light source per section ---------- */
.section { isolation: isolate; }
.on-night::before, .on-night-2::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 52% at var(--lx, 88%) var(--ly, 0%), rgba(233, 189, 98, .14), transparent 70%),
    radial-gradient(38% 36% at var(--lx2, 4%) var(--ly2, 100%), rgba(124, 150, 255, .08), transparent 72%);
  animation: breathe 12s ease-in-out infinite alternate; will-change: opacity;
}
@keyframes breathe { from { opacity: .5; } to { opacity: 1; } }
main > .section:nth-of-type(3n + 1) { --lx: 88%; --ly: 0%; --lx2: 4%; --ly2: 100%; }
main > .section:nth-of-type(3n + 2) { --lx: 8%; --ly: 100%; --lx2: 96%; --ly2: 0%; }
main > .section:nth-of-type(3n) { --lx: 50%; --ly: -6%; --lx2: 100%; --ly2: 100%; }
.on-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #f6f0e2 0, rgba(246, 240, 226, 0) 140px),
    radial-gradient(110% 60% at 50% 12%, rgba(255, 255, 255, .55), transparent 62%),
    radial-gradient(80% 60% at 100% 100%, rgba(168, 122, 34, .11), transparent 70%),
    radial-gradient(70% 50% at 0% 100%, rgba(208, 42, 60, .05), transparent 70%);
}
.on-paper--xmas::before { display: none; }

/* ---------- 3. editorial structure: numbered section heads + hairlines ---------- */
main { counter-reset: sec; }
.head { counter-increment: sec; }
.head .eyebrow::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; opacity: .95;
  font-variant-numeric: tabular-nums; padding-right: .95em; border-right: 1px solid currentColor; line-height: 1;
}
.head--center .eyebrow::after { display: none; }
.on-paper .eyebrow, .on-paper .eyebrow::before { color: #b3202f; }
.on-paper em, .on-paper h2 em { color: #b3202f; }
.phero--xmas em { color: #ff8a98; }

/* keyline frames: a second, fainter border inset from the first */
.demo, .form { position: relative; }
.demo::before, .form::before, .photo:not(.photo--candy)::before {
  content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none; border-radius: calc(var(--r-l) - 8px); border: 1px solid rgba(233, 189, 98, .22);
}
.photo:not(.photo--candy)::before { border-color: rgba(248, 223, 161, .35); }

/* ---------- 4. signature divider: the roofline lights up as it enters ---------- */
.roofline { --rh: clamp(76px, 11vw, 168px); position: relative; z-index: 3; height: var(--rh); margin-top: calc(var(--rh) * -1 + 1px); pointer-events: none; }
.roofline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.roofline .body { fill: var(--roof-fill, #f6f0e2); }
.roofline .lit { clip-path: inset(0 100% 0 0); transition: clip-path 1700ms cubic-bezier(.65, 0, .2, 1); }
.roofline.is-lit .lit { clip-path: inset(0 0 0 0); }
.roofline .lit path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 0 26; }
.roofline .g { mix-blend-mode: screen; }
.roofline .g path { stroke: #ffc766; stroke-width: 26; opacity: .85; }
.roofline .c1 { stroke: #fff1c9; stroke-width: 7; animation: tw 3.4s ease-in-out infinite; }
.roofline .c2 { stroke: #ffd48a; stroke-width: 7; stroke-dashoffset: -13; animation: tw 3.4s ease-in-out infinite -1.7s; }
@keyframes tw { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* quieter seam (paper → night): hairline + one bulb that warms up */
.seam { position: relative; z-index: 3; height: 0; pointer-events: none; }
.seam::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 189, 98, .5), transparent); }
.seam i { position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #ffe6b0; box-shadow: 0 0 0 0 rgba(255, 214, 150, 0); opacity: .25; transform: scale(.6); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), box-shadow 1200ms var(--ease-out); }
.seam.is-lit i { opacity: 1; transform: none; box-shadow: 0 0 14px 5px rgba(255, 214, 150, .75); }

/* ---------- 5. services with a real hierarchy ---------- */
.svc { display: grid; gap: 14px; }
.svc__lead { display: grid; gap: 14px; }
.card--lead { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(26px, 3.4vw, 44px); }
.card--lead .ico { position: absolute; top: clamp(24px, 3vw, 36px); left: clamp(26px, 3.4vw, 44px); width: 56px; height: 56px; margin: 0; border-radius: 50%; border: 1px solid rgba(233, 189, 98, .35); background: transparent; }
.card--lead h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 12px; }
.card--lead p { max-width: 36ch; font-size: 1.03rem; }
.card--lead .no { position: absolute; top: 14px; right: clamp(22px, 3vw, 36px); font: italic 400 clamp(4rem, 7vw, 6.4rem) / 1 var(--f-display); color: rgba(233, 189, 98, .11); pointer-events: none; font-variation-settings: "opsz" 144; }
.svc-perm { position: relative; display: grid; gap: 18px; align-items: center; padding: clamp(24px, 3vw, 38px) clamp(26px, 3.4vw, 44px); border-radius: var(--r-l); border: 1px solid rgba(233, 189, 98, .32); background: linear-gradient(115deg, rgba(233, 189, 98, .17), rgba(124, 150, 255, .09) 70%); text-decoration: none; overflow: hidden; }
.svc-perm .tag { font: 700 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); display: block; margin-bottom: 12px; }
.svc-perm h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 8px; }
.svc-perm p { margin: 0; color: var(--muted); max-width: 46ch; }
.svc-perm__lights { display: flex; gap: 12px; animation: huecycle 14s linear infinite; will-change: filter; }
.svc-perm__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 14px 4px rgba(255, 77, 94, .65); }
@keyframes huecycle { to { filter: hue-rotate(360deg); } }
.svc-perm .more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold-hi); }
.svc-perm .more svg { width: 20px; height: 20px; transition: transform var(--t-med) var(--ease-out); }
@media (min-width: 860px) { .svc-perm { grid-template-columns: 1.4fr auto auto; gap: 40px; } }
.svc__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc__item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 3px 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc__item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease-out); }
.svc__ico { grid-row: span 2; width: 26px; height: 26px; margin-top: 3px; color: var(--gold); transition: transform var(--t-med) var(--ease-out), color var(--t-med); }
.svc__item h3 { font-size: 1.28rem; }
.svc__item p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 760px) { .svc__lead { grid-template-columns: 1fr 1fr; } .svc__list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
@media (min-width: 1060px) { .svc__list { grid-template-columns: repeat(3, 1fr); } }
@media (hover: hover) {
  .svc__item:hover::after { transform: scaleX(1); }
  .svc__item:hover .svc__ico { transform: translateY(-2px) rotate(-8deg); color: var(--gold-hi); }
  .svc-perm:hover .more svg { transform: translateX(6px); }
  .svc-perm:hover { border-color: rgba(233, 189, 98, .6); }
}

/* ---------- 6. motion that whispers ---------- */
/* default reveal: a short, slow settle (no big fade-up) */
.js [data-reveal] { transform: translateY(10px); transition: opacity 1100ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal="settle"] { transform: scale(.985) translateY(8px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* images and the demo are unveiled with a slow curtain */
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--r-l)); transition: clip-path 1500ms cubic-bezier(.7, 0, .18, 1); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
.js [data-reveal="wipe"] img { transform: scale(1.09); transition: transform 2200ms var(--ease-out); }
.js [data-reveal="wipe"].is-in img { transform: none; }
/* headlines: words rise from under a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .07em .17em; margin: -.08em -.07em -.17em; }
.w > span { display: inline-block; transform: translateY(115%); transition: transform 1100ms cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 42ms); }
.is-in > .w > span, .is-in .w > span { transform: none; }

/* buttons: sheen that travels, and bulbs that plug in along the top edge */
.btn { overflow: visible; }
.btn--gold { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%) -160% 0 / 260% 100% no-repeat, var(--bg); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background-position 1000ms var(--ease), border-color var(--t-fast) var(--ease); }
.btn--gold::after { display: none; }
.plug { position: absolute; left: 50%; top: -11px; display: flex; gap: 15px; transform: translateX(-50%); pointer-events: none; }
.plug i { width: 6px; height: 6px; border-radius: 50%; background: #fff8e6; box-shadow: 0 0 11px 4px rgba(255, 214, 150, .95); opacity: 0; transform: translateY(7px) scale(.3); transition: opacity 220ms var(--ease), transform 380ms var(--ease-out); transition-delay: calc(var(--k) * 75ms); }
.btn:focus-visible .plug i { opacity: 1; transform: none; }
@media (hover: hover) {
  .btn--gold:hover { background-position: 170% 0, 0 0; }
  .btn:hover .plug i { opacity: 1; transform: none; }
}
.btn:active .plug i { animation: flick 260ms steps(2, end); }
@keyframes flick { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* navigation: one underline that glides between links */
.nav { position: relative; }
.nav a:not(.btn)::after { display: none !important; }
.nav__ind { position: absolute; left: 0; top: 0; width: 100px; height: 2px; border-radius: 2px; background: var(--gold); transform-origin: left center; transform: translate(var(--x, 0), var(--y, 0)) scaleX(var(--w, 0)); opacity: 0; transition: transform 520ms cubic-bezier(.22, 1, .36, 1), opacity 220ms; pointer-events: none; }
.nav__ind.on { opacity: 1; }
.nav__ind[data-xmas] { height: 3px; background: repeating-linear-gradient(135deg, #ff3b3b 0 6px, #fff6e6 6px 12px); }

/* process: the line is driven by scroll, so it draws as you read */
.steps .step::after { transform: scaleY(var(--f, 0)); transition: none; }
.steps .step.is-in::after { transform: scaleY(var(--f, 0)); }
@media (min-width: 900px) { .steps .step::after, .steps .step.is-in::after { transform: scaleX(var(--f, 0)); } }
.step { align-content: start; }
.step__n { position: relative; }
.step.is-in .step__n::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(233, 189, 98, .5); animation: ring 1400ms var(--ease-out) 1 both; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* form: a bulb lights beside every valid field; a successful send runs a light around the card */
.ctl { position: relative; display: block; }
.ctl input { padding-right: 44px; }
.vbulb { position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #ffe6b0; opacity: 0; transform: scale(.2); box-shadow: 0 0 0 rgba(255, 214, 150, 0); transition: opacity 300ms var(--ease), transform 500ms var(--ease-out), box-shadow 600ms var(--ease-out); pointer-events: none; }
.ctl.is-valid .vbulb { opacity: 1; transform: none; box-shadow: 0 0 12px 4px rgba(255, 214, 150, .8); }
.form::after { content: ""; position: absolute; inset: -1px; border-radius: var(--r-l); padding: 2px; opacity: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent 0 38%, #ffe6b0 50%, transparent 62% 100%) 0 0 / 300% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.form.is-sent::after { opacity: 1; animation: chase 1100ms cubic-bezier(.5, 0, .2, 1) both; }
@keyframes chase { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* cross-document page transitions (progressive: browsers without support just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- laptop widths: keep the hero house clear of the buttons ---------- */
@media (min-width: 860px) and (max-width: 1199px) { .hero__scene { width: min(96%, 150svh); right: -14%; bottom: -3%; } }

/* ---------- phones: calmer glow, tighter lead cards ---------- */
@media (max-width: 640px) { .roofline .g path { opacity: .5; } .card--lead { min-height: 236px; } }

/* ---------- close the gaps ---------- */
.photo { margin: 0; }
/* services -> permanent are two dark sections back to back: share the breathing room instead of doubling it */
#services { padding-bottom: clamp(40px, 5vw, 72px); }
#permanent { padding-top: clamp(24px, 3.5vw, 48px); }
/* looks: tighter head, and the photo + style cards sit flush as one block */
#looks .head { margin-bottom: clamp(28px, 3.5vw, 44px); }
#looks .looks { align-items: stretch; }
#looks .photo { display: flex; }
#looks .photo img { height: 100%; aspect-ratio: auto; min-height: 100%; }

/* ---------- 7. invisible fixes ---------- */
.footer .foot-h { font: 700 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
@media (pointer: coarse) { .footer a { min-height: 44px; } .drawer__meta a { display: inline-flex; min-height: 44px; align-items: center; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .roofline .lit { clip-path: none; }
  .js [data-reveal="wipe"] { clip-path: none; }
  .w > span { transform: none; }
  .steps .step::after { --f: 1; }
  .seam i { opacity: 1; transform: none; }
  .on-night::before, .on-night-2::before { animation: none; }
  .svc-perm__lights { animation: none; }
}

/* ---------- top bar: serving area + contact (lives inside the fixed header, folds away on scroll) ---------- */
:root { --bar-h: 38px; --header-h: calc(72px + var(--bar-h)); }
@media (max-width: 639px) { :root { --bar-h: 62px; } }
.header { height: auto; flex-direction: column; align-items: stretch; }
.header__in { min-height: 72px; }
.topbar { position: relative; height: var(--bar-h); overflow: hidden; background: rgba(6, 9, 19, .6); border-bottom: 1px solid var(--line); font-size: .8rem; line-height: 1.2; transition: height 340ms var(--ease), opacity 240ms var(--ease), border-color 240ms; }
.header.is-stuck .topbar { height: 0; opacity: 0; border-bottom-color: transparent; }
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; }
.topbar__serve { color: var(--gold-hi); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.topbar__serve i { font-style: normal; opacity: .55; margin: 0 .35em; }
.topbar__links { display: flex; align-items: center; gap: 6px 22px; }
.topbar__links a { color: var(--text); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .45em; min-height: 24px; transition: color var(--t-fast); }
.topbar__links a:hover { color: var(--gold-hi); }
.emo, .footer .emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; }
@media (max-width: 639px) {
  .topbar__in { flex-direction: column; justify-content: center; text-align: center; gap: 4px; }
  .topbar__serve { font-size: .66rem; }
  .topbar__links { flex-wrap: wrap; justify-content: center; gap: 2px 16px; font-size: .78rem; }
}
/* ---------- permanent spotlight (copy only, centred) ---------- */
.perm--solo { display: block; max-width: 900px; text-align: center; }
.perm--solo .lede { margin-inline: auto; }
.perm--solo .eyebrow { justify-content: center; }
.perm--solo .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.perm--solo .ticks { grid-template-columns: 1fr; text-align: left; margin: 36px auto 36px; max-width: 560px; }
@media (min-width: 860px) { .perm--solo .ticks { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 28px; } .perm--solo .ticks li { flex-direction: column; align-items: center; text-align: center; gap: 10px; } .perm--solo .ticks svg { margin-top: 0; } }

/* ---------- why: now follows "looks" directly (both cream), so share the breathing room ---------- */
#looks { padding-bottom: clamp(40px, 5vw, 72px); }
#why { padding-top: clamp(24px, 3.5vw, 48px); }
#why .head { margin-bottom: clamp(24px, 3vw, 40px); }

/* looks -> why are both cream: fade the bottom vignette out so there is no visible edge between them */
#looks::before { background:
  linear-gradient(0deg, #f6f0e2 0, rgba(246, 240, 226, 0) 160px),
  linear-gradient(180deg, #f6f0e2 0, rgba(246, 240, 226, 0) 140px),
  radial-gradient(110% 60% at 50% 12%, rgba(255, 255, 255, .55), transparent 62%),
  radial-gradient(80% 60% at 100% 100%, rgba(168, 122, 34, .11), transparent 70%),
  radial-gradient(70% 50% at 0% 100%, rgba(208, 42, 60, .05), transparent 70%); }

/* ---------- our work: photo gallery + viewer ---------- */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
.work__item { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #0a1022; box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -22px rgba(0, 0, 0, .8); }
.work__item--big { grid-column: span 2; aspect-ratio: 3 / 2; }
.work__btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.work__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1400ms var(--ease-out), filter 700ms var(--ease); }
/* a faint inner keyline and a soft vignette arrive on hover/focus, like a picture light switching on */
.work__btn::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 100%, rgba(6, 9, 19, .55), transparent 60%); opacity: 0; transition: opacity 600ms var(--ease); }
.work__btn::after { content: ""; position: absolute; inset: 9px; z-index: 1; pointer-events: none; border-radius: 8px; border: 1px solid rgba(255, 244, 214, .0); transition: border-color 600ms var(--ease), inset 600ms var(--ease-out); }
.work__zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(6, 9, 19, .62); border: 1px solid rgba(255, 244, 214, .45); opacity: 0; transform: scale(.6) translateY(6px); transition: opacity 400ms var(--ease), transform 600ms var(--ease-out); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.work__zoom::before, .work__zoom::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff3d0; transform: translate(-50%, -50%); border-radius: 1px; }
.work__zoom::before { width: 14px; height: 1.5px; }
.work__zoom::after { width: 1.5px; height: 14px; }
.work__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 14px; }
.work__btn:focus-visible::before, .work__btn:focus-visible .work__zoom { opacity: 1; }
.work__btn:focus-visible .work__zoom { transform: none; }
.work__btn:focus-visible::after { border-color: rgba(255, 244, 214, .5); inset: 12px; }
@media (hover: hover) {
  .work__btn:hover img { transform: scale(1.045); }
  .work__btn:hover::before { opacity: 1; }
  .work__btn:hover::after { border-color: rgba(255, 244, 214, .5); inset: 12px; }
  .work__btn:hover .work__zoom { opacity: 1; transform: none; }
}
.work__btn:active img { transform: scale(1.02); transition-duration: 200ms; }
.work__cta { text-align: center; margin: clamp(32px, 4vw, 52px) 0 0; }
@media (min-width: 760px) {
  .work { grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: clamp(140px, 17.5vw, 232px); }
  .work__item, .work__item--big { aspect-ratio: auto; }
  .work__item--big { grid-column: span 2; grid-row: span 2; }
}

/* viewer (native <dialog>: focus trap, Escape and inert background come for free) */
.lb { border: 0; padding: 0; margin: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(3, 5, 12, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb[open] { animation: lb-in 320ms var(--ease-out) both; }
.lb.is-closing { animation: lb-out 220ms var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb__stage { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: clamp(56px, 8vh, 84px) clamp(12px, 6vw, 96px) clamp(44px, 8vh, 70px); }
.lb__img { display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); transition: opacity 260ms var(--ease); background: #0a1022; }
.lb__img.is-swap { opacity: 0; }
.lb__cap { margin: 0; max-width: 70ch; text-align: center; font-size: .94rem; line-height: 1.5; color: #d8d3c4; }
.lb__cap b { color: var(--gold-hi); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-right: .6em; }
.lb__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 244, 214, .3); background: rgba(10, 16, 34, .72); color: #fff3d0; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn:active { transform: scale(.94); }
.lb__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) { .lb__btn:hover { background: rgba(233, 189, 98, .22); border-color: var(--gold); } }
.lb__close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
.lb__prev, .lb__next { top: 50%; margin-top: -26px; }
.lb__prev { left: max(14px, env(safe-area-inset-left)); }
.lb__next { right: max(14px, env(safe-area-inset-right)); }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin-top: 0; } .lb__stage { padding-inline: 10px; padding-bottom: 84px; } .lb__cap { font-size: .86rem; } }
body.lb-open { overflow: hidden; }

/* ---------- the night work gallery sits between two cream sections: restore normal breathing room ---------- */
#looks { padding-bottom: clamp(72px, 10vw, 140px); }
#looks::before { background:
  linear-gradient(180deg, #f6f0e2 0, rgba(246, 240, 226, 0) 140px),
  radial-gradient(110% 60% at 50% 12%, rgba(255, 255, 255, .55), transparent 62%),
  radial-gradient(80% 60% at 100% 100%, rgba(168, 122, 34, .11), transparent 70%),
  radial-gradient(70% 50% at 0% 100%, rgba(208, 42, 60, .05), transparent 70%); }
#why { padding-top: clamp(48px, 6vw, 88px); }

@media (prefers-reduced-motion: reduce) {
  .lb[open], .lb.is-closing { animation: none; }
  .work__btn:hover img { transform: none; }
}

/* ---------- logo: the medallion replaces the old mark + wordmark everywhere (large, so the lettering reads) ---------- */
:root { --head-row: 96px; --header-h: calc(var(--head-row) + var(--bar-h)); }
@media (max-width: 639px) { :root { --head-row: 82px; } }
.header__in { min-height: var(--head-row); transition: min-height 320ms var(--ease); }
.header.is-stuck .header__in { min-height: 78px; }
.brand { gap: 0; }
.brand__logo { display: block; width: 88px; height: 88px; border-radius: 50%; transform-origin: left center; transition: transform 520ms var(--ease-out), filter 600ms var(--ease); filter: drop-shadow(0 5px 16px rgba(0, 0, 0, .5)); }
.header.is-stuck .brand__logo { transform: scale(.86); }
@media (hover: hover) { .brand:hover .brand__logo { transform: scale(1.05) rotate(-2deg); filter: drop-shadow(0 0 16px rgba(233, 189, 98, .55)); } .header.is-stuck .brand:hover .brand__logo { transform: scale(.92) rotate(-2deg); } }
.brand:focus-visible { border-radius: 50%; }
@media (max-width: 639px) { .brand__logo { width: 70px; height: 70px; } }
.footer .brand__logo { width: 156px; height: 156px; }

/* ---------- terms of service page ---------- */
.legal-section { padding-top: clamp(40px, 6vw, 80px); }
.legal { max-width: 760px; margin-inline: auto; }
.legal__item { padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--dark-line); }
.legal__item:first-child { padding-top: 0; }
.legal__item:last-child { border-bottom: 0; }
.legal h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 14px; }
.legal__n { font: italic 400 1rem/1 var(--f-display); color: #b3202f; font-variant-numeric: tabular-nums; min-width: 1.8em; }
.legal p { color: var(--dark-muted); max-width: 66ch; margin: 0 0 .9em; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: #b3202f; text-underline-offset: 3px; }
.footer__terms { color: #d8d3c4; text-underline-offset: 3px; }
.form__note a { color: var(--gold-hi); }

/* footer legal links */
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }
.legal ul { color: var(--dark-muted); margin: 0 0 .9em; padding-left: 1.2em; max-width: 66ch; }
.legal li { margin-bottom: .45em; }
.legal strong { color: var(--dark-text); }

/* ---------- Legal dropdown (header) ---------- */
.nav__drop { position: relative; }
.nav__droptoggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; border: 0; background: none; color: var(--text); font: 600 .94rem/1 var(--f-body); opacity: .86; cursor: pointer; border-radius: 8px; transition: opacity var(--t-fast), color var(--t-fast); }
.nav__droptoggle svg { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.nav__droptoggle:hover, .nav__drop.is-open .nav__droptoggle, .nav__droptoggle[data-current] { opacity: 1; }
.nav__droptoggle[data-current] { color: var(--gold-hi); }
.nav__drop.is-open .nav__droptoggle svg { transform: rotate(180deg); }
.nav__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 224px; padding: 8px; border-radius: 16px; background: rgba(10, 16, 34, .97); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity 200ms var(--ease), transform 320ms var(--ease-out), visibility 0s linear 320ms; z-index: 5; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu a:not(.btn) { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text); opacity: 1; transition: background-color var(--t-fast), color var(--t-fast); }
.nav__menu a:not(.btn)::after { display: none !important; }
.nav__menu a[aria-current="page"] { color: var(--gold-hi); }
@media (hover: hover) { .nav__menu a:not(.btn):hover { background: rgba(233, 189, 98, .14); color: var(--gold-hi); } }
.nav__menu a:focus-visible { outline-offset: -3px; }
@media (min-width: 980px) and (max-width: 1180px) { .nav a:not(.btn), .nav__droptoggle { padding-inline: 9px; } .nav .btn { margin-left: 4px; } }
/* mobile drawer */
.drawer__legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; padding: 18px 0 4px; }
.drawer__legal span { flex-basis: 100%; font: 700 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.drawer__legal a { font: 400 1.25rem/1.2 var(--f-display); text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; }

/* ---------- hero: the style picker sits BELOW the copy, never on top of the buttons ---------- */
@media (min-width: 860px) {
  .hero__copy { padding-bottom: clamp(28px, 5vh, 56px); }
  .picker { position: relative; left: auto; bottom: auto; transform: none; flex: none; margin: auto auto clamp(14px, 3vh, 30px); }
}

/* hero buttons stay legible over the lit house */
.hero .btn--ghost { background: rgba(6, 9, 19, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 860px) and (max-width: 1199px) { .hero__scene { right: -24%; } }

/* ---------- quote form: required markers + helper text ---------- */
.req { color: var(--holly-hi); font-weight: 700; margin-left: .15em; }
.form__req { margin: 0 0 14px; font-size: .84rem; color: var(--muted); }
.form__req span { color: var(--holly-hi); font-weight: 700; }
.field .hint { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.field select:required:invalid { color: #8c8a85; }
.field select option { color: var(--dark-text); }

/* the phone emoji renders pink on some systems; emoji ignore text color, so turn it to a clean white with a filter */
.emo--phone { filter: grayscale(1) brightness(3); }
