:root {
    --ink: #141218;
    --ink-soft: #3d3946;
    --violet: #7461d8;
    --lilac-tint: #e9e3ff;
    --line: rgba(20, 18, 24, 0.08);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
  }
  html, body { margin: 0; }
  body { background: #ffffff; color: var(--ink); font-family: var(--font); }

  .topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 3;
    display: flex; justify-content: space-between; align-items: center;
    padding: calc(14px + env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-right, 0px)) 14px max(32px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .logo { display: block; width: 36px; height: 36px; border-radius: 9px; }
  .wordmark { font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.03em; }
  .tabs { display: flex; gap: 4px; }
  .tab {
    font-size: 14.4px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap;
    padding: 9px 13px; border-radius: 999px;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
  }
  .tab:hover { background: var(--lilac-tint); color: var(--ink); }
  .tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
  @media (max-width: 560px) {
    .topbar { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-left: 16px; padding-right: 16px; }
  }

  /* the bra: real 3D, drawn fresh at the screen's own sharpness */
  .stage {
    position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    gap: clamp(4px, 1.5vh, 16px);
    padding: 72px 16px 12vh;          /* more room below than above, so the bra sits higher */
  }

  /* headline: each word rises slowly out of its own line, one after another */
  .ub-headline {
    margin: 0; text-align: center; text-transform: lowercase; text-wrap: balance;
    font-weight: 700; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
    color: var(--ink); max-width: 22ch;
    margin-top: clamp(20px, 5vh, 56px);   /* breathing room between the bra and the sentence */
  }
  .ub-headline .hl { white-space: nowrap; }
  .ub-headline .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.02em 0.1em; margin-bottom: -0.1em; }
  .ub-headline .w > span {
    display: inline-block; transform: translateY(105%); opacity: 0;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease-out;
    transition-delay: calc(var(--i) * 0.16s);
  }
  .ub-headline.is-in .w > span { transform: none; opacity: 1; }
  .ub-headline .hl > span {          /* the site's soft lilac marker behind the last words */
    background: linear-gradient(transparent 58%, var(--lilac-tint) 58%, var(--lilac-tint) 92%, transparent 92%);
  }
  @media (prefers-reduced-motion: reduce) { .ub-headline .w > span { transition: none; transform: none; opacity: 1; } }

  .ub-bra3d {
    position: relative; width: min(92vw, 560px, calc((100vh - 72px - 12vh - 2 * 1.04 * clamp(28px, 4.2vw, 56px) - 24px - clamp(20px, 5vh, 56px)) * 4 / 3)); aspect-ratio: 4 / 3;
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .ub-bra3d.is-in { opacity: 1; transform: none; }
  .ub-bra3d::before {              /* soft warm light behind the bra */
    content: ""; position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(242, 240, 236, 0.95) 0%, rgba(242, 240, 236, 0) 66%);
  }
  .ub-bra3d::after {               /* soft shadow so the bra sits in the space */
    content: ""; position: absolute; left: 20%; right: 20%; bottom: 3%; height: 10%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(20, 18, 24, 0.14), rgba(20, 18, 24, 0));
    z-index: -1; pointer-events: none;
  }
  .ub-bra3d canvas { display: block; width: 100%; height: 100%; cursor: ew-resize; touch-action: pan-y; }
  @media (prefers-reduced-motion: reduce) { .ub-bra3d { transition: none; } .tab { transition: none; } }

  .note {
    position: fixed; z-index: 4;
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    font-size: 12px; font-weight: 500; color: rgba(20, 18, 24, 0.5);
  }
  @media (max-width: 860px) { .note { display: none; } }
  /* black footer at the bottom of every page */
  .site-footer {
    background: #000; color: #fff; font-family: var(--font);
    padding: clamp(48px, 7vw, 80px) max(32px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(32px, env(safe-area-inset-left, 0px));
  }
  .site-footer .footer-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 48px;
  }
  .site-footer .footer-home { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
  .site-footer .footer-home img { display: block; width: 36px; height: 36px; border-radius: 9px; }
  .site-footer .footer-wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
  .site-footer .footer-tagline { margin: 12px 0 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
  .site-footer .footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 28px clamp(40px, 5vw, 72px); }
  .site-footer .footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-footer .footer-col h2 { margin: 0 0 8px; font-size: 14.4px; font-weight: 700; color: #fff; letter-spacing: 0; }
  .site-footer .footer-col a, .site-footer .footer-legal a {
    color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14.4px; font-weight: 500;
    padding: 5px 0; transition: color 0.2s ease-out;
  }
  .site-footer .footer-legal a { font-size: 13px; color: rgba(255, 255, 255, 0.5); padding: 0; }
  .site-footer .footer-col a:hover, .site-footer .footer-legal a:hover { color: var(--lilac-tint); }
  .site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
  @media (max-width: 560px) {
    .site-footer { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
    .site-footer .footer-cols { grid-template-columns: repeat(2, auto); column-gap: 48px; }
  }
  .site-footer a:focus-visible { outline: 2px solid var(--lilac-tint); outline-offset: 3px; border-radius: 4px; }
  .site-footer .footer-base {
    margin: clamp(36px, 5vw, 56px) 0 0; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: rgba(255, 255, 255, 0.5);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  }
  @media (prefers-reduced-motion: reduce) { .site-footer a { transition: none; } }
  /* the black footer rises up like a curtain as you reach it, then its words follow */
  .site-footer.will-flow { position: relative; isolation: isolate; background: transparent; }
  .site-footer.will-flow::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: #000;
    clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-footer.will-flow.flow-in::before { clip-path: inset(0 0 0 0); }
  .site-footer.will-flow .flow {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.8s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(0.3s + var(--d, 0) * 0.09s);
  }
  .site-footer.will-flow.flow-in .flow { opacity: 1; transform: none; }
/* headline word stagger (was inline style="--i") */
#headline .w:nth-child(1 of .w) > span { --i: 0; }
#headline .w:nth-child(2 of .w) > span { --i: 1; }
#headline .w:nth-child(3 of .w) > span { --i: 2; }
#headline .w:nth-child(4 of .w) > span { --i: 3; }
