/* ============================================================================
   SHEFALI — STYLES
   Warm gallery-at-night. Fraunces (display) + Archivo (UI). Gold on charcoal.
   ============================================================================ */

:root {
  --bg:        #0c0d09;   /* dark green-brown black */
  --bg-2:      #11130d;
  --bg-3:      #181b12;   /* dark olive-brown for panels/cards */
  --ink:       #f1ecdd;
  --ink-soft:  #c8bfa6;
  --muted:     #8c8870;
  --line:      rgba(241, 236, 221, 0.15);
  --line-2:    rgba(241, 236, 221, 0.28);
  --accent:    #ff5a2c;   /* vermilion — reserved for the single primary action per view */
  --accent-2:  #ff7a52;
  --brass:      #c2a266;  /* warm metal — separators, numerals, labels (echoes the 3D frames) */
  --brass-soft: #d8bd8a;
  --green:     #74854f;   /* moss / olive */
  --green-deep:#22301f;   /* forest (panels, room) */
  --sage:      #9aa775;
  --brown:     #6e4f37;   /* walnut */
  --brown-deep:#2a2014;   /* cocoa (panels) */
  --terra:     #a4633c;

  --maxw: 1180px;
  --pad: clamp(20px, 4.5vw, 64px);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Albert Sans", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", "Consolas", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(14.5px, 1vw, 16px);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.018em; font-optical-sizing: auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
em, i { font-style: normal; } /* no italics anywhere */
::selection { background: var(--accent); color: #1a1408; }

/* shared kicker / section heads -------------------------------------------- */
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin: 0.3em 0 0.26em; }
.section-head p { color: var(--ink-soft); max-width: 52ch; }

/* ============================================================================
   GRAIN + VIGNETTE + CURSOR
   ============================================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-2%,2%); }
  80% { transform: translate(4%,1%); }
}
.vignette {
  position: fixed; inset: 0; z-index: 55; pointer-events: none;
  background: radial-gradient(130% 120% at 50% 38%, transparent 52%, rgba(8,6,4,0.55) 100%);
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  transform: translate3d(-100px, -100px, 0);
  display: none;
}
.cursor span {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid rgba(232, 205, 140, 0.85);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
html.has-pointer .cursor { display: block; }
html.cursor-ready.has-pointer,
html.cursor-ready.has-pointer * { cursor: none !important; }
.cursor.is-hover span { transform: scale(1.5); background: rgba(232, 205, 140, 0.16); }
.cursor.is-down span { transform: scale(0.8); }

/* ============================================================================
   PRELOADER
   ============================================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 100% at 50% 30%, #1d2618 0%, #0b0c08 72%);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__mark {
  font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink);
}
.preloader__sub {
  font-size: 0.7rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--muted);
}
.preloader__bar { width: 180px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0%; background: var(--brass); transition: width 0.3s linear; }
html:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(12px, 1.8vw, 20px) var(--pad);
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.hidden { transform: translateY(-115%); }
.nav.scrolled {
  background: rgba(18, 15, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-color: var(--line-2);
  padding-top: clamp(12px, 1.6vw, 16px); padding-bottom: clamp(12px, 1.6vw, 16px);
}
.nav__brand { font-family: var(--display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.nav__brand i { color: var(--accent); font-style: normal; }

/* the centre links live inside a single pill */
.nav__links {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(242, 236, 223, 0.03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__links a {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 8px 15px; border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: rgba(242, 236, 223, 0.09); }

.nav__cta {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--accent); border-radius: 999px; padding: 11px 20px;
  color: var(--accent); transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--accent); color: #190d07; }
.nav__burger { display: none; width: 40px; height: 40px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.3s; }

/* right-side controls: theme toggle + CTA + burger */
.nav__right { display: inline-flex; align-items: center; gap: clamp(8px, 1.1vw, 14px); }

/* sun / moon theme toggle */
.nav__theme {
  position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--brass);
  background: rgba(242, 236, 223, 0.03);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav__theme:hover { color: var(--ink); border-color: var(--brass); }
.nav__theme-ic { grid-area: 1 / 1; transition: opacity 0.4s var(--ease), transform 0.55s var(--ease); }
.nav__theme-sun  { opacity: 1; transform: rotate(0) scale(1); }
.nav__theme-moon { opacity: 0; transform: rotate(-80deg) scale(0.5); }
[data-theme="light"] .nav__theme-sun  { opacity: 0; transform: rotate(80deg) scale(0.5); }
[data-theme="light"] .nav__theme-moon { opacity: 1; transform: rotate(0) scale(1); }
@media (prefers-reduced-motion: reduce) { .nav__theme-ic { transition: opacity 0.2s linear; transform: none !important; } }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 0; border: 0; border-radius: 0; background: rgba(14, 11, 8, 0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links a { font-size: 0.95rem; padding: 12px 20px; }
  html.menu-open .nav__links { display: flex; opacity: 1; visibility: visible; }
  html.menu-open .nav__burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  html.menu-open .nav__burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ============================================================================
   EXPERIENCE (hero + 3D gallery, pinned)
   ============================================================================ */
.experience { position: relative; z-index: 1; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 30%, #1a2316 0%, #0b0c08 72%);
}
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* hero */
.hero {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--pad); transition: opacity 0.6s var(--ease);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 48% at 50% 46%, rgba(8, 6, 4, 0.6), transparent 72%);
}
.hero__eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--brass); margin-bottom: clamp(14px, 2vw, 26px);
}
.hero__name {
  font-size: clamp(2.7rem, 9.5vw, 7rem); font-weight: 300; line-height: 0.98;
  letter-spacing: -0.03em; font-variation-settings: "opsz" 84; text-shadow: 0 8px 60px rgba(0,0,0,0.55);
}
.hero__tagline {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: var(--ink-soft); margin-top: clamp(16px, 2vw, 26px);
  max-width: 30ch; letter-spacing: 0;
}
.hero__intro { color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.04em; margin-top: 12px; }
.hero__cue { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(32px, 6vh, 64px); }
.hero__cue span { font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero__cue-line { width: 1px; height: 46px; background: linear-gradient(var(--brass), transparent); position: relative; overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--brass-soft); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(300%); } }

/* live caption */
.caption {
  position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 56px);
  display: flex; align-items: flex-end; gap: 20px; opacity: 0;
  transition: opacity 0.5s var(--ease); max-width: min(80vw, 560px);
}
.caption__index { font-family: var(--display); display: flex; align-items: baseline; gap: 4px; color: var(--brass); }
.caption__index b { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; line-height: 0.8; }
.caption__index i { font-style: normal; opacity: 0.5; font-size: 1.4rem; }
.caption__index em { font-style: normal; font-size: 1.2rem; color: var(--muted); align-self: flex-end; }
.caption__title { font-size: clamp(1.35rem, 3.2vw, 2.1rem); }
.caption__meta { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.caption__meta i { color: var(--brass); margin: 0 8px; font-style: normal; }

.stage__hint {
  position: absolute; left: 50%; bottom: clamp(24px, 5vh, 40px); transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 0.6s var(--ease); white-space: nowrap;
}

/* closing card — fades in over the lit end wall at the end of the walk */
.endcard {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; text-align: center;
  padding: 0 var(--pad); opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.endcard__inner { position: relative; max-width: 540px; display: flex; flex-direction: column; align-items: center; }
/* soft scrim so the card text stays legible over the blurred piece behind it */
.endcard__inner::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150%; height: 160%; z-index: -1; pointer-events: none; background: radial-gradient(58% 58% at 50% 50%, rgba(12, 13, 9, 0.58), transparent 76%); }
[data-theme="light"] .endcard__inner::before { background: radial-gradient(58% 58% at 50% 50%, rgba(236, 229, 213, 0.62), transparent 76%); }
.endcard__eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--brass); margin-bottom: clamp(14px, 2vw, 22px);
}
.endcard__title {
  font-size: clamp(2rem, 5.4vw, 3.5rem); font-weight: 300; line-height: 1.04;
  letter-spacing: -0.02em; text-shadow: 0 8px 50px rgba(0, 0, 0, 0.5);
}
.endcard__sub {
  color: var(--ink-soft); font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  max-width: 42ch; margin: clamp(14px, 2vw, 20px) auto clamp(26px, 3.4vw, 38px);
}
.endcard__btn {
  pointer-events: none;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); padding: 16px 30px; border-radius: 999px;
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.endcard__btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.endcard.is-active .endcard__btn { pointer-events: auto; }
.endcard__btn:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.7); }
.endcard__btn:hover i { transform: translateX(6px); }
html.no-3d .endcard { display: none; }
@media (prefers-reduced-motion: reduce) { .endcard__btn { transition: background-color 0.2s linear; } }
[data-theme="light"] .endcard__title { text-shadow: 0 8px 40px rgba(120, 96, 54, 0.2); }
[data-theme="light"] .endcard__btn { box-shadow: 0 22px 50px -24px rgba(120, 96, 54, 0.45); }

/* ============================================================================
   FALLBACK GALLERY (only when .no-3d)
   ============================================================================ */
.fallback { display: none; }
html.no-3d .experience { height: auto !important; }
html.no-3d .stage { position: relative; height: 100svh; }
html.no-3d .stage__gl,
html.no-3d .caption,
html.no-3d .stage__hint { display: none; }
html.no-3d .hero__cue { display: none; }

html.no-3d .fallback {
  display: block; padding: clamp(80px, 12vh, 140px) var(--pad);
  max-width: var(--maxw); margin: 0 auto;
}
.fallback .section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.fallback__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.fallback__card { cursor: pointer; }
.fallback__frame {
  background: #0d0a07; padding: clamp(10px, 1.4vw, 18px); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.fallback__card:hover .fallback__frame { transform: translateY(-8px); box-shadow: 0 50px 80px -40px rgba(0,0,0,0.9); }
.fallback__frame img { width: 100%; height: auto; }
.fallback__cap { margin-top: 16px; }
.fallback__cap h3 { font-size: 1.4rem; }
.fallback__cap p { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.fallback__cap p i { color: var(--brass); font-style: normal; margin: 0 6px; }

/* ============================================================================
   ABOUT
   ============================================================================ */
.about {
  position: relative; z-index: 3; background: var(--bg);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 3.5vw, 56px);
  align-items: stretch; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--pad);
  scroll-margin-top: 70px;
}
.about__media { position: relative; }
.about__portrait {
  position: relative; overflow: hidden; height: 100%; width: auto; aspect-ratio: 900 / 1353;
  border-radius: 2px; border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(111,128,80,0.22), transparent 60%),
    linear-gradient(160deg, #2a2c1d, #14140d);
  box-shadow: 0 50px 90px -50px rgba(0,0,0,0.9);
}
.about__portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: brightness(0.93); }
.about__portrait-note { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: center; line-height: 1.8; }
.about__tag {
  position: absolute; bottom: -16px; right: -10px; background: var(--brass); color: #1a1408;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 9px 18px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}
.about__body h2 { font-size: clamp(1.4rem, 2.5vw, 2.05rem); margin: 0.42em 0; }
.about__body p { color: var(--ink-soft); margin-bottom: 1em; max-width: 50ch; }
.about__note { font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--brass); padding-left: 16px; }
.about__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.about__stats b { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; display: block; }
.about__stats b i { color: var(--brass); font-style: normal; font-size: 0.6em; }
.about__stats span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; align-items: center; }
  .about__media { justify-self: stretch; }
  .about__portrait { height: auto; width: 100%; aspect-ratio: 900 / 1353; }
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}

/* ============================================================================
   COMMISSIONS
   ============================================================================ */
.commissions {
  position: relative; z-index: 3; background: linear-gradient(var(--bg), var(--bg-2));
  border-top: 1px solid var(--line-2);
  padding: clamp(56px, 9vh, 110px) var(--pad); scroll-margin-top: 70px;
}
.commissions .section-head { max-width: var(--maxw); margin: 0 auto clamp(34px, 5vw, 58px); }
.commissions__grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: stretch;
}
.offer {
  position: relative; border: 1px solid var(--line); padding: clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; min-height: 256px; overflow: hidden;
  background: rgba(255,255,255,0.012); transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.offer::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease);
  background: radial-gradient(120% 100% at 50% 0%, rgba(111,128,80,0.16), transparent 60%);
}
.offer:hover { transform: translateY(-8px); border-color: rgba(116,133,79,0.5); }
.offer:hover::before { opacity: 1; }
.offer--feature { background: rgba(116,133,79,0.09); border-color: rgba(116,133,79,0.42); }
.offer__no { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; color: var(--brass); letter-spacing: 0.18em; }
.offer h3 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin: 12px 0 10px; }
.offer p { color: var(--ink-soft); flex: 1; }
.offer__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--brass); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.offer__link i { font-style: normal; transition: transform 0.35s var(--ease); }
.offer__link:hover i { transform: translateX(6px); }

@media (max-width: 860px) { .commissions__grid { grid-template-columns: 1fr; } .offer { min-height: 0; } }

/* ============================================================================
   CONTACT
   ============================================================================ */
.contact {
  position: relative; z-index: 3; background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px);
  max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vh, 110px) var(--pad);
  scroll-margin-top: 56px;
}
.contact__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0.3em 0 0.34em; }
.contact__intro h2 em { color: var(--brass); }
.contact__intro > p { color: var(--ink-soft); max-width: 40ch; }
.contact__direct { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 22px; max-width: 380px; }
.bigbtn {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px; border: 1px solid var(--line);
  border-radius: 4px; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.bigbtn:hover { transform: translateY(-3px); border-color: rgba(200,164,92,0.45); }
.bigbtn__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.bigbtn--wa .bigbtn__ic { background: #1f8a4d; color: #fff; }
.bigbtn--mail .bigbtn__ic { background: rgba(200,164,92,0.16); color: var(--brass); }
.bigbtn__txt { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 500; }
.bigbtn__txt small { font-size: 0.78rem; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; }
.contact__where { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact__where i { color: var(--brass); font-style: normal; }

/* form */
.form { display: flex; flex-direction: column; gap: 18px; align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .select select {
  width: 100%; background: rgba(255,255,255,0.025); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--sans); font-size: 0.98rem; padding: 14px 16px; border-radius: 4px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6e6555; }
.field input:focus, .field textarea:focus, .select select:focus {
  outline: none; border-color: var(--brass); background: rgba(255,255,255,0.04);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select option { background: var(--bg-3); color: var(--ink); }
.select i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--brass); pointer-events: none; }
.form__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--accent); color: #1a1408; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.06em; padding: 17px 28px; border-radius: 4px; margin-top: 4px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.form__submit i { font-style: normal; transition: transform 0.35s var(--ease); }
.form__submit:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(200,164,92,0.6); }
.form__submit:hover i { transform: translateX(6px); }
.form__submit.is-busy { opacity: 0.7; pointer-events: none; }
.form__status { font-size: 0.86rem; color: var(--ink-soft); min-height: 1.2em; }
.form__status.ok { color: #7fc99a; }
.form__status.err { color: #d98a6a; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: clamp(44px, 7vh, 72px) var(--pad) 32px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.footer__brand { font-family: var(--display); font-size: 2rem; }
.footer__brand i { color: var(--accent); font-style: normal; }
.footer__line { font-family: var(--sans); color: var(--ink-soft); font-size: 1rem; font-weight: 300; }
.footer__social { max-width: var(--maxw); margin: 28px auto; display: flex; flex-wrap: wrap; gap: 14px 28px; border-block: 1px solid var(--line); padding: 18px 0; }
.footer__social a { position: relative; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s var(--ease); }
.footer__social a::after { content: "↗"; margin-left: 6px; color: var(--brass); opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); display: inline-block; }
.footer__social a:hover { color: var(--ink); }
.footer__social a:hover::after { opacity: 1; transform: translate(2px, -2px); }
.footer__base { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.footer__top-link { color: var(--ink-soft); transition: color 0.3s var(--ease); }
.footer__top-link:hover { color: var(--brass); }

/* ============================================================================
   MODAL
   ============================================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: grid; place-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,6,4,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.4s var(--ease); }
.modal__panel {
  position: relative; z-index: 2; width: min(1000px, 92vw); max-height: 90vh;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 3vw, 44px);
  background: var(--bg-3); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 32px);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.9); animation: pop 0.5s var(--ease);
  overflow-x: hidden; overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.modal__art { background: #0c0906; padding: clamp(10px, 1.6vw, 22px); display: grid; place-items: center; min-width: 0; }
.modal__art img { width: 100%; height: auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); }
.modal__info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.modal__index { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.modal__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0 8px; }
.modal__meta { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.modal__meta i { color: var(--brass); margin: 0 8px; font-style: normal; }
.modal__desc { color: var(--ink-soft); margin: 22px 0 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 4px; font-size: 0.86rem; letter-spacing: 0.06em; font-weight: 600; transition: transform 0.35s var(--ease), background-color 0.35s var(--ease); align-self: flex-start; }
.btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.btn--gold { background: var(--accent); color: #1a1408; }
.btn--gold:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--gold:hover i { transform: translateX(5px); }
.modal__close { position: absolute; top: 14px; right: 16px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 0.9rem; transition: background-color 0.3s var(--ease), border-color 0.3s; }
.modal__close:hover { background: var(--brass); border-color: var(--brass); color: #1a1408; }
.modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; color: var(--ink); background: rgba(20,16,11,0.7); border: 1px solid var(--line); transition: background-color 0.3s, color 0.3s; }
.modal__nav:hover { background: var(--brass); color: #1a1408; }
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }

@media (max-width: 760px) {
  .modal__panel { grid-template-columns: 1fr; max-height: 88vh; }
  .modal__nav--prev { left: 8px; } .modal__nav--next { right: 8px; }
}

/* ============================================================================
   REVEAL ANIMATIONS
   ============================================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__cue-line::after { animation: none; }
}

/* focus visibility */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ============================================================================
   NAV ACTIVE (Works page)
   ============================================================================ */
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }

/* ============================================================================
   WORKS INDEX RAIL (home, while inside the gallery)
   ============================================================================ */
.rail {
  position: fixed; right: clamp(12px, 2vw, 26px); top: 50%; transform: translateY(-50%);
  z-index: 70; display: flex; flex-direction: column; gap: 9px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.rail.show { opacity: 1; visibility: visible; }
.rail__tick {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 3px 0; color: var(--muted);
}
.rail__tick i { display: block; width: 16px; height: 1px; background: currentColor; transition: width 0.35s var(--ease); }
.rail__tick span {
  font-size: 0.6rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateX(5px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail__tick:hover { color: var(--ink); }
.rail__tick:hover span { opacity: 1; transform: none; }
.rail__tick.active { color: var(--accent); }
.rail__tick.active i { width: 30px; }
.rail__tick.active span { opacity: 1; transform: none; }
@media (max-width: 860px) { .rail { display: none; } }

/* ============================================================================
   SELECTED WORKS PAGE
   ============================================================================ */
.works-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(120px, 20vh, 220px) var(--pad) clamp(36px, 6vh, 64px);
}
.works-hero__eyebrow {
  display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--brass);
}
.works-hero__title { font-size: clamp(2.3rem, 6.5vw, 4.8rem); font-weight: 300; line-height: 1.02; margin: 0.16em 0 0.32em; }
.works-hero__title em { color: var(--brass); }
.works-hero__intro { color: var(--ink-soft); max-width: 54ch; font-size: 1.05rem; }
.works-hero__back {
  display: inline-block; margin-top: 26px; color: var(--ink-soft);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s var(--ease);
}
.works-hero__back:hover { color: var(--brass); }
/* load-in for the works hero */
.works-hero > * { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html:not(.is-loading) .works-hero > * { opacity: 1; transform: none; }
.works-hero > *:nth-child(2) { transition-delay: 0.08s; }
.works-hero > *:nth-child(3) { transition-delay: 0.16s; }
.works-hero > *:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .works-hero > * { opacity: 1; transform: none; } }

.works { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(80px, 12vh, 150px); }
.works__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 88px) clamp(28px, 4vw, 56px); }
.work { cursor: pointer; }
.work:nth-child(even) { margin-top: clamp(0px, 9vw, 96px); }
.work__media {
  position: relative; overflow: hidden; background: #0b0a06; border: 1px solid var(--line);
  box-shadow: 0 36px 70px -40px rgba(0,0,0,0.85); transition: box-shadow 0.6s var(--ease);
}
.work:hover .work__media { box-shadow: 0 56px 90px -44px rgba(0,0,0,0.95); }
.work__media img { width: 100%; height: auto; display: block; transition: transform 0.9s var(--ease); }
.work:hover .work__media img { transform: scale(1.045); }
.work__view {
  position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 100px; background: rgba(16,16,11,0.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.work__view i { font-style: normal; color: var(--brass); }
.work:hover .work__view, .work:focus-visible .work__view { opacity: 1; transform: none; }
.work__cap { padding-top: 18px; }
.work__no { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--brass); font-variant-numeric: tabular-nums; }
.work__cap h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); margin: 8px 0 7px; }
.work__meta { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.work__meta i { color: var(--brass); margin: 0 8px; font-style: normal; }
.work__desc { color: var(--ink-soft); margin-top: 12px; max-width: 46ch; }

@media (max-width: 760px) {
  .works__grid { grid-template-columns: 1fr; gap: 52px; }
  .work:nth-child(even) { margin-top: 0; }
}

/* ============================================================================
   MONO LABELS — the technical, editorial voice borrowed from the personal site
   ============================================================================ */
.kicker, .hero__eyebrow, .works-hero__eyebrow,
.caption__meta, .modal__index, .modal__meta,
.work__no, .work__meta, .offer__no, .offer__link,
.about__stats span, .contact__where, .footer__social a, .footer__base,
.rail__tick span, .stage__hint, .hero__cue span, .field > span,
.fallback__cap p, .modal__close, .form__submit, .btn {
  font-family: var(--mono);
}
/* mono runs wide — ease the tracking on the longer labels */
.caption__meta, .modal__meta, .work__meta, .offer__link, .fallback__cap p { letter-spacing: 0.08em; }
.kicker, .hero__eyebrow, .works-hero__eyebrow { letter-spacing: 0.2em; }

/* ============================================================================
   LIGHT MODE — a calm, daylit version of the gallery.
   Dark is the default; this activates on <html data-theme="light">.
   ============================================================================ */
[data-theme="light"] {
  color-scheme: light;
  --bg:        #ece5d5;   /* warm paper */
  --bg-2:      #e4dcc9;
  --bg-3:      #efe8d8;   /* panels / cards */
  --ink:       #211c14;   /* warm espresso near-black */
  --ink-soft:  #5b5142;
  --muted:     #8a8068;
  --line:      rgba(40, 32, 18, 0.16);
  --line-2:    rgba(40, 32, 18, 0.26);
  --accent:    #c43d16;   /* deepened vermilion — reads on cream */
  --accent-2:  #d6491d;
  --brass:     #936a2b;   /* antique bronze — labels/numerals on cream */
  --brass-soft:#a87d34;
  --green:     #5f7340;
  --green-deep:#3c4a2a;
  --sage:      #7c8a58;
  --brown:     #6e4f37;
  --brown-deep:#5c4128;
}

[data-theme="light"] ::selection { color: #fff6ec; }

/* backdrops behind the 3D / preloader */
[data-theme="light"] .preloader { background: radial-gradient(120% 100% at 50% 30%, #f3eede 0%, #e4dcc9 72%); }
[data-theme="light"] .stage { background: radial-gradient(120% 120% at 50% 30%, #f2ecdd 0%, #e3dac6 72%); }

/* edges + hero text lift */
[data-theme="light"] .vignette { background: radial-gradient(130% 120% at 50% 38%, transparent 62%, rgba(120, 96, 54, 0.10) 100%); }
[data-theme="light"] .hero::before { background: radial-gradient(58% 48% at 50% 46%, rgba(243, 238, 226, 0.62), transparent 72%); }
[data-theme="light"] .hero__name { text-shadow: 0 8px 50px rgba(120, 96, 54, 0.22); }

/* cursor */
[data-theme="light"] .cursor span { border-color: rgba(120, 90, 40, 0.7); }
[data-theme="light"] .cursor.is-hover span { background: rgba(147, 106, 43, 0.16); }

/* nav glass */
[data-theme="light"] .nav.scrolled { background: rgba(243, 238, 226, 0.78); }
[data-theme="light"] .nav__links { background: rgba(40, 32, 18, 0.04); }
[data-theme="light"] .nav__links a.is-active { background: rgba(40, 32, 18, 0.08); }
[data-theme="light"] .nav__theme { background: rgba(40, 32, 18, 0.04); }
[data-theme="light"] .nav__cta:hover { color: #fff6ec; }

/* fallback grid + about portrait */
[data-theme="light"] .fallback__frame { background: #fbf8ef; box-shadow: 0 30px 60px -34px rgba(80, 60, 30, 0.4); }
[data-theme="light"] .fallback__card:hover .fallback__frame { box-shadow: 0 46px 80px -44px rgba(80, 60, 30, 0.5); }
[data-theme="light"] .about__portrait {
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(120, 138, 88, 0.28), transparent 60%),
    linear-gradient(160deg, #e7e2cf, #d6cdb4);
  box-shadow: 0 40px 80px -50px rgba(80, 60, 30, 0.5);
}
[data-theme="light"] .about__tag { color: #fff6ec; }

/* commissions + form */
[data-theme="light"] .offer { background: rgba(40, 32, 18, 0.02); }
[data-theme="light"] .offer--feature { background: rgba(95, 115, 64, 0.12); border-color: rgba(95, 115, 64, 0.4); }
[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .select select { background: rgba(40, 32, 18, 0.03); }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus,
[data-theme="light"] .select select:focus { background: rgba(40, 32, 18, 0.05); }
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder { color: #9a917c; }
[data-theme="light"] .form__submit { color: #fff6ec; }
[data-theme="light"] .form__submit:hover { box-shadow: 0 16px 40px -16px rgba(147, 106, 43, 0.5); }
[data-theme="light"] .form__status.ok { color: #2f7d4f; }
[data-theme="light"] .form__status.err { color: #b5502f; }

/* modal */
[data-theme="light"] .modal__backdrop { background: rgba(236, 229, 213, 0.84); }
[data-theme="light"] .modal__panel { box-shadow: 0 60px 120px -50px rgba(70, 52, 26, 0.4); }
[data-theme="light"] .modal__art { background: #fbf8ef; }
[data-theme="light"] .modal__art img { box-shadow: 0 26px 56px -34px rgba(70, 52, 26, 0.45); }
[data-theme="light"] .modal__nav { background: rgba(255, 252, 245, 0.82); }
[data-theme="light"] .btn--gold { color: #fff6ec; }
[data-theme="light"] .modal__close:hover,
[data-theme="light"] .modal__nav:hover { color: #fff6ec; }

/* selected-works page */
[data-theme="light"] .work__media { background: #fbf8ef; box-shadow: 0 30px 64px -42px rgba(80, 60, 30, 0.42); }
[data-theme="light"] .work:hover .work__media { box-shadow: 0 50px 84px -46px rgba(80, 60, 30, 0.5); }
[data-theme="light"] .work__view { background: rgba(28, 22, 12, 0.62); color: #f4efe2; }

@media (max-width: 860px) {
  [data-theme="light"] .nav__links { background: rgba(243, 238, 226, 0.97); }
}

/* ============================================================================
   DEMO PAGE (flat, no-3D) — demo.html
   ============================================================================ */
.demo-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(118px, 19vh, 200px) var(--pad) clamp(36px, 6vh, 72px);
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.demo-hero__eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); }
.demo-hero__name { font-size: clamp(3.2rem, 9vw, 6.6rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.03em; font-variation-settings: "opsz" 84; margin: 0.12em 0 0.22em; }
.demo-hero__tagline { font-weight: 300; font-size: clamp(1.08rem, 1.9vw, 1.45rem); color: var(--ink-soft); max-width: 34ch; }
.demo-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.4vw, 40px); }
.demo-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 15px 26px; border-radius: 999px; transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease); }
.demo-btn i { font-style: normal; transition: transform 0.35s var(--ease); }
.demo-btn--solid { background: var(--accent); color: var(--bg); }
.demo-btn--solid:hover { background: var(--accent-2); transform: translateY(-3px); }
.demo-btn--solid:hover i { transform: translateX(5px); }
.demo-btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.demo-btn--ghost:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-3px); }

.demo-hero__media { position: relative; }
.demo-hero__frame { position: relative; padding: clamp(10px, 1vw, 14px); background: var(--bg-3); border: 1px solid var(--line); box-shadow: 0 54px 92px -52px rgba(0, 0, 0, 0.85); }
.demo-hero__frame::after { content: ""; position: absolute; inset: clamp(10px, 1vw, 14px); border: 1px solid var(--brass); opacity: 0.45; pointer-events: none; }
.demo-hero__frame img { width: 100%; height: auto; display: block; }
.demo-hero__cap { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.demo-hero__cap i { color: var(--brass); margin: 0 8px; font-style: normal; }
@keyframes demofloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.demo-gallery { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--pad) clamp(72px, 11vh, 130px); }
.demo-gallery .section-head { margin-bottom: clamp(34px, 5vw, 60px); }

@media (max-width: 860px) {
  .demo-hero { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); padding-top: clamp(108px, 15vh, 150px); }
  .demo-hero__media { order: -1; max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) { .demo-hero__media { animation: none; } }

[data-theme="light"] .demo-hero__frame { box-shadow: 0 54px 92px -54px rgba(80, 60, 30, 0.42); }

/* hero carousel (demo) */
.carousel { position: relative; }
.carousel__frame { position: relative; padding: clamp(10px, 1vw, 14px); background: var(--bg-3); border: 1px solid var(--line); box-shadow: 0 54px 92px -52px rgba(0, 0, 0, 0.85); }
.carousel__frame::after { content: ""; position: absolute; inset: clamp(10px, 1vw, 14px); border: 1px solid var(--brass); opacity: 0.45; pointer-events: none; z-index: 3; }
.carousel__track { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.carousel__slide.is-active { opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 14, 9, 0.5); color: #f1ecdd; border: 1px solid rgba(241, 236, 221, 0.22);
  font-size: 1.5rem; line-height: 1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.carousel:hover .carousel__arrow, .carousel:focus-within .carousel__arrow { opacity: 1; }
.carousel__arrow:hover { background: rgba(18, 14, 9, 0.8); }
.carousel__arrow--prev { left: clamp(16px, 2vw, 24px); }
.carousel__arrow--next { right: clamp(16px, 2vw, 24px); }
.carousel__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.carousel__foot .demo-hero__cap { margin: 0; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.carousel__dot.is-active { background: var(--accent); transform: scale(1.3); }
[data-theme="light"] .carousel__frame { box-shadow: 0 54px 92px -54px rgba(80, 60, 30, 0.42); }
@media (prefers-reduced-motion: reduce) { .carousel__slide { transition: none; } }

/* the process (demo) */
.process { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vh, 110px) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.process .section-head { margin: 0 auto clamp(32px, 5vw, 56px); }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.2vw, 52px); }
.process__step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.process__no { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--brass); }
.process__step h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); margin: 14px 0 10px; }
.process__step p { color: var(--ink-soft); }
@media (max-width: 760px) { .process__steps { grid-template-columns: 1fr; gap: 30px; } }
