/* ==========================================================================
   THE DRUNK TANK · Black-Tie Mobile Bar
   Design language: "black tie". Polished silver on deep black, Didone display
   type, hairline rules, spotlight glows (from the tie emblem), film grain.
   ========================================================================== */

:root {
  --bg: #050506;
  --bg-2: #09090b;
  --bg-3: #0f0f12;
  --bg-4: #16161a;
  --line: rgba(236, 236, 240, 0.08);
  --line-2: rgba(236, 236, 240, 0.16);
  --line-3: rgba(236, 236, 240, 0.32);
  --text: #eceae6;
  --muted: #a3a3aa;
  --dim: #6f6f77;
  --silver: #d5d7dc;
  --metal: linear-gradient(100deg, #7d8088 0%, #e8e9ed 20%, #a4a7af 38%, #fbfbfc 52%, #9b9ea6 68%, #e2e3e7 84%, #858890 100%);
  --metal-soft: linear-gradient(180deg, #f4f4f6 0%, #c9cbd1 55%, #9fa2aa 100%);
  --glow: radial-gradient(60% 55% at 50% 0%, rgba(226, 228, 233, 0.14), transparent 70%);
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.75, 0.12, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 84px;
  --radius: 2px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after { /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: #d9dbe0; color: #050506; }
:focus-visible { outline: 1px solid var(--silver); outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; font-size: .85rem; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 13vw, 168px); }
.section--tight { padding-block: clamp(64px, 9vw, 112px); }
.section--glow::before { content: ''; position: absolute; inset: 0 0 auto; height: 520px; background: var(--glow); pointer-events: none; }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .72rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--metal); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 34px; height: 1px; background: var(--metal); }
.display {
  font: 400 clamp(2.3rem, 5.2vw, 4.6rem)/1.04 var(--serif);
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
}
.display em, .hero__title em, .page-hero__title em, .footer-cta__title em { font-style: italic; font-weight: 400; }
.metal, .display em, .hero__title em, .page-hero__title em, .footer-cta__title em {
  background: var(--metal);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.75; color: var(--muted); font-weight: 300; max-width: 60ch; text-wrap: pretty; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.section-head--center { text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px;
  font: 500 .76rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  border-radius: var(--radius); white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .3s, border-color .3s, background-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--metal { color: #0a0a0c; background: var(--metal-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.25), 0 10px 30px -12px rgba(220,222,228,.35); }
.btn--metal::after { /* moving sheen */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.85) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--metal:hover::after { transform: translateX(120%); }
.btn--metal:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 18px 40px -14px rgba(220,222,228,.45); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-3); background: rgba(10,10,12,.35); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--silver); background: rgba(236,236,240,.06); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: .68rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::before { content: ''; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  font: 500 .74rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-3); transition: border-color .3s, gap .4s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: var(--silver); gap: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background-color .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(5, 5, 6, .78);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
body.drawer-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .5s var(--ease); }
.site-header.is-scrolled .nav { height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__mark { width: 17px; height: 48px; filter: drop-shadow(0 4px 14px rgba(230,232,236,.18)); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-4deg); }
.brand__text { display: grid; gap: 5px; }
.brand__name { font: 500 1.06rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; font-variation-settings: 'opsz' 24; }
.brand__sub { font: 500 .56rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: none; gap: clamp(22px, 2.6vw, 40px); }
.nav__links a {
  position: relative; padding: 10px 0;
  font: 500 .7rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--metal);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone { display: none; align-items: center; gap: 10px; font: 400 .86rem/1 var(--sans); letter-spacing: .08em; color: var(--muted); transition: color .3s; }
.nav__phone svg { width: 17px; height: 17px; }
.nav__phone:hover { color: var(--text); }
.nav__book { display: none; }
.burger { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .3s, background-color .3s; }
.burger:hover { border-color: var(--line-3); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--text); transition: transform .6s var(--ease), width .6s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); right: 18px; }
.burger[aria-expanded="true"] { border-color: var(--line-3); background: rgba(236,236,240,.04); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); right: 13px; }
@media (min-width: 640px) { .nav__book { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1320px) { .nav__phone { display: inline-flex; } }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; display: block; visibility: hidden; pointer-events: none; }
.drawer[hidden] { display: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(226,228,233,.16), transparent 62%),
    radial-gradient(60% 40% at 100% 100%, rgba(226,228,233,.05), transparent 70%),
    #050506;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
}
.drawer.is-open .drawer__bg { clip-path: inset(0 0 0 0); }
.drawer__tie {
  position: absolute; right: -6%; top: 12%; height: 78%; width: auto; aspect-ratio: 355 / 1000;
  opacity: 0; transform: translateY(40px) rotate(8deg); filter: blur(1px);
  transition: opacity 1.2s var(--ease) .25s, transform 1.4s var(--ease) .25s;
}
.drawer.is-open .drawer__tie { opacity: .07; transform: none; }
.drawer__panel {
  position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 18px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.drawer__eyebrow {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
  font: 500 .62rem/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity .6s var(--ease) .3s;
}
.drawer.is-open .drawer__eyebrow { opacity: 1; }
.drawer__nav { display: grid; margin-bottom: 28px; }
.drawer__link {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center;
  padding: clamp(12px, 2.2vh, 18px) 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), color .3s;
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; transition-delay: calc(.28s + var(--i) * .06s); }
.drawer__num { font: 500 .66rem/1 var(--sans); letter-spacing: .2em; color: var(--dim); }
.drawer__label {
  font: 400 clamp(2rem, 9.5vw, 3rem)/1.05 var(--serif); letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96; transition: transform .6s var(--ease), letter-spacing .6s var(--ease);
}
.drawer__arrow { width: 22px; height: 22px; color: var(--muted); opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .6s var(--ease); }
.drawer__link:hover .drawer__label, .drawer__link:focus-visible .drawer__label { transform: translateX(8px); font-style: italic; }
.drawer__link:hover .drawer__arrow, .drawer__link:focus-visible .drawer__arrow, .drawer__link[aria-current] .drawer__arrow { opacity: 1; transform: none; }
.drawer__link[aria-current] .drawer__label { font-style: italic; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.drawer__link[aria-current] .drawer__num { color: var(--silver); }
.drawer__foot {
  margin-top: auto; display: grid; gap: 14px;
  opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.drawer.is-open .drawer__foot { opacity: 1; transform: none; transition-delay: .7s; }
.drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-2);
  background: rgba(236,236,240,.025); font-size: .92rem; transition: border-color .3s, background-color .3s;
}
.quick:hover { border-color: var(--line-3); background: rgba(236,236,240,.05); }
.quick svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--silver); }
.quick small { display: block; font: 500 .58rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.drawer__hours { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: .78rem; color: var(--dim); letter-spacing: .04em; }
.drawer__hours svg { width: 15px; height: 15px; }
.drawer__socials { display: flex; justify-content: center; gap: 22px; }
.drawer__social { display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding: 6px 0; transition: color .3s; }
.drawer__social svg { width: 16px; height: 16px; }
.drawer__social:hover { color: var(--text); }
.footer-social { color: var(--muted); border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.footer-social:hover { color: var(--text); border-color: var(--silver); }
@media (min-width: 1100px) { .drawer { display: none !important; } }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; background: #050506; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.is-active img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(226,228,233,.18), transparent 65%),
    linear-gradient(180deg, rgba(5,5,6,.78) 0%, rgba(5,5,6,.32) 30%, rgba(5,5,6,.58) 60%, rgba(5,5,6,.96) 92%, #050506 100%),
    linear-gradient(90deg, rgba(5,5,6,.75) 0%, rgba(5,5,6,.15) 55%, rgba(5,5,6,.45) 100%);
}
.hero__inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(56px, 9vh, 104px); display: grid; gap: 40px; }
.hero__eyebrow { opacity: 0; animation: rise 1.2s var(--ease) .2s forwards; }
.hero__title {
  font: 400 clamp(3rem, 8.4vw, 7.6rem)/0.98 var(--serif); letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 96; max-width: 13ch; margin-top: 26px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
.hero__title .line:nth-child(3) > span { animation-delay: .28s; }
@keyframes lineUp { to { transform: none; } }
.hero__copy { display: grid; gap: 34px; max-width: 520px; opacity: 0; animation: rise 1.2s var(--ease) .65s forwards; }
.hero__copy p { color: #d2d2d7; text-shadow: 0 1px 18px rgba(0,0,0,.6); font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 26px; border-top: 1px solid var(--line-2);
  opacity: 0; animation: rise 1.2s var(--ease) .9s forwards;
}
.hero__counter { display: flex; align-items: center; gap: 18px; font: 500 .7rem/1 var(--sans); letter-spacing: .3em; color: var(--muted); }
.hero__bars { display: flex; gap: 6px; }
.hero__bar { width: 46px; height: 2px; background: var(--line-2); overflow: hidden; position: relative; cursor: pointer; }
.hero__bar::after { content: ''; position: absolute; inset: 0; background: var(--silver); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done::after { transform: scaleX(1); }
.hero__bar.is-active::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__scroll { display: none; align-items: center; gap: 14px; font: 500 .66rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--silver), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; width: 1px; height: 14px; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { top: -14px; } to { top: 46px; } }
.hero__tags { display: none; gap: 26px; font: 500 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__tags span { display: inline-flex; align-items: center; gap: 10px; }
.hero__tags svg { width: 8px; height: 8px; color: var(--silver); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.25fr .75fr; align-items: end; column-gap: 64px; }
  .hero__inner > .hero__meta { grid-column: 1 / -1; }
  .hero__copy { padding-bottom: 14px; }
  .hero__scroll, .hero__tags { display: inline-flex; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 46px; padding-right: 46px; }
.marquee__item { font: 400 clamp(1.5rem, 3vw, 2.4rem)/1 var(--serif); font-style: italic; color: #cfd0d5; white-space: nowrap; }
.marquee__item:nth-child(4n+3) { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(236,236,240,.5); }
.marquee svg { width: 12px; height: 12px; color: var(--dim); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intro / manifesto ---------- */
.intro { display: grid; gap: clamp(48px, 7vw, 96px); }
.intro__emblem {
  position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center;
  border: 1px solid var(--line); overflow: hidden;
}
.intro__emblem img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease); }
.intro__emblem:hover img { transform: scale(1.06); }
.intro__emblem::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(236,236,240,.12); pointer-events: none; }
.intro__emblem figcaption { position: absolute; left: 28px; bottom: 26px; font: 500 .62rem/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }
.intro__body { display: grid; gap: 30px; align-content: center; }
.pillars { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-2); }
.pillar { display: grid; grid-template-columns: 54px 1fr; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillar__num { font: 400 1rem/1.4 var(--serif); font-style: italic; color: var(--dim); grid-row: span 2; }
.pillar h3 { font: 500 .78rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: .98rem; font-weight: 300; }
@media (min-width: 960px) { .intro { grid-template-columns: .9fr 1.1fr; align-items: center; } }

/* ---------- occasions (hover list) ---------- */
.occasions { display: grid; gap: 48px; }
.occasion { border-top: 1px solid var(--line-2); }
.occasion:last-child { border-bottom: 1px solid var(--line-2); }
.occasion__head {
  width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: clamp(18px, 2.4vw, 28px) 0; text-align: left;
}
.occasion__num { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; color: var(--dim); transition: color .4s; }
.occasion__name {
  font: 400 clamp(1.9rem, 4.4vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.015em; font-variation-settings: 'opsz' 96;
  color: #8e8f96; transition: color .5s var(--ease), transform .7s var(--ease);
}
.occasion__icon { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease), border-color .4s, background-color .4s; }
.occasion__icon svg { width: 18px; height: 18px; }
.occasion.is-active .occasion__name, .occasion__head:hover .occasion__name { color: var(--text); }
.occasion.is-active .occasion__name { font-style: italic; transform: translateX(10px); }
.occasion.is-active .occasion__num { color: var(--silver); }
.occasion.is-active .occasion__icon { transform: rotate(-45deg); border-color: var(--silver); background: rgba(236,236,240,.06); }
.occasion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.occasion.is-active .occasion__body { grid-template-rows: 1fr; }
.occasion__body > div { overflow: hidden; }
.occasion__content { display: grid; gap: 22px; padding: 0 0 30px 60px; max-width: 640px; }
.occasion__content p { color: var(--muted); font-weight: 300; }
.occasion__img { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); }
.occasion__img img { width: 100%; height: 100%; object-fit: cover; }
.occasions__stage { display: none; }
@media (min-width: 1000px) {
  .occasions { grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
  .occasion__img { display: none; }
  .occasions__stage {
    display: block; position: sticky; top: 110px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line);
    background: var(--bg-3);
  }
  .occasions__stage figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
  .occasions__stage figure.is-active { opacity: 1; }
  .occasions__stage img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease); }
  .occasions__stage figure.is-active img { transform: scale(1); }
  .occasions__stage::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(236,236,240,.16); pointer-events: none; z-index: 2; }
  .occasions__stage figcaption {
    position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 2; display: flex; justify-content: space-between;
    font: 500 .64rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--text);
  }
  .occasions__stage figure::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(5,5,6,.85)); }
}

/* ---------- process ---------- */
.process { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 40px 0 44px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.step__num {
  font: 400 clamp(4.2rem, 8vw, 6.6rem)/0.9 var(--serif); font-style: italic; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(236,236,240,.36); transition: -webkit-text-stroke-color .5s;
}
.step:hover .step__num { -webkit-text-stroke-color: rgba(236,236,240,.8); }
.step h3 { font: 400 1.7rem/1.2 var(--serif); }
.step p { color: var(--muted); font-weight: 300; max-width: 34ch; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .step { padding: 48px 40px 56px; border-bottom: 0; border-left: 1px solid var(--line); }
  .step:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- cocktails ---------- */
.cocktails { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cocktail {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 26px; align-items: start;
  padding: clamp(26px, 3vw, 40px); background: var(--bg-2); overflow: hidden;
  transition: background-color .5s;
}
.cocktail::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(236,236,240,.07), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.cocktail:hover::before { opacity: 1; }
.cocktail__glass {
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--silver); background: radial-gradient(circle at 50% 30%, rgba(236,236,240,.08), transparent 70%);
  transition: border-color .5s, transform .8s var(--ease);
}
.cocktail:hover .cocktail__glass { border-color: var(--line-3); transform: rotate(-6deg); }
.cocktail__glass svg { width: 42px; height: 42px; }
.cocktail__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cocktail__spirit { font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.tag-fav { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line-2); font: 500 .56rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--silver); }
.tag-fav svg { width: 8px; height: 8px; }
.cocktail__name { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--serif); letter-spacing: -0.01em; margin-bottom: 10px; }
.cocktail__desc { font: 400 1.02rem/1.6 var(--serif); font-style: italic; color: #c3c3c9; margin-bottom: 18px; }
.cocktail__ingredients { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .9rem; color: var(--muted); font-weight: 300; }
.cocktail__ingredients li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--dim); }
.cocktail__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); font: 500 .62rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.cocktail__meta b { color: var(--muted); font-weight: 500; }
@media (min-width: 860px) { .cocktails { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .cocktail { grid-template-columns: 1fr; gap: 18px; } }
.cocktails--preview .cocktail__ingredients, .cocktails--preview .cocktail__meta { display: none; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s;
}
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-pressed="true"] { color: #0a0a0c; background: var(--metal-soft); border-color: transparent; }

/* ---------- events teaser (home) ---------- */
.upcoming { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.upcoming__item { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 24px clamp(20px, 3vw, 36px); background: var(--bg-2); transition: background-color .4s; }
.upcoming__item:hover { background: var(--bg-3); }
.datebox { display: grid; justify-items: center; gap: 4px; padding: 12px 0; border: 1px solid var(--line-2); }
.datebox__m { font: 500 .6rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.datebox__d { font: 400 2.2rem/1 var(--serif); }
.upcoming__title { font: 400 1.5rem/1.25 var(--serif); }
.upcoming__info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.upcoming__info span { display: inline-flex; align-items: center; gap: 7px; }
.upcoming__info svg { width: 15px; height: 15px; }
.upcoming__item .occasion__icon { width: 44px; height: 44px; }
.upcoming__private .upcoming__title { color: var(--muted); font-style: italic; }
@media (max-width: 560px) { .upcoming__item { grid-template-columns: 72px 1fr; } .upcoming__item .occasion__icon { display: none; } }

/* ---------- gallery mosaic (home) ---------- */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.mosaic a { position: relative; overflow: hidden; border: 1px solid var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; filter: brightness(.86); }
.mosaic a:hover img { transform: scale(1.06); filter: brightness(1); }
.mosaic a:nth-child(1) { grid-row: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; grid-auto-rows: 210px; }
  .mosaic a:nth-child(1) { grid-row: span 2; }
  .mosaic a:nth-child(4) { grid-row: span 2; }
  .mosaic a:nth-child(5) { grid-column: span 2; }
}

/* ---------- careers band ---------- */
.band { display: grid; gap: 0; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.band__img { position: relative; min-height: 340px; overflow: hidden; }
.band__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease); }
.band:hover .band__img img { transform: scale(1.04); }
.band__body { position: relative; padding: clamp(36px, 6vw, 80px); display: grid; gap: 26px; align-content: center; }
.band__body::before { content: ''; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.band__list { display: grid; gap: 12px; }
.band__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 300; }
.band__list svg { width: 10px; height: 10px; color: var(--silver); flex-shrink: 0; }
@media (min-width: 900px) { .band { grid-template-columns: .95fr 1.05fr; } .band__img { min-height: 620px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(72px, 12vw, 150px)) 0 clamp(64px, 9vw, 110px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% -10%, rgba(226,228,233,.17), transparent 62%); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; transform: scale(1.05); animation: settle 2.4s var(--ease) forwards; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,6,.55), rgba(5,5,6,.6) 50%, #050506); }
@keyframes settle { to { transform: scale(1); } }
.page-hero__inner { display: grid; gap: 26px; }
.page-hero__title { font: 400 clamp(3rem, 8vw, 6.8rem)/0.98 var(--serif); letter-spacing: -0.025em; font-variation-settings: 'opsz' 96; max-width: 14ch; text-wrap: balance; }
.page-hero .lead { color: #bdbdc4; }
.page-hero__tie { position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: -40px; height: 115%; width: auto; aspect-ratio: 355/1000; opacity: .05; z-index: -1; }
.page-hero [data-anim] { opacity: 0; animation: rise 1.2s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms + 100ms); }
.crumbs { display: flex; gap: 10px; font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.crumbs a:hover { color: var(--text); }

/* ---------- events page: calendar ---------- */
.events-layout { display: grid; gap: 40px; }
@media (min-width: 1100px) { .events-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cal { border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); position: relative; }
.cal::before { content: ''; position: absolute; inset: 0 0 auto; height: 260px; background: var(--glow); pointer-events: none; }
.cal__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.cal__title { display: grid; gap: 6px; }
.cal__month { font: 400 clamp(1.8rem, 3.6vw, 2.8rem)/1 var(--serif); letter-spacing: -0.01em; }
.cal__month em { font-style: italic; color: var(--muted); }
.cal__nav { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.icon-btn:hover { border-color: var(--silver); background: rgba(236,236,240,.06); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.cal__today { height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .62rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; }
.cal__today:hover { color: var(--text); border-color: var(--silver); }
.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__weekdays { border-bottom: 1px solid var(--line); }
.cal__weekdays span { padding: 14px 0; text-align: center; font: 500 .6rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.cal__grid { position: relative; }
.cal__day {
  position: relative; min-height: clamp(64px, 10vw, 118px); padding: 10px; text-align: left; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.cal__day:nth-child(7n) { border-right: 0; }
.cal__day::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(236,236,240,.14), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.cal__day:hover, .cal__day:focus-visible { background: #121216; box-shadow: inset 0 0 0 1px rgba(236,236,240,.42); z-index: 2; outline: none; }
.cal__day:hover::before, .cal__day:focus-visible::before { opacity: 1; }
.cal__num { font: 400 1.05rem/1 var(--serif); color: var(--text); width: 30px; height: 30px; display: grid; place-items: center; margin: -4px 0 0 -4px; border-radius: 50%; transition: background-color .3s, color .3s; }
.cal__day:hover .cal__num { background: rgba(236,236,240,.08); }
.cal__day.is-outside .cal__num { color: var(--dim); opacity: .5; }
.cal__day.is-past { opacity: .5; }
.cal__day.is-today .cal__num { background: var(--metal-soft); color: #0a0a0c; font-weight: 600; }
.cal__plus { position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); }
.cal__day:hover .cal__plus { opacity: 1; transform: none; }
.cal__day.has-events .cal__plus, .cal__day.is-past .cal__plus { display: none; }
.cal__chips { display: grid; gap: 4px; min-width: 0; }
.cal__chip { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; font-size: .7rem; line-height: 1.2; background: rgba(236,236,240,.07); border-left: 2px solid var(--silver); }
.cal__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__chip--private { border-left-color: var(--dim); color: var(--muted); background: repeating-linear-gradient(135deg, rgba(236,236,240,.06) 0 4px, transparent 4px 8px); font-style: italic; }
.cal__dots { display: none; gap: 4px; margin-top: auto; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); }
.cal__dots i.is-private { background: transparent; border: 1px solid var(--muted); }
@media (max-width: 720px) {
  .cal__day { min-height: 58px; padding: 8px 6px; align-items: center; }
  .cal__num { margin: 0; font-size: .95rem; }
  .cal__chips, .cal__plus { display: none; }
  .cal__dots { display: flex; }
  .cal__head { flex-wrap: wrap; }
}
.cal__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 18px clamp(20px, 3vw, 32px); font-size: .78rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 9px; }
.cal__legend i { width: 14px; height: 10px; }
.lg-public { background: rgba(236,236,240,.12); border-left: 2px solid var(--silver); }
.lg-private { background: repeating-linear-gradient(135deg, rgba(236,236,240,.18) 0 3px, transparent 3px 6px); border-left: 2px solid var(--dim); }
.lg-open { border: 1px solid var(--line-3); }
.cal.is-loading .cal__grid { opacity: .4; }

.side-panel { border: 1px solid var(--line-2); background: var(--bg-2); }
.side-panel__head { padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.side-panel__head h2 { font: 400 1.6rem/1.2 var(--serif); margin-top: 12px; }
.side-list { display: grid; }
.side-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: background-color .3s; }
.side-item:hover { background: var(--bg-3); }
.side-item .datebox { padding: 9px 0; }
.side-item .datebox__d { font-size: 1.6rem; }
.side-item h3 { font: 400 1.12rem/1.3 var(--serif); }
.side-item p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.side-empty { padding: 28px; color: var(--muted); font-weight: 300; }
.side-panel__foot { padding: 24px 28px 28px; display: grid; gap: 14px; }
.side-panel__foot p { font-size: .9rem; color: var(--muted); font-weight: 300; }

/* ---------- modal (dialog) ---------- */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line-3);
  background: linear-gradient(180deg, #121216, #0b0b0e); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .45s var(--ease), transform .55s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete;
}
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(18px) scale(.97); } }
.modal::backdrop { background: rgba(3,3,4,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .45s, overlay .45s allow-discrete, display .45s allow-discrete; }
.modal[open]::backdrop { opacity: 1; }
@starting-style { .modal[open]::backdrop { opacity: 0; } }
.modal__inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.modal__inner::before { content: ''; position: absolute; inset: 0 0 auto; height: 220px; background: var(--glow); pointer-events: none; }
.modal__close { position: absolute; right: 16px; top: 16px; z-index: 3; background: rgba(5,5,6,.5); backdrop-filter: blur(6px); }
.modal__media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { position: relative; padding: clamp(26px, 4vw, 38px); display: grid; gap: 18px; }
.modal__date { font: 500 .64rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.modal__title { font: 400 clamp(1.9rem, 4vw, 2.5rem)/1.1 var(--serif); letter-spacing: -0.01em; padding-right: 40px; }
.modal__title em { font-style: italic; color: var(--muted); }
.modal__facts { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); }
.modal__facts span { display: flex; align-items: center; gap: 12px; color: #cfcfd5; font-size: .95rem; }
.modal__facts svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.modal__text { color: var(--muted); font-weight: 300; white-space: pre-line; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal__actions .btn { flex: 1 1 auto; }
.modal__list { display: grid; gap: 10px; }
.modal__pick { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line-2); text-align: left; transition: border-color .3s, background-color .3s; }
.modal__pick:hover { border-color: var(--silver); background: rgba(236,236,240,.04); }
.modal__pick strong { display: block; font: 400 1.25rem/1.3 var(--serif); font-weight: 400; }
.modal__pick small { color: var(--muted); font-size: .82rem; }
.modal__pick svg { width: 20px; height: 20px; color: var(--muted); }
.choice-grid { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); transition: border-color .3s, background-color .3s, transform .4s var(--ease); }
.choice:hover { border-color: var(--silver); background: rgba(236,236,240,.04); transform: translateX(4px); }
.choice__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.choice__icon svg { width: 20px; height: 20px; }
.choice strong { display: block; font-weight: 500; font-size: .98rem; }
.choice small { color: var(--muted); font-size: .82rem; }
.choice > svg { width: 18px; height: 18px; color: var(--muted); }
.choice--primary { background: var(--metal-soft); color: #0a0a0c; border-color: transparent; }
.choice--primary small, .choice--primary > svg { color: #3b3c41; }
.choice--primary .choice__icon { border-color: rgba(10,10,12,.25); }
.choice--primary:hover { background: var(--metal-soft); }
@media (max-width: 640px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-inline: 0; border-bottom: 0; transform: translateY(100%); }
  .modal[open] { transform: none; }
  @starting-style { .modal[open] { transform: translateY(100%); } }
  .modal__inner::after { content: ''; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line-3); }
}

/* ---------- gallery page ---------- */
.masonry { columns: 1; column-gap: 14px; }
@media (min-width: 620px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
.g-item { position: relative; display: block; width: 100%; margin-bottom: 14px; break-inside: avoid; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform 1.4s var(--ease), filter .8s; filter: brightness(.9); }
.g-item:hover img { transform: scale(1.05); filter: brightness(1.02); }
.g-item__cap {
  position: absolute; inset: auto 0 0; padding: 40px 20px 18px; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(5,5,6,.9)); text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease);
}
.g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap { opacity: 1; transform: none; }
.g-item__cap span { font: 400 1.05rem/1.3 var(--serif); font-style: italic; }
.g-item__cap small { font: 500 .58rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (hover: none) { .g-item__cap { opacity: 1; transform: none; } }
.empty-state { text-align: center; padding: clamp(64px, 10vw, 120px) 24px; border: 1px dashed var(--line-2); display: grid; gap: 16px; justify-items: center; }
.empty-state svg.tie { width: 28px; height: 80px; opacity: .6; }
.empty-state h3 { font: 400 2rem/1.2 var(--serif); }
.empty-state p { color: var(--muted); max-width: 44ch; font-weight: 300; }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(3,3,4,.96); color: var(--text); opacity: 0; transition: opacity .4s, overlay .4s allow-discrete, display .4s allow-discrete; }
.lightbox[open] { opacity: 1; display: grid; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 72px clamp(16px, 8vw, 120px) 96px; height: 100vh; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 168px); width: auto; height: auto; object-fit: contain; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.8); animation: lbIn .6s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox__caption { font: 400 1.15rem/1.3 var(--serif); font-style: italic; }
.lightbox__count { font: 500 .66rem/1 var(--sans); letter-spacing: .3em; color: var(--muted); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(5,5,6,.6); }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 74px; transform: none; } }

/* ---------- about ---------- */
.story { display: grid; gap: clamp(48px, 7vw, 96px); }
.story__images { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.story__images figure { overflow: hidden; border: 1px solid var(--line); }
.story__images figure:last-child { margin-top: 90px; }
.story__images img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__body { display: grid; gap: 24px; align-content: center; }
.story__body p { color: var(--muted); font-weight: 300; }
.story__body .lead { color: #cfcfd5; }
.dropcap::first-letter { float: left; font: 400 4.6rem/0.8 var(--serif); margin: 8px 14px 0 0; color: var(--silver); }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; align-items: center; } }
.standards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.standard { padding: clamp(28px, 3.4vw, 44px); background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.standard__icon { width: 18px; height: 18px; color: var(--silver); }
.standard h3 { font: 400 1.55rem/1.2 var(--serif); }
.standard p { color: var(--muted); font-weight: 300; font-size: .98rem; }
@media (min-width: 720px) { .standards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .standards { grid-template-columns: repeat(4, 1fr); } }
.quote-block { text-align: center; display: grid; gap: 28px; justify-items: center; }
.quote-block blockquote { margin: 0; font: 400 clamp(1.8rem, 4vw, 3.2rem)/1.2 var(--serif); font-style: italic; max-width: 22ch; text-wrap: balance; }
.quote-block cite { font: 500 .66rem/1 var(--sans); font-style: normal; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }

/* ---------- forms ---------- */
.form-layout { display: grid; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 1.35fr .65fr; align-items: start; } }
.form-card { position: relative; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); padding: clamp(26px, 4.5vw, 56px); }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 240px; background: var(--glow); pointer-events: none; }
.form-card > * { position: relative; }
.form-card__title { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--serif); margin-bottom: 8px; }
.form-card__sub { color: var(--muted); font-weight: 300; margin-bottom: 34px; }
.form-grid { display: grid; gap: 22px 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 10px; }
.field > label:not(.dropzone), .field legend, .field__label { font: 500 .62rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--silver); }
.input, .select, .textarea {
  width: 100%; height: 54px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(5,5,6,.6); color: var(--text); font-size: 1rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.textarea { height: auto; min-height: 140px; padding: 16px 18px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23a3a3aa' stroke-width='1.4' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.select option { background: #111114; }
.input::placeholder, .textarea::placeholder { color: #5b5b62; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--silver); background: rgba(5,5,6,.85); box-shadow: 0 0 0 4px rgba(214,216,221,.08); }
.input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #c98b8b; }
.field__error { font-size: .8rem; color: #e0a5a5; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--muted); transition: all .3s; }
.pill input:checked + span { color: #0a0a0c; background: var(--metal-soft); border-color: transparent; }
.pill input:focus-visible + span { outline: 1px solid var(--silver); outline-offset: 3px; }
.pill:hover span { border-color: var(--line-3); color: var(--text); }
.dropzone { position: relative; display: grid; justify-items: center; gap: 10px; padding: 32px 20px; border: 1px dashed var(--line-3); text-align: center; cursor: pointer; transition: border-color .3s, background-color .3s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--silver); background: rgba(236,236,240,.03); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 26px; height: 26px; color: var(--silver); }
.dropzone strong { font-weight: 500; }
.dropzone small { color: var(--dim); font-size: .8rem; }
.dropzone.has-file { border-style: solid; border-color: var(--silver); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.form-foot p { font-size: .82rem; color: var(--dim); max-width: 40ch; }
.form-alert { display: none; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(201,139,139,.5); background: rgba(201,139,139,.08); color: #ecc4c4; font-size: .92rem; }
.form-alert.is-visible { display: block; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { display: none; text-align: center; padding: clamp(30px, 6vw, 60px) 10px; gap: 18px; justify-items: center; }
.form-card.is-sent .success { display: grid; animation: rise .9s var(--ease); }
.form-card.is-sent form, .form-card.is-sent .form-card__title, .form-card.is-sent .form-card__sub { display: none; }
.success__mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--silver); color: var(--silver); }
.success__mark svg { width: 32px; height: 32px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .9s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font: 400 2.2rem/1.15 var(--serif); }
.success p { color: var(--muted); max-width: 42ch; font-weight: 300; }

.info-card { border: 1px solid var(--line-2); background: var(--bg-2); }
.info-card__block { padding: 26px 28px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.info-card__block:last-child { border-bottom: 0; }
.info-card h3 { font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.info-card a, .info-card p { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 1rem; }
.info-card a:hover { color: #fff; }
.info-card svg { width: 18px; height: 18px; color: var(--silver); flex-shrink: 0; margin-top: 4px; }
.info-card .big { font: 400 1.6rem/1.2 var(--serif); }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .95rem; }
.info-card dt { color: var(--muted); }

/* ---------- careers ---------- */
.perks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.perk { padding: clamp(28px, 3.4vw, 42px); background: var(--bg-2); display: grid; gap: 12px; align-content: start; }
.perk__num { font: 400 1rem/1 var(--serif); font-style: italic; color: var(--dim); }
.perk h3 { font: 400 1.5rem/1.2 var(--serif); }
.perk p { color: var(--muted); font-weight: 300; font-size: .98rem; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.roles { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.role { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.role h3 { font: 400 1.7rem/1.2 var(--serif); }
.role p { color: var(--muted); font-weight: 300; }
@media (min-width: 900px) { .role { grid-template-columns: 300px 1fr; gap: 40px; align-items: baseline; } }

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, #070708 100%); overflow: hidden; }
.footer-cta { position: relative; text-align: center; display: grid; justify-items: center; gap: 24px; padding-block: clamp(96px, 14vw, 170px) clamp(80px, 11vw, 130px); }
.footer-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 20%, rgba(226,228,233,.12), transparent 70%); pointer-events: none; }
.footer-cta__tie { width: 24px; height: 68px; filter: drop-shadow(0 6px 22px rgba(230,232,236,.3)); }
.footer-cta__title { font: 400 clamp(3rem, 8vw, 7rem)/1 var(--serif); letter-spacing: -0.025em; font-variation-settings: 'opsz' 96; }
.footer-cta__text { color: var(--muted); font-weight: 300; max-width: 46ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.footer-grid { display: grid; gap: 44px; padding-block: 64px; border-top: 1px solid var(--line); }
.footer-brand { display: grid; gap: 22px; align-content: start; }
.footer-brand p { color: var(--muted); font-weight: 300; font-size: .95rem; max-width: 38ch; }
.footer-col h3 { font: 500 .62rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #c9c9cf; transition: color .3s; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li > * { display: inline-flex; align-items: flex-start; gap: 12px; color: #c9c9cf; font-size: .96rem; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; color: var(--muted); }
.footer-hours { display: grid; gap: 6px; font-size: .95rem; color: #c9c9cf; }
.footer-hours dt { color: var(--dim); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 8px; }
.footer-hours dt:first-child { margin-top: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1fr 1.2fr .9fr; } .footer-brand { grid-column: auto; } }
.footer-wordmark { padding-inline: var(--gutter); overflow: hidden; user-select: none; }
.footer-wordmark span {
  display: block; text-align: center; white-space: nowrap;
  font: 400 clamp(3rem, 12.4vw, 13rem)/0.82 var(--serif); letter-spacing: -0.03em; font-variation-settings: 'opsz' 96;
  background: linear-gradient(180deg, rgba(236,236,240,.16), rgba(236,236,240,.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(18%);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font: 500 .62rem/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }

/* ---------- SEO headings (keyword eyebrow lives inside the h1) ---------- */
.hero__h1 { margin: 0; font-weight: 400; }
.hero__h1 .hero__eyebrow { display: flex; }
.hero__title { display: block; }
.page-hero__h1 { margin: 0; display: grid; gap: 26px; justify-items: start; font-weight: 400; }
.page-hero__h1 .page-hero__title { display: block; }

/* ---------- service area ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .95rem; color: #d2d2d7;
  background: rgba(236,236,240,.02);
}
.area-list li::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--metal-soft); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } .faq-layout .section-head { position: sticky; top: 110px; } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none;
  font: 400 clamp(1.2rem, 2vw, 1.45rem)/1.3 var(--serif); transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23d5d7dc' stroke-width='1.4' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .5s var(--ease), border-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--silver); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 54px 26px 0; color: var(--muted); font-weight: 300; }
.faq details p a { color: var(--text); border-bottom: 1px solid var(--line-3); }

/* ---------- service pages ---------- */
.svc-intro { display: grid; gap: clamp(40px, 6vw, 88px); }
.svc-intro__img { position: relative; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 5; }
.svc-intro__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-intro__img::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(236,236,240,.14); pointer-events: none; }
.svc-intro__body { display: grid; gap: 22px; align-content: center; }
.svc-intro__body p { color: var(--muted); font-weight: 300; }
.svc-intro__body .lead { color: #cfcfd5; }
@media (min-width: 960px) { .svc-intro { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.perfect-for { display: flex; flex-wrap: wrap; gap: 10px; }
.perfect-for li { padding: 10px 18px; border: 1px solid var(--line-2); font-size: .92rem; color: #d2d2d7; }
.svc-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.svc-link { position: relative; display: grid; gap: 10px; padding: 28px; background: var(--bg-2); transition: background-color .4s; }
.svc-link:hover { background: var(--bg-3); }
.svc-link small { font: 500 .6rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.svc-link strong { font: 400 1.4rem/1.2 var(--serif); font-weight: 400; }
.svc-link svg { width: 18px; height: 18px; color: var(--muted); transition: transform .5s var(--ease); }
.svc-link:hover svg { transform: translateX(6px); color: var(--text); }
.svc-link[aria-current] { background: var(--bg-3); }
.svc-link[aria-current] strong { font-style: italic; }
.svc-link[aria-current] small::after { content: ' · You are here'; }

/* ---------- proposal / invoice document ---------- */
.doc-page { background: radial-gradient(70% 40% at 50% 0%, rgba(226,228,233,.12), transparent 70%), var(--bg); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); max-width: 1000px; margin: 0 auto; }
.doc-top .btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .doc-print span { display: none; } .doc-print { width: 42px; padding: 0; } .doc-top .brand__name { font-size: .92rem; } }
.doc-wrap { max-width: 1000px; margin: 0 auto; padding: 8px var(--gutter) 60px; }
.doc { position: relative; overflow: hidden; display: grid; gap: clamp(26px, 4vw, 40px); padding: clamp(24px, 5vw, 60px); border: 1px solid var(--line-2); background: linear-gradient(180deg, #111114, #0a0a0c); }
.doc::before { content: ''; position: absolute; inset: 0 0 auto; height: 280px; background: var(--glow); pointer-events: none; }
.doc > * { position: relative; }
.doc--loading { gap: 18px; }
.doc__banner { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--line-3); background: rgba(236,236,240,.05); font-size: .92rem; }
.doc__banner svg { width: 10px; height: 10px; color: var(--silver); flex-shrink: 0; }
.doc__stamp { position: absolute; right: clamp(16px, 4vw, 44px); top: clamp(16px, 4vw, 40px); transform: rotate(-12deg); padding: 8px 22px; border: 2px solid rgba(143,214,174,.8); color: #8fd6ae; font: 600 1.2rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; z-index: 2; }
.doc__head { display: grid; gap: 24px; }
@media (min-width: 760px) { .doc__head { grid-template-columns: 1fr auto; align-items: end; } }
.doc__title { font: 400 clamp(2.4rem, 6vw, 4rem)/1.02 var(--serif); letter-spacing: -0.02em; margin: 14px 0 12px; }
.doc__title em { font-style: italic; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc__lede { color: var(--muted); font-weight: 300; max-width: 46ch; }
.doc__meta { display: grid; grid-template-columns: auto auto; gap: 8px 22px; font-size: .9rem; padding: 18px 20px; border: 1px solid var(--line-2); align-self: start; }
.doc__meta dt { font: 500 .58rem/1.9 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.doc__meta dd { text-align: right; }
.doc__label { font: 500 .6rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.doc__parties { display: grid; gap: 22px; padding: 24px 0; border-block: 1px solid var(--line); }
@media (min-width: 640px) { .doc__parties { grid-template-columns: 1fr 1fr; } }
.doc__parties p { line-height: 1.75; color: #cfcfd5; }
.doc__parties strong { font: 400 1.25rem/1.6 var(--serif); font-weight: 400; color: var(--text); }
.doc__event { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.doc__event > div { padding: 18px 20px; background: #0c0c0f; }
.doc__event p:last-child { font: 400 1.1rem/1.35 var(--serif); }
.doc__note p { font: 400 1.15rem/1.6 var(--serif); font-style: italic; color: #d6d6db; white-space: pre-line; padding-left: 20px; border-left: 2px solid var(--silver); }
.doc__items table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc__items th { text-align: left; padding: 0 0 12px; font: 500 .58rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line-2); }
.doc__items td { padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc__items td strong { display: block; font: 400 1.12rem/1.3 var(--serif); font-weight: 400; }
.doc__items td span { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); }
.doc__items .num { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.doc__items em { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  .doc__items thead { display: none; }
  .doc__items tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .doc__items td { padding: 0; border: 0; }
  .doc__items td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .doc__items .num { text-align: left; padding: 0; font-size: .9rem; }
  .doc__items .num::before { content: attr(data-label); display: block; font: 500 .54rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
}
.doc__totals { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; max-width: 360px; margin: 22px 0 0 auto; font-size: .98rem; }
.doc__totals dt { color: var(--muted); }
.doc__totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.doc__totals .grand { padding-top: 14px; border-top: 1px solid var(--line-2); font: 400 1.9rem/1 var(--serif); color: var(--text); }
.doc__small { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.doc__terms p:last-child { color: #c9c9cf; font-size: .92rem; white-space: pre-line; line-height: 1.7; }
.doc__accept { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line-3); background: rgba(236,236,240,.03); }
.doc__accept h2 { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--serif); }
.doc__accept h2 em { font-style: italic; color: var(--muted); }
.doc__accept > p { color: var(--muted); font-weight: 300; }
.doc__accept form { display: grid; gap: 14px; }
.doc__accept .input, .doc__accept .textarea { font-size: 16px; }
.doc__agree { display: flex; align-items: center; gap: 12px; font-size: .95rem; cursor: pointer; }
.doc__agree input { width: 22px; height: 22px; accent-color: #d5d7dc; flex-shrink: 0; }
.doc__accept .btn--metal { --h: 58px; }
.doc__changes summary { cursor: pointer; color: var(--muted); font-size: .92rem; padding: 6px 0; }
.doc__changes summary:hover { color: var(--text); }
.doc__changes form { margin-top: 12px; }
.doc__sent, .doc__accepted p:first-child { display: flex; align-items: center; gap: 10px; }
.doc__sent svg, .doc__accepted svg { width: 20px; height: 20px; color: #8fd6ae; }
.doc__accepted { padding: 20px 22px; border: 1px solid rgba(143,214,174,.35); background: rgba(143,214,174,.04); display: grid; gap: 8px; }
.doc-foot { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--dim); }
.doc-foot a:hover { color: var(--text); }

@media print {
  @page { margin: 14mm; }
  body, .doc-page { background: #fff !important; color: #111 !important; }
  body::after, .doc::before, .doc-print, .doc__accept, .doc__banner, .skip-link { display: none !important; }
  .doc-top, .doc-wrap, .doc-foot { max-width: none; padding-inline: 0; }
  .doc { border: 0; background: #fff; padding: 0; color: #111; }
  .doc *, .brand__name, .brand__sub { color: #111 !important; -webkit-text-fill-color: #111; }
  .doc__title em { background: none; }
  .doc__event { background: #ddd; border-color: #ddd; }
  .doc__event > div { background: #fff; }
  .doc__meta, .doc__parties, .doc__items th, .doc__items td, .doc__totals .grand, .doc__accepted { border-color: #ccc !important; }
  .doc__stamp { color: #1d7a46 !important; -webkit-text-fill-color: #1d7a46; border-color: #1d7a46; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); background: radial-gradient(60% 50% at 50% 0%, rgba(226,228,233,.15), transparent 70%); }
.notfound .tie { width: 34px; height: 96px; margin: 0 auto 36px; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
/* clip the child, not the observed element: a fully clipped target never reports as intersecting */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; padding: 14px 20px; background: #16161a; border: 1px solid var(--line-3); font-size: .9rem; transition: all .5s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .hero__eyebrow, .hero__copy, .hero__meta, .page-hero [data-anim] { opacity: 1; }
  .js [data-reveal], .js [data-reveal="clip"] > * { opacity: 1; transform: none; clip-path: none; }
  .marquee__track { animation: none; }
}
