/* «رز» public site — base, type, components, chrome. Pages add their own blocks in pages.css.
   House rules: one image per moment, two colours per section, huge-or-tiny type, no letter-spacing on Persian, flat colour. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--espresso);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.95; font-weight: 300;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--bordeaux); color: var(--ivory); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 200; background: var(--bordeaux); color: var(--ivory); padding: 10px 18px; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: calc(var(--sec) * .55); }
.sec--blush { background: var(--blush); }
.sec--nude { background: var(--nude); }
.sec--night { background: var(--oxblood); color: var(--paper); }
.sec--bordeaux { background: var(--bordeaux); color: var(--paper); }
.sec--night ::selection, .sec--bordeaux ::selection { background: var(--gold); color: var(--oxblood); }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.sec--night .rule, .sec--bordeaux .rule { background: var(--line-dark); }
.stack > * + * { margin-top: var(--gap, 20px); }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 200; line-height: 1.32; }
.t-mega { font-size: var(--t-mega); line-height: .92; }
.t-xxl { font-size: var(--t-xxl); line-height: 1.18; }
.t-xl { font-size: var(--t-xl); line-height: 1.24; }
.t-l { font-size: var(--t-l); line-height: 1.3; }
.t-m { font-size: var(--t-m); line-height: 1.45; }
.t-s { font-size: var(--t-s); line-height: 1.55; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 2; font-weight: 300; max-width: 34em; }
.muted { color: var(--cocoa); }
.sec--night .muted, .sec--bordeaux .muted { color: rgba(244, 238, 230, .74); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); line-height: 1.8; }
.latin, .en { font-family: var(--f-latin); direction: ltr; unicode-bidi: isolate; font-optical-sizing: auto; }
.latin { font-style: italic; font-weight: 400; }
/* spaced English caps: «COLLECTION HIVER», «N° 07», section labels */
.caps { font-family: var(--f-latin); font-style: normal; font-weight: 400; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; line-height: 1.6; direction: ltr; unicode-bidi: isolate; }
.caps--l { font-size: clamp(13px, 1.1vw, 15px); }
/* an English word set large beside Persian («Rose,», «Les codes couleur») */
.en-display { font-family: var(--f-latin); font-style: italic; font-weight: 400; line-height: .95; direction: ltr; unicode-bidi: isolate; color: var(--bordeaux); }
.sec--night .en-display, .sec--bordeaux .en-display { color: var(--gold); }
.rg { color: var(--rosegold); }
.gold { color: var(--gold); }
.bdx { color: var(--bordeaux); }
.thin { font-weight: 200; }
.hair { font-weight: 100; }

/* eyebrow: «۰۱ — ناخن» with a short rule at the start */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--t-micro); font-weight: 500; line-height: 1.6; color: var(--cocoa); }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--rosegold); flex: none; }
.eyebrow--plain::before { display: none; }
.sec--night .eyebrow, .sec--bordeaux .eyebrow { color: var(--gold); }
.sec--night .eyebrow::before, .sec--bordeaux .eyebrow::before { background: var(--gold); }

/* section head: eyebrow + title, and an optional link at the end */
.shead { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 88px); }
.shead__row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shead__title { max-width: 14em; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 32px; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: color .7s var(--ease), box-shadow .7s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
@media (hover: hover) { .btn:hover::after { transform: scaleX(1); transform-origin: right; } }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--bordeaux); color: var(--ivory); }
.btn--primary::after { background: var(--oxblood); }
.btn--ghost { box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost::after { background: var(--espresso); }
@media (hover: hover) { .btn--ghost:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--espresso); } }
.btn--light { background: var(--ivory); color: var(--bordeaux); }
.btn--light::after { background: var(--blush); }
.btn--gold { background: var(--gold); color: var(--oxblood); }
.btn--gold::after { background: #C9AB72; }
.btn--ghost-light { box-shadow: inset 0 0 0 1px rgba(244, 238, 230, .6); color: var(--paper); }
.btn--ghost-light::after { background: var(--paper); }
@media (hover: hover) { .btn--ghost-light:hover { color: var(--oxblood); } }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn .arr { width: 22px; height: 10px; flex: none; transition: transform .7s var(--ease); }
@media (hover: hover) { .btn:hover .arr, .link:hover .arr { transform: translateX(-6px); } }

.link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; padding-block: 8px; min-height: var(--tap);
  background: linear-gradient(currentColor, currentColor) right bottom 10px / 100% 1px no-repeat; transition: background-size .7s var(--ease); }
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: left bottom 10px; } }
.link--quiet { background-size: 0 1px; }
@media (hover: hover) { .link--quiet:hover { background-size: 100% 1px; background-position: right bottom 10px; } }
.arr { display: inline-block; width: 22px; height: 10px; }

/* ---------- chips, tags, flags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-micro); font-weight: 400; line-height: 1.6; padding: 3px 11px; border: 1px solid var(--champagne); color: var(--cocoa); white-space: nowrap; }
.chip--solid { background: var(--blush); border-color: var(--blush); }
.chip--bdx { border-color: var(--bordeaux); color: var(--bordeaux); }
.sec--night .chip, .sec--bordeaux .chip { border-color: rgba(184, 151, 90, .55); color: var(--gold); }
button.chip { min-height: 36px; padding-inline: 16px; font-size: 13px; transition: background .4s, color .4s, border-color .4s; }
button.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }

/* ---------- price numeral: «از ۱٬۲۵۰٬۰۰۰ تومان» ---------- */
.price { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.price__n { font-weight: 200; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; }
.price__w { font-size: var(--t-micro); color: var(--cocoa); font-weight: 400; }
.price--xl .price__n { font-weight: 100; font-size: clamp(54px, 8vw, 112px); color: var(--bordeaux); }
.sec--night .price__w { color: rgba(244, 238, 230, .7); }
.sec--night .price--xl .price__n { color: var(--gold); }

/* ---------- media frames ---------- */
.media { position: relative; overflow: hidden; background: var(--nude); }
.media > img, .media > video, .media > picture, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media--r45 { aspect-ratio: 4 / 5; }
.media--r34 { aspect-ratio: 3 / 4; }
.media--r23 { aspect-ratio: 2 / 3; }
.media--r11 { aspect-ratio: 1; }
.media--r32 { aspect-ratio: 3 / 2; }
.media--r169 { aspect-ratio: 16 / 9; }
.media--fill { position: absolute; inset: 0; }
.arch { border-radius: 9999px 9999px 0 0; }
.bw img { filter: grayscale(1) contrast(1.04); transition: filter 1.2s var(--ease); }
@media (hover: hover) { .bw:hover img { filter: grayscale(.15) contrast(1); } }
/* an empty frame (photo not chosen yet): a tonal mat with the monogram, never a broken image */
.media--empty { display: grid; place-items: center; background: var(--nude); }
.media--empty::after { content: ''; width: 34%; aspect-ratio: 1; background: url(/assets/brand/monogram.svg) center / contain no-repeat; opacity: .32; }
.credit { font-size: var(--t-micro); color: var(--cocoa); line-height: 1.7; margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.credit b { font-weight: 500; color: var(--espresso); }
.sec--night .credit { color: rgba(244, 238, 230, .66); }
.sec--night .credit b { color: var(--paper); }
.sample-flag { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2; font-size: 11px; line-height: 1; padding: 6px 8px; background: rgba(250, 246, 241, .86); color: var(--cocoa); pointer-events: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter);
  color: var(--espresso); transition: background .6s var(--ease), color .6s var(--ease), transform .7s var(--ease), box-shadow .6s;
}
.hdr__start, .hdr__end { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.hdr__end { justify-content: flex-end; }
.hdr__nav { display: none; gap: 30px; font-size: 14px; font-weight: 400; }
.hdr__nav a { padding-block: 10px; }
@media (min-width: 1100px) { .hdr__nav { display: flex; } }
.hdr.is-over { color: var(--ivory); }
.hdr.is-solid { background: rgba(250, 246, 241, .94); color: var(--espresso); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-night.is-solid { background: rgba(43, 10, 15, .94); color: var(--paper); box-shadow: 0 1px 0 var(--line-dark); }
.logo { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); }
.logo svg { height: clamp(34px, 3.6vw, 46px); width: auto; }
.burger { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); min-width: var(--tap); font-size: 14px; font-weight: 500; }
.burger__lines { position: relative; width: 26px; height: 9px; }
.burger__lines::before, .burger__lines::after { content: ''; position: absolute; inset-inline: 0; height: 1px; background: currentColor; transition: transform .6s var(--ease), inset .6s var(--ease); }
.burger__lines::before { top: 0; }
.burger__lines::after { bottom: 0; inset-inline-start: 8px; }
@media (hover: hover) { .burger:hover .burger__lines::after { inset-inline-start: 0; } }
.hdr__book { display: none; }
@media (min-width: 720px) { .hdr__book { display: inline-flex; } }
.hdr__me { font-size: 14px; display: none; min-height: var(--tap); align-items: center; }
@media (min-width: 900px) { .hdr__me { display: inline-flex; } }
.hdr__call { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); }
@media (min-width: 720px) { .hdr__call { display: none; } }

/* ---------- full-screen numbered menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--oxblood); color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease), visibility 0s 1s;
}
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path 1s var(--ease), visibility 0s; }
.menu__top { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter); }
.menu__close { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); font-size: 14px; font-weight: 500; }
.menu__close i { position: relative; width: 22px; height: 22px; }
.menu__close i::before, .menu__close i::after { content: ''; position: absolute; top: 50%; inset-inline: 0; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu__close i::after { transform: rotate(-45deg); }
.menu__body { display: grid; grid-template-columns: 1fr; align-items: center; padding-inline: var(--gutter); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1000px) { .menu__body { grid-template-columns: 1.1fr .9fr; gap: 6vw; } }
.menu__list { counter-reset: m; padding-block: 3vh; }
.menu__list li { overflow: hidden; }
.menu__item { display: flex; align-items: baseline; gap: 18px; padding-block: clamp(2px, .6vh, 8px); font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 5vh, 60px); line-height: 1.4; color: var(--paper); transform: translateY(105%); transition: transform 1s var(--ease), color .5s; }
.menu.is-open .menu__item { transform: none; }
.menu__item small { font-family: var(--f-body); font-size: 12px; font-weight: 300; color: var(--gold); min-width: 2.4em; }
.menu__item[aria-current="page"], .menu__item:hover { color: var(--gold); }
.menu__preview { display: none; position: relative; height: 66vh; }
@media (min-width: 1000px) { .menu__preview { display: block; } }
.menu__preview .media { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.menu__preview .media.is-on { opacity: 1; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(244, 238, 230, .74); }
.menu__foot a { min-height: var(--tap); display: inline-flex; align-items: center; }

/* ---------- mobile booking dock ---------- */
.dock {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 55; display: grid; grid-template-columns: auto auto 1fr; gap: 1px;
  background: var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%); transition: transform .8s var(--ease);
}
.dock.is-on { transform: none; }
.dock > a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding-inline: 18px; background: var(--ivory); font-size: 14px; font-weight: 500; }
.dock > a.dock__book { background: var(--bordeaux); color: var(--ivory); }
.dock svg { width: 18px; height: 18px; }
@media (min-width: 720px) { .dock { display: none; } }
body.has-dock { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { body.has-dock { padding-bottom: 0; } }

/* ---------- numbered index rows (lines, menus) ---------- */
.idx { border-top: 1px solid var(--line); }
.idx__row { position: relative; display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 4px 16px; padding-block: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--line); min-height: 88px; }
.idx__num { font-size: 13px; font-weight: 300; color: var(--rosegold); align-self: start; padding-top: .9em; }
.idx__name { font-family: var(--f-display); font-weight: 200; font-size: var(--t-l); line-height: 1.3; transition: transform .9s var(--ease), color .6s; }
.idx__tag { grid-column: 2; font-size: var(--t-small); color: var(--cocoa); line-height: 1.7; }
.idx__thumb { grid-row: 1 / span 2; grid-column: 3; width: 64px; }
.idx__arr { display: none; }
@media (min-width: 900px) {
  .idx__row { grid-template-columns: 4em 1fr 22em 60px; }
  .idx__tag { grid-column: 3; grid-row: 1; }
  .idx__thumb { display: none; }
  .idx__arr { display: block; grid-column: 4; justify-self: end; transition: transform .9s var(--ease); }
  .idx__row:hover .idx__name { transform: translateX(-18px); color: var(--bordeaux); }
  .idx__row:hover .idx__arr { transform: translateX(-10px); }
}
/* the image that follows the cursor over the index (desktop) */
.cursor-img { position: fixed; z-index: 40; top: 0; left: 0; width: 22vw; max-width: 340px; aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.cursor-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-img .media { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.cursor-img .media.is-on { opacity: 1; }

/* ---------- reel (horizontal snap, 15% peek) ---------- */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel > * { scroll-snap-align: start; }
@media (min-width: 720px) { .reel { grid-auto-columns: 42%; gap: 20px; } }
@media (min-width: 1100px) { .reel { grid-auto-columns: 27%; gap: 28px; } }
.reel-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .reel-nav { display: flex; } }
.reel-nav button { width: 52px; height: 52px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .5s, background .5s, color .5s; }
.reel-nav button:hover { background: var(--espresso); color: var(--ivory); box-shadow: none; }
.reel-nav button:disabled { opacity: .3; pointer-events: none; }
.reel-nav .arr { width: 20px; }
.reel-nav button:first-child .arr { transform: scaleX(-1); }

/* a lookbook card */
.look { display: block; }
.look__cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin-top: 14px; align-items: baseline; }
.look__code { font-size: 12px; color: var(--rosegold); font-weight: 400; }
.look__title { font-family: var(--f-display); font-weight: 300; font-size: var(--t-s); line-height: 1.5; }
.look__by { grid-column: 2; font-size: var(--t-micro); color: var(--cocoa); }
.look .media img { transition: transform 1.6s var(--ease); }
@media (hover: hover) { .look:hover .media img { transform: scale(1.04); } }

/* ---------- marquee of service names ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 24px); white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(26px, 3vw, 48px); padding-inline-end: clamp(26px, 3vw, 48px); animation: marquee 70s linear infinite; font-family: var(--f-display); font-weight: 200; font-size: var(--t-m); line-height: 1.4; }
.marquee__track i { width: 7px; height: 7px; background: var(--rosegold); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- quotes / reviews ---------- */
.quote { font-family: var(--f-display); font-weight: 200; font-size: var(--t-m); line-height: 1.7; }
.quote::before { content: '«'; color: var(--rosegold); }
.quote::after { content: '»'; color: var(--rosegold); }
.quote-by { margin-top: 18px; font-size: var(--t-small); color: var(--cocoa); }
.stars { display: inline-flex; gap: 3px; color: var(--rosegold); }
.stars svg { width: 12px; height: 12px; }

/* ---------- member card ---------- */
.mcard {
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 460px; padding: clamp(20px, 3vw, 30px); overflow: hidden;
  background: var(--bordeaux); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 30px 60px -30px rgba(43, 10, 15, .55);
  transform-style: preserve-3d; transition: transform .9s var(--ease);
}
.mcard::before { content: ''; position: absolute; inset: 0; background: url(/assets/brand/pattern.svg) 0 0 / 120px auto; opacity: .07; pointer-events: none; }
.mcard__top { display: flex; justify-content: space-between; align-items: start; position: relative; }
.mcard__top svg { height: 30px; width: auto; color: var(--gold); }
.mcard__tier { font-family: var(--f-display); font-weight: 200; font-size: clamp(24px, 2.6vw, 30px); color: var(--gold); align-self: end; position: relative; }
.mcard__foot { display: flex; justify-content: space-between; font-size: 12px; color: rgba(244, 238, 230, .78); position: relative; }

/* ---------- forms (shared with booking / club) ---------- */
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--cocoa); }
.input { width: 100%; min-height: 54px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--espresso); background: transparent; border: 0; box-shadow: inset 0 -1px 0 var(--espresso); border-radius: 0; transition: box-shadow .4s; }
.input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--bordeaux); }
.input::placeholder { color: rgba(122, 78, 69, .6); }
textarea.input { min-height: 110px; padding-block: 14px; resize: vertical; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 120; inset-inline: 0; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
@media (min-width: 720px) { .toasts { bottom: 32px; } }
.toast { pointer-events: auto; max-width: 520px; background: var(--espresso); color: var(--ivory); padding: 14px 22px; font-size: 14px; line-height: 1.8; animation: toast-in .7s var(--ease) both; }
.toast.is-out { animation: toast-out .5s var(--ease-in) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- bottom sheet (mobile) / dialog (desktop) ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(43, 10, 15, .5); opacity: 0; transition: opacity .6s var(--ease); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel { position: relative; background: var(--ivory); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .8s var(--ease); }
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 900px) {
  .sheet { align-items: center; justify-items: center; }
  .sheet__panel { width: min(640px, 92vw); max-height: 84vh; padding: 44px; transform: translateY(24px); opacity: 0; transition: transform .8s var(--ease), opacity .6s var(--ease); }
  .sheet.is-open .sheet__panel { opacity: 1; }
}

/* ---------- before / after ---------- */
.ba { position: relative; overflow: hidden; background: var(--nude); --pos: 50%; touch-action: pan-y; user-select: none; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--ivory); }
.ba__handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border: 1px solid var(--ivory); border-radius: 50%; background: rgba(46, 34, 32, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' fill='none' stroke='%23FAF6F1' stroke-width='1'%3E%3Cpath d='M6 1 1 6l5 5M34 1l5 5-5 5M1 6h38'/%3E%3C/svg%3E") center / 26px no-repeat; backdrop-filter: blur(4px); }
.ba__lab { position: absolute; top: 14px; font-size: 12px; color: var(--ivory); padding: 4px 10px; background: rgba(46, 34, 32, .4); }
.ba__lab--b { left: 14px; }
.ba__lab--a { right: 14px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- footer ---------- */
.ftr { background: var(--oxblood); color: var(--paper); padding-top: clamp(80px, 11vw, 160px); overflow: hidden; }
.ftr__grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.ftr h3 { font-size: 12px; font-weight: 500; color: var(--gold); margin-bottom: 16px; }
.ftr li a { display: inline-flex; min-height: 40px; align-items: center; font-size: 15px; color: rgba(244, 238, 230, .86); transition: color .4s; }
.ftr li a:hover { color: var(--gold); }
.ftr__mark { margin-top: clamp(60px, 9vw, 140px); color: var(--gold); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.ftr__mark svg { width: min(58vw, 560px); height: auto; }
.ftr__mark .latin { font-size: clamp(18px, 2.2vw, 30px); color: rgba(184, 151, 90, .8); padding-bottom: 2vw; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; padding-block: 26px; margin-top: 40px; border-top: 1px solid var(--line-dark); font-size: 12px; color: rgba(244, 238, 230, .62); }
.ftr__legal a { min-height: 36px; display: inline-flex; align-items: center; }

/* ---------- route transitions ---------- */
#app { min-height: 100svh; }
::view-transition-old(root) { animation: vt-out .45s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .9s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* motion: elements start hidden only when JS motion is active (html.motion) */
html.motion [data-reveal] { opacity: 0; }
html.motion [data-reveal="img"] { opacity: 1; clip-path: inset(100% 0 0 0); }
html.motion [data-reveal="img"] img { transform: scale(1.14); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
}
