:root {
  --ivory: #faf6f1;
  --paper: #fffdfb;
  --cocoa: #2c211c;
  --muted: #6a574e;
  --rose: #8d3144;
  --rose-deep: #6f2434;
  --blush: #f0b7c0;
  --line: rgba(44, 33, 28, 0.12);
  --shadow: 0 18px 50px rgba(44, 33, 28, 0.1);
  --radius: 22px;
  --header: 124px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--cocoa);
  background:
    radial-gradient(900px 480px at 100% -10%, #f8e3dc, transparent 60%),
    radial-gradient(700px 420px at -10% 12%, #f3ead8, transparent 55%),
    var(--ivory);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }
::selection { background: #f4c3cb; color: var(--cocoa); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--cocoa);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; scroll-margin-top: 5.5rem; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 253, 251, 0.45), rgba(255, 253, 251, 0.9));
}
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.section-head h2, .hero h1, .enquire-grid h2, .studio-grid h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.section-intro { max-width: 42rem; color: var(--muted); margin: 0.4rem 0 1.4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: max(0.55rem, env(safe-area-inset-top)) 4vw 0.55rem;
  background: rgba(250, 246, 241, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}
.logo-mark {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: #e6d5cb;
  box-shadow: 0 8px 18px rgba(44, 33, 28, 0.16);
}
.logo-mark img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.35);
}
.logo strong { display: block; font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.03em; }
.logo small { display: block; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.nav { display: flex; gap: 1.3rem; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--rose); }
.nav-phone { display: none; }
.header-phone {
  color: var(--cocoa);
  text-decoration: none;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}
.header-phone:hover { color: var(--rose); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--cocoa);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.social:hover { color: var(--rose); }
.fb-icon { width: 28px; height: 28px; color: #1877F2; flex: 0 0 auto; }
.social-inline { border: 0; background: transparent; min-height: 0; padding: 0; }
.icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 22px; height: 22px; }
.count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 0.72rem;
  font-weight: 650;
  display: grid;
  place-items: center;
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle i { display: block; width: 16px; height: 2px; background: var(--cocoa); transition: transform 0.2s ease; }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.where { margin-top: 0.8rem; color: var(--cocoa); font-weight: 500; }

.hero { padding: 1.5rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 em { font-style: italic; font-weight: 520; color: var(--rose); }
.lede { margin-top: 1.1rem; font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pills li {
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.7);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: var(--rose);
  color: white;
  text-decoration: none;
  font-weight: 600;
  min-height: 48px;
}
.btn:hover { background: var(--rose-deep); }
.btn-ghost { background: transparent; color: var(--cocoa); border: 1px solid var(--line); }
.btn-ghost:hover { background: white; }
.btn-text { background: transparent; color: var(--rose); padding-inline: 0.4rem; }
.btn-text:hover { background: transparent; text-decoration: underline; }

.hero-photos { position: relative; min-height: 520px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.main-frame {
  margin: 0;
  height: 540px;
  border-radius: 32px 32px 120px 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.polaroid {
  position: absolute;
  left: -8%;
  bottom: 6%;
  width: min(240px, 46%);
  margin: 0;
  padding: 0.55rem 0.55rem 0.7rem;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}
.polaroid img { height: 150px; border-radius: 4px; }
.polaroid figcaption {
  padding-top: 0.4rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}
.float-note {
  position: absolute;
  right: 4%;
  top: 8%;
  background: var(--cocoa);
  color: var(--ivory);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  max-width: 12rem;
  text-align: center;
}

.marquee {
  overflow: hidden;
  background: var(--cocoa);
  color: #f6efe8;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: tick 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee p {
  margin: 0;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes tick { to { transform: translateX(-50%); } }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: 42px;
}
.chip.is-on, .chip:hover { background: var(--cocoa); color: white; border-color: var(--cocoa); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.item {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.item h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.item p { color: var(--muted); }
.item.is-in { border-color: #e7b7c0; background: #fff7f8; }
.item-mix { grid-column: 1 / -1; }
.ticks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.ticks label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  white-space: nowrap;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 42px;
}
.add-btn {
  flex: 0 0 auto;
  border: 0;
  background: #f6ece6;
  color: var(--cocoa);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  min-height: 42px;
  font-weight: 650;
}
.add-btn:hover, .item.is-in .add-btn { background: var(--rose); color: white; }
.pulse { animation: pulse 0.7s ease; }
@keyframes pulse {
  50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(141, 49, 68, 0.12); }
}

.gallery { columns: 3 240px; column-gap: 0.9rem; }
.shot {
  break-inside: avoid;
  margin: 0 0 0.9rem;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #efe6de;
  cursor: zoom-in;
}
.shot img { width: 100%; height: auto; transition: transform 0.45s ease; }
.shot-open:hover img { transform: scale(1.03); }
.shot figcaption { padding: 0.7rem 0.85rem 0.85rem; font-size: 0.95rem; }

.studio-grid, .enquire-grid, .quote-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.studio-controls fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.studio-controls legend { font-weight: 650; margin-bottom: 0.45rem; }
.choice { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.choice-btn, .swatch {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  min-height: 42px;
}
.choice-btn.is-on, .swatch.is-on { background: var(--cocoa); color: white; border-color: var(--cocoa); }
.swatch { padding-left: 2rem; position: relative; }
.swatch::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--sw);
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.field { display: grid; gap: 0.35rem; font-weight: 500; min-width: 0; }
.field span { font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font-weight: 400;
}
textarea { resize: vertical; }
.studio-line { margin: 0.2rem 0 1rem; color: var(--muted); min-height: 3rem; }

.stage-wrap { position: sticky; top: calc(var(--header) + 1rem); }
.stage {
  position: relative;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6efe6;
  box-shadow: var(--shadow);
}
#cake-canvas { width: 100%; height: auto; display: block; }
.stage-caption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }
.req { color: var(--rose); text-decoration: none; }
.optional { color: var(--muted); font-weight: 400; }

.section-quote { padding-top: 0; }
.quote-grid { align-items: center; }
blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
blockquote p::before { content: "“"; color: var(--rose); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.8rem; }
.steps span { grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.6rem; color: var(--rose); }
.steps p { color: var(--muted); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form { display: grid; gap: 0.75rem; }
.aside-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.aside-list li + li { margin-top: 0.35rem; }
.basket-preview {
  background: #faf4ee;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  color: var(--cocoa);
}
.pick-list { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.pick-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}
.pick-list .qty-num { font-weight: 650; }
.pick-list small { display: block; color: var(--muted); }
.pick-list button, .text-btn {
  border: 0;
  background: transparent;
  color: var(--rose);
  font-weight: 650;
  min-height: 36px;
}
.form-error { color: var(--rose-deep); font-weight: 600; }
.fine-print { color: var(--muted); font-size: 0.9rem; }
.success h3 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 0.4rem; }
.success textarea { min-height: 180px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 1.5rem; align-items: start; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; }
.site-footer nav { display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--rose); }
.footer-note { color: var(--muted); }

.drawer, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(44, 33, 28, 0.46);
}
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer-head, .drawer-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; }
.drawer-head h2 { font-size: 1.8rem; }
.drawer-body { padding: 0 1.1rem 1rem; overflow: auto; flex: 1; min-height: 0; }
.drawer-foot { border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.line strong { font-weight: 650; }
.line small { grid-column: 1 / -1; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 0.35rem; }
.qty button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: white;
}
.empty-note { color: var(--muted); }
#close-basket, .lb-close { position: relative; }
#close-basket::before, #close-basket::after, .lb-close::before, .lb-close::after {
  content: "";
  position: absolute;
  width: 16px; height: 2px; background: currentColor;
}
#close-basket::before, .lb-close::before { transform: rotate(45deg); }
#close-basket::after, .lb-close::after { transform: rotate(-45deg); }

.lightbox { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1rem; }
.lightbox[hidden], .drawer[hidden], [hidden] { display: none !important; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 0.6rem; }
.lightbox img { max-height: min(78vh, 900px); width: auto; max-width: min(92vw, 1000px); border-radius: 12px; background: white; }
.lightbox figcaption { color: white; }
.lb-close { position: absolute; top: 1rem; right: 1rem; color: white; background: transparent; border-color: rgba(255,255,255,.4); }
.lb-nav {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: transparent; color: white; font-size: 2rem; line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(140%);
  background: var(--cocoa);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  z-index: 70;
  transition: transform 0.3s ease;
  max-width: calc(100% - 2rem);
}
.toast.show { transform: translateX(-50%) translateY(0); }
#spark { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

@media (max-width: 1040px) {
  :root { --header: 104px; }
  .logo-mark { width: 84px; height: 84px; }
  .logo strong { font-size: 1.3rem; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .header-actions .social span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .header-actions .social { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .nav-phone { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-align: left; }
}
@media (max-width: 860px) {
  .hero-grid, .studio-grid, .enquire-grid, .quote-grid, .footer-grid, .menu-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-photos { min-height: 0; margin-bottom: 1.5rem; }
  .main-frame { height: 420px; }
  .polaroid { left: 4%; bottom: -12px; width: min(200px, 48%); }
  .hero { padding-bottom: 3.2rem; }
  .float-note { display: none; }
  .site-header { flex-wrap: nowrap; }
  .stage-wrap { position: static; }
  .item-mix { grid-column: auto; }
  .gallery { columns: 2 140px; }
}

@media (max-width: 560px) {
  :root { --header: 92px; }
  .logo-mark { width: 76px; height: 76px; }
  .logo small { display: none; }
  .wrap { width: min(1120px, calc(100% - 1.25rem)); }
  .gallery { columns: 1; }
  .hero-actions .btn { width: 100%; }
  .float-note { display: none; }
  .main-frame { height: 320px; }
  .polaroid { width: min(168px, 46%); }
  .polaroid img { height: 110px; }
  .lb-nav { width: 40px; height: 40px; }
  .lightbox { padding: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse, .stage.pop, .shot img { animation: none; transition: none; }
  .toast { transition: none; }
}
