/* ============================================================
   Bam & Bloom. Coming-soon holding page (soon.html).
   Standalone: tokens copied from styles.css so this page never
   depends on the full site stylesheet. Mobile first.
   ============================================================ */

:root {
  color-scheme: light;

  --cream: #FEF9EE;
  --cream-card: #FFFDF8;
  --cream-deep: #F8F0DC;
  --ink: #1A1A1A;
  --ink-soft: #55514A;
  --navy: #1C2A52;
  --blush: #F2CDD9;
  --gold: #C6A053;
  --gold-text: #8F6E22;
  --line: rgba(26, 26, 26, .14);
  --shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 10px 30px -14px rgba(28, 42, 82, .25);

  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --tap: 44px;
  --tile-w: 48px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-back: cubic-bezier(.34, 1.45, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Scene: the paper ---------- */
.scene {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) 16px clamp(.75rem, 2vw, 1.5rem);
  /* sideways only: the dealt tiles hang below the sheet on desktop and must not be cropped */
  overflow-x: clip;
  /* a faint warm vignette so the page reads as a lit sheet, not a flat fill */
  background: radial-gradient(140% 110% at 50% 38%, var(--cream) 0%, var(--cream) 58%, #F9F1DF 100%);
}

/* ---------- Petals: ambient, CSS only ---------- */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -8%;
  left: var(--x, 50%);
  width: calc(26px * var(--s, 1));
  height: calc(26px * var(--s, 1));
  opacity: 0;
  will-change: transform, opacity;
}
.js .petal {
  animation: petal-drift var(--d, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes petal-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .8; }
  50%  { transform: translate3d(-40px, 55vh, 0) rotate(160deg); }
  92%  { opacity: .6; }
  100% { transform: translate3d(30px, 112vh, 0) rotate(330deg); opacity: 0; }
}

/* ---------- The sheet ---------- */
.sheet {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0 0;
}

/* Blossom branch, top left. Ink line, blush blossoms from the sprite. */
.branch {
  position: absolute;
  top: -10px;
  left: -40px;
  width: min(50vw, 190px);
  height: auto;
  pointer-events: none;
}
.branch__ink { fill: none; stroke: #3B3530; stroke-linecap: round; stroke-linejoin: round; }
.branch__bud { fill: var(--blush); stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.2; }
.bloom { transform-box: fill-box; transform-origin: center; }

/* Dealt tiles */
.tiles {
  position: absolute;
  top: -2px;
  right: -10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.tile {
  width: var(--tile-w);
  aspect-ratio: 64 / 86;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(26, 26, 26, .16));
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
  transform-origin: 50% 80%;
}
.tile:nth-child(1) { --r: -9deg; --y: 10px; }
.tile:nth-child(2) { --r: 4deg;  --y: 0px; }
.tile:nth-child(3) { --r: 12deg; --y: 14px; }
.tile--third { display: none; }

/* Lone blossom, bottom left (desktop only) */
.bloom-solo { display: none; }

/* ---------- Content ---------- */
.logo {
  display: block;
  width: clamp(140px, 38vw, 168px);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 18px 24px rgba(79, 72, 66, .10));
}

.eyebrow {
  margin: 0 0 .7rem;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.title {
  margin: 0 auto;
  max-width: 17ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw + 1.3rem, 4rem);
  line-height: 1.02;
  letter-spacing: -.005em;
}
.title em { font-style: italic; font-weight: 400; }

.lede {
  margin: 1rem auto 0;
  max-width: 34ch;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta { margin-top: 1.4rem; }
.cta__line { margin: 0; font-size: 1rem; }
.cta__number {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 .3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw + 1rem, 2.4rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--navy);
  font-variant-numeric: lining-nums;
  text-decoration: underline;
  text-decoration-color: rgba(198, 160, 83, .9);
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  transition: text-decoration-color .22s ease;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: .9rem;
}

/* The site's pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: var(--tap);
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 639px) {
  .btn--primary { flex: 1 1 100%; }
}
@media (hover: hover) {
  .btn--primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(28, 42, 82, .6); }
  .btn:not(.btn--primary):hover { background: rgba(26, 26, 26, .06); }
  .cta__number:hover { text-decoration-color: var(--navy); }
  .foot a:hover { text-decoration-color: var(--ink); }
}

.email-note {
  margin: .75rem 0 0;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
  user-select: all;
}
.email-note strong { font-weight: 500; color: var(--ink); }
.email-note[hidden] { display: none; }

.motto {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  margin: 0;
  padding: .5rem 16px 1.25rem;
  text-align: center;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 .1rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .18em;
  transition: text-decoration-color .22s ease;
}
.sep { color: var(--gold); margin: 0 .3rem; }
/* phones: Privacy gets its own line, so no dot dangles at the end of the first */
@media (max-width: 639px) {
  .sep--last { display: none; }
  .foot a { display: flex; width: fit-content; margin-inline: auto; }
}

/* ---------- Motion (JS on, motion allowed) ---------- */
/* Nothing is hidden by static CSS. The .js class gates every entrance, and each
   animation ends on the element's resting state, so JS off = the same page, still. */
.js .a-logo   { animation: logo-in 1.1s var(--ease-out) both; }
.js .a-rise   { animation: rise .8s var(--ease-out) both; animation-delay: var(--t, 0s); }
.js .a-branch { animation: branch-in 1s var(--ease-out) both; animation-delay: .15s; }
.js .bloom    { animation: bloom-pop .75s var(--ease-back) both; animation-delay: var(--t, .5s); }
.js .tile     { animation: tile-settle .8s var(--ease-back) both; animation-delay: var(--t, .4s); }
.js .bloom-solo { animation: fade-in 1s ease-out both; animation-delay: 1.1s; }

@keyframes logo-in {
  from { opacity: 0; transform: scale(.94) translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes branch-in {
  from { opacity: 0; transform: translate(-10px, 6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bloom-pop {
  from { opacity: 0; transform: scale(.4) rotate(-10deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes tile-settle {
  0%   { opacity: 0; transform: rotate(calc(var(--r, 0deg) - 6deg)) translateY(calc(var(--y, 0px) - 22px)); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .a-logo, .js .a-rise, .js .a-branch, .js .bloom, .js .tile, .js .bloom-solo, .js .petal { animation: none; }
  .petal { opacity: .5; top: auto; }
  .petal:nth-child(1) { top: 14%; } .petal:nth-child(2) { top: 44%; } .petal:nth-child(3) { top: 24%; }
  .petal:nth-child(4) { top: 58%; } .petal:nth-child(5) { top: 72%; } .petal:nth-child(6) { top: 34%; }
  .petal:nth-child(7) { top: 66%; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Wider phones and tablets ---------- */
@media (min-width: 640px) {
  .eyebrow { font-size: .78rem; letter-spacing: .2em; }
  .lede { max-width: 46ch; font-size: 1.2rem; }
  .lede span { display: inline-block; }
  .sheet { padding-top: 3.5rem; }
  .branch { width: 240px; top: -16px; left: -48px; }
  :root { --tile-w: 56px; }
  .tiles { right: -16px; top: -6px; gap: 10px; }
}

/* ---------- Desktop: a real sheet of stationery on the canvas ---------- */
@media (min-width: 880px) {
  .scene { padding: 2.5rem 24px 1rem; }
  .sheet {
    max-width: 840px;
    padding: 3.25rem 5rem 3.5rem;
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 50px 90px -50px rgba(28, 42, 82, .4);
  }
  /* gold hairline frame, inset, like a printed border */
  .sheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(198, 160, 83, .45);
    border-radius: 15px;
    pointer-events: none;
  }
  .logo { width: 190px; margin-bottom: 1.1rem; }
  .title { font-size: 3.7rem; }
  .lede { margin-top: 1.1rem; }
  .cta { margin-top: 1.5rem; }
  .actions { margin-top: 1rem; }
  .motto { margin-top: 1.6rem; }

  .branch { width: 380px; top: -30px; left: -96px; }

  :root { --tile-w: 74px; }
  .tiles { top: auto; right: -44px; bottom: -34px; gap: 12px; }
  .tile:nth-child(1) { --r: -12deg; --y: 8px; }
  .tile:nth-child(2) { --r: 2deg;  --y: 0px; }
  .tile:nth-child(3) { --r: 11deg; --y: 12px; }
  .tile--third { display: block; }

  .bloom-solo {
    display: block;
    position: absolute;
    left: -30px;
    bottom: 54px;
    width: 88px;
    height: 88px;
    pointer-events: none;
    transform: rotate(14deg);
  }
  .bloom-solo--sm {
    left: 34px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    transform: rotate(-28deg);
  }

  .foot { padding: 1.1rem 16px 1.25rem; }
}

@media (min-width: 1200px) {
  .branch { width: 420px; top: -34px; left: -120px; }
}
