:root {
  --ink: #92142C;
  --paper: #F6D7E0;
  --rose: #92142C;
  --champagne: #92142C;
  --soft-rose: #F6D7E0;
  --photo-bg: #F9F9F9;
  --muted: #a65b6b;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }

.taplink-body { overflow: hidden; }
.taplink-screen { background-color: var(--photo-bg); background-image: url("public/taplink-dancer.webp"); background-position: center center; background-size: cover; display: flex; flex-direction: column; height: 100svh; min-height: 560px; overflow: hidden; padding: 24px var(--gutter) 18px; position: relative; }
.taplink-screen::before { display: none; }

.tap-header, .tap-footer { align-items: center; display: flex; justify-content: space-between; position: relative; z-index: 2; }
.brand { font-family: var(--body); font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.brand-dot { color: var(--rose); }
.location, .tap-footer, .eyebrow, .action-label, .action-note, .portrait-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.location { color: var(--muted); margin: 0; }
.location span, .tap-footer span span { color: var(--rose); padding: 0 4px; }
.top-icons { align-items: center; display: flex; gap: 16px; }
.top-icons a { color: var(--ink); display: inline-flex; transition: color 180ms ease, transform 180ms ease; }
.top-icons a:hover { color: var(--rose); transform: translateY(-2px); }
.top-icons svg, .socials svg { fill: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; width: 17px; }
.icon-fill { fill: currentColor; stroke: none; }

.taplink-grid { align-items: center; display: grid; flex: 1; gap: clamp(24px, 5vw, 82px); grid-template-columns: minmax(300px, 1.05fr) minmax(300px, .9fr); margin: auto; max-width: 1120px; position: relative; width: 100%; z-index: 1; }
.tap-identity { position: relative; transform: translateY(-90px); z-index: 2; }
.eyebrow { color: var(--rose); margin: 0 0 25px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.065em; line-height: .77; margin: 0; }
h1 { font-size: clamp(62px, 8.3vw, 138px); }
h1 em { color: var(--paper); font-weight: 500; }
.tap-lead { color: var(--ink); font-size: clamp(14px, 1.2vw, 17px); line-height: 1.42; margin: 32px 0 0; max-width: 300px; }

.portrait-stage { display: none; }
.portrait-stage::before { background: var(--soft-rose); border-radius: 50% 50% 3% 3%; bottom: 4%; content: ""; height: 78%; position: absolute; width: min(19vw, 280px); }
.portrait-stage img { align-self: end; height: 95%; max-height: 680px; object-fit: contain; position: relative; width: auto; z-index: 1; }
.portrait-label { bottom: 8%; color: #9d6f7c; position: absolute; right: 0; transform: rotate(-90deg) translateX(100%); transform-origin: bottom right; z-index: 2; }
.portrait-line { background: var(--rose); height: 1px; left: -30px; opacity: .6; position: absolute; top: 40%; width: 60px; }

.tap-actions { align-self: center; max-width: 390px; transform: translate(clamp(0px, 12vw, 160px), -90px); width: 100%; }
.action-label { color: var(--muted); margin: 0 0 13px; }
.action-list { display: grid; gap: 10px; }
.tap-button { align-items: center; background: rgba(246, 215, 224, .7); border: 1px solid rgba(146, 20, 44, .24); border-radius: 9px; cursor: pointer; display: flex; font-size: 13px; gap: 12px; justify-content: space-between; min-height: 54px; padding: 7px 14px 7px 18px; text-align: left; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; width: 100%; }
.tap-button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.tap-button-main { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tap-button-main:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.tap-button-video { padding-left: 7px; }
.button-thumb { display: block; flex: 0 0 64px; height: 44px; position: relative; width: 64px; }
.button-thumb img { background: var(--photo-bg); border: 1px solid rgba(249, 249, 249, .94); box-shadow: 0 3px 10px rgba(49, 13, 20, .18); height: 100%; object-fit: cover; position: absolute; }
.button-thumb-back { height: 31px !important; left: 1px; top: 8px; transform: rotate(-5deg); width: 22px; }
.button-thumb-front { height: 44px !important; left: 16px; top: 0; transform: rotate(3deg); width: 29px; }
.button-arrow { align-items: center; display: flex; height: 22px; justify-content: center; width: 22px; }
.button-arrow svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; width: 18px; }
.button-play { align-items: center; background: var(--ink); border-radius: 50%; color: #fff; display: flex; height: 32px; justify-content: center; width: 32px; }
.button-play svg { fill: currentColor; height: 15px; transform: translateX(-1px); width: 15px; }
.action-note { color: var(--muted); margin: 18px 0 0; }
.tap-footer { color: var(--muted); }
.tap-footer span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.reels-viewer { align-items: center; background: var(--photo-bg); display: flex; inset: 0; justify-content: center; opacity: 0; pointer-events: none; position: fixed; transition: opacity 240ms ease; z-index: 20; }
.reels-viewer.is-open { opacity: 1; pointer-events: auto; }
.reels-stage { background: #111; height: min(92svh, 920px); overflow: hidden; position: relative; width: min(51.75svh, 520px); }
.reels-rail { -ms-overflow-style: none; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: y mandatory; touch-action: pan-y; }
.reels-rail::-webkit-scrollbar { display: none; }
.reel { height: 100%; overflow: hidden; position: relative; scroll-snap-align: start; scroll-snap-stop: always; }
.reel video { background: #111; height: 100%; object-fit: cover; width: 100%; }
.reels-progress { display: grid; gap: 5px; grid-template-columns: repeat(2, 1fr); left: 16px; position: absolute; right: 16px; top: 16px; z-index: 2; }
.reels-progress span { background: rgba(249, 249, 249, .4); height: 2px; overflow: hidden; }
.reels-progress span.is-active { background: var(--photo-bg); }
.reels-control, .reel-nav { align-items: center; background: rgba(249, 249, 249, .92); border: 0; color: var(--ink); cursor: pointer; display: flex; justify-content: center; position: absolute; z-index: 3; }
.reels-control { border-radius: 50%; height: 36px; top: 31px; width: 36px; }
.reels-control svg, .reel-nav svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 18px; }
.reels-close { left: 16px; }
.reels-sound { right: 16px; }
.reel-caption { bottom: 23px; color: var(--photo-bg); font-size: 10px; font-weight: 600; left: 18px; letter-spacing: .08em; margin: 0; position: absolute; right: 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .72); text-transform: uppercase; z-index: 2; }
.reel-caption span { float: right; }
.reel-nav { background: transparent; color: var(--photo-bg); height: 44px; left: 50%; transform: translateX(-50%); width: 80px; }
.reel-nav-prev { top: 68px; }
.reel-nav-next { bottom: 54px; }
.reels-hint { bottom: 11px; color: rgba(249, 249, 249, .72); font-size: 8px; left: 0; letter-spacing: .11em; margin: 0; position: absolute; right: 0; text-align: center; text-transform: uppercase; z-index: 2; }

.consent-popover { align-items: end; display: flex; inset: 0; justify-content: end; opacity: 0; padding: 24px; pointer-events: none; position: fixed; transition: opacity 180ms ease; z-index: 10; }
.consent-popover.is-visible { opacity: 1; }
.consent-popover-card { background: var(--paper); border: 1px solid rgba(146, 20, 44, .18); border-radius: 14px; box-shadow: 0 14px 32px rgba(49, 13, 20, .12); max-width: 320px; padding: 18px; pointer-events: auto; width: 100%; }
.consent-kicker { color: var(--muted); font-size: 8px; letter-spacing: .1em; margin: 0 0 6px; text-transform: uppercase; }
.consent-popover h2 { color: var(--ink); font-size: 31px; line-height: .88; }
.consent-copy { color: var(--ink); font-size: 10px; line-height: 1.5; margin: 11px 0 14px; max-width: 270px; }
.consent-actions { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.consent-button { border: 1px solid var(--ink); border-radius: 8px; cursor: pointer; font-family: var(--body); font-size: 9px; font-weight: 600; min-height: 38px; padding: 8px 9px; transition: background 180ms ease, color 180ms ease; }
.consent-button-primary { background: var(--ink); color: var(--paper); }
.consent-button-secondary { background: var(--paper); color: var(--ink); }
.consent-button:hover { background: var(--ink); color: var(--paper); }

.lead-modal { align-items: center; background: rgba(249, 249, 249, .58); display: flex; inset: 0; justify-content: center; opacity: 0; padding: 20px; pointer-events: none; position: fixed; transition: opacity 180ms ease; z-index: 30; }
.lead-modal.is-open { opacity: 1; pointer-events: auto; }
.lead-modal.is-success [data-lead-intro] { display: none; }
.lead-modal-card { background: var(--photo-bg); border: 1px solid rgba(146, 20, 44, .22); box-shadow: 0 20px 60px rgba(49, 13, 20, .16); max-width: 370px; padding: 28px; position: relative; width: 100%; }
.lead-close { align-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; display: flex; height: 32px; justify-content: center; padding: 0; position: absolute; right: 13px; top: 13px; width: 32px; }
.lead-close svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.4; width: 18px; }
.lead-kicker { color: var(--muted); font-size: 9px; letter-spacing: .11em; margin: 0 0 11px; text-transform: uppercase; }
.lead-modal h2 { color: var(--ink); font-size: 45px; line-height: .8; max-width: 245px; }
.lead-copy { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 17px 0 22px; }
.lead-form { display: grid; gap: 9px; }
.lead-form[hidden] { display: none; }
.lead-success { display: grid; gap: 0; }
.lead-success[hidden] { display: none; }
.lead-success .lead-copy { margin-bottom: 25px; }
.lead-form label { color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.lead-form input:not(.lead-trap) { background: var(--paper); border: 1px solid rgba(146, 20, 44, .28); border-radius: 0; color: var(--ink); font: 500 13px/1.2 var(--body); min-height: 48px; outline: none; padding: 12px 13px; width: 100%; }
.lead-form input:not(.lead-trap)::placeholder { color: rgba(146, 20, 44, .5); }
.lead-form input:not(.lead-trap):focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(246, 215, 224, .75); }
.lead-trap { height: 1px; left: -9999px; opacity: 0; position: absolute; width: 1px; }
.lead-message { font-size: 10px; line-height: 1.35; margin: 1px 0; min-height: 14px; }
.lead-message.is-error { color: var(--ink); }
.lead-message.is-success { color: #4a573e; }
.lead-submit { background: var(--ink); border: 1px solid var(--ink); border-radius: 0; color: var(--paper); cursor: pointer; font: 600 11px/1 var(--body); min-height: 48px; padding: 12px; transition: background 180ms ease, color 180ms ease; }
.lead-submit:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.lead-submit:disabled { cursor: wait; opacity: .7; }

@media (max-width: 980px) {
  .taplink-grid { gap: 22px; grid-template-columns: minmax(250px, 1fr) minmax(260px, .95fr); }
  h1 { font-size: clamp(56px, 8vw, 88px); }
  .portrait-stage { min-height: 390px; }
}

@media (max-width: 680px) {
  .taplink-screen { background-color: var(--photo-bg); background-position: 50% bottom; background-repeat: no-repeat; background-size: auto 68%; min-height: 620px; padding: 18px 28px 14px; }
  .taplink-screen::before { display: none; }
  .location { display: none; }
  .top-icons { gap: 14px; }
  .taplink-grid { align-content: center; display: grid; gap: 16px; grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; transform: translateY(-120px); }
  .tap-identity { max-width: 340px; text-align: center; width: 100%; }
  .tap-identity { transform: none; }
  .eyebrow { font-size: 9px; margin-bottom: 14px; }
  h1 { font-size: clamp(54px, 16.2vw, 78px); line-height: .76; }
  .tap-lead { font-size: 12px; line-height: 1.35; margin: 18px auto 0; max-width: 280px; }
  .tap-actions { justify-self: center; margin-left: 0; max-width: 316px; transform: translateY(66px); width: 100%; }
  .action-label { font-size: 9px; margin-bottom: 10px; text-align: left; }
  .action-list { gap: 8px; grid-template-columns: 1fr 1fr; }
  .tap-button { border-radius: 8px; font-size: 11px; min-height: 44px; padding: 7px 12px; }
  .tap-button-main, .tap-button-video { grid-column: span 2; }
  .tap-button-video { padding-left: 10px; }
  .button-thumb { flex-basis: 54px; height: 36px; width: 54px; }
  .button-thumb-back { height: 26px !important; top: 7px; width: 18px; }
  .button-thumb-front { height: 36px !important; left: 13px; width: 24px; }
  .button-play { height: 28px; width: 28px; }
  .action-note { font-size: 8px; margin: 9px 0 0; text-align: center; }
  .tap-footer span { font-size: 8px; }
  .consent-popover { padding: 14px; }
  .consent-popover-card { max-width: 298px; padding: 16px; }
  .consent-popover h2 { font-size: 29px; }
  .consent-copy { font-size: 10px; margin: 10px 0 13px; }
  .lead-modal { padding: 18px; }
  .lead-modal-card { max-width: 326px; padding: 24px 20px 21px; }
  .lead-modal h2 { font-size: 40px; }
  .reels-stage { height: 100svh; height: 100dvh; width: 100vw; }
  .reel video { object-fit: contain; }
  .reels-progress { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); top: calc(env(safe-area-inset-top) + 16px); }
  .reels-control { top: calc(env(safe-area-inset-top) + 31px); }
  .reels-close { left: max(16px, env(safe-area-inset-left)); }
  .reels-sound { right: max(16px, env(safe-area-inset-right)); }
  .reel-caption { bottom: calc(env(safe-area-inset-bottom) + 23px); }
  .reels-hint { bottom: calc(env(safe-area-inset-bottom) + 11px); }
  .reel-nav { display: none; }
}

@media (max-height: 700px) and (max-width: 680px) {
  .taplink-screen { padding-top: 12px; }
  .taplink-grid { gap: 8px; }
  h1 { font-size: clamp(48px, 14vw, 66px); }
  .tap-lead { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
