/* Atlante Display – heading font. Drop the licensed files into assets/fonts/ with these names.
   Until then the browser uses a locally installed copy, then falls back to Noto Serif Display. */
@font-face { font-family: "Atlante Display"; font-weight: 200; font-style: italic; font-display: swap;
  src: local("Atlante Display ExtraLight"), local("AtlanteDisplay-ExtraLight"),
       url("assets/fonts/AtlanteDisplay-ExtraLight.woff2") format("woff2"), url("assets/fonts/AtlanteDisplay-ExtraLight.otf") format("opentype"); }
@font-face { font-family: "Atlante Display"; font-weight: 500; font-style: italic; font-display: swap;
  src: local("Atlante Display Medium"), local("AtlanteDisplay-Medium"),
       url("assets/fonts/AtlanteDisplay-Medium.woff2") format("woff2"), url("assets/fonts/AtlanteDisplay-Medium.otf") format("opentype"); }

/* ---------- Layout tokens ----------
   Everything in the hero is sized from --cw (card width).
   --in-x / --out-x : horizontal spot of the inner / outer cards, in card widths
   --in-y / --out-y : how far they lift above the centre card, in card widths
   --tilt           : resting tilt of the side cards (deg per ring) – used on narrow screens
   The JS reads these, so each breakpoint can have its own fan shape. */
:root {
  --cream: #fefdf3;
  --ink: #3a3a3a;
  --gold: #b87402;

  --vh: 100vh;
  --nav: 70px;

  /* laptop / desktop / iPad landscape – matches the Canva layout */
  --cw: min(16.7vw, calc((var(--vh) - 166px) / 2.56));
  --in-x: 1.09;  --out-x: 2.18;
  --in-y: -0.2;  --out-y: -0.485;
  --tilt: 0;
  --tf: calc(var(--cw) * 0.36);           /* heading size */

  --ch: calc(var(--cw) * 1.755);
  --gap: calc(var(--cw) * (0.12 - var(--in-y)));  /* heading → centre card */
  --th: calc(var(--tf) * 1.35);                    /* heading line box */
  --extra: 84px;                                   /* room for the button under the cards */
  --above: calc(var(--ch) / 2 + var(--gap) + var(--th));
  --below: calc(var(--ch) / 2 + var(--extra));
  --free: max(0px, calc(var(--vh) - var(--nav) - var(--above) - var(--below) - 12px));
  --cy: calc(var(--nav) + var(--above) + var(--free) / 2);  /* centre of the card row */
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

/* iPad / tablet portrait */
/* small laptops / iPad landscape: a touch larger so the row fills the width */
@media (max-width: 1280px) and (orientation: landscape) {
  :root { --cw: min(17.6vw, calc((var(--vh) - 166px) / 2.56)); }
}

@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  :root {
    --extra: 130px;
    --cw: min(32vw, calc((var(--vh) - 216px) / 2.45));
    --in-x: 0.66;  --out-x: 1.22;
    --in-y: -0.14; --out-y: -0.32;
    --tilt: 2;
  }
}

/* phones (portrait): bigger cards fanned like a hand of cards, heading on two lines */
@media (max-width: 600px) {
  :root {
    --nav: 60px;
    --tf: min(14.5vw, 64px);
    --th: calc(var(--tf) * 2.2);
    --extra: 140px;
    --cw: min(41vw, calc((var(--vh) - 340px) / 1.9));
    --in-x: 0.3;   --out-x: 0.8;     /* script pulls these in so no card leaves the screen */
    --in-y: 0.06;  --out-y: 0.2;
    --tilt: 5;
    --shrink: 0.08;
  }
}

/* phones in landscape – short screens */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav: 52px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--cream); color: var(--ink); }
body { font-family: "Bodoni Moda", "Didot", Georgia, serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; user-select: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 2.4vw, 36px);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-12px);
  animation: fadeDown .9s .2s cubic-bezier(.2,.7,.2,1) forwards;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.brand span { white-space: nowrap; font-size: 19px; letter-spacing: .1em; }
.lotus-mark { width: 38px; height: auto; }
.links { display: flex; gap: clamp(22px, 3.4vw, 52px); }
.links a { font-size: 15px; letter-spacing: .1em; color: #000; position: relative; white-space: nowrap; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .35s;
}
.links a:hover::after { transform: scaleX(1); }
.actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.cart { width: 22px; display: block; }
.burger { display: none; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 3px; right: 3px; height: 1.5px; background: var(--ink); transition: transform .35s, top .35s; }
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 17px; }
.nav.open .burger span:nth-child(1) { top: 13.5px; transform: rotate(45deg); }
.nav.open .burger span:nth-child(2) { top: 13.5px; transform: rotate(-45deg); }

/* ---------- Hero (pinned while cards fan out) ---------- */
.hero { height: 260vh; position: relative; }
.stage { position: sticky; top: 0; height: var(--vh); overflow: hidden; }

.watermark {
  position: absolute; left: 50%; top: var(--cy);
  width: min(calc(var(--cw) * 3), 92vw); translate: -50% -56%;
  opacity: 0; filter: saturate(.7);
  animation: watermarkIn 2.4s .6s forwards;
}

.title {
  position: absolute; z-index: 6; left: 50%;
  top: calc(var(--cy) - var(--ch) / 2 - var(--gap));
  translate: -50% -100%;
  font-family: "Atlante Display", "Noto Serif Display", serif; font-style: italic; font-weight: 200;
  font-size: var(--tf); line-height: 1.2; letter-spacing: .003em; color: var(--ink);
  display: flex; gap: .25em; white-space: nowrap;
}
.title .strong { font-weight: 500; }
.title .w { display: inline-block; padding-bottom: .1em; }
/* letters are split by JS and revealed with the scroll (--t: 0 hidden -> 1 shown) */
.title .ch {
  display: inline-block; --t: 0;
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * .45em)) rotate(calc((1 - var(--t)) * 8deg));
  filter: blur(calc((1 - var(--t)) * 10px));
}

/* All cards share the centre slot; JS moves them out to their final spots */
.cards {
  position: absolute; left: 50%; top: var(--cy);
  width: var(--cw); height: var(--ch);
  translate: -50% -50%;
}
.card {
  position: absolute; inset: 0;
  border-radius: calc(var(--cw) * 0.1);
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(60, 40, 10, .35), 0 4px 10px rgba(60, 40, 10, .08);
  will-change: transform;
  background: #eee;
  backface-visibility: hidden;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* intro: the centre card reveals first */
.card.center {
  z-index: 5;
  clip-path: inset(50% 50% 50% 50% round 24px);
  animation: reveal 1.2s .15s cubic-bezier(.7,0,.2,1) forwards;
}
.card.center img { scale: 1.25; animation: settle 1.6s .15s cubic-bezier(.2,.7,.2,1) forwards; }
.card[data-slot="-1"], .card[data-slot="1"] { z-index: 4; }
.card[data-slot="-2"], .card[data-slot="2"] { z-index: 3; }
.card:not(.center) { opacity: 0; }

/* ---------- "Explore more" – Apple-style liquid glass with a gold edge ---------- */
.cta {
  position: absolute; left: 50%; z-index: 6;
  top: calc(var(--cy) + var(--ch) / 2 + clamp(18px, 3vh, 28px));
  translate: -50% 0;
  opacity: 0; /* revealed by JS with the scroll */
  display: inline-block; isolation: isolate;
  padding: 12px 30px; border-radius: 999px;
  color: #36383a; font-size: 15px; letter-spacing: .12em; white-space: nowrap;
  /* clear glass: barely tinted, the background is blurred, brightened and saturated through it */
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(214, 168, 72, .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .10));
  backdrop-filter: blur(10px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 1.5px 1.5px 1px -.5px rgba(255, 255, 255, .95),   /* bright upper-left lip */
    inset -1.5px -1.5px 1px -.5px rgba(206, 158, 60, .75),  /* gold lower-right lip */
    inset 0 0 12px rgba(214, 168, 72, .20),                  /* gold light caught inside */
    0 10px 26px -10px rgba(150, 105, 20, .38),               /* warm drop shadow */
    0 1px 3px rgba(60, 40, 10, .10);
  transition: scale .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s;
}
/* thin gilded rim: white at the top, through gold */
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95) 0%, rgba(232, 196, 120, .7) 35%, rgba(255, 244, 214, .35) 55%, rgba(190, 140, 45, .85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cta-label { position: relative; z-index: 2; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.cta-glass {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none;
  /* curved-lens gloss across the top */
  background: radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
}
/* gold-white specular highlight that follows the cursor */
.cta-glass::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(closest-side at var(--mx, 50%) var(--my, 10%), rgba(255, 236, 190, .75), rgba(232, 190, 100, .25) 45%, rgba(232, 190, 100, 0) 75%);
  opacity: .25; transition: opacity .5s;
}
/* slow golden light sweep across the glass */
.cta-glass::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 34%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 238, 196, .75), transparent);
  transform: skewX(-18deg);
  animation: sweep 6s 3s ease-in-out infinite;
}
@media (hover: hover) {
  .cta:hover {
    scale: 1.05;
    box-shadow:
      inset 1.5px 1.5px 1px -.5px rgba(255, 255, 255, 1),
      inset -1.5px -1.5px 1px -.5px rgba(206, 158, 60, .9),
      inset 0 0 16px rgba(214, 168, 72, .30),
      0 14px 30px -10px rgba(150, 105, 20, .45),
      0 1px 3px rgba(60, 40, 10, .10);
  }
  .cta:hover .cta-glass::before { opacity: 1; }
}
.cta:active { scale: .97; transition-duration: .15s; }

/* ---------- Cursor shimmer ---------- */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, -999px) var(--gy, -999px),
    rgba(214, 170, 80, .24), rgba(214, 170, 80, .09) 40%, transparent 70%);
  opacity: 0; transition: opacity 1s;
}
.glow.on { opacity: 1; }
.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
/* soft light that glides over a card under the cursor */
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 246, 225, .45), transparent 55%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s;
}
@media (hover: hover) { .card:hover::after { opacity: 1; } }
@media (hover: none) { .glow, .dust { display: none; } }

.scroll-hint {
  position: absolute; bottom: 22px; right: clamp(14px, 3vw, 44px); z-index: 6;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #8b8373;
  opacity: 0; animation: fadeIn 1s 2s forwards;
}
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s infinite; }



/* =====================================================================
   Designed your way + Categories  (desktop; sizes follow the 1366px Canva frame via --u)
   ===================================================================== */
:root { --u: clamp(0.8px, calc(100vw / 1366), 1.4px); }

.intro {
  position: relative; z-index: 1;
  padding: calc(96 * var(--u)) 24px calc(34 * var(--u));
  text-align: center;
}
.sec-title {
  font-family: "Atlante Display", "Noto Serif Display", serif; font-style: italic; font-weight: 200;
  font-size: calc(36 * var(--u)); line-height: 1.25; letter-spacing: .053em; color: var(--ink);
  display: flex; justify-content: center; align-items: center; gap: .28em;
}
.sec-title .strong { font-weight: 500; }
.sec-title .w { display: inline-block; }

/* letter reveal when a heading scrolls into view */
.sec-title .ch {
  display: inline-block; opacity: 0;
  transform: translateY(.5em) rotate(6deg); filter: blur(8px);
  transition: opacity .9s, transform 1.1s cubic-bezier(.2, .8, .2, 1), filter .9s;
  transition-delay: calc(var(--i) * 38ms);
}
.sec-title.in .ch { opacity: 1; transform: none; filter: blur(0); }

.intro-copy {
  margin: calc(22 * var(--u)) auto 0;
  font-size: calc(22 * var(--u)); line-height: 1.4; letter-spacing: .1em; color: #000;
}
.intro-copy .line {
  display: block; opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s, transform 1.2s cubic-bezier(.2, .8, .2, 1), filter 1s;
  transition-delay: calc(.35s + var(--d) * .16s);
}
.intro-copy.in .line { opacity: 1; transform: none; filter: blur(0); }

.cat-title { margin-top: calc(74 * var(--u)); gap: .6em; }
/* thin gold rules that draw outwards either side of "Categories" */
.cat-title .rule {
  width: calc(90 * var(--u)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transform: scaleX(0); transform-origin: right;
  transition: transform 1.4s cubic-bezier(.7, 0, .2, 1) .5s;
}
.cat-title .rule:last-child { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: left; }
.cat-title.in .rule { transform: scaleX(1); }

/* ---------- beige band ---------- */
.categories {
  position: relative; overflow: hidden;
  height: calc(540 * var(--u));
  background: radial-gradient(ellipse at 50% 50%, #e1c7a6 0%, #c4a994 100%);
  /* band opens from the middle as it arrives */
  clip-path: inset(0 8% 0 8% round 28px);
  transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1);
}
.categories.in { clip-path: inset(0 0 0 0 round 0); }

.bg-word {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  white-space: nowrap; pointer-events: none; user-select: none;
  font-family: "Bodoni Moda", serif; font-weight: 600;
  font-size: calc(533 * var(--u)); line-height: 1; letter-spacing: .1em;
  color: #ebd1ba; opacity: .65;
}
.bg-word span { display: inline-block; margin-left: -6vw; will-change: transform; }

.cat-viewport {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  cursor: grab; touch-action: pan-y;
}
.cat-viewport.dragging { cursor: grabbing; }
.cat-track {
  display: flex; gap: calc(56 * var(--u));
  padding-left: calc(56 * var(--u));   /* keeps the gap when the row wraps */
  will-change: transform;
}

.cat-card {
  --s: calc(340 * var(--u));
  position: relative; flex: none; display: block;
  width: var(--s); height: var(--s);
  border-radius: calc(22 * var(--u)); overflow: hidden;
  background: #fbf8ef;
  /* layered warm shadow: contact + mid + soft ambient, plus a faint light rim */
  box-shadow:
    0 0 0 1px rgba(255, 250, 238, .55) inset,
    0 1px 2px rgba(92, 60, 26, .10),
    0 6px 14px -6px rgba(92, 60, 26, .22),
    0 22px 44px -18px rgba(92, 60, 26, .38);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s;
  user-select: none; -webkit-user-drag: none;
  /* entrance */
  opacity: 0; translate: -40px 0; filter: blur(6px);
}
.categories.in .cat-card {
  opacity: 1; translate: 0 0; filter: blur(0);
  transition: opacity 1s, translate 1.2s cubic-bezier(.2, .8, .2, 1), filter 1s,
              transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .7s;
  transition-delay: calc(.4s + var(--k, 0) * .09s), calc(.4s + var(--k, 0) * .09s), calc(.4s + var(--k, 0) * .09s), 0s, 0s;
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
  transition: scale 1.2s cubic-bezier(.2, .8, .2, 1);
}
/* warm, soft shade under the label (replaces the flat grey strip) */
.cat-card::before {
  content: ""; position: absolute; inset: 40% 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(34, 24, 14, .88) 0%, rgba(34, 24, 14, .62) 32%, rgba(34, 24, 14, .22) 68%, rgba(34, 24, 14, 0) 100%);
  transition: opacity .6s;
}
.cat-card .cat-label {
  position: absolute; left: 0; right: 0; bottom: calc(28 * var(--u)); z-index: 2;
  text-align: center; color: #fffaf0;
  font-size: calc(29 * var(--u)); font-weight: 500; letter-spacing: .08em; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 14px rgba(0, 0, 0, .35);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), letter-spacing .7s;
}
/* hairline gold frame that fades in on hover */
.cat-card::after {
  content: ""; position: absolute; inset: calc(8 * var(--u)); z-index: 3; pointer-events: none;
  border: 1px solid rgba(232, 196, 120, .0); border-radius: calc(16 * var(--u));
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255, 246, 225, .35), transparent 50%);
  opacity: 0; transition: opacity .6s, border-color .6s;
}
/* Save the Date image already carries its label from Canva */
.cat-card.baked::before, .cat-card.baked .cat-label { display: none; }

@media (hover: hover) {
  .cat-card:hover {
    transform: translateY(-10px);
    box-shadow:
      0 0 0 1px rgba(255, 250, 238, .7) inset,
      0 2px 4px rgba(92, 60, 26, .10),
      0 14px 24px -10px rgba(92, 60, 26, .28),
      0 36px 60px -22px rgba(92, 60, 26, .45);
  }
  .cat-card:hover img { scale: 1.06; }
  .cat-card:hover .cat-label { transform: translateY(-4px); letter-spacing: .12em; }
  .cat-card:hover::after { opacity: 1; border-color: rgba(232, 196, 120, .75); }
}

/* ---------- Keyframes ---------- */
@keyframes reveal { to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes settle { to { scale: 1; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes watermarkIn { from { opacity: 0; scale: .9; } to { opacity: .08; scale: 1; } }
@keyframes fadeDown { to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Nav on smaller screens ---------- */
@media (max-width: 1100px) {
  .links { gap: 24px; }
  .links a { font-size: 14px; }
  .brand span { font-size: 17px; }
  .lotus-mark { width: 34px; }
}

/* phone hero: heading on two lines, cards fan from their base like a hand of cards */
@media (max-width: 600px) {
  .title { flex-direction: column; align-items: center; gap: 0; line-height: 1.02; }
  .title .w { padding-bottom: 0; }
  .card { transform-origin: 50% 92%; }
  .cta { font-size: 15px; padding: 13px 30px; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .brand { gap: 10px; }
  .brand span { font-size: 15px; }
  .lotus-mark { width: 30px; }
  .burger { display: block; }
  /* links become a drop-down panel */
  .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(184, 116, 2, .18);
    box-shadow: 0 18px 30px -20px rgba(60, 40, 10, .3);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s cubic-bezier(.7,0,.2,1);
  }
  .links a { font-size: 16px; padding: 16px 0; width: 100%; text-align: center; }
  .links a::after { display: none; }
  .nav.open .links { clip-path: inset(0 0 0 0); }
  .scroll-hint { bottom: 16px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .brand span { font-size: 15px; }
  .lotus-mark { width: 28px; }
  .cta { font-size: 13px; padding: 8px 16px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- Designed your way + Categories on phones ---------- */
@media (max-width: 600px) {
  .intro { padding: 72px 22px 26px; }
  .sec-title { font-size: 26px; letter-spacing: .02em; gap: .24em; }
  .intro-copy {
    margin-top: 16px; max-width: 34ch; margin-inline: auto;
    font-size: 15px; line-height: 1.6; letter-spacing: .04em; color: #2c2c2c;
    text-wrap: balance;
  }
  .intro-copy .line { display: inline; }
  .intro-copy .line + .line::before { content: " "; }
  .cat-title { margin-top: 46px; gap: .45em; }
  .cat-title .rule { width: 34px; }
  .categories { height: calc(64vw + 120px); }
  .cat-card { --s: 64vw; border-radius: 20px; }
  .cat-track { gap: 18px; padding-left: 18px; }
  .cat-card .cat-label { font-size: 20px; bottom: 20px; }
  .bg-word { font-size: 78vw; }
}
