/* ==========================================================================
   Five Stars Barbershop — "Americana 3D"
   Source stylesheet. tools/build.py minifies and inlines it into the pages.
   ========================================================================== */

@font-face {
  font-family: "Big Shoulders";
  src: url("assets/fonts/big-shoulders-800.woff2") format("woff2");
  font-weight: 700 900;
  font-display: optional;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400 500;
  font-display: optional;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 600 800;
  font-display: optional;
}

:root {
  --ink: #070b1f;
  --ink-2: #0d1433;
  --ink-3: #151e48;
  --line: rgba(246, 239, 227, .12);
  --cream: #f6efe3;
  --muted: #b4bbd6;
  --red: #d42340;
  --red-hot: #ff4d5e;
  --blue: #3a6df0;
  --blue-hot: #7aa2ff;
  --gold: #f2c14e;
  --display: "Big Shoulders", Impact, "sans-serif-condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --stripes: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 28px, var(--blue) 28px 42px, var(--cream) 42px 56px);
  color-scheme: dark;
}

/* --------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font: 400 1rem/1.7 var(--body);
  color: var(--cream);
  background: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: .5rem; font-weight: 700; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* barber-stripe scroll progress (CSS scroll timeline) */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; background: var(--stripes); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* ------------------------------------------------------------- header -- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s; }
.hdr.is-solid, .hdr--solid { background: rgba(7, 11, 31, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { width: 72px; height: 50px; border-radius: 6px; }
.logo b { font: 800 1.35rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.logo b span { color: var(--red-hot); }
.nav ul { display: flex; gap: .25rem; list-style: none; padding: 0; }
.nav ul a { display: block; padding: .5rem .8rem; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 999px; transition: background .25s, color .25s; }
.nav ul a:hover, .nav ul a[aria-current="true"] { background: rgba(246, 239, 227, .08); color: var(--gold); }
.hdr-cta { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; content: ""; }
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .burger { display: grid; }
  .hdr-cta .btn { display: none; }
  .js .nav { position: fixed; inset: 4.5rem 0 auto; height: calc(100dvh - 4.5rem); background: var(--ink); padding: 2rem var(--gut); visibility: hidden; opacity: 0; transform: translateY(-1rem); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav ul { flex-direction: column; gap: .25rem; }
  .js .nav ul a { font: 800 2.4rem/1.1 var(--display); text-transform: uppercase; padding: .4rem 0; border-radius: 0; }
  .js .nav .btn { margin-top: 1.5rem; width: 100%; min-height: 3.4rem; font-size: 1.05rem; }
  .hdr:has(.nav.is-open) { background: var(--ink); box-shadow: 0 1px 0 var(--line); }
  html:not(.js) .hdr .wrap { flex-wrap: wrap; height: auto; padding: .6rem 0; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  html:not(.js) .nav .btn { display: none; }
}
@media (min-width: 961px) { .nav .btn { display: none; } }

/* ------------------------------------------------------------ buttons -- */
.btn { --b: var(--red); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.4rem; border: 0; border-radius: 999px; background: var(--b); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: .02em; isolation: isolate; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 10px 30px -10px rgba(212, 35, 64, .8), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stripes); background-size: 80px 80px; opacity: 0; transition: opacity .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { opacity: .22; }
.btn--ghost { --b: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(246, 239, 227, .35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); }
.btn--sm { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .92rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover::before { animation: slide 1.2s linear infinite; }
}
@keyframes slide { to { transform: translateX(80px); } }

/* --------------------------------------------------------------- hero -- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 6rem 0 3rem; overflow: hidden; isolation: isolate; background:
  radial-gradient(60% 50% at 75% 40%, rgba(58, 109, 240, .28), transparent 70%),
  radial-gradient(50% 45% at 20% 70%, rgba(212, 35, 64, .22), transparent 70%),
  linear-gradient(180deg, #050816 0%, var(--ink) 55%, #0a0f2a 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 8px; border-radius: 4px; background: var(--stripes); background-size: 40px 40px; }
.h1 { margin: 1rem 0 1.2rem; font-size: clamp(4.2rem, 14vw, 10.5rem); line-height: .82; perspective: 600px; }
.h1 .l { display: block; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d; }
.extrude { color: var(--cream); text-shadow: 1px 1px 0 #c7c0b3, 2px 2px 0 #b3ab9d, 3px 3px 0 #9d9586, 4px 4px 0 #2a3470, 5px 5px 0 #222b5f, 6px 6px 0 #1b2350, 7px 7px 0 #141b40, 8px 8px 20px rgba(0, 0, 0, .6); }
.extrude--red { color: var(--red-hot); text-shadow: 1px 1px 0 #d93448, 2px 2px 0 #c22a3d, 3px 3px 0 #a82234, 4px 4px 0 #2a3470, 5px 5px 0 #222b5f, 6px 6px 0 #1b2350, 7px 7px 0 #141b40, 8px 8px 24px rgba(212, 35, 64, .45); }
.h1 .star { display: inline-block; width: .62em; height: .62em; margin: 0 .04em; vertical-align: .05em; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(4px 4px 0 #1b2350); }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.lead { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.lead strong { color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 20, 51, .6); font-size: .88rem; font-weight: 600; }
.chips .ico { color: var(--gold); width: 1.05em; height: 1.05em; }
.chips a { text-decoration: none; }

/* 3D stage ------------------------------------------------------------ */
.stage { position: relative; height: min(78svh, 640px); perspective: 1100px; perspective-origin: 50% 35%; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.floor { position: absolute; left: 50%; bottom: -8%; width: 170%; height: 100%; margin-left: -85%; transform: rotateX(80deg); transform-origin: 50% 100%; overflow: hidden; }
.floor::before { content: ""; position: absolute; inset: -80px 0 0; background: conic-gradient(#e9e3d6 0 25%, #10162f 0 50%, #e9e3d6 0 75%, #10162f 0) 0 0 / 80px 80px; opacity: .55; }
.floor::after { content: ""; position: absolute; inset: 0; background: radial-gradient(30% 22% at 50% 52%, rgba(255, 77, 94, .55), transparent 70%), radial-gradient(45% 30% at 50% 52%, rgba(58, 109, 240, .45), transparent 70%), radial-gradient(closest-side, transparent 35%, #080c22 92%); }
@media (prefers-reduced-motion: no-preference) {
  .floor::before { animation: tiles 2.4s linear infinite; }
}
@keyframes tiles { to { transform: translateY(80px); } }

.pole { --r: 50px; --h: 330px; position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--h) + 120px); margin: calc((var(--h) + 120px) / -2 - 20px) 0 0 calc(var(--r) * -1); transform-style: preserve-3d; }
.tube { position: absolute; left: 0; right: 0; top: 60px; height: var(--h); transform-style: preserve-3d; animation: spin 7s linear infinite; }
.tube i { position: absolute; left: 50%; top: 0; width: 14px; height: 100%; margin-left: -7px; backface-visibility: hidden; transform: rotateY(calc(var(--n) * 15deg)) translateZ(var(--r)); background: repeating-linear-gradient(45deg, #d42340 0 19.8px, #fbf7ef 19.8px 39.6px, #2f5fe0 39.6px 59.4px, #fbf7ef 59.4px 79.2px) calc(var(--n) * -14px) 0 / 336px 100%; }
.glass { position: absolute; left: -6px; right: -6px; top: 56px; height: calc(var(--h) + 8px); border-radius: 14px; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .05) 22%, rgba(255, 255, 255, .45) 34%, rgba(255, 255, 255, .06) 46%, transparent 62%, rgba(0, 0, 0, .55) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transform: translateZ(60px); }
.cap { position: absolute; left: -16px; right: -16px; height: 34px; border-radius: 10px; background: linear-gradient(90deg, #3d4252, #e9edf5 30%, #8a90a3 55%, #f7f9fc 72%, #4a4f60); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .5); transform: translateZ(62px); }
.cap--top { top: 26px; }
.cap--top::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9ced9 30%, #5b6172 70%, #2b2f3b); }
.cap--bot { top: calc(var(--h) + 56px); }
.cap--bot::after { content: ""; position: absolute; left: 50%; top: 100%; width: 22px; height: 30px; margin-left: -11px; background: linear-gradient(90deg, #3d4252, #e9edf5 40%, #4a4f60); }
@keyframes spin { to { transform: rotateY(-360deg); } }

.orbit { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; animation: orbit 16s linear infinite; }
.orbit b { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; transform-style: preserve-3d; transform: rotateY(calc(var(--n) * 72deg)) translateZ(190px) translateY(calc(var(--y) * 1px)); }
.orbit b::before, .orbit b::after { content: ""; position: absolute; inset: 0; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.orbit b::after { background: #a8771c; transform: translateZ(-6px); }
.orbit b::before { background: linear-gradient(135deg, #fff1b8, var(--gold) 45%, #d09a24); }
@keyframes orbit { to { transform: rotateY(360deg); } }

.neon { position: absolute; left: 50%; top: 0; transform: translateX(-50%) translateZ(-120px); font: 800 clamp(1rem, 2vw, 1.3rem)/1 var(--display); letter-spacing: .4em; text-transform: uppercase; color: #ffd6dc; text-shadow: 0 0 6px var(--red-hot), 0 0 18px var(--red-hot), 0 0 42px var(--red); white-space: nowrap; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.2rem; translate: -50% 0; display: grid; justify-items: center; gap: .3rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 22px; height: 36px; border: 2px solid rgba(246, 239, 227, .4); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue i::after { animation: cue 1.8s var(--ease) infinite; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tube, .orbit { animation: none; }
}

/* intro (transform only — keeps LCP text painted immediately) */
@media (prefers-reduced-motion: no-preference) {
  .js .h1 .l { animation: rise 1s var(--ease) both; }
  .js .h1 .l + .l { animation-delay: .08s; }
  .js .stage { animation: zoom 1.4s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(.35em) rotateX(-40deg); } }
@keyframes zoom { from { transform: translateY(40px); } }

@media (max-width: 700px) {
  .hero { padding-top: 5rem; align-items: start; }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .stage { order: -1; height: 46svh; min-height: 300px; margin: 0 calc(var(--gut) * -1); }
  .stage::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, #080c22); pointer-events: none; }
  .neon { display: none; }
  .pole { --r: 34px; --h: 210px; }
  .tube i { width: 10px; margin-left: -5px; background-size: 240px 100%; background-position: calc(var(--n) * -10px) 0; background-image: repeating-linear-gradient(45deg, #d42340 0 14.1px, #fbf7ef 14.1px 28.3px, #2f5fe0 28.3px 42.4px, #fbf7ef 42.4px 56.6px); }
  .orbit b { transform: rotateY(calc(var(--n) * 72deg)) translateZ(130px) translateY(calc(var(--y) * .7px)); width: 32px; height: 32px; left: -16px; top: -16px; }
  .h1 { margin-top: .4rem; }
  .hero-copy { margin-top: .25rem; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .16em; }
  .scroll-cue { display: none; }
}

@media (min-width: 701px) and (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 1rem; }
  .stage { height: 520px; }
  .pole { --r: 40px; --h: 260px; }
  .tube i { width: 11px; margin-left: -5.5px; background-size: 264px 100%; background-position: calc(var(--n) * -11px) 0; background-image: repeating-linear-gradient(45deg, #d42340 0 15.6px, #fbf7ef 15.6px 31.1px, #2f5fe0 31.1px 46.7px, #fbf7ef 46.7px 62.2px); }
  .orbit b { transform: rotateY(calc(var(--n) * 72deg)) translateZ(150px) translateY(calc(var(--y) * .8px)); }
  .neon { display: none; }
}

/* ------------------------------------------------------------- ribbon -- */
.ribbons { position: relative; height: 9rem; margin: -2rem 0; overflow: hidden; perspective: 900px; z-index: 2; pointer-events: none; }
.ribbon { position: absolute; left: -5%; width: 110%; top: 50%; display: flex; overflow: hidden; padding: .85rem 0; font: 800 clamp(1.4rem, 3vw, 2.2rem)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.ribbon--a { background: var(--red); color: #fff; transform: translateY(-70%) rotateX(18deg) rotateZ(-3deg); }
.ribbon--b { background: var(--cream); color: var(--ink); transform: translateY(-10%) rotateX(-18deg) rotateZ(2.5deg); }
.ribbon span { flex: none; padding-right: 2rem; }
.ribbon span::after { content: "★"; margin-left: 2rem; color: var(--gold); }
.ribbon--b span::after { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .ribbon > div { display: flex; animation: marquee 28s linear infinite; }
  .ribbon--b > div { animation-direction: reverse; animation-duration: 34s; }
}
.ribbon > div { display: flex; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------- sections -- */
.sec { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec--alt { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 18%, var(--ink-2) 82%, var(--ink) 100%); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--c { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: .9rem; }
.sec-head h2 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.sec-head h2 em { font-style: normal; color: var(--red-hot); }
.sec-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(40px) rotateX(12deg); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------- portfolio ring -- */
.ring-wrap { position: relative; }
.ring-stage { position: relative; height: 430px; perspective: 1500px; perspective-origin: 50% 30%; overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; outline: none; }
.ring-stage:active { cursor: grabbing; }
.ring-stage:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 1rem; }
.ring { position: absolute; left: 50%; top: 40px; width: 0; height: 0; padding: 0; list-style: none; transform-style: preserve-3d; transform: translateZ(-440px) rotateY(var(--a, 0deg)); }
.ring-card { position: absolute; left: -110px; top: 0; width: 220px; height: 300px; transform: rotateY(calc(var(--i) * 30deg)) translateZ(440px); backface-visibility: hidden; }
.ring-card a { display: block; height: 100%; border-radius: 18px; overflow: hidden; border: 3px solid var(--cream); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); background: var(--ink-3); }
.ring-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ring-shadow { position: absolute; left: 50%; bottom: 20px; width: 70%; height: 60px; translate: -50% 0; background: radial-gradient(closest-side, rgba(58, 109, 240, .35), transparent); filter: blur(6px); }
.ring-ctrl { display: flex; justify-content: center; align-items: center; gap: .8rem; margin-top: 1rem; }
.icon-btn { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); transition: background .25s, color .25s, transform .25s; }
.icon-btn:hover { background: var(--red); transform: scale(1.06); }
.ring-hint { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .ring-stage { height: 330px; }
  .ring { transform: translateZ(-300px) rotateY(var(--a, 0deg)); top: 30px; }
  .ring-card { left: -75px; width: 150px; height: 210px; transform: rotateY(calc(var(--i) * 30deg)) translateZ(300px); }
}

/* -------------------------------------------------------------- about -- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.stack { position: relative; height: clamp(420px, 52vw, 560px); perspective: 1200px; }
.stack figure { position: absolute; width: 58%; aspect-ratio: 3 / 4; left: 21%; top: 6%; border: 6px solid var(--cream); border-bottom-width: 34px; border-radius: 6px; background: var(--cream); box-shadow: 0 40px 60px -25px rgba(0, 0, 0, .85); transform: rotate(var(--rot)) translate3d(var(--x), var(--y), 0); transition: transform 1.1s var(--ease); }
.stack figure img { width: 100%; height: 100%; object-fit: cover; }
.stack figcaption { opacity: 0; transition: opacity .4s; position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font: 700 .85rem/26px var(--body); color: var(--ink); }
.stack figure:nth-child(1) { --rot: -10deg; --x: -34%; --y: 4%; }
.stack figure:nth-child(2) { --rot: 8deg; --x: 34%; --y: -4%; }
.stack figure:nth-child(3) { --rot: -4deg; --x: -12%; --y: 12%; }
.stack figure:nth-child(4) { --rot: 3deg; --x: 10%; --y: 4%; }
.js .stack:not(.in) figure { --x: 0%; --y: 0%; --rot: 0deg; }
.stack figure:hover { transform: rotate(0deg) translate3d(var(--x), var(--y), 60px) scale(1.04); z-index: 5; }
.about-copy h2 { font-size: clamp(2.8rem, 7vw, 5.2rem); margin: .9rem 0 1.5rem; }
.about-copy h2 em { font-style: normal; color: var(--red-hot); }
.about-copy p { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about-copy p strong { color: var(--cream); }
.quote { margin: 2rem 0; padding: 1.4rem 1.6rem; border-radius: 1rem; background: var(--ink-3); position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--stripes); background-size: 40px 40px; }
.quote p { margin: 0 0 .3rem; color: var(--muted); font-size: .95rem; }
.quote strong { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--display); text-transform: uppercase; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.stats li { display: grid; align-content: center; gap: .35rem; padding: 1rem .6rem; border: 1px solid var(--line); border-radius: 1rem; text-align: center; }
.stats b { display: block; font: 800 2.4rem/1 var(--display); color: var(--cream); }
.stats span { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.stack figure:last-child figcaption, .stack figure:hover figcaption { opacity: 1; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .stack { height: clamp(330px, 92vw, 460px); } .stack figure { width: 52%; left: 24%; } }

/* ----------------------------------------------------------- features -- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 0; list-style: none; }
.feat { position: relative; padding: 2rem 1.6rem; border-radius: 1.4rem; background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); overflow: hidden; }
.feat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--stripes); background-size: 50px 50px; opacity: .1; transition: transform .8s var(--ease), opacity .4s; }
.feat:hover::after { transform: rotate(90deg) scale(1.3); opacity: .22; }
.badge { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: 1.2rem; border-radius: 1rem; background: var(--red); color: #fff; box-shadow: 0 6px 0 #8f1328, 0 14px 30px -8px rgba(212, 35, 64, .7); transform: rotate(-6deg); transition: transform .5s var(--ease); }
.feat:hover .badge { transform: rotate(0) translateY(-4px); }
.feat:nth-child(even) .badge { background: var(--blue); box-shadow: 0 6px 0 #1d3c96, 0 14px 30px -8px rgba(58, 109, 240, .7); }
.badge .ico { width: 1.6rem; height: 1.6rem; }
.feat h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.feat p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feats { gap: .75rem; }
  .feat { padding: 1.2rem 1rem; border-radius: 1.1rem; }
  .feat::after { width: 80px; height: 80px; right: -30px; top: -30px; }
  .badge { width: 2.8rem; height: 2.8rem; margin-bottom: .8rem; border-radius: .8rem; }
  .badge .ico { width: 1.25rem; height: 1.25rem; }
  .feat h3 { font-size: 1.3rem; }
  .feat p { font-size: .86rem; line-height: 1.5; }
}

/* ------------------------------------------------------------ pricing -- */
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; perspective: 1400px; }
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.tilt.is-live { transition: transform .12s linear; }
.card { padding: 2rem; border-radius: 1.6rem; background: linear-gradient(165deg, #121a40, #0b112b); border: 1px solid var(--line); box-shadow: 0 40px 60px -35px rgba(0, 0, 0, .9); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242, 193, 78, .14), transparent 45%); pointer-events: none; opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; transform: translateZ(40px); }
.card-head .badge { width: 3rem; height: 3rem; margin: 0; border-radius: .8rem; }
.card-head h3 { font-size: 2rem; }
.prices { padding: 0; list-style: none; transform: translateZ(20px); }
.prices li { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 0; border-bottom: 1px dashed rgba(246, 239, 227, .14); }
.prices li:last-child { border-bottom: 0; }
.prices .nm { font-weight: 600; }
.prices .dots { flex: 1; border-bottom: 2px dotted rgba(246, 239, 227, .22); transform: translateY(-.3em); }
.prices .pr { font: 800 1.45rem/1 var(--display); color: var(--gold); white-space: nowrap; }
.pop { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: .15em; }
.book-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1.5rem 2rem; border-radius: 1.4rem; background: var(--stripes); background-size: 113px 113px; position: relative; overflow: hidden; }
.book-bar::before { content: ""; position: absolute; inset: 4px; border-radius: 1.2rem; background: var(--ink); }
.book-bar > * { position: relative; }
.book-bar p { font: 800 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); text-transform: uppercase; }
@media (max-width: 800px) { .menu { grid-template-columns: 1fr; } .card { padding: 1.5rem; } }

/* ------------------------------------------------------------ reviews -- */
.reviews { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem; background: radial-gradient(80% 120% at 0% 0%, rgba(58, 109, 240, .25), transparent 60%), var(--ink-2); border: 1px solid var(--line); }
.five { display: flex; gap: .3rem; perspective: 500px; }
.five i { width: clamp(2.4rem, 6vw, 3.6rem); aspect-ratio: 1; background: linear-gradient(135deg, #fff1b8, var(--gold) 45%, #d09a24); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@media (prefers-reduced-motion: no-preference) {
  .reviews.in .five i { animation: flip 1.2s var(--ease) both; animation-delay: calc(var(--n) * 120ms); }
}
@keyframes flip { from { transform: rotateY(-180deg) scale(.4); } }
.reviews h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 1rem 0 .6rem; }
.reviews p { color: var(--muted); }
.reviews .cta-row { margin-top: 1.4rem; }
.sk-host { grid-column: 1 / -1; min-height: 0; }
.sk-host:empty { display: none; }
.sk-host:not(:empty) { min-height: 420px; }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ contact -- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
.info { padding: .4rem 1.4rem; list-style: none; margin-bottom: 1.5rem; border-radius: 1.4rem; background: var(--ink-2); border: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; align-items: center; padding: 1rem 0; }
.info li + li { border-top: 1px solid var(--line); }
.info .ico { grid-row: 1 / 3; color: var(--gold); width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: .8rem; background: rgba(242, 193, 78, .1); }
.info small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info a, .info span { font-weight: 700; text-decoration: none; overflow-wrap: break-word; }
.info a:hover { color: var(--gold); }
.form { display: grid; gap: .9rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 1.4rem; background: var(--ink-2); border: 1px solid var(--line); }
.form h3 { font-size: 2rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; border-radius: .8rem; border: 1px solid rgba(246, 239, 227, .2); background: var(--ink); color: var(--cream); font: inherit; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, .25); }
.form-note { font-size: .85rem; color: var(--muted); }
.map { position: relative; min-height: 420px; border-radius: 1.4rem; overflow: hidden; border: 1px solid var(--line); background: #0b1230; }
.map svg.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 50%; top: 44%; translate: -50% -100%; display: grid; justify-items: center; }
.map-pin b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--red); box-shadow: 0 10px 30px rgba(212, 35, 64, .6); }
.map-pin b::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); }
@media (prefers-reduced-motion: no-preference) { .map-pin { animation: bob 2.4s ease-in-out infinite; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.map-cta { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; padding: 1rem; border-radius: 1rem; background: rgba(7, 11, 31, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-cta p { width: 100%; text-align: center; font-weight: 700; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- footer -- */
.ftr { position: relative; padding: 4rem 0 2rem; background: #04061a; overflow: hidden; }
.ftr::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: var(--stripes); background-size: 56px 56px; }
.ftr-big { font: 800 clamp(3.5rem, 15vw, 12rem)/.8 var(--display); text-transform: uppercase; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 227, .25); white-space: nowrap; text-align: center; margin-bottom: 2.5rem; }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; }
.ftr ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; }
.ftr a { text-decoration: none; color: var(--muted); }
.ftr a:hover { color: var(--gold); }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line); color: var(--cream); }
.social a:hover { background: var(--red); color: #fff; }
.copy { margin-top: 2rem; font-size: .85rem; color: var(--muted); }

.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 3.2rem; height: 3.2rem; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(212, 35, 64, .8); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------- gallery page -- */
.pg-hero { position: relative; padding: 9rem 0 4rem; overflow: hidden; background: radial-gradient(60% 80% at 80% 0%, rgba(58, 109, 240, .3), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(212, 35, 64, .22), transparent 70%); }
.pg-hero .h1 { font-size: clamp(3.6rem, 12vw, 8.5rem); }
.pg-pole { position: absolute; right: 6%; top: 50%; translate: 0 -40%; perspective: 900px; width: 120px; height: 420px; }
.pg-pole .pole { --r: 30px; --h: 220px; }
.pg-pole .tube i { width: 9px; margin-left: -4.5px; background-size: 216px 100%; background-position: calc(var(--n) * -9px) 0; background-image: repeating-linear-gradient(45deg, #d42340 0 12.7px, #fbf7ef 12.7px 25.5px, #2f5fe0 25.5px 38.2px, #fbf7ef 38.2px 50.9px); }
@media (max-width: 760px) { .pg-pole { display: none; } }
.masonry { columns: 4 200px; column-gap: 1rem; padding: 0; list-style: none; }
@media (max-width: 600px) { .masonry { columns: 3; column-gap: .4rem; } .masonry li { margin-bottom: .4rem; } .m-item { border-radius: .6rem; } }
.masonry li { break-inside: avoid; margin-bottom: 1rem; content-visibility: auto; contain-intrinsic-size: auto 320px; }
.m-item { position: relative; display: block; border-radius: 1rem; overflow: hidden; background: var(--ink-3); aspect-ratio: var(--r); transform: perspective(800px) rotateX(0) rotateY(0); transition: transform .5s var(--ease), box-shadow .5s; }
.m-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.m-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 31, .7)); opacity: 0; transition: opacity .4s; }
.m-item:hover { transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateZ(20px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9), 0 0 0 2px var(--gold); }
.m-item:hover img { transform: scale(1.06); }
.m-item:hover::after { opacity: 1; }
.m-badge { position: absolute; z-index: 1; right: .7rem; top: .7rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .9rem; }

/* ----------------------------------------------------------- lightbox -- */
.lb { --pad-y: 6rem; position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 4rem 1rem 2rem; background: rgba(4, 6, 20, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lb.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-fig { position: relative; height: 100%; display: grid; place-items: center; perspective: 1200px; overflow: hidden; touch-action: pan-y; }
.lb-fig img, .lb-fig video { max-width: 100%; max-height: calc(100dvh - var(--pad-y)); object-fit: contain; width: auto; height: auto; border-radius: .8rem; box-shadow: 0 40px 80px rgba(0, 0, 0, .7); }
.lb-fig .enter { animation: lbIn .55s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: rotateY(var(--from, 25deg)) translateZ(-200px); } }
.lb-x { position: absolute; right: 1rem; top: 1rem; }
.lb-count { position: absolute; left: 1.2rem; top: 1.5rem; font-weight: 700; color: var(--muted); }
@media (max-width: 600px) { .lb { --pad-y: 9rem; grid-template-columns: 1fr; padding: 4rem .5rem 5rem; } .lb-prev, .lb-next { position: absolute; bottom: 1rem; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }
@media (prefers-reduced-motion: reduce) { .lb-fig .enter { animation: none; } }

html:not(.js) img[data-src] { display: none; }

@media (max-width: 480px) {
  .cta-row .btn { flex: 1 1 100%; }
  .book-bar { padding: 1.4rem; }
  .book-bar .btn { width: 100%; }
}

/* motion-sensitive visitors: keep hover feedback, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .m-item, .m-item img, .stack figure, .feat::after, .badge, .btn, .tilt { transition: none; }
  .m-item:hover, .stack figure:hover, .feat:hover .badge, .btn:hover { transform: none; }
  .m-item:hover img, .feat:hover::after { transform: none; }
}

/* skip offscreen rendering only where it cannot move anchor targets:
   fixed-height 3D scenes, and the last section + footer */
.ring-stage, .stack { content-visibility: auto; }
#contact { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.ftr { content-visibility: auto; contain-intrinsic-size: auto 420px; }
html:not(.js) .hdr { position: relative; background: var(--ink); }
html:not(.js) .hero, html:not(.js) .pg-hero { padding-top: 2rem; }
@media (max-width: 360px) { .hero .eyebrow { font-size: .64rem; letter-spacing: .1em; white-space: nowrap; } .hero .eyebrow::before { width: 22px; } }
/* ribbon tracks hold extra copies for very wide screens; each rule keeps two identical halves */
@media (max-width: 1300px) { .ribbon--a span:nth-child(n+13) { display: none; } }
@media (max-width: 1900px) { .ribbon--b span:nth-child(n+17) { display: none; } }
@media (max-width: 600px) { .ribbon--b span:nth-child(n+9) { display: none; } }
@media (min-width: 2600px) { .ribbon { font-size: 1.75vw; } }
/* decorative 3D loops start once the page is idle (main.js adds .live), so their
   per-frame ticks never stack onto the initial load work */
.js:not(.live) .tube, .js:not(.live) .orbit, .js:not(.live) .floor::before { animation-play-state: paused; }
/* offscreen sections skip rendering until needed; main.js adds .cv-off before any
   in-page jump so anchor targets are measured against real heights */
.sec { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.cv-off .sec, .cv-off #contact, .cv-off .ring-stage, .cv-off .stack { content-visibility: visible; }

/* touch: the 3D scene can be dragged; vertical swipes still scroll the page */
.stage { touch-action: pan-y; }
.stage-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .stage-hint { display: block; position: absolute; left: 50%; bottom: 8%; z-index: 3; translate: -50% 0; padding: .35rem .8rem; border-radius: 999px; background: rgba(7, 11, 31, .7); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity .5s; }
  .touched .stage-hint { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .stage-hint { display: none !important; } }
/* the pole renders as one unit: tube, glass and caps stay aligned at any tilt */
.pole { transform-style: flat; }
