/* =========================================================
   FONTS
   Uses the real ITC Avant Garde Gothic when available:
   - installed on the visitor's device (local()), or
   - dropped into assets/fonts/ with the file names below (licensed copies).
   Otherwise falls back to free look-alikes (TeX Gyre Adventor / DM Serif Display).
   ========================================================= */
@font-face {
  font-family: "AvantGarde";
  src: local("ITC Avant Garde Gothic"), local("ITC Avant Garde Gothic Std Book"), local("AvantGardeGothicITC-Book"),
       local("AvantGarde-Book"), local("Avant Garde"),
       url("assets/fonts/avant-garde.woff2") format("woff2"), url("assets/fonts/avant-garde.ttf") format("truetype");
  font-weight: 300 600; font-display: swap;
}

/* =========================================================
   evermade palette — straight from the logo
   ========================================================= */
:root {
  --paper: #f6f4f1;
  --paper-2: #eeeae4;
  --paper-3: #e3ddd4;
  --ink: #2b2927;
  --ink-soft: #57524d;
  --muted: #958f87;
  --line: #d6cfc5;
  --white: #fffdfa;

  --display: "Quicksand", "Questrial", system-ui, sans-serif;
  --body: "AvantGarde", "TeX Gyre Adventor", "Questrial", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(20px, 5vw, 64px);

  /* craft scissors cursor */
  --cursor-scissors: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%232b2927' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cline x1='20' y1='4' x2='8.12' y2='15.88'/%3E%3Cline x1='14.47' y1='14.48' x2='20' y2='20'/%3E%3Cline x1='8.12' y1='8.12' x2='12' y2='12'/%3E%3C/svg%3E") 12 12;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  background: var(--paper); color: var(--ink);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-scissors), auto;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: var(--cursor-scissors), pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: var(--cursor-scissors), pointer; }
ol, ul { list-style: none; }

h1, h2, h3, .display {
  font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.02em;
}
h1 em, h2 em, h3 em { font-style: italic; }
h2 { font-size: clamp(42px, 11vw, 92px); }

/* soft, cohesive placeholder photos */
img[src*="picsum"] { filter: grayscale(.3) sepia(.14) contrast(.95) brightness(1.02); width: 100%; height: 100%; object-fit: cover; }

/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 998; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* sticker tag */
.tag {
  display: inline-block; font-size: 13px; letter-spacing: .04em; padding: 8px 14px;
  background: var(--white); border: 1px dashed var(--line); border-radius: 100px;
  rotate: -2deg;
}
.tag--dark { background: transparent; border-color: rgba(246, 244, 241, .35); color: var(--paper); }

/* =========================================================
   LOGO (built from the real logo, sliced into layers)
   ========================================================= */
.logo { position: relative; width: var(--lw, 300px); }
.logo-mark { position: relative; width: 64.02%; margin-left: 20.73%; aspect-ratio: 630 / 684; }
.logo-mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-word { position: relative; margin-top: 4.3%; aspect-ratio: 984 / 144; }
.logo-word img { position: absolute; top: 0; height: 100%; }
.logo--inv img { filter: brightness(0) invert(.95); }

/* =========================================================
   LOADER → logo flies into the header
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
body.locked:not(.handoff) .loader { pointer-events: auto; }
.loader-bg { position: absolute; inset: 0; background: var(--paper); clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io); }
body.handoff .loader-bg { clip-path: inset(0 0 100% 0); }
body.loaded .loader { display: none; }
.logo--loader { --lw: min(64vw, 300px); z-index: 1; }
.logo--loader .lm-e { clip-path: inset(0 100% 0 0); animation: wipe 1s .2s var(--ease-io) forwards; }
.logo--loader .lm-flower {
  clip-path: circle(0% at 70% 26%); transform: rotate(-35deg) scale(.5); transform-origin: 70% 26%;
  animation: bloom 1.6s .7s var(--ease) forwards;
}
.logo--loader .logo-word img {
  opacity: 0; transform: translateY(80%) rotate(12deg); filter: blur(6px);
  animation: letterIn .8s var(--spring) forwards; animation-delay: calc(1.3s + var(--i) * .07s);
}
body.handoff .logo--loader .logo-mark, body.handoff .logo--loader .logo-word { transition: transform 1s var(--ease-io); }
.loader-note { position: absolute; bottom: 12svh; z-index: 1; font-size: 14px; color: var(--muted); opacity: 0; animation: fadeIn .6s 1.6s forwards; transition: opacity .4s; }
body.handoff .loader-note { opacity: 0 !important; animation: none; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes bloom { to { clip-path: circle(120% at 70% 26%); transform: none; } }
@keyframes letterIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* =========================================================
   CURSOR (desktop only) — just a scissors icon
   ========================================================= */
.cursor { display: none; }
.cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 999; }
  .cursor-dot {
    position: fixed; top: 0; left: 0; translate: -50% -50%;
    width: 28px; height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%232b2927' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cline x1='20' y1='4' x2='8.12' y2='15.88'/%3E%3Cline x1='14.47' y1='14.48' x2='20' y2='20'/%3E%3Cline x1='8.12' y1='8.12' x2='12' y2='12'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .25s var(--ease);
  }
  .cursor.hover .cursor-dot { transform: rotate(-20deg) scale(1.2); }
}

/* =========================================================
   NAV + MENU
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 12px var(--pad);
  transition: transform .5s var(--ease), background .4s;
}
.nav.scrolled { background: rgba(246, 244, 241, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.hide { transform: translateY(-110%); }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; position: relative; z-index: 2; }
.nav-mark { height: 44px; width: calc(44px * 630 / 684); }
.nav-word { height: 12px; width: calc(12px * 984 / 144); }
.nav-logo img { opacity: 0; }
body.loaded .nav-logo img { opacity: 1; }
.nav-dm, .menu-btn { opacity: 0; transform: translateY(-20px); transition: opacity .6s, transform .8s var(--spring); }
body.handoff .nav-dm, body.handoff .menu-btn { opacity: 1; transform: none; transition-delay: .7s; }
body.handoff .menu-btn { transition-delay: .8s; }
.nav-dm { position: relative; z-index: 2; font-size: 13px; padding: 10px 16px; border-radius: 100px; background: var(--ink); color: var(--paper); }
.menu-open .nav-dm { opacity: 0; pointer-events: none; transition-delay: 0s; }
.menu-btn { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.menu-btn span { position: absolute; width: 18px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--paper-2); overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  clip-path: circle(0 at calc(100% - var(--pad) - 22px) 34px); transition: clip-path .9s var(--ease-io);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--pad) - 22px) 34px); }
.menu li { overflow: hidden; }
.menu a {
  display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 11vw, 84px); line-height: 1.12; transform: translateY(110%); transition: transform .8s var(--ease);
}
.menu a small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.menu-open .menu a { transform: none; }
.menu li:nth-child(1) a { transition-delay: .25s } .menu li:nth-child(2) a { transition-delay: .31s }
.menu li:nth-child(3) a { transition-delay: .37s } .menu li:nth-child(4) a { transition-delay: .43s }
.menu li:nth-child(5) a { transition-delay: .49s }
.menu a:hover { font-style: italic; }
.menu-bloom { position: absolute; width: min(60vw, 380px); right: -12%; bottom: -6%; opacity: .2; transform: rotate(40deg) scale(.6); transition: transform 1.4s var(--ease); }
.menu-open .menu-bloom { transform: rotate(-8deg); }
.menu-note { margin-top: 36px; font-size: 14px; color: var(--muted); opacity: 0; transition: opacity .6s .7s; }
.menu-open .menu-note { opacity: 1; }

/* =========================================================
   SHARED: buttons, split text, reveals
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; border-radius: 100px; font-size: 15px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; transition: transform .45s var(--ease), color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { scale: .95; }
.btn span { display: inline-block; transition: transform .3s; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--ink-soft); }
.btn--line { border: 1px solid var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper::before { background: var(--white); }
.btn--ghost { border: 1px solid rgba(246, 244, 241, .4); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .14em 0; margin-bottom: -.14em; }
[data-split] .w > span { display: inline-block; transform: translateY(115%) rotate(8deg); transform-origin: left bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-split].in .w > span, .in [data-split] .w > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

section { position: relative; }
.section-head { padding: 0 var(--pad); }
.section-head .tag { margin-bottom: 14px; }

/* =========================================================
   HERO — sticky; shrinks into a card as the page slides over
   ========================================================= */
.hero { position: sticky; top: 0; z-index: 0; background: var(--ink); }
.hero-inner {
  position: relative; min-height: 100svh; background: var(--paper); overflow: hidden;
  padding: 96px var(--pad) 56px; display: grid; gap: 34px; align-content: center;
  transform-origin: 50% 30%; will-change: transform;
}
.hero-shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.hero-text { position: relative; z-index: 2; }
.hero-text .tag { margin-bottom: 16px; }
.hero-title { font-size: clamp(48px, 13.5vw, 118px); line-height: .98; max-width: 11ch; }
.hero-sub { max-width: 36ch; margin-top: 20px; color: var(--ink-soft); font-size: 16px; }
.hero-sub b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-bloom { position: absolute; width: min(70vw, 460px); right: -18%; top: 6%; opacity: .1; pointer-events: none; }
.drift { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.drifter { position: absolute; top: -60px; width: var(--size); opacity: 0; animation: fall var(--dur) linear var(--delay) infinite; }
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: .45; }
  50% { transform: translate(var(--drift), 55vh) rotate(160deg); }
  90% { opacity: .35; }
  100% { opacity: 0; transform: translate(calc(var(--drift) * -.6), 112vh) rotate(340deg); }
}

.hero-visual { position: relative; height: clamp(330px, 92vw, 560px); z-index: 2; }
.stack { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.pol {
  position: absolute; left: 50%; top: 50%; width: min(52%, 250px);
  transform: translate(-50%, 30%) rotate(20deg) scale(.6); opacity: 0;
  transition: transform 1.4s var(--spring), opacity .6s; transition-delay: calc(var(--d) + .35s);
}
body.handoff .pol { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
.pol-in {
  background: var(--white); padding: 9px 9px 0; border-radius: 4px;
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--d) * -10);
  transition: transform .5s var(--ease);
}
.pol-in img { aspect-ratio: 5 / 6; height: auto; border-radius: 2px; }
.pol figcaption { font-size: 13px; text-align: center; padding: 8px 0 10px; color: var(--ink-soft); }
.pol:hover { z-index: 3; }
.pol:hover .pol-in { transform: scale(1.06) rotate(3deg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.badge {
  position: absolute; right: 0; bottom: 2%; width: 104px; height: 104px; z-index: 4; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center;
  opacity: 0; transform: scale(.3) rotate(-120deg); transition: transform 1.2s 1.2s var(--spring), opacity .5s 1.2s;
}
body.handoff .badge { opacity: 1; transform: none; }
.badge svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.badge text { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; fill: var(--ink); font-family: var(--body); }
.badge img { width: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; z-index: 4; font-size: 13px; padding: 9px 14px; border-radius: 100px;
  background: var(--ink); color: var(--paper); white-space: nowrap;
}
.sticker--a { left: 0; top: 4%; rotate: -8deg; opacity: 0; transform: scale(0); transition: transform .9s 1.4s var(--spring), opacity .3s 1.4s; }
body.handoff .sticker--a { opacity: 1; transform: none; animation: bob 3s 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* =========================================================
   OVER — slides up over the hero
   ========================================================= */
.over {
  position: relative; z-index: 2; background: var(--paper);
  border-radius: 34px 34px 0 0;
}

/* ribbons */
.ribbons { padding: 64px 0 40px; overflow: hidden; }
.ribbon { width: 130vw; margin-left: -15vw; position: relative; padding: 12px 0; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed currentColor; opacity: .35; }
.ribbon::before { top: 5px; } .ribbon::after { bottom: 5px; }
.ribbon--a { background: var(--ink); color: var(--paper); rotate: -4deg; z-index: 2; }
.ribbon--b { background: var(--white); color: var(--ink); rotate: 3deg; margin-top: 18px; }
.marquee-row { display: flex; white-space: nowrap; will-change: transform; }
.marquee-track { display: flex; align-items: center; flex-shrink: 0; }
.marquee-row span { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8.5vw, 70px); line-height: 1.15; padding: 0 .3em; }
.ribbon--b span { font-size: clamp(20px, 5.5vw, 42px); font-style: italic; }
.marquee-row i { font-style: normal; font-size: clamp(20px, 5vw, 40px); opacity: .6; display: inline-block; animation: spin 8s linear infinite; }

/* =========================================================
   MAKE — pinned, horizontal scroll
   ========================================================= */
.make-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 3svh, 34px); padding-top: 60px;
}
.make-track { display: flex; gap: 18px; width: max-content; padding: 16px var(--pad) 24px; will-change: transform; }
.card { width: min(70vw, 42svh, 340px); flex-shrink: 0; transform: translateY(var(--lift, 0px)) rotate(var(--rot, 0deg)); }
.card-in {
  position: relative; background: var(--white); border-radius: 26px; padding: 10px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), opacity .8s;
}
.make-track:not(.in) .card-in { opacity: 0; transform: translateY(140px) rotate(10deg); }
.make-track .card:nth-child(2) .card-in { transition-delay: .08s } .make-track .card:nth-child(3) .card-in { transition-delay: .16s }
.make-track .card:nth-child(4) .card-in { transition-delay: .24s }
.card-in::after { content: ""; position: absolute; inset: 5px; border-radius: 22px; border: 1px dashed var(--line); pointer-events: none; }
.card-img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; }
.card-img img { transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 14px 8px 10px; position: relative; }
.card h3 { font-size: 28px; }
.card p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.make-foot { display: flex; align-items: center; gap: 16px; padding: 0 var(--pad); }
.make-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.make-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.make-hint { font-size: 13px; color: var(--muted); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 6px 0; } }

/* =========================================================
   STATEMENT — pinned, fills word by word
   ========================================================= */
.statement { height: 240vh; }
.statement-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-content: center; padding: 0 var(--pad); }
.statement-bloom { position: absolute; width: min(105vw, 640px); left: 50%; top: 50%; translate: -50% -50%; opacity: .13; pointer-events: none; }
[data-fill] { position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8.4vw, 76px); line-height: 1.1; letter-spacing: -.02em; max-width: 20ch; }
.fw { display: inline-block; opacity: .12; transform: translateY(8px); transition: opacity .35s, transform .5s var(--spring); }
.fw.lit { opacity: 1; transform: none; }
.statement-sign { margin-top: 26px; font-size: 15px; letter-spacing: .1em; color: var(--ink-soft); opacity: 0; transition: opacity .6s; }
.statement-sign.on { opacity: 1; }

/* =========================================================
   OCCASIONS
   ========================================================= */
.occasions { padding: 40px var(--pad) 100px; text-align: center; }
.occasions h2 { margin: 14px auto 32px; max-width: 12ch; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.chip {
  padding: 12px 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); font-size: 15px;
  opacity: 0; transform: translateY(-180px) rotate(calc(var(--r) * 6));
  transition: transform 1s var(--spring), opacity .4s, background .3s, color .3s; transition-delay: calc(var(--i) * 80ms);
}
.chips.in .chip { opacity: 1; transform: rotate(var(--r)); }
.chip:hover { background: var(--ink); color: var(--paper); transition-delay: 0s; }
.chip.wiggle { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -9deg; scale: 1.12; } 50% { rotate: 7deg; } 75% { rotate: -3deg; } }

/* =========================================================
   PROCESS — stacking sticky cards
   ========================================================= */
.process { padding: 30px 0 40px; }
.process .section-head { margin-bottom: 30px; }
.scards { display: grid; gap: 22px; padding: 0 var(--pad) 8vh; }
.scard {
  position: sticky; top: calc(80px + var(--n) * 16px);
  min-height: min(68svh, 540px); border-radius: 30px; padding: 24px; overflow: hidden;
  background: var(--c); color: var(--ink); border: 1px solid var(--line);
  display: grid; grid-template-rows: auto auto 1fr; gap: 14px; transform-origin: 50% 0;
}
.scard--dark { color: var(--paper); border-color: var(--ink); }
.scard--dark p { color: var(--line) !important; }
.scard-num { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 20vw, 150px); line-height: .8; }
.scard h3 { font-size: clamp(28px, 7vw, 46px); margin-bottom: 8px; }
.scard p { color: var(--ink-soft); max-width: 40ch; }
.scard-img { border-radius: 18px; overflow: hidden; min-height: 140px; }

/* =========================================================
   STUDIO — pinned zoom-out into a grid
   ========================================================= */
.studio { height: 300vh; }
.studio-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.6svh, 28px); padding: 64px var(--pad) 20px; }
.studio-head { text-align: center; }
.studio-head h2 { font-size: clamp(34px, 8.5vw, 70px); margin-top: 12px; }
.zgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(92vw, 52svh, 600px); }
.tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: block; background: var(--paper-2); }
.tile img { transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--white); background: rgba(43, 41, 39, .35); opacity: 0; transition: opacity .3s; }
.tile:hover span, .tile.liked span { opacity: 1; }
.tile.liked span { animation: pop .6s var(--spring); }
@keyframes pop { 0% { scale: .3; } 100% { scale: 1; } }
.tile--center { background: transparent; }
.zoom { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.zoom img { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.studio-intro {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; pointer-events: none;
  color: var(--paper); font-size: clamp(48px, 14vw, 140px); padding: 0 var(--pad);
}

/* =========================================================
   DMs — pinned chat that "types" as you scroll
   ========================================================= */
.dms { height: 280vh; }
.dms-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 70px var(--pad) 24px; }
.dms-head { text-align: center; }
.dms-head h2 { font-size: clamp(38px, 10vw, 80px); margin-top: 12px; }
.phone {
  width: min(100%, 390px); height: min(58svh, 560px); background: var(--white); border-radius: 34px; border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transform: rotate(var(--tilt, 0deg)) translateY(var(--rise, 0px));
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--paper-2); }
.phone-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); padding: 5px; object-fit: contain; }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { font-size: 12px; color: var(--muted); }
.phone-top small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7fbf7f; margin-right: 5px; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.bub { display: none; max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.35; }
.bub small { display: block; font-size: 11px; opacity: .55; margin-bottom: 2px; }
.bub.show { display: block; animation: popin .55s var(--spring) both; }
.them { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
@keyframes popin { from { opacity: 0; transform: scale(.5) translateY(16px); } }
.typing { display: none; align-self: flex-end; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--ink); }
.typing.show { display: flex; animation: popin .4s var(--spring) both; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s } .typing span:nth-child(3) { animation-delay: .3s }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* =========================================================
   ORDER — pill grows until it fills the screen
   ========================================================= */
.order { height: 270vh; }
.order-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; }
.order-bg { position: absolute; inset: 0; background: var(--ink); clip-path: inset(43% 14% round 60px); will-change: clip-path; }
.order-pill { position: absolute; z-index: 2; color: var(--paper); font-family: var(--display); font-weight: 400; font-size: clamp(18px, 4.6vw, 30px); white-space: nowrap; }
.order-content { position: relative; z-index: 2; color: var(--paper); padding: 0 var(--pad); visibility: hidden; }
.order-content.in { visibility: visible; }
.order-content > .tag, .order-sub, .order-cta { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.order-content.in > .tag { opacity: 1; transform: rotate(0); }
.order-content.in .order-sub { opacity: 1; transform: none; transition-delay: .35s; }
.order-content.in .order-cta { opacity: 1; transform: none; transition-delay: .5s; }
.order h2 { font-size: clamp(44px, 12vw, 104px); max-width: 12ch; margin: 18px auto 0; }
.order-sub { max-width: 34ch; margin: 22px auto 0; color: var(--line); }
.order-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.order-bloom { position: absolute; z-index: 1; width: min(52vw, 320px); filter: brightness(0) invert(.95); opacity: 0; pointer-events: none; }
.order-bloom--l { left: -14%; top: 4%; }
.order-bloom--r { right: -14%; bottom: 2%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--paper); padding: 40px var(--pad) 28px; text-align: center; overflow: hidden; }
.logo--footer { --lw: min(74vw, 400px); margin: 0 auto; }
.logo--footer .logo-word img { animation: wave 3s ease-in-out infinite; animation-delay: calc(var(--i) * .12s); }
.logo--footer .lm-flower { transform-origin: 61% 97%; animation: sway 5s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-30%); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
.footer-love { margin-top: 26px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(246, 244, 241, .14); font-size: 13px; color: var(--muted); }
.footer-row a:hover { color: var(--paper); }

/* tap bursts */
.burst { position: fixed; z-index: 997; pointer-events: none; width: 10px; height: 13px; border-radius: 50% 0 50% 50%; background: var(--c); animation: burst .9s var(--ease) forwards; }
.burst--flower { width: 26px; height: auto; background: none; border-radius: 0; }
@keyframes burst { to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.2); opacity: 0; } }

/* =========================================================
   LARGER SCREENS
   ========================================================= */
@media (min-width: 760px) {
  .hero-sub { font-size: 18px; }
  .scard { padding: 36px; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto 1fr; column-gap: 40px; }
  .scard-num { grid-column: 1; }
  .scard-text { grid-column: 1; align-self: end; }
  .scard-img { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-title { font-size: clamp(60px, 5.8vw, 104px); max-width: 12ch; }
  .hero-visual { height: 600px; }
  .nav-mark { height: 52px; width: calc(52px * 630 / 684); }
  .nav-word { height: 14px; width: calc(14px * 984 / 144); }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
  .section-head .tag { order: 2; }
  .scards { max-width: 1100px; margin: 0 auto; }
  .order-bloom--l { left: 3%; } .order-bloom--r { right: 3%; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .drift { display: none; }
}
