/* Bhargava Stays LLP — site.css (design v3, Apple-style corporate). Tokens: DESIGN.md. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2-variations"), url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --mist: #F5F5F7;
  --black: #000000;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-inv: #F5F5F7;
  --text-inv-2: #A1A1A6;
  --line: #D2D2D7;
  --slot: #E8E8ED;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 48px);
  --sec: clamp(88px, 11vw, 160px);
  --narrow: 980px;
  --wide: 1440px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid #0071E3; outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--text); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Layout helpers ---------- */
.narrow { max-width: calc(var(--narrow) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.narrow-wide { max-width: calc(1180px + 2 * var(--pad)); margin-left: auto; margin-right: auto; padding: 0 var(--pad); }
.wide { max-width: calc(var(--wide) + 2 * var(--pad)); margin-left: auto; margin-right: auto; padding: 0 var(--pad); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-2); }

/* ---------- Global nav ---------- */
.gnav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.gnav-row { max-width: calc(1080px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.gnav-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.gnav-links a { font-size: 13px; color: rgba(29, 29, 31, 0.8); text-decoration: none; padding: 16px 0; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { color: var(--text); }
.gnav-links a[aria-current="page"] { font-weight: 600; }
.gnav-menu { display: none; position: relative; }
.gnav-menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 10px 4px; min-height: 44px; display: flex; align-items: center; }
.gnav-menu summary::-webkit-details-marker { display: none; }
.gnav-menu nav { position: fixed; left: 0; right: 0; top: 52px; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 24px; }
.gnav-menu ul { list-style: none; margin: 0; padding: 0; }
.gnav-menu a { display: block; padding: 12px 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
@media (max-width: 760px) { .gnav-links { display: none; } .gnav-menu { display: block; } }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--tight { padding: 12px 0; }
.sec--mist { background: var(--mist); }
.sec--black { background: var(--black); color: var(--text-inv); }
.sec--black a:not(.pill) { color: var(--text-inv); }
.sec--black :focus-visible { outline-color: #2997FF; }

.display { font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
.headline { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin-top: 24px; max-width: 760px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; font-weight: 500; letter-spacing: -0.012em; color: var(--text-2); }
.lead--inv { color: var(--text-inv-2); }
.more { margin-top: 48px; }

.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.actions.center { justify-content: center; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 980px; background: var(--text); color: var(--white); font-size: 17px; font-weight: 500; text-decoration: none; }
.pill:hover { background: #3A3A3C; }
.pill--light { background: var(--white); color: var(--text); }
.pill--light:hover { background: #E8E8ED; }
.chev { font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.chev::after { content: "\203A"; margin-left: 6px; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }
.chev:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-bottom: 0; }
.hero-media { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Image slots ---------- */
.slot { position: relative; margin: 0; background: var(--slot); overflow: hidden; width: 100%; }
.slot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.slot figcaption { position: absolute; left: 16px; bottom: 14px; max-width: calc(100% - 32px); font-size: 12px; line-height: 1.35; color: #FFFFFF; background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 5px 10px; border-radius: 980px; }
.slot--plain { background: transparent; }
.slot--plain figcaption { position: static; display: block; margin-top: 12px; background: none; color: var(--text-2); padding: 0; font-size: 14px; border-radius: 0; }
.slot--plain img { object-fit: contain; }
.slot-label { position: absolute; inset: auto 24px 20px 24px; font-size: 13px; line-height: 1.4; color: var(--text-2); max-width: 520px; }
.slot--dark { background: #1C1C1E; }
.slot--dark .slot-label { color: #8E8E93; }
.slot--tile { border-radius: var(--radius); }
.slot--in-tile { margin-top: auto; }

/* ---------- Facts ---------- */
.facts { list-style: none; margin: 72px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--mist); border-radius: var(--radius); padding: 48px 40px; }
.fact-big { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.fact p:not(.fact-big) { color: var(--text-2); font-size: 17px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } .fact { padding: 36px 28px; } }

/* ---------- Pinned steps ---------- */
.pinned { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pinned-media { position: sticky; top: 96px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 0 0 clamp(56px, 8vh, 96px); }
.step:last-child { padding-bottom: 0; }
.step-n { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.step h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.028em; }
.step p { margin-top: 16px; font-size: 19px; line-height: 1.47; color: var(--text-2); max-width: 30em; }
@media (max-width: 960px) {
  .pinned { grid-template-columns: 1fr; }
  .pinned-media { position: static; }
}

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 72px; }
.sec--tight .tiles { margin-top: 0; }
.tile { background: var(--mist); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 640px; }
.tile--white { background: var(--white); }
.tile-text { padding: clamp(40px, 4vw, 56px) clamp(28px, 4vw, 56px) 40px; text-align: center; }
.tile-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.028em; }
.tile-text p { margin-top: 14px; color: var(--text-2); max-width: 34em; margin-left: auto; margin-right: auto; }
.tile-places { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.tile-places li { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.tile-places .muted { font-size: 15px; font-weight: 400; margin-left: 8px; letter-spacing: 0; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- Statement (black) ---------- */
.terms { margin-top: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 6vw, 96px); }
.terms h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 14px; }
.terms p { font-size: 19px; line-height: 1.5; color: var(--text-inv-2); }
.terms a { color: var(--text-inv); }
@media (max-width: 860px) { .terms { grid-template-columns: 1fr; } }

/* ---------- People ---------- */
.people { list-style: none; margin-top: 64px; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.people li { background: var(--mist); border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.people .who { display: block; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.people .role { display: block; margin-top: 8px; color: var(--text-2); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(72px, 9vw, 128px) 0 0; }
.page-head .display { font-size: clamp(40px, 6.2vw, 88px); }
.page-head + .sec { padding-top: clamp(56px, 7vw, 96px); }
.prose { max-width: calc(720px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.prose p { font-size: 19px; line-height: 1.58; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.028em; line-height: 1.1; margin: 64px 0 20px; }
.prose h2:first-child { margin-top: 0; }

.qualifier { margin: 32px auto 0; max-width: 760px; background: var(--mist); border-radius: 18px; padding: 18px 24px; font-size: 16px; line-height: 1.5; text-align: left; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--mist); border-radius: var(--radius); padding: clamp(36px, 4vw, 56px); }
.card h2, .card h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.026em; margin-bottom: 16px; }
.card p { color: var(--text-2); font-size: 18px; line-height: 1.5; }
.card--white { background: var(--white); }
.card--quiet { background: transparent; border: 1px solid var(--line); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.defs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.defs > div { background: var(--white); border-radius: var(--radius); padding: 36px 32px; }
.defs dt { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.defs dd { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .defs { grid-template-columns: 1fr; } }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rules li { padding: 28px 0; border-top: 1px solid var(--line); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.rules li:last-child { border-bottom: 1px solid var(--line); }

.fed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.fed figure { margin: 0; }
.fed figcaption { margin-top: 16px; font-size: 14px; color: var(--text-2); }
svg.federation { width: 100%; height: auto; color: var(--text); }
svg.federation .fed-label { font-family: var(--font); font-size: 26px; font-weight: 600; }
svg.federation .fed-outer-label { fill: var(--text-2); font-weight: 400; }
@media (max-width: 900px) { .fed { grid-template-columns: 1fr; } .fed figure { max-width: 440px; margin: 0 auto; } }

.place-rows { list-style: none; margin: 0; padding: 0; }
.place-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.place-rows li:last-child { border-bottom: 1px solid var(--line); }
.place-rows .muted { font-size: 15px; font-weight: 400; letter-spacing: 0; }

/* ---------- Contact ---------- */
.form-wrap { max-width: calc(680px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--text-2); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--white);
  border: 1px solid #86868B; border-radius: 12px; padding: 13px 16px; min-height: 52px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.35); outline-offset: 0; border-color: #0071E3; }
.notice { background: var(--mist); border-radius: 18px; padding: 20px 24px; font-size: 14px; line-height: 1.55; color: #424245; }
.consent { grid-template-columns: 22px 1fr; align-items: start; gap: 14px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--text); }
.consent label { font-weight: 400; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: 14px; color: var(--text-2); }
button.pill { border: 0; cursor: pointer; font: inherit; font-size: 17px; font-weight: 500; }
.mail-big { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Legal ---------- */
.legal-nav { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.legal-body section { padding-top: 64px; scroll-margin-top: 72px; }
.legal-body h2 { margin-top: 0; }
.legal-body p { font-size: 17px; line-height: 1.6; }
.legal-defs { margin: 24px 0 0; }
.legal-defs > div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 6px 24px; font-size: 16px; }
.legal-defs dt { font-weight: 600; }
.legal-defs dd { margin: 0; color: #424245; }
@media (max-width: 640px) { .legal-defs > div { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--mist); color: #424245; font-size: 14px; line-height: 1.5; }
.footer-inner { max-width: calc(1080px + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 32px; }
.footer-legal { font-size: 17px; line-height: 1.5; color: var(--text); max-width: 64ch; margin: 0 0 32px; font-weight: 500; }
.footer-ids { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.footer-ids > div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 16px; }
.footer-ids dt { color: var(--text-2); }
.footer-ids dd { margin: 0; color: var(--text); }
@media (max-width: 760px) { .footer-ids { grid-template-columns: 1fr; } .footer-ids > div { grid-template-columns: 1fr; } }
.footer-sister { margin: 24px 0 0; color: var(--text-2); max-width: 80ch; }
.footer-base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--text-2); }
.footer-base ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.footer a { color: var(--text); }

/* 404 / thanks */
.simple { padding: clamp(96px, 14vw, 200px) 0; }

/* ---------- One scroll-linked moment (progressive enhancement, CSS only) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .grow { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0.4; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.tile-text .chev, .card .chev { color: var(--text); }
.contact-form button.pill { justify-self: start; padding: 0 28px; }
