:root {
  color-scheme: dark;
  --bg: #101215;
  --surface: #191c21;
  --white: #f5f2ed;
  --muted: #b6b6b9;
  --quiet: #96979e;
  --line: #34363d;
  --accent: #ddc8a9;
  --accent-hover: #efdfc7;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--white); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.ambient { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0f0b19b3, #0f0b19d4), url("assets/elena-bedroom-v1-1600.webp") center 50% / cover no-repeat; }
.page { position: relative; width: 100%; max-width: 474px; margin: auto; padding: 0 22px 22px; }

.masthead { display: flex; align-items: center; justify-content: space-between; height: 79px; border-bottom: 1px solid #303239; }
.wordmark { font: normal 35px/1 Georgia, 'Times New Roman', serif; letter-spacing: -1.8px; }
.wordmark span { display: inline-block; color: var(--accent); font: 20px Georgia, serif; vertical-align: top; margin: 1px 0 0 5px; letter-spacing: 0; }
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -7px; border-radius: 50%; color: #d9d9dc; transition: background .2s; }
.social-icon:hover { background: #ffffff09; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.solid { fill: currentColor; stroke: none; }

.intro { padding: 31px 0 28px; text-align: center; }
.intro > .eyebrow { margin: 0 0 13px; font-size: 9px; font-weight: 600; letter-spacing: 2.1px; color: var(--accent); }
h1 { margin: 0 0 12px; font: normal 37px/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -1.25px; text-wrap: balance; }
.intro > p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.photo-card { display: block; position: relative; width: 100%; height: auto; padding: 0; border: 1px solid #65666b70; border-radius: 24px; overflow: hidden; background: #17141e; text-align: left; box-shadow: 0 22px 65px #0004; isolation: isolate; transition: transform .25s, border-color .25s, box-shadow .25s; }
.photo-card img { display: block; position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; transition: filter .25s ease; }
.photo-card:after { content: none; }
.age-tag { position: absolute; z-index: 2; top: 17px; right: 17px; padding: 7px 11px; border: 1px solid #f5f2ed65; border-radius: 99px; background: #10121560; color: var(--white); backdrop-filter: blur(10px); font-size: 10px; font-weight: 600; letter-spacing: .6px; }
.photo-copy { display: block; position: relative; z-index: 2; padding: 16px 22px 18px; border-top: 1px solid #ffffff0a; background: #17141e; }
.photo-kicker { display: block; margin-bottom: 8px; color: var(--accent); font-size: 9px; letter-spacing: 2.2px; font-weight: 600; }
.photo-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--white); font: normal 28px/1.12 Georgia, serif; letter-spacing: -.65px; }
.circle-arrow { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent); color: #17191d; font: normal 24px Arial, sans-serif; transition: background .2s, transform .2s; }
.photo-subtitle { display: block; margin-top: 7px; color: #c3c2c5; font-size: 12px; line-height: 1.5; }

.social-row { display: flex; align-items: center; gap: 14px; padding: 17px 19px; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #191c2159; text-decoration: none; transition: background .2s, border-color .2s; }
.social-row svg { width: 24px; height: 24px; flex-shrink: 0; color: #e3e1df; }
.social-row strong { display: block; margin-bottom: 6px; color: #e8e6e2; font-size: 12px; font-weight: 500; }
.social-row small { color: var(--muted); font-size: 10px; letter-spacing: .05px; }
.row-arrow { margin-left: auto; color: #c8c6c2; font-size: 21px; }
footer { display: flex; justify-content: center; gap: 9px; padding-top: 28px; color: var(--quiet); font-size: 10px; letter-spacing: .25px; }

.closer-intro { position: relative; padding-top: 48px; }
.back { position: absolute; left: -9px; top: 4px; padding: 12px 9px; min-height: 44px; color: var(--muted); background: transparent; border: 0; font-size: 11px; }
.second-card img { object-position: 50% 90%; }
.under-card { margin: 23px 0 0; text-align: center; color: var(--muted); font: italic 17px Georgia, serif; }
.under-card span { color: var(--accent); margin-left: 4px; }
.screen { animation: reveal .35s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

dialog { width: min(430px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; padding: 0; border: 1px solid #51535c; border-radius: 27px; background: var(--surface); color: var(--white); box-shadow: 0 30px 120px #000a; }
dialog::backdrop { background: #07090cbf; backdrop-filter: blur(14px); }
dialog[open] { animation: modal-in .24s ease; }
.gate-inner { position: relative; padding: 42px 29px 27px; text-align: center; }
.close { position: absolute; top: 8px; right: 9px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font: normal 29px Arial, sans-serif; }
.gate-eyebrow { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 2.7px; }
.age-mark { margin: 29px 0 23px; color: var(--white); font: normal 91px/.95 Georgia, serif; letter-spacing: -5px; }
.age-mark span { display: inline-block; vertical-align: top; color: var(--accent); font-size: 48px; line-height: 1.2; letter-spacing: 0; }
h2 { margin: 0 0 15px; font: normal 28px/1.18 Georgia, serif; letter-spacing: -.55px; text-wrap: balance; }
#gate-description { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.75; text-wrap: pretty; }
.continue { display: flex; align-items: center; justify-content: center; gap: 17px; width: 100%; min-height: 57px; padding: 17px 15px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: #18191c; text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.continue span { font-size: 19px; font-weight: 400; }
.decline { display: block; width: 100%; min-height: 44px; margin: 9px auto 0; padding: 13px; border: 0; background: transparent; color: #c5c4c8; font-size: 11px; }
.decline:hover { text-decoration: underline; }
.gate-note { margin: 14px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.6; }
body.modal-open { overflow: hidden; }

@media (hover: hover) {
  .photo-card:hover { transform: translateY(-3px); border-color: #ddc8a985; box-shadow: 0 27px 75px #0006; }
  .photo-card:hover img { filter: brightness(1.025); }
  .photo-card:hover .circle-arrow { background: var(--accent-hover); transform: rotate(7deg); }
  .social-row:hover { background: #22262db0; border-color: #565962; }
  .continue:hover { background: var(--accent-hover); transform: translateY(-1px); }
}
@media (min-width: 900px) { .page { padding-top: 14px; } }
@media (max-width: 380px) {
  .page { padding-right: 17px; padding-left: 17px; }
  .masthead { height: 73px; }
  .intro { padding: 27px 0 24px; }
  h1 { font-size: 33px; }
  .photo-copy { padding-right: 19px; padding-left: 19px; }
  .photo-title { font-size: 27px; }
  .circle-arrow { width: 39px; height: 39px; }
  .social-row { padding-right: 15px; padding-left: 15px; gap: 11px; }
  .social-row small { font-size: 9px; }
  .closer-intro { padding-top: 46px; }
  .gate-inner { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 520px) {
  .ambient { background-position: center, 22% center; }
  dialog { width: 100%; max-width: none; max-height: 92svh; margin: auto auto 0; border-bottom: 0; border-radius: 27px 27px 0 0; }
  .gate-inner { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
