/* ElinaSabroso — mobile-first (portrait) stylesheet */
:root {
  --bg: #2a211b;
  --bg-2: #362a22;
  --bg-3: #43342a;
  --cream: #f4eee4;
  --muted: #cbbba8;
  --faint: #8f7f6e;
  --accent: #d4a373;
  --accent-ink: #2a211b;
  --line: rgba(244, 238, 228, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --radius: 14px;
  --tabbar: 64px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 400 16px/1.65 var(--sans);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 11vw, 5rem); }
h2 { font-size: clamp(2rem, 8vw, 3.25rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.lead { font-size: 1.1rem; color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-2); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 700 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--cream); color: var(--cream); background: transparent; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--cream); color: var(--bg); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--cream); border-color: var(--cream); }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.btn-row .btn { width: 100%; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg) url("/images/gate.svg") center / cover no-repeat;
}
.age-gate::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(30, 23, 18, .55); }
.age-gate__box { position: relative; max-width: 460px; text-align: center; }
.age-gate__brand { font-family: var(--serif); font-size: clamp(2.75rem, 13vw, 4.5rem); font-weight: 600; margin: 0 0 .25em; }
.age-gate__text { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.age-gate .btn-row { max-width: 320px; margin: 0 auto; }
.age-gate__leave { background: none; border: 0; color: var(--faint); font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 12px; }
html.age-ok .age-gate { display: none; }
html:not(.age-ok) body { overflow: hidden; }
html:not(.age-ok) .site { filter: blur(14px); pointer-events: none; user-select: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 var(--gutter);
  background: rgba(42, 33, 27, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header--overlay { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(20, 15, 12, .55), transparent); border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { font: 600 1.6rem/1 var(--serif); text-decoration: none; letter-spacing: .02em; }
.nav-desktop { display: none; }

/* Bottom tab bar (thumb-friendly, portrait) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(30, 23, 18, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--faint); font: 600 .68rem/1 var(--sans); letter-spacing: .06em; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 20, 16, .95) 8%, rgba(26, 20, 16, .15) 55%, rgba(26, 20, 16, .35)); }
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter) calc(var(--tabbar) + 40px); width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__content p { color: var(--muted); font-size: 1.05rem; max-width: 34ch; }
.page-hero { padding: 48px 0 24px; }

/* ---------- Profile cards (Her / Him / Together) ---------- */
.profiles { display: grid; gap: 14px; }
.profile-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; aspect-ratio: 4 / 5; }
.profile-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.profile-card:hover img { transform: scale(1.04); }
.profile-card__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 20px; background: linear-gradient(transparent, rgba(20, 15, 12, .85)); }
.profile-card__label strong { display: block; font: 600 2rem/1 var(--serif); }
.profile-card__label span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- Photo grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.grid__item { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--bg-3); cursor: zoom-in; border: 0; padding: 0; }
.grid__item img { width: 100%; height: 100%; object-fit: cover; }
.grid__item--tall { grid-row: span 2; aspect-ratio: auto; }
.grid__item[hidden] { display: none; }

/* Filter chips */
.chips { position: sticky; top: 56px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); margin: 0 calc(var(--gutter) * -1) 12px; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--bg); border-color: var(--cream); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; display: none; background: #0e0a08; touch-action: pan-y; }
.lightbox.is-open { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 100svh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox button { position: absolute; background: rgba(0, 0, 0, .35); border: 0; color: var(--cream); width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: .8rem; letter-spacing: .15em; color: var(--muted); }

/* ---------- About ---------- */
.person { display: grid; gap: 24px; margin-bottom: 56px; }
.person__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.facts b { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip img { flex: 0 0 62%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; scroll-snap-align: start; }

/* ---------- Lists / cards ---------- */
.cards { display: grid; gap: 14px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 0; }
.areas li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 600 1.35rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.6rem var(--sans); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--cream);
  font: 400 16px/1.4 var(--sans); /* 16px stops iOS zoom */
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--faint); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }
.footer .brand { display: inline-block; margin-bottom: 12px; color: var(--cream); }
.footer a { color: var(--muted); }
.footer p { margin-bottom: .6em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .profile-card img { transition: none; }
}

/* ---------- Larger screens (secondary) ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .profiles { grid-template-columns: repeat(3, 1fr); }
  .btn-row { flex-direction: row; justify-content: center; }
  .btn-row .btn { width: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .strip img { flex-basis: 32%; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .header { justify-content: space-between; height: 68px; }
  .chips { top: 68px; }
  .nav-desktop { display: flex; gap: 28px; }
  .nav-desktop a { text-decoration: none; font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--cream); }
  .hero__content { padding-bottom: 80px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .person { grid-template-columns: 5fr 7fr; align-items: center; gap: 56px; }
  .person--flip .person__photo { order: 2; }
  .section { padding: 96px 0; }
  /* Keep the hero portrait-shaped on wide screens instead of cropping to a landscape strip */
  .hero__img { left: auto; width: min(56.25vh, 50%); }
  .hero::after { background: linear-gradient(to right, rgba(26, 20, 16, 1) 45%, rgba(26, 20, 16, .1) 75%), linear-gradient(to top, rgba(26, 20, 16, .8), transparent 40%); }
  .hero { align-items: center; }
}

/* Overlay header turns solid after scrolling past the top */
.header--overlay.is-scrolled { background: rgba(42, 33, 27, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
