:root {
  --ink: #14110e;
  --paper: #f3ebe1;
  --paper-dim: #d9cfc3;
  --amber: #e8a23a;
  --amber-glow: rgba(232, 162, 58, 0.45);
  --mist: rgba(243, 235, 225, 0.78);
  --line: rgba(243, 235, 225, 0.14);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 3.75rem;
  --page-x: max(1.15rem, env(safe-area-inset-left));
  --page-xr: max(1.15rem, env(safe-area-inset-right));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8b5a1a, var(--amber), #ffe2a8);
  box-shadow: 0 0 16px var(--amber-glow);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--page-x) 0 var(--page-xr);
  padding-left: var(--page-x);
  padding-right: var(--page-xr);
  background: rgba(20, 17, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex-shrink: 0;
  opacity: 0.78;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 0.1rem;
  flex-shrink: 0;
}

.header-cta--ghost {
  border-bottom-color: transparent;
  color: var(--paper-dim);
}

.header-cta--ghost:hover {
  color: var(--paper);
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--paper);
}

.header-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0b04a, #d4841f);
  color: var(--ink);
  font-size: 0.85rem;
}

.header-user-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .header-user-name {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.btn[hidden] {
  display: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #f0b04a, #d4841f);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(243, 235, 225, 0.05);
}

.btn-block {
  width: 100%;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 9vw, 4.8rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.7rem, 6.5vw, 3.3rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

/* —— Hero (mobile-first stack) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(var(--header-h) + 0.75rem)
    var(--page-xr)
    max(1.25rem, env(safe-area-inset-bottom))
    var(--page-x);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 162, 58, 0.2), transparent 55%),
    linear-gradient(165deg, #1c1712 0%, #0f0d0b 55%, #18130f 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  will-change: transform;
  pointer-events: none;
}

.hero-glow--a {
  width: 70vw;
  height: 70vw;
  top: -5%;
  right: -15%;
  background: radial-gradient(circle, rgba(255, 196, 96, 0.4), transparent 70%);
}

.hero-glow--b {
  width: 55vw;
  height: 55vw;
  bottom: 25%;
  left: -20%;
  background: radial-gradient(circle, rgba(180, 110, 40, 0.28), transparent 70%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

.lede {
  color: var(--mist);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.cta-row {
  display: grid;
  gap: 0.65rem;
}

.cta-row .btn {
  width: 100%;
}

.hero-visual {
  order: -1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
}

.hero-scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

.hero-scroll-hint i {
  width: 1px;
  height: 1.6rem;
  background: linear-gradient(180deg, var(--amber), transparent);
  animation: tip-down 1.8s var(--ease-out) infinite;
}

/* —— Reveal: lift to sun —— */
.reveal {
  position: relative;
  height: 280vh;
  background: #0b0907;
}

.reveal-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding:
    calc(var(--header-h) + 0.25rem)
    var(--page-xr)
    max(0.75rem, env(safe-area-inset-bottom))
    var(--page-x);
  overflow: hidden;
  perspective: 900px;
}

.reveal-copy {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 30rem;
  margin: 0 auto;
}

.reveal-copy h2 {
  font-size: clamp(1.55rem, 6vw, 2.5rem);
}

.reveal-text {
  display: none;
  margin-top: 0.5rem;
  color: var(--mist);
}

.reveal-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  overflow: hidden;
}

.reveal-ambience {
  position: absolute;
  inset: -10%;
  pointer-events: none;
}

.reveal-ambience--dark {
  background:
    radial-gradient(ellipse at 50% 18%, #2a2218 0%, transparent 42%),
    radial-gradient(ellipse at 50% 70%, #1a1510 0%, #0b0907 70%);
  opacity: 1;
}

.reveal-ambience--light {
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 220, 140, 0.75) 0%, rgba(232, 162, 58, 0.28) 28%, transparent 58%),
    linear-gradient(180deg, #4a3214 0%, #1a120c 55%, #0d0b09 100%);
  opacity: 0;
}

.reveal-sun {
  position: absolute;
  top: 2%;
  left: 50%;
  width: min(42vw, 180px);
  aspect-ratio: 1;
  transform: translate(-50%, 20%) scale(0.55);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.reveal-sun-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0%, #ffd27a 45%, #e8a23a 100%);
  box-shadow: 0 0 40px rgba(255, 200, 100, 0.85);
}

.reveal-sun-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.55) 0%, transparent 68%);
  filter: blur(4px);
}

.reveal-sun-rays {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 220, 150, 0.18) 8deg,
    transparent 16deg,
    transparent 40deg,
    rgba(255, 220, 150, 0.14) 48deg,
    transparent 56deg,
    transparent 80deg,
    rgba(255, 220, 150, 0.16) 88deg,
    transparent 96deg,
    transparent 120deg,
    rgba(255, 220, 150, 0.12) 128deg,
    transparent 136deg,
    transparent 160deg,
    rgba(255, 220, 150, 0.15) 168deg,
    transparent 176deg,
    transparent 200deg,
    rgba(255, 220, 150, 0.12) 208deg,
    transparent 216deg,
    transparent 240deg,
    rgba(255, 220, 150, 0.14) 248deg,
    transparent 256deg,
    transparent 280deg,
    rgba(255, 220, 150, 0.12) 288deg,
    transparent 296deg,
    transparent 320deg,
    rgba(255, 220, 150, 0.14) 328deg,
    transparent 336deg,
    transparent 360deg
  );
  opacity: 0.7;
  animation: sun-spin 28s linear infinite;
}

.reveal-handset {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.45rem, 2.5vw, 1.25rem);
  width: 100%;
  max-width: 720px;
  transform-style: preserve-3d;
  will-change: transform;
  padding-top: 1.5rem;
}

.keychain {
  --i: 0;
  flex: 0 1 auto;
  width: min(28vw, 150px);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.keychain-body {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 100%;
  will-change: transform, box-shadow, filter;
}

.plaque-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.plaque-img--off {
  opacity: 1;
  z-index: 1;
  filter: grayscale(1) brightness(1.55) contrast(0.34) sepia(0.22);
}

.plaque-img--on {
  opacity: 0;
  z-index: 2;
  filter: contrast(1.08) saturate(1.05);
}

.plaque-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(245, 236, 220, 0.5), rgba(210, 198, 180, 0.38));
  opacity: 1;
  pointer-events: none;
}

.plaque-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    160deg,
    rgba(255, 245, 210, 0.45) 0%,
    transparent 42%,
    transparent 100%
  );
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.keychain-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0.85;
}

.reveal-caption {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.reveal-meter {
  height: 3px;
  border-radius: 999px;
  background: rgba(243, 235, 225, 0.12);
  overflow: hidden;
}

.reveal-meter i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8b5a1a, var(--amber), #ffe2a8);
}

@keyframes sun-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Moment —— */
.moment {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 4.5rem var(--page-x);
  overflow: clip;
  text-align: center;
}

.moment-bg {
  position: absolute;
  inset: -15% 0;
  will-change: transform;
}

.moment-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.42);
}

.moment-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.35), rgba(12, 10, 8, 0.88));
}

.moment-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.moment-inner p {
  margin-top: 0.85rem;
  color: var(--mist);
  font-size: 1.02rem;
}

/* —— How —— */
.how {
  padding: 4.5rem var(--page-x) 3rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 162, 58, 0.1), transparent 45%),
    #14110e;
}

.how-intro {
  margin-bottom: 2rem;
}

.how-steps {
  list-style: none;
  display: grid;
  gap: 1.75rem;
}

.how-step {
  max-width: none;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.how-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.how-step.is-visible {
  opacity: 1;
  transform: none;
}

.how-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.45rem;
}

.how-step p {
  color: var(--mist);
}

/* —— Size studio —— */
.size-studio {
  padding: 3rem var(--page-x) 4.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.size-studio.is-visible {
  opacity: 1;
  transform: none;
}

.size-studio-intro {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.size-studio-lede {
  color: var(--mist);
  margin-top: 0.45rem;
}

.size-studio-board {
  display: grid;
  gap: 1.25rem;
}

.size-stage {
  --cm: 4;
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 162, 58, 0.14), transparent 55%),
    linear-gradient(160deg, #1a1510, #0e0c0a 70%);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.size-plaque {
  --cm: 4;
  position: relative;
  width: calc(72px + (var(--cm) - 3) * 14px);
  max-width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 230, 180, 0.18),
    0 0 28px rgba(232, 162, 58, 0.22);
  transition: width 0.18s var(--ease-out);
  background: #1a1510;
}

.size-plaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-plaque-tag {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #14110e;
  background: rgba(240, 176, 74, 0.92);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

.size-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(243, 235, 225, 0.03);
}

.size-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.size-readout strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.size-readout em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber);
}

.size-slider-wrap,
.size-input-wrap {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--paper-dim);
}

.size-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
  height: 1.5rem;
  cursor: pointer;
}

.size-input-wrap input[type="number"] {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.size-formula {
  font-size: 0.82rem;
  color: rgba(243, 235, 225, 0.45);
}

.size-order-cta {
  width: 100%;
}

/* —— Order —— */
.order {
  position: relative;
  padding: 4rem var(--page-x) 5rem;
  overflow: clip;
  background: linear-gradient(180deg, #14110e, #0c0a08);
}

.order-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -20%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 162, 58, 0.2), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.order-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  max-width: 920px;
}

/* —— Delivery —— */
.delivery {
  padding: 4.25rem var(--page-x) 3.25rem;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(232, 162, 58, 0.12), transparent 50%),
    linear-gradient(180deg, #17130f 0%, #14110e 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.delivery.is-visible {
  opacity: 1;
  transform: none;
}

.delivery-intro {
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.delivery-lede {
  margin-top: 0.75rem;
  color: var(--mist);
  font-size: 1.05rem;
}

.delivery-facts {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
}

.delivery-facts > div {
  display: grid;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.delivery-facts dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.delivery-facts dd {
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.45;
}

.order-finale {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: left;
}

.order-finale-text {
  margin: 0.85rem 0 1.4rem;
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 28rem;
}

.order-copy p:last-child {
  margin-top: 0.7rem;
  color: var(--mist);
}

.order-form {
  display: grid;
  gap: 0.9rem;
}

.order-form label {
  display: grid;
  gap: 0.35rem;
}

.order-form label span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.order-form input,
.order-form select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(243, 235, 225, 0.04);
  color: var(--paper);
  outline: none;
}

.order-form input:focus,
.order-form select:focus {
  border-color: rgba(232, 162, 58, 0.65);
  background: rgba(232, 162, 58, 0.06);
}

.order-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--amber) 50%),
    linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.file-field {
  position: relative;
}

.file-field input[type="file"] {
  position: absolute;
  inset: 1.5rem 0 0;
  opacity: 0;
  cursor: pointer;
}

.file-field em {
  display: flex;
  align-items: center;
  min-height: 3.1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed rgba(232, 162, 58, 0.45);
  color: var(--mist);
  font-style: normal;
  background: rgba(232, 162, 58, 0.04);
  word-break: break-word;
}

.form-note {
  color: #b8e0a8;
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.5rem var(--page-x) max(1.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.9rem;
}

@keyframes tip-down {
  0% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.2;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    transform-origin: bottom;
    opacity: 0.2;
  }
}

/* —— Tablet+ —— */
@media (min-width: 640px) {
  :root {
    --page-x: clamp(1.5rem, 4vw, 3rem);
    --page-xr: clamp(1.5rem, 4vw, 3rem);
    --header-h: 4.25rem;
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
  }

  .cta-row .btn {
    width: auto;
  }

  .reveal-text {
    display: block;
  }

  .keychain {
    width: min(22vw, 180px);
  }

  .reveal-sun {
    width: min(28vw, 200px);
  }

  .size-studio-board {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 1.5rem;
  }

  .size-stage {
    min-height: 380px;
  }

  .size-plaque {
    width: calc(96px + (var(--cm) - 3) * 16px);
  }

  .size-order-cta {
    width: auto;
    justify-self: start;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .nav {
    flex: initial;
    justify-content: center;
    gap: 1.75rem;
    font-size: 0.95rem;
    overflow: visible;
    mask-image: none;
  }

  .nav a {
    opacity: 0.72;
  }

  .nav a:hover {
    opacity: 1;
  }

  .hero {
    justify-content: center;
    padding-bottom: 3rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
    padding-bottom: 1rem;
  }

  .hero-visual {
    order: 0;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  .reveal-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .keychain {
    width: min(18vw, 200px);
  }

  .keychain-label {
    font-size: 0.8rem;
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .how-step {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .delivery-facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: none;
  }

  .delivery-facts > div {
    padding-top: 0;
    border-top: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }

  .order-panel {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 2.5rem;
  }
}

/* —— Reviews —— */
.reviews-page .site-header {
  position: sticky;
  top: 0;
}

.reviews-main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.5rem) var(--page-x) 4rem;
}

.reviews-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 1rem;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(243, 235, 225, 0.03);
}

.reviews-summary > strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}

.stars {
  display: inline-flex;
  gap: 0.1rem;
  color: rgba(243, 235, 225, 0.25);
  letter-spacing: 0.02em;
}

.stars .star.is-on {
  color: var(--amber);
}

.reviews-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
  justify-content: space-between;
  margin: 1.4rem 0 1.1rem;
}

.reviews-sort {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--paper-dim);
  min-width: min(100%, 260px);
}

.reviews-sort select,
.review-form select,
.review-form textarea,
.review-form input[type="text"] {
  width: 100%;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  font: inherit;
}

.review-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.review-form-card {
  margin-bottom: 1.4rem;
  padding: 1.2rem 1.2rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 162, 58, 0.28);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(232, 162, 58, 0.12), transparent 55%),
    rgba(243, 235, 225, 0.03);
}

.review-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.review-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.review-form label,
.rating-pick {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--paper-dim);
}

.rating-pick {
  border: 0;
  padding: 0;
  margin: 0;
}

.rating-pick-row {
  display: flex;
  gap: 0.25rem;
}

.rating-pick-row button {
  font-size: 1.55rem;
  line-height: 1;
  color: rgba(243, 235, 225, 0.28);
  padding: 0.15rem;
}

.rating-pick-row button.is-on {
  color: var(--amber);
}

.review-file {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.review-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.review-file em {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  padding: 0.55rem 0.8rem;
  font-style: normal;
}

.review-photo-preview {
  width: min(100%, 220px);
  border-radius: 14px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1a1510;
}

.review-locked .cta-row {
  margin-top: 0.9rem;
}

.reviews-list {
  display: grid;
  gap: 0.9rem;
}

.review-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(243, 235, 225, 0.03);
}

.review-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.7rem;
}

.review-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, #f0b04a, #d4841f);
}

.review-card-top strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 0.15rem;
}

.review-card-top time {
  font-size: 0.82rem;
  white-space: nowrap;
}

.review-text {
  white-space: pre-wrap;
  color: var(--mist);
  line-height: 1.55;
}

.review-photo {
  display: block;
  margin-top: 0.85rem;
  width: min(100%, 220px);
  border-radius: 14px;
  overflow: hidden;
  background: #1a1510;
}

.review-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.reviews-list .empty,
.reviews-main .empty {
  padding: 1.4rem 1rem;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--paper-dim);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  background: #f3ebe1;
  color: #14110e;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scroll-hint i,
  .reveal-sun-rays,
  .how-step,
  .size-studio,
  .delivery {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .size-plaque {
    transition: none;
  }
}
