/* Cream Pie — Kling AI Cinema Edition (2026) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-95b9ea830580.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0608;
  --bg-elev: #150b0e;
  --bg-card: #190d11;
  --border: rgba(255, 232, 214, 0.11);
  --border-strong: rgba(255, 224, 198, 0.24);
  --ink: #faf3ea;
  --ink-soft: rgba(246, 231, 216, 0.74);
  --ink-muted: rgba(240, 218, 200, 0.52);
  --cherry: #c8224a;
  --cherry-bright: #e43b63;
  --gold: #e6b87a;
  --gold-soft: #f5d8aa;
  --cream: #fff5e6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-cinema: 0 28px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; z-index: 99; top: .75rem; left: .75rem; padding: .6rem 1rem; background: var(--cream); color: #16090d; border-radius: 999px; transform: translateY(-220%); font-weight: 600; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(100% - 3rem, 80rem); margin-inline: auto; }

/* Sticky Glass Masthead */
.masthead-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(12, 6, 8, 0.72) 0%, rgba(12, 6, 8, 0.0) 100%);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.masthead-bar.is-scrolled,
body:not(.is-home) .masthead-bar {
  background: rgba(12, 6, 8, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: var(--border);
}
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--serif); font-size: 1.75rem; font-weight: 600;
  letter-spacing: -.02em; color: #fff; white-space: nowrap;
}
.brand-mark {
  width: 10px; height: 10px; border-radius: 999px; margin-right: .58rem; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #ff8fa8, var(--cherry) 65%, #730d27);
  box-shadow: 0 0 18px rgba(228, 59, 99, 0.75);
}
.brand span { color: var(--gold); }
.masthead nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 2.1rem); }
.masthead nav a { font-size: .88rem; font-weight: 450; color: rgba(255, 245, 232, 0.82); white-space: nowrap; }
.masthead nav a:hover { color: #fff; }
.masthead .language {
  padding: .34rem .82rem; border-radius: 999px;
  border: 1px solid rgba(255, 235, 215, 0.34);
  background: rgba(255, 255, 255, 0.06);
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; color: var(--cream);
  transition: all .2s ease;
}
.masthead .language:hover { background: var(--cream); color: #16090d; border-color: var(--cream); }

/* Typography & Buttons */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.02; letter-spacing: -.02em; color: #fff; }
h1 em, h2 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.eyebrow, .label {
  margin: 0 0 .7rem; font-family: var(--sans); font-size: .72rem;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.btn-cinema-primary, .btn-cinema-ghost, .btn-cinema-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.45rem; border-radius: 999px; font-size: .88rem; font-weight: 550;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-cinema-primary { background: var(--cream); color: #16080d; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }
.btn-cinema-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 16px 40px rgba(230, 184, 122, 0.22); }
.btn-cinema-ghost { background: rgba(255, 245, 232, 0.08); border-color: rgba(255, 235, 215, 0.28); color: #fff; backdrop-filter: blur(12px); }
.btn-cinema-ghost:hover { background: rgba(255, 245, 232, 0.17); border-color: rgba(255, 235, 215, 0.55); }
.btn-cinema-outline { background: transparent; border-color: var(--border-strong); color: var(--cream); }
.btn-cinema-outline:hover { background: rgba(255, 245, 232, 0.1); border-color: var(--gold); color: #fff; }

/* Full-Bleed Kling AI Cinema Hero */
.cinema-hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 84px; overflow: hidden; background: #14050a; color: #fff;
}
.cinema-stage-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* still frame shown until the film starts; the phone version is set in the 44rem block below */
  background: #14050a url("poster-hero-wide.webp") 68% 52% / cover no-repeat;
}
.cinema-video {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 68% 52%; transform: scale(1.015);
  position: absolute; inset: 0; opacity: 0;
}
/* Two stacked camera angles: the incoming one fades in on top, the previous one is hidden after the fade */
.cinema-video.is-active { opacity: 1; }
.cinema-video.is-front { z-index: 1; transition: opacity 1.4s ease; }
.cinema-video-alt { object-position: 56% 52%; }
.cinema-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* One shading per camera angle; they cross-fade together with the videos */
.cinema-scrim::before, .cinema-scrim::after { content: ""; position: absolute; inset: 0; transition: opacity 1.4s ease; }
.cinema-scrim::before {
  background:
    linear-gradient(180deg, rgba(12, 5, 8, 0.56) 0%, rgba(12, 5, 8, 0.08) 24%, rgba(12, 5, 8, 0.14) 72%, rgba(12, 6, 8, 0.94) 100%),
    linear-gradient(90deg, rgba(16, 4, 9, 0.86) 0%, rgba(18, 5, 10, 0.62) 38%, rgba(18, 5, 10, 0.18) 60%, rgba(18, 5, 10, 0.02) 82%);
}
.cinema-scrim::after {
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(12, 5, 8, 0.55) 0%, rgba(12, 5, 8, 0.14) 26%, rgba(12, 5, 8, 0.22) 68%, rgba(12, 6, 8, 0.96) 100%),
    linear-gradient(90deg, rgba(16, 4, 9, 0.84) 0%, rgba(16, 4, 9, 0.56) 44%, rgba(16, 4, 9, 0.16) 72%, rgba(16, 4, 9, 0.04) 100%);
}
.cinema-hero[data-scene="macro"] .cinema-scrim::before { opacity: 0; }
.cinema-hero[data-scene="macro"] .cinema-scrim::after { opacity: 1; }
.cinema-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .06;
  background-image: radial-gradient(rgba(255, 232, 210, 0.45) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}
.cinema-content { position: relative; z-index: 5; flex: 1; display: flex; align-items: center; padding-block: clamp(2.2rem, 6vh, 4.5rem) 1.5rem; }
.cinema-copy { max-width: 650px; animation: cinemaReveal .85s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes cinemaReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cinema-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.05rem;
  padding: .34rem .88rem; border-radius: 999px;
  background: rgba(16, 6, 10, 0.64); border: 1px solid rgba(255, 224, 198, 0.26);
  backdrop-filter: blur(14px); font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--gold-soft);
}
.cinema-hero h1 { font-size: clamp(3.3rem, 7vw, 6.2rem); line-height: .94; letter-spacing: -.025em; text-shadow: 0 16px 48px rgba(0, 0, 0, 0.55); margin-bottom: 1.15rem; }
.cinema-lead { margin: 0 0 1.8rem; max-width: 34rem; font-size: clamp(.98rem, 1.35vw, 1.12rem); line-height: 1.62; color: rgba(252, 240, 228, 0.88); text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55); }

/* Signature Kling AI Glass Search Pill */
.kling-bar {
  display: flex; align-items: center; gap: .75rem; max-width: 620px;
  padding: 7px 8px 7px 9px; border-radius: 999px;
  background: rgba(22, 9, 13, 0.62); border: 1px solid rgba(255, 232, 212, 0.30);
  backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.kling-bar:focus-within { border-color: rgba(245, 216, 170, 0.68); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(230, 184, 122, 0.16); }
.kling-thumb { width: 54px; height: 38px; border-radius: 999px; object-fit: cover; border: 1px solid rgba(255, 232, 212, 0.34); flex-shrink: 0; }
.kling-sep { width: 1px; height: 22px; background: rgba(255, 232, 212, 0.24); flex-shrink: 0; }
.kling-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: .92rem; color: #fff; padding: .4rem .25rem; }
.kling-input::placeholder { color: rgba(252, 238, 224, 0.68); }
.kling-cta {
  padding: .68rem 1.3rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: #12060a; color: #fff; font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.kling-cta:hover { background: var(--cream); color: #16080d; transform: translateY(-1px); }
.kling-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .95rem; }
.kling-tag {
  padding: .38rem .85rem; border-radius: 999px; border: 1px solid rgba(255, 232, 212, 0.20);
  background: rgba(18, 7, 11, 0.46); backdrop-filter: blur(12px);
  font-size: .78rem; font-weight: 500; color: rgba(255, 245, 235, 0.90); transition: all .2s ease;
}
.kling-tag:hover { background: rgba(255, 245, 235, 0.18); border-color: rgba(245, 216, 170, 0.62); color: #fff; }
.cinema-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.55rem; }
.cinema-bottom { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .85rem 1.75rem; }
.cinema-meta { display: flex; align-items: center; gap: .65rem; font-size: .8rem; color: rgba(250, 236, 222, 0.72); letter-spacing: .02em; }
.cinema-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.c-pill {
  height: 36px; padding: 0 .95rem; border-radius: 999px; border: 1px solid rgba(255, 232, 212, 0.22);
  background: rgba(16, 7, 10, 0.64); backdrop-filter: blur(14px);
  color: rgba(255, 245, 235, 0.88); font-size: .78rem; font-weight: 500; transition: all .2s ease;
}
.c-pill:hover, .c-pill.active { background: var(--cream); color: #16080d; border-color: var(--cream); }
.c-pill-icon { width: 38px; padding: 0; display: grid; place-items: center; }

/* Anatomy / Inside Band */
.inside-band {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  background: radial-gradient(70% 50% at 15% 20%, rgba(132, 24, 54, 0.20) 0%, transparent 70%), var(--bg);
  border-top: 1px solid var(--border);
}
.inside-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.inside-visual { position: relative; }
.inside-frame {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--bg-elev); box-shadow: var(--shadow-cinema);
}
.inside-frame img { width: 100%; aspect-ratio: 1.38; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.inside-frame:hover img { transform: scale(1.035); }
.inside-frame figcaption {
  padding: .95rem 1.25rem; font-size: .78rem; letter-spacing: .06em; color: var(--ink-muted);
  border-top: 1px solid var(--border); background: rgba(12, 6, 8, 0.72);
}
.inside-subcard {
  position: absolute; right: -18px; bottom: -24px;
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem 1.05rem .75rem .75rem; border-radius: 18px;
  background: rgba(24, 11, 16, 0.88); border: 1px solid var(--border-strong);
  backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); max-width: 280px;
}
.inside-subcard img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.inside-subcard .label { margin: 0 0 .15rem; font-size: .64rem; }
.inside-subcard strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: #fff; line-height: 1.1; }
.inside-subcard span { display: block; font-size: .74rem; color: var(--ink-muted); margin-top: .2rem; }
.inside-copy h2, .studio-copy h2, .recipes-band h2 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.01; }
.section-lead { margin: 1rem 0 1.8rem; color: var(--ink-soft); max-width: 32rem; }
.anatomy-list { margin: 0 0 2rem; }
.anatomy-list div { padding-block: 1.05rem; border-top: 1px solid var(--border); }
.anatomy-list div:last-child { border-bottom: 1px solid var(--border); }
.anatomy-list dt { display: flex; align-items: baseline; gap: .85rem; font-family: var(--serif); font-size: 1.45rem; color: #fff; }
.anatomy-list dt span { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; color: var(--gold); }
.anatomy-list dd { margin: .35rem 0 0 2.05rem; color: var(--ink-soft); font-size: .94rem; }

/* Interactive Pan Studio Band */
.studio-band { padding-block: clamp(2rem, 5vw, 4.5rem); background: var(--bg); }
.studio {
  display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center; padding: clamp(1.6rem, 4.5vw, 3.6rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(44, 15, 25, 0.86) 0%, rgba(20, 9, 13, 0.94) 100%);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-cinema);
}
.studio-copy p { margin: 1rem 0 1.4rem; color: var(--ink-soft); max-width: 30rem; }
.studio-presets, .studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.studio-actions { margin-top: 1.5rem; }
.studio-presets button {
  padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255, 245, 235, 0.05); color: var(--ink-soft); font-size: .86rem; font-weight: 500; transition: all .2s ease;
}
.studio-presets button:hover { border-color: var(--gold); color: #fff; }
.studio-presets button[aria-pressed="true"] { background: var(--cream); color: #16080d; border-color: var(--cream); font-weight: 600; }
.studio-preview {
  padding: clamp(1.25rem, 3vw, 2.2rem); border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 35%, rgba(154, 24, 58, 0.34) 0%, rgba(12, 5, 8, 0.92) 72%);
  border: 1px solid var(--border);
}
.studio-pan-frame { aspect-ratio: 1.3; width: min(100%, 17rem); margin-inline: auto; display: grid; place-items: center; }
.studio-pan {
  width: var(--pan-width, 100%); height: var(--pan-height, 100%); max-width: 13.5rem; aspect-ratio: 1;
  border-radius: 50%; border: .32rem solid rgba(230, 184, 122, 0.85);
  background: #6c1830 url("cherry.webp") center / cover;
  box-shadow: 0 0 0 1px rgba(255, 236, 206, 0.35), 0 18px 46px rgba(0, 0, 0, 0.65);
  transition: width .3s cubic-bezier(.16, 1, .3, 1), height .3s cubic-bezier(.16, 1, .3, 1), border-radius .3s ease;
}
.studio-pan[data-shape="rect"] { border-radius: 1rem; }
.studio-amounts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem;
  margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); text-align: center;
}
.studio-amounts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.studio-amounts dd { margin: .25rem 0 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

/* Recipe Book Catalogue Band */
.recipes-band { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4.5rem, 8vw, 7.5rem); background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.search { min-width: min(20rem, 100%); }
.search label, .calculator label, .quick-scale label {
  display: block; margin-bottom: .38rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
}
.search input, .calculator input, .calculator select, .quick-scale input {
  width: 100%; padding: .72rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(255, 245, 235, 0.05);
  color: #fff; font-size: .95rem; transition: border-color .2s ease, background .2s ease;
}
.search input::placeholder { color: var(--ink-muted); }
.search input:focus, .calculator input:focus, .calculator select:focus, .quick-scale input:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 245, 235, 0.08);
}
.calculator select option { background: #190d11; color: #fff; }
.filters-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  padding: .48rem 1.05rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255, 245, 235, 0.04); color: var(--ink-soft); font-size: .84rem; font-weight: 500; transition: all .2s ease;
}
.filters button:hover { border-color: var(--gold); color: #fff; }
.filters button[aria-pressed="true"] { background: var(--cream); color: #16080d; border-color: var(--cream); font-weight: 600; }
.count { margin: 0; font-size: .85rem; color: var(--ink-muted); letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease, box-shadow .35s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(230, 184, 122, 0.42); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; overflow: hidden; background: #12070a; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .65s cubic-bezier(.16, 1, .3, 1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute; top: 12px; left: 12px; padding: .24rem .68rem; border-radius: 999px;
  background: rgba(16, 6, 10, 0.78); border: 1px solid rgba(230, 184, 122, 0.65);
  backdrop-filter: blur(10px); font-size: .68rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
}
.card-copy { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.3rem 1.35rem; }
.card-copy .label { margin-bottom: .45rem; font-size: .68rem; }
.card-copy h3 { font-size: clamp(1.45rem, 2vw, 1.82rem); line-height: 1.08; margin-bottom: .55rem; color: #fff; }
.card-copy p:not(.label):not(.time) { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.card-copy .time {
  margin: auto 0 0; padding-top: .8rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ink-muted);
}

/* Recipe Detail Page */
.recipe-hero-band {
  padding-block: 7.5rem 3.5rem;
  background: radial-gradient(60% 60% at 75% 30%, rgba(136, 22, 54, 0.25) 0%, transparent 72%), #110609;
  border-bottom: 1px solid var(--border);
}
.back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.8rem; font-size: .84rem; font-weight: 500; color: var(--gold-soft); }
.back:hover { color: #fff; }
.recipe-header { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.recipe-meta-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.recipe-meta-top .label { margin: 0; }
.recipe-new-pill {
  padding: .2rem .68rem; border-radius: 999px; border: 1px solid rgba(230, 184, 122, 0.5);
  background: rgba(230, 184, 122, 0.12); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft);
}
.recipe-header h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: .98; margin-bottom: 1rem; }
.recipe-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 30rem; margin: 0 0 1rem; }
.recipe-header .time { margin: 0 0 1.6rem; font-size: .86rem; color: var(--gold); letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.recipe-header-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-cinema); }
.recipe-header-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-grid { display: grid; grid-template-columns: minmax(17rem, .92fr) 1.48fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.8rem, 6vw, 5rem); align-items: start; }
.ingredients { padding: clamp(1.35rem, 3vw, 2.2rem); border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border); }
.ingredients h2, .method h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); margin-bottom: .65rem; }
.base-note { font-size: .88rem; color: var(--ink-muted); margin: 0 0 1.2rem; }
.quick-scale { margin-bottom: 1.25rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--border); }
.quick-scale input { max-width: 7.5rem; }
.quick-scale p { margin: .45rem 0 0; font-size: .84rem; color: var(--gold-soft); }
.ingredient-list { list-style: none; padding: 0; margin: 0; }
.ingredient-list li { border-top: 1px solid var(--border); }
.ingredient-list li label { display: flex; gap: .75rem; padding: .68rem 0; cursor: pointer; align-items: flex-start; }
.ingredient-list input { margin-top: .32rem; accent-color: var(--gold); flex: none; }
.ingredient-list input:checked + span { text-decoration: line-through; color: var(--ink-muted); }
.ingredient-list strong { color: var(--gold-soft); font-weight: 600; }
.calc-inline-link { display: inline-flex; margin-top: 1.25rem; font-size: .88rem; font-weight: 550; color: var(--gold); }
.calc-inline-link:hover { color: #fff; }
.method ol { list-style: none; padding: 0; margin: 1.4rem 0 2rem; counter-reset: step; }
.method li {
  counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding-block: 1.25rem; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 1rem; line-height: 1.7;
}
.method li::before { content: "0" counter(step); font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; color: var(--gold); }
.method li:nth-child(n+10)::before { content: counter(step); }

/* Baking Mode Modal */
body:has(#bake[open]) { overflow: hidden; }
#bake {
  color: var(--ink); background: #160a0e; width: min(100% - 2rem, 62rem); max-width: none;
  max-height: min(92dvh, 58rem); padding: 0; border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: 0 32px 100px rgba(0, 0, 0, 0.85);
}
#bake::backdrop { background: rgba(7, 2, 4, 0.82); backdrop-filter: blur(10px); }
.bake-shell { padding: clamp(1.25rem, 4vw, 2.8rem); }
.bake-bar, .bake-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
#bake-progress { margin: 0; color: var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bake-close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.06); color: #fff; border-radius: 50%; font-size: 1.4rem; }
.bake-close:hover { background: var(--cream); color: #16080d; }
#bake-title { font-size: clamp(1.85rem, 4.4vw, 3.3rem); margin: .65rem 0 1rem; }
#bake-meter { display: block; width: 100%; height: .4rem; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: rgba(255, 240, 224, 0.12); color: var(--gold); }
#bake-meter::-webkit-progress-bar { background: rgba(255, 240, 224, 0.12); }
#bake-meter::-webkit-progress-value { background: linear-gradient(90deg, var(--cherry-bright), var(--gold)); }
#bake-meter::-moz-progress-bar { background: linear-gradient(90deg, var(--cherry-bright), var(--gold)); }
.bake-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .46fr); gap: 1.75rem; padding-block: 1.65rem; }
#bake-step { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.4; color: #fff; margin: 0 0 1.2rem; }
#bake-step:focus { outline: none; }
#bake-ingredients h3 { font-size: 1.15rem; color: var(--gold-soft); margin-bottom: .5rem; }
#bake-items { padding-left: 1.15rem; color: var(--ink-soft); }
#bake-items strong { color: #fff; }
.bake-settings { align-self: start; border-radius: var(--radius-md); background: rgba(255, 245, 235, 0.04); border: 1px solid var(--border); padding: 1.15rem; }
.bake-settings label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bake-settings input { width: 100%; margin-top: .35rem; padding: .5rem .7rem; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(255, 245, 235, 0.06); color: #fff; }
.bake-settings p:empty { display: none; }
.bake-settings p { margin: .5rem 0 0; font-size: .84rem; color: var(--gold-soft); }
.bake-timer { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
#timer-clock { font-family: var(--serif); font-size: 2.3rem; color: var(--gold-soft); display: block; margin: .35rem 0; font-variant-numeric: tabular-nums; }
.bake-timer .actions { gap: .45rem; }
.bake-timer .btn-cinema-outline { padding: .42rem .8rem; font-size: .8rem; }
.bake-footer { border-top: 1px solid var(--border); padding-top: 1rem; }
.bake-footer button:disabled, .bake-timer button:disabled { opacity: .4; cursor: default; }

/* Calculator Page */
.calc-hero-band { padding-block: 7.5rem 2.5rem; background: radial-gradient(60% 60% at 20% 25%, rgba(136, 22, 54, 0.22) 0%, transparent 72%), #110609; }
.calc-head h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: .9rem; }
.calc-head p { margin: 0; max-width: 34rem; color: var(--ink-soft); font-size: 1.06rem; }
.pan-stage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding-block: 1.5rem; }
.pan-card { min-width: 0; display: grid; justify-items: center; gap: .4rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.target-card { background: linear-gradient(135deg, rgba(48, 15, 27, 0.72), var(--bg-card)); border-color: var(--border-strong); }
.pan-card strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.pan-card > span { color: var(--gold-soft); font-size: .88rem; }
.pan-frame { width: min(100%, 9rem); aspect-ratio: 1; display: grid; place-items: center; }
.pan-disc {
  width: 100%; height: 100%; border: .24rem solid rgba(230, 184, 122, 0.85); border-radius: 50%;
  background: #5a152a center / cover;
  box-shadow: inset 0 0 0 .18rem rgba(255, 240, 214, 0.35), 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: width .24s ease, height .24s ease, border-radius .24s ease;
}
.pan-disc[data-shape="square"], .pan-disc[data-shape="rect"] { border-radius: .75rem; }
.calculator { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 5rem; align-items: start; }
.calculator form, .calc-output { background: var(--bg-card); border: 1px solid var(--border); padding: clamp(1.35rem, 3.5vw, 2.4rem); border-radius: var(--radius-md); min-width: 0; }
.calculator form > h2, .calc-output h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.1rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.field-pair > div { min-width: 0; }
.calculator .note { margin: 1.2rem 0 0; color: var(--ink-muted); font-size: .88rem; }
.calc-output { background: linear-gradient(180deg, rgba(42, 16, 25, 0.55) 0%, var(--bg-card) 100%); border-color: var(--border-strong); }
#calc-factor { color: var(--gold-soft); font-size: .95rem; margin: 0 0 1rem; }
.calc-output .btn-cinema-primary { margin-bottom: 1.25rem; }
.calc-output li { padding: .62rem 0; border-top: 1px solid var(--border); color: var(--ink-soft); }
.calc-output li strong { color: var(--gold-soft); }
.own-video { width: min(100% - 2rem, 68rem); margin: 2.5rem auto; }
.own-video video { display: block; width: 100%; border-radius: var(--radius-md); background: #14070b; border: 1px solid var(--border); }

/* Footer & Responsive */
.footer-band { border-top: 1px solid var(--border); background: #090406; padding-block: 2.6rem 3rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand p { margin: .55rem 0 0; color: var(--ink-muted); font-size: .88rem; max-width: 28rem; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold-soft); }

@media (max-width: 64rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inside-grid, .studio, .recipe-header, .recipe-grid, .calculator { grid-template-columns: 1fr; }
  .inside-subcard { position: static; margin-top: 1rem; max-width: none; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 62px; }
  .brand { font-size: 1.42rem; }
  .masthead nav { gap: .75rem; }
  .masthead nav a { font-size: .8rem; }
  .masthead nav a[href*="#inside"] { display: none; }
  .cinema-hero { padding-top: 64px; }
  .cinema-video { object-position: 50% 34%; }
  .cinema-stage-media { background-image: url("poster-hero-9x16.webp"); background-position: 50% 34%; }
  .cinema-scrim::before, .cinema-scrim::after { display: none; }
  .cinema-scrim { background: linear-gradient(180deg, rgba(12, 5, 8, 0.58) 0%, rgba(12, 5, 8, 0.04) 22%, rgba(12, 5, 8, 0.18) 40%, rgba(12, 6, 8, 0.86) 62%, rgba(12, 6, 8, 0.98) 86%) !important; }
  .cinema-content { align-items: flex-end; padding-block: 15.5rem .85rem; }
  .cinema-copy { max-width: 100%; }
  .cinema-eyebrow { font-size: .64rem; padding: .28rem .72rem; margin-bottom: .75rem; background: rgba(14, 5, 9, 0.78); }
  .cinema-hero h1 { font-size: clamp(2.65rem, 11.5vw, 3.55rem); margin-bottom: .75rem; }
  .cinema-lead { font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; }
  .kling-bar { flex-wrap: nowrap; padding: 5px 6px 5px 12px; background: rgba(16, 6, 10, 0.78); }
  .kling-thumb, .kling-sep { display: none; }
  .kling-input { font-size: .84rem; }
  .kling-cta { padding: .54rem .95rem; font-size: .78rem; }
  .kling-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-top: .75rem; -webkit-overflow-scrolling: touch; }
  .kling-tags::-webkit-scrollbar { display: none; }
  .kling-tag { flex-shrink: 0; font-size: .74rem; padding: .34rem .76rem; }
  .cinema-cta-row { margin-top: 1.05rem; gap: .6rem; }
  .cinema-cta-row .btn-cinema-primary, .cinema-cta-row .btn-cinema-ghost { padding: .66rem 1.05rem; font-size: .8rem; }
  .cinema-bottom { padding-block: .5rem 1.15rem; }
  .cinema-meta { font-size: .72rem; }
  .section-head { flex-direction: column; align-items: stretch; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .pan-stage { grid-template-columns: 1fr; }
  .bake-body { grid-template-columns: 1fr; }
  .bake-footer { position: sticky; bottom: 0; background: #160a0e; padding-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinema-copy, .card, .card-media img, .inside-frame img, .studio-pan, .pan-disc { animation: none; transition: none; }
}
@media print {
  :root, body { background: #fff; color: #111; }
  .masthead-bar, .footer-band, .skip, .back, .recipe-header-media, .actions, .print, .quick-scale, .calc-inline-link, #bake { display: none !important; }
  .recipe-hero-band { padding: 0; background: none; border: 0; }
  .recipe-grid { display: block; padding: 0; }
  .ingredients { background: #fff; border: 0; padding: 0; }
  h1, h2, h3, .method li, .ingredient-list strong { color: #111; }
}
