/* ==========================================================================
   Client gallery — what your client sees
   ========================================================================== */
.cg {
  --bg: #eef2ee; --fg: #1d2420; --muted: #6c7a72; --card: #ffffff; --line: rgba(29,36,32,.1); --accent: #2f6b5e; --btn-fg: #fff;
  background: var(--bg); color: var(--fg); min-height: 100vh; min-height: 100svh; font-family: var(--font);
}
.cg[data-theme="ivory"]    { --bg: #f7f4ee; --fg: #1d1d1f; --muted: #7a766c; --card: #fff; --line: rgba(0,0,0,.09); --accent: #1d1d1f; --btn-fg: #fff; }
.cg[data-theme="sand"]     { --bg: #ebe3d6; --fg: #2b231d; --muted: #7b6c5d; --card: #f4eee4; --line: rgba(60,40,20,.12); --accent: #8a5a3b; --btn-fg: #fff; }
.cg[data-theme="bloom"]    { --bg: #f7eeeb; --fg: #3a2a2a; --muted: #9a7f7a; --card: #fff8f6; --line: rgba(90,40,40,.1); --accent: #b0646a; --btn-fg: #fff; }
.cg[data-theme="noir"]     { --bg: #0c0c0d; --fg: #f4f1ea; --muted: #8f8b82; --card: #18181b; --line: rgba(255,255,255,.1); --accent: #e9dcbc; --btn-fg: #0c0c0d; }
.cg[data-theme="midnight"] { --bg: #0b1020; --fg: #ecebe6; --muted: #8b90a3; --card: #141a2e; --line: rgba(255,255,255,.1); --accent: #c9a45c; --btn-fg: #0b1020; }

.cg-title { font-family: var(--tf, var(--serif)); font-weight: 400; letter-spacing: -.02em; }
.cg[data-hf="sans"] .cg-title { font-weight: 700; letter-spacing: -.05em; }
.cg[data-hf="display"] .cg-title { font-weight: 800; font-stretch: condensed; text-transform: uppercase; letter-spacing: -.01em; line-height: .92 !important; }
.cg[data-hf="cinzel"] .cg-title { letter-spacing: .02em; }

/* two-line landing titles */
.cg-h-main { font-size: calc(clamp(44px, 10.5vw, 100px) * var(--s, 1)); line-height: 1; letter-spacing: -.015em; margin: 0; overflow-wrap: break-word; }
.cg-h-sub { font-size: calc(clamp(26px, 6.4vw, 56px) * var(--s, 1)); line-height: 1.1; margin: 6px 0 0; letter-spacing: 0; overflow-wrap: break-word; }
.hero .hero-meta { margin-top: 18px; }
.hero-logo { height: 46px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 22px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }
.hero.landscape .hero-logo { filter: none; }
.cg-bar.logo-late:not(.solid) .cg-studio { opacity: 0; }
.cg-bar .cg-studio { transition: opacity .3s; }

/* credit links */
.credits a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.credits a svg { width: 14px; height: 14px; opacity: .55; flex-shrink: 0; }
.credits a:hover { border-color: currentColor; }
.credits a:hover svg { opacity: 1; }

/* watermark protection */
.wm { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--wm); background-repeat: repeat; }
.tile-media .wm { opacity: .7; background-size: 180px auto; }
.player-stage .wm, .reel .wm { z-index: 1; }
.cg.protected video, .cg.protected img { -webkit-touch-callout: none; user-select: none; -webkit-user-drag: none; }

/* top bar over hero */
.cg-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; padding-top: env(safe-area-inset-top); color: #fff; transition: background .35s, color .35s, box-shadow .35s; }
.cg-bar.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: var(--fg); box-shadow: 0 1px 0 var(--line); }
.cg-studio { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.cg-studio img { height: 26px; width: auto; max-width: 120px; object-fit: contain; }
.cg-bar .t { font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: all .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-bar.solid .t { opacity: 1; transform: none; }
.cg-bar .sp { flex: 1; }
.cg-bar .cg-btn { height: 36px; padding: 0 14px; font-size: 13px; }
.cg-bar:not(.solid) .cg-btn { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(12px); }
.cg-bar.light-hero:not(.solid) { color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.12); filter: brightness(.6); } }
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, #3c5a50, #0f1714); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.hero-text { position: relative; z-index: 1; padding: 0 24px calc(40px + env(safe-area-inset-bottom)); max-width: 1000px; }
.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; } .hero-text > :nth-child(3) { animation-delay: .22s; } .hero-text > :nth-child(4) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; opacity: .88; margin: 0 0 26px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: #fff; color: #111; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.hero-cta:active { transform: scale(.97); }
.hero-cta svg { width: 16px; height: 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 1; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.6); border-radius: 12px; transform: translateX(-50%); display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px; background: #fff; transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translate(-50%, 9px); opacity: 0; } }
.hero.portrait { height: 100vh; height: 100svh; display: flex; align-items: flex-end; }
.hero.landscape { display: flex; flex-direction: column; color: var(--fg); }
.hero.landscape .hero-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.hero.landscape .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%); }
.hero.landscape .hero-text { padding-top: 30px; padding-bottom: 10px; }
.hero.landscape .hero-cta { background: var(--accent); color: var(--btn-fg); box-shadow: none; }
@media (min-width: 820px) {
  .hero-text { padding-left: 60px; padding-right: 60px; padding-bottom: 64px; }
  .hero.landscape { height: 100vh; height: 100svh; position: relative; justify-content: flex-end; color: #fff; }
  .hero.landscape .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero.landscape .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
  .hero.landscape .hero-cta { background: #fff; color: #111; }
  .scroll-cue { display: block; }
  .cg-bar { padding: 0 32px; }
}

/* body */
.cg-body { max-width: 1240px; margin: 0 auto; padding: 56px 18px 40px; }
.cg-intro { display: grid; gap: 30px; margin: 0 6px 56px; }
@media (min-width: 860px) { .cg-intro { grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: start; margin-bottom: 72px; } }
.cg-note { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -.012em; margin: 0; }
.cg-sign { margin-top: 18px; font-size: 14px; color: var(--muted); }
.credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .credits { border-top: 0; padding-top: 6px; } }
.credits dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.credits dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

.cg-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 6px 22px; }
.cg-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; }
.cg-head .count { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cg-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--btn-fg); font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .15s var(--ease), opacity .2s; }
.cg-btn:active { transform: scale(.97); }
.cg-btn svg { width: 16px; height: 16px; }
.cg-btn.outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.cg-head.sub { margin-top: 64px; }
.cg-head.sub h2 { font-size: 22px; }

.progress-strip { display: flex; align-items: center; gap: 12px; margin: 0 6px 26px; padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.progress-strip .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-strip .bar i { display: block; height: 100%; border-radius: 6px; background: #3f9a52; transition: width .5s var(--ease); }
.progress-strip b { font-weight: 600; }

/* tiles */
.cg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
@media (min-width: 700px) { .cg-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .cg-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.cg-grid .tile.wide { grid-column: span 2; }
.tile { display: block; width: 100%; text-align: left; color: inherit; animation: rise .7s var(--ease) both; }
.tile-media { position: relative; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); transform: translateZ(0); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile-media img:not(.tile-blur) { transform: scale(1.04); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 25%, transparent 60%, rgba(0,0,0,.5) 100%); pointer-events: none; }
.tile-media.fit img:not(.tile-blur) { position: relative; object-fit: contain; z-index: 0; }
.tile-blur { position: absolute; inset: 0; filter: blur(22px) brightness(.75); transform: scale(1.25); }
.tile-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 54px; height: 54px; border-radius: 50%; transform: translate(-50%, -50%) scale(.92); background: rgba(255,255,255,.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; color: #fff; transition: transform .35s var(--spring), background .25s; }
.tile-play svg { width: 22px; height: 22px; margin-left: 3px; }
.tile:hover .tile-play { transform: translate(-50%, -50%) scale(1.05); background: rgba(255,255,255,.34); }
.tile-play.big { width: 84px; height: 84px; }
.tile-play.big svg { width: 32px; height: 32px; }
.tile-fmt { position: absolute; left: 10px; top: 10px; z-index: 1; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(0,0,0,.32); backdrop-filter: blur(10px); padding: 5px 9px; border-radius: 999px; }
.tile-dur { position: absolute; right: 11px; bottom: 10px; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-ok { position: absolute; right: 10px; top: 10px; z-index: 1; height: 26px; padding: 0 9px 0 7px; border-radius: 999px; background: #3f9a52; color: #fff; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 600; }
.tile-ok svg { width: 13px; height: 13px; }
.tile-cap { padding: 12px 4px 4px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.tile-cap small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-top: 2px; }

/* feed */
.cg-feed { display: flex; flex-direction: column; gap: 56px; max-width: 560px; margin: 0 auto; }
.feed-item .tile-cap { font-size: 19px; padding-top: 16px; }
.feed-caption { margin: 2px 4px 14px; color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.feed-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px; }

/* reels strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 18px; margin: 0 -18px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .tile { scroll-snap-align: center; }
@media (min-width: 1000px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* cinema */
.feature { display: block; width: 100%; text-align: left; color: inherit; }
.feature .tile-media { border-radius: 24px; }
.feature-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 20px 6px 0; }
.feature-cap small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.feature-cap h3 { margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.02; }

/* actions */
.act { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s var(--ease); }
.act svg { width: 16px; height: 16px; }
.act:active { transform: scale(.96); }
.act.primary { background: var(--accent); color: var(--btn-fg); box-shadow: none; }
.act.on { background: #3f9a52; color: #fff; box-shadow: none; }
.act.dark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.act.dark.primary { background: #fff; color: #111; box-shadow: none; }
.act.dark.on { background: #3f9a52; box-shadow: none; }

.cg-help { text-align: center; color: var(--muted); font-size: 14px; margin: 44px auto 0; max-width: 420px; line-height: 1.5; }
.cg-foot { text-align: center; padding: 60px 20px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 60px; }
.cg-foot .cg-studio { justify-content: center; font-size: 16px; margin-bottom: 6px; }
.cg-foot p { margin: 0; color: var(--muted); font-size: 13px; }
.cg-foot .made { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-size: 12px; color: var(--muted); text-decoration: none; opacity: .8; }
.cg-foot .made .mark { width: 16px; height: 16px; color: var(--muted); }
.cg-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* player */
.player { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.player-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; color: #fff; }
.player-top .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-top .t small { display: block; color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.24); }
.icon-btn svg { width: 19px; height: 19px; }
.player-stage { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.player-stage video { max-width: 100%; max-height: 100%; }
.player-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.player-nav.prev { left: 16px; } .player-nav.next { right: 16px; }
@media (max-width: 700px) { .player-nav { display: none; } }
.player-caption { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.5; margin: 0 auto; padding: 12px 20px 0; max-width: 640px; max-height: 76px; overflow: auto; white-space: pre-line; text-align: center; }
.player-bot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }

/* reels */
.reels { position: fixed; inset: 0; z-index: 200; background: #000; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.reel video { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .reel video.v { object-fit: cover; } }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 16%, transparent 58%, rgba(0,0,0,.75) 100%); }
.reel-info { position: absolute; left: 18px; right: 96px; bottom: calc(30px + env(safe-area-inset-bottom)); color: #fff; }
.reel-info small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.reel-info b { display: block; font-size: 18px; letter-spacing: -.02em; margin: 6px 0 6px; }
.reel-info p { margin: 0; font-size: 14px; line-height: 1.45; opacity: .88; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-acts { position: absolute; right: 12px; bottom: calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.act.round { flex-direction: column; gap: 6px; height: auto; padding: 0; box-shadow: none; background: none; color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.act.round svg { width: 50px; height: 50px; padding: 14px; border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s, transform .3s var(--spring); }
.act.round:active svg { transform: scale(.88); }
.act.round.primary { background: none; color: #fff; }
.act.round.primary svg { background: #fff; color: #111; }
.act.round.on { background: none; }
.act.round.on svg { background: #3f9a52; color: #fff; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.reel-progress i { display: block; height: 100%; width: 0; background: #fff; }
.reels-top { position: fixed; z-index: 201; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; color: #fff; pointer-events: none; }
.reels-top > * { pointer-events: auto; }
.reels-top .dots { flex: 1; display: flex; gap: 4px; margin-right: 8px; }
.reels-top .dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .3s; }
.reels-top .dots i.on { background: #fff; }
.reels-hint { position: fixed; z-index: 201; left: 50%; bottom: 130px; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.4); padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(10px); animation: bob 1.6s ease-in-out infinite; pointer-events: none; display: inline-flex; gap: 6px; align-items: center; }
.reels-hint svg { width: 15px; height: 15px; transform: rotate(180deg); }
@keyframes bob { 50% { transform: translate(-50%, -7px); } }
.tap-pause { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.tap-pause svg { width: 30px; height: 30px; margin-left: 4px; }
.tap-pause.show { opacity: 1; }

/* note sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s; }
.sheet { width: min(540px, 100%); background: var(--card); color: var(--fg); border-radius: 26px 26px 0 0; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up .35s var(--spring); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 26px; } }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
.sheet-grab { width: 38px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 16px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.sheet .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.sheet-prev { max-height: 150px; overflow: auto; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.sheet-prev p { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--fg) 6%, transparent); align-self: flex-start; max-width: 90%; }
.sheet .chip { background: var(--accent); color: var(--btn-fg); }
.sheet-time { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; cursor: pointer; }
.sheet-time input { accent-color: var(--accent); width: 16px; height: 16px; }
.sheet textarea { width: 100%; min-height: 110px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 14px; resize: vertical; font-size: 16px; line-height: 1.45; }
.sheet textarea:focus { outline: none; border-color: var(--accent); }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* gate */
.gate { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: var(--bg); }
.gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.5); transform: scale(1.2); }
.gate-box { position: relative; width: min(380px, 100%); text-align: center; color: var(--fg); display: flex; flex-direction: column; align-items: center; animation: rise .8s var(--ease) both; }
.gate-bg ~ .gate-box { color: #fff; }
.gate-box h1 { font-size: clamp(38px, 10vw, 58px); line-height: 1; margin: 0 0 26px; }
.gate-box .kicker { margin-bottom: 12px; }
.gate-lock { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); margin-bottom: 22px; }
.gate-lock svg { width: 24px; height: 24px; }
.gate-box input { width: 100%; height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.14); backdrop-filter: blur(10px); color: inherit; text-align: center; font-size: 16px; margin-bottom: 10px; outline: none; transition: border-color .2s; }
.gate-box input:focus { border-color: rgba(255,255,255,.7); }
.gate-box input::placeholder { color: inherit; opacity: .6; }
.gate-box .cg-btn { width: 100%; justify-content: center; height: 52px; font-size: 15px; background: #fff; color: #111; }
.gate-err { min-height: 20px; font-size: 13.5px; color: #ffc2b8; margin: 10px 0 0; }
.gate.shake .gate-box { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.missing { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.missing h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 8px; }

@media (max-width: 600px) {
  .cg-bar .t { display: none; }
  .cg-bar .cg-btn span { display: none; }
  .cg-bar .cg-btn { width: 36px; padding: 0; justify-content: center; }
  .cg-studio span { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
}

/* keep the studio logo visible on any background */
.cg.logo-light:is([data-theme="eucalyptus"], [data-theme="ivory"], [data-theme="sand"], [data-theme="bloom"]) :is(.cg-bar.solid .cg-studio img, .cg-foot .cg-studio img) { filter: brightness(0); opacity: .85; }
@media (max-width: 819px) { .cg.logo-light:is([data-theme="eucalyptus"], [data-theme="ivory"], [data-theme="sand"], [data-theme="bloom"]) .hero.landscape .hero-logo { filter: brightness(0); opacity: .85; } }
.cg.logo-dark .cg-bar:not(.solid) .cg-studio img, .cg.logo-dark .hero.portrait .hero-logo { filter: brightness(0) invert(1); }
@media (min-width: 820px) { .cg.logo-dark .hero.landscape .hero-logo { filter: brightness(0) invert(1); } }
.cg.logo-dark:is([data-theme="noir"], [data-theme="midnight"]) :is(.cg-bar.solid .cg-studio img, .cg-foot .cg-studio img) { filter: brightness(0) invert(1); }
.cg-foot .cg-studio img { height: 32px; }

/* =================== v6: favourites, review, book again, quality =================== */
.tile-fav { position: absolute; right: 10px; bottom: 34px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.28); backdrop-filter: blur(10px); color: #fff; opacity: 0; transform: scale(.85); transition: all .3s var(--spring); cursor: pointer; }
.tile-fav svg { width: 17px; height: 17px; }
.tile:hover .tile-fav, .tile-fav.on { opacity: 1; transform: none; }
@media (hover: none) { .tile-fav { opacity: 1; transform: none; } }
.tile-fav.on { background: #fff; color: #e0455f; }
.tile-fav.on svg { fill: currentColor; }
.act.faved svg { fill: #e0455f; color: #e0455f; }
.act.round.faved svg { background: #fff; color: #e0455f; fill: #e0455f; }
.cg-head-acts { display: flex; gap: 8px; align-items: center; }
.cg-chip { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); transition: all .2s; }
.cg-chip svg { width: 16px; height: 16px; color: #e0455f; fill: #e0455f; }
.cg-chip b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); font-size: 11.5px; display: grid; place-items: center; }
.cg-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.only-fav .tile:not(.is-fav):not(.feature) { display: none; }
.only-fav .feature:not(.is-fav) { display: none; }
@media (max-width: 600px) { .cg-head { flex-wrap: wrap; } .cg-head-acts .cg-btn span, .cg-chip span { display: none; } }

.cg-review { margin: 80px auto 0; max-width: 620px; text-align: center; padding: 44px 28px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cg-review h3 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 22px; line-height: 1.15; }
.stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.stars button { color: color-mix(in srgb, var(--fg) 22%, transparent); transition: transform .2s var(--spring), color .2s; }
.stars button svg { width: 32px; height: 32px; }
.stars button.on { color: #e3a73b; }
.stars button.on svg { fill: currentColor; }
.stars button:hover { transform: scale(1.12); }
.cg-review textarea { width: 100%; min-height: 110px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 14px; font-size: 16px; resize: vertical; line-height: 1.5; }
.cg-review textarea:focus, .rv-row input:focus { outline: none; border-color: var(--accent); }
.rv-row { display: flex; gap: 10px; margin-top: 10px; }
.rv-row input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 18px; font-size: 15px; }
@media (max-width: 500px) { .rv-row { flex-direction: column; } .rv-row .cg-btn { justify-content: center; } }
.rv-done svg { width: 34px; height: 34px; color: #e0455f; fill: #e0455f; margin: 0 auto 12px; }
.rv-done h3 { margin-bottom: 6px !important; }
.rv-done p { margin: 0; color: var(--muted); }

.cg-book { margin: 34px auto 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cg-book .cg-title { font-size: 24px; margin: 0; }
.cg-link { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.cg-link:hover { color: var(--fg); }

.q-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.q-btn svg { width: 14px; height: 14px; }
.q-btn svg:last-child { width: 12px; height: 12px; opacity: .7; }
.q-menu { position: fixed; z-index: 260; width: 250px; padding: 6px; border-radius: 16px; background: rgba(30,30,32,.94); backdrop-filter: blur(20px); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: pop .18s var(--ease); }
.q-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 8px 10px 6px; }
.q-menu button { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; color: #fff; }
.q-menu button:hover { background: rgba(255,255,255,.08); }
.q-menu button span { font-size: 14px; font-weight: 600; }
.q-menu button small { grid-column: 1; font-size: 12px; color: rgba(255,255,255,.5); }
.q-menu button svg { grid-row: 1 / span 2; grid-column: 2; width: 16px; height: 16px; color: var(--sage-300, #9cc2b5); }
.reels-top .q-btn { margin-right: 2px; }

/* =================== v7: logo size, glowing CTA, classy review, end card =================== */
.cg-studio img { height: calc(26px * var(--logo-s, 1)); max-width: calc(130px * var(--logo-s, 1)); }
.hero-logo { height: calc(46px * var(--logo-s, 1)); max-width: calc(200px * var(--logo-s, 1)); }
.cg-foot .cg-studio img { height: calc(32px * var(--logo-s, 1)); }

.hero-cta { position: relative; gap: 12px; height: 56px; padding: 0 26px 0 7px; background: rgba(255,255,255,.95); color: #111; font-size: 15px; letter-spacing: -.005em; box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.6); isolation: isolate; transition: transform .3s var(--spring), box-shadow .3s; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.hero-cta .cta-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; transition: transform .35s var(--spring); }
.hero-cta .cta-ic svg { width: 17px; height: 17px; }
.hero-cta.watch .cta-ic svg { width: 18px; height: 18px; margin-left: 3px; }
.hero-cta:hover .cta-ic { transform: scale(1.08); }
.hero-cta.watch::before { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0)); filter: blur(10px); animation: cta-glow 2.8s ease-in-out infinite; }
.hero-cta.watch .cta-ic { box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: cta-ring 2.8s ease-out infinite; }
@keyframes cta-glow { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.04); } }
@keyframes cta-ring { 0% { box-shadow: 0 0 0 0 rgba(17,17,17,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(17,17,17,0); } }
.hero.landscape .hero-cta { background: var(--accent); color: var(--btn-fg); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.hero.landscape .hero-cta .cta-ic { background: var(--btn-fg); color: var(--accent); }
@media (min-width: 820px) { .hero.landscape .hero-cta { background: rgba(255,255,255,.95); color: #111; } .hero.landscape .hero-cta .cta-ic { background: #111; color: #fff; } }

.cg-review { margin: 110px auto 0; max-width: 640px; text-align: center; padding: 0 8px; background: none; box-shadow: none; border-radius: 0; }
.rv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.rv-head span { flex: 1; height: 1px; background: var(--line); }
.rv-head p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cg-review h3 { font-size: clamp(38px, 6vw, 58px); line-height: 1; margin: 0 0 14px; }
.rv-sub { margin: 0 auto 30px; max-width: 420px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.cg-review .stars { gap: 10px; margin-bottom: 8px; }
.cg-review .stars button svg { width: 30px; height: 30px; stroke-width: 1.3; }
.cg-review .stars button { color: color-mix(in srgb, var(--fg) 25%, transparent); }
.cg-review .stars button.on, .cg-review .stars button.hov { color: #c9a24a; }
.cg-review .stars button.on svg, .cg-review .stars button.hov svg { fill: currentColor; }
.rv-rate { margin: 0 0 26px; font-family: var(--tf, var(--serif)); font-style: italic; font-size: 18px; color: var(--muted); min-height: 24px; }
.cg-review textarea { display: block; width: 100%; min-height: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 0 16px; text-align: center; font-family: var(--tf, var(--serif)); font-size: 22px; line-height: 1.45; resize: none; transition: border-color .3s; }
.cg-review textarea::placeholder { color: color-mix(in srgb, var(--fg) 35%, transparent); font-style: italic; }
.cg-review textarea:focus { border-color: var(--fg); }
.cg-review .rv-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 26px; text-align: left; }
.rv-name { flex: 1; max-width: 280px; }
.rv-name span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cg-review .rv-name input { width: 100%; height: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--fg); padding: 4px 0 10px; font-size: 16px; }
.cg-review .rv-name input:focus { outline: none; border-color: var(--fg); }
.rv-send { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px 0 24px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: transform .25s var(--spring), gap .3s; }
.rv-send svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 18%, transparent); }
.rv-send:hover { gap: 16px; }
@media (max-width: 520px) { .cg-review .rv-row { flex-direction: column; align-items: stretch; } .rv-name { max-width: none; } .rv-send { justify-content: space-between; } }
.rv-done { padding: 10px 0 0; }
.rv-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, #e0455f 12%, transparent); margin-bottom: 18px; }
.rv-mark svg { width: 28px; height: 28px; color: #e0455f; fill: #e0455f; margin: 0; }
.rv-done h3 { font-size: clamp(34px, 5vw, 48px) !important; margin-bottom: 8px !important; }

.end-card { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; animation: fadein .4s; }
.end-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(.4); transform: scale(1.2); }
.end-in { position: relative; padding: 24px; max-width: 520px; }
.end-in .kicker { color: rgba(255,255,255,.7); margin-bottom: 10px; }
.end-in h3 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; }
.end-sub { color: rgba(255,255,255,.7); margin: 0 0 24px; font-size: 14.5px; }
.end-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.end-more { display: flex; gap: 22px; justify-content: center; margin-top: 22px; }
.end-more button { display: inline-flex; gap: 6px; align-items: center; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.end-more button:hover { color: #fff; }
.end-more svg { width: 15px; height: 15px; }

/* =================== v9 =================== */
/* label + button sizes */
.hero .kicker { font-size: calc(12px * var(--ks, 1)); }
.hero-cta { height: calc(56px * var(--cs, 1)); padding: 0 calc(26px * var(--cs, 1)) 0 calc(7px * var(--cs, 1)); font-size: calc(15px * var(--cs, 1)); }
.hero-cta .cta-ic { width: calc(42px * var(--cs, 1)); height: calc(42px * var(--cs, 1)); }

/* logo positions in the top bar */
.cg-bar.logo-center .cg-studio { position: absolute; left: 50%; transform: translateX(-50%); }
.cg-bar.logo-center .t { display: none; }
.cg-bar.logo-right .cg-studio { order: 3; }
.cg-bar.logo-right .sp { order: 2; }
.cg-bar.logo-right .cg-btn { order: 0; }
.cg-bar.logo-right .t { order: 1; }

/* notices */
.cg-notice { display: flex; gap: 10px; align-items: center; margin: 0 6px 30px; padding: 14px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.cg-notice svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cg-notice.warm { background: color-mix(in srgb, #e3a73b 10%, var(--card)); }
.cg-notice.warm svg { color: #c48a24; }

/* compact review, no stars */
.cg-review { margin: 90px auto 0; max-width: 520px; }
.cg-review .kicker { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.cg-review h3 { font-size: clamp(28px, 4.4vw, 38px); margin: 0 0 22px; }
.cg-review textarea { font-size: 19px; padding: 6px 0 12px; min-height: 0; overflow: hidden; }
.cg-review .rv-row { align-items: center; margin-top: 18px; gap: 12px; }
.cg-review .rv-row input { flex: 1; min-width: 0; height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--fg); padding: 0; font-size: 15px; }
.cg-review .rv-row input:focus { outline: none; border-color: var(--fg); }
.rv-send { height: 44px; padding: 0 6px 0 18px; gap: 10px; font-size: 13.5px; flex-shrink: 0; }
.rv-send svg { width: 32px; height: 32px; }
@media (max-width: 520px) { .cg-review .rv-row { flex-direction: row; } .rv-send { justify-content: center; } }
.rv-done .cg-title { font-size: clamp(28px, 4vw, 36px); margin: 0 0 6px; }
.rv-done p { margin: 0; color: var(--muted); }
.rv-mark { width: 52px; height: 52px; margin-bottom: 14px; }
.rv-mark svg { width: 22px; height: 22px; }

/* booking card in the footer */
.cg-book { margin: 40px auto 10px; max-width: 520px; padding: 44px 26px 36px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); gap: 0; }
.cg-book .kicker { color: var(--muted); font-size: 11px; margin: 0 0 12px; }
.cg-book .bk-line { font-size: clamp(26px, 4vw, 34px); line-height: 1.12; margin: 0 0 26px; }
.bk-btn { display: inline-flex; align-items: center; gap: 16px; height: 58px; padding: 0 7px 0 28px; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--fg) 60%, transparent); transition: transform .35s var(--spring), box-shadow .35s, gap .35s var(--ease); }
.bk-btn i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--btn-fg); transition: transform .35s var(--spring); }
.cg[data-theme="ivory"] .bk-btn i { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.bk-btn i svg { width: 18px; height: 18px; }
.bk-btn:hover { transform: translateY(-2px); gap: 22px; box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--fg) 70%, transparent); }
.bk-btn:hover i { transform: rotate(-45deg); }
.bk-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; }
.bk-links:empty { display: none; }
.bk-links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
.bk-links a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent); }
.bk-links svg { width: 17px; height: 17px; }

/* quality menu as a bottom sheet on phones */
.q-menu.sheet-mode { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto; width: auto; border-radius: 20px; padding: 8px; animation: sheet-up .3s var(--spring); }
.q-menu.sheet-mode button { padding: 12px; }

/* snap */
.snap-flash { position: absolute; inset: 0; z-index: 5; background: #fff; pointer-events: none; animation: snap .5s ease-out forwards; }
@keyframes snap { from { opacity: .85; } to { opacity: 0; } }
.np-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #fff; padding: 30px; }
.np-msg svg { width: 40px; height: 40px; color: rgba(255,255,255,.6); }
.np-msg b { font-size: 18px; }
.np-msg span { max-width: 380px; color: rgba(255,255,255,.65); font-size: 14px; line-height: 1.5; }
