/* Editorial opening: the photograph sits inside the page, like the supplied reference. */
@media (min-width: 901px) {
  .hero {
    background: var(--paper);
    min-height: 760px;
    max-height: 1000px;
  }
  .hero-picture {
    top: 15%;
    right: 4.5%;
    bottom: 9%;
    left: 25%;
    background-position: 62% center;
    box-shadow: 0 28px 65px rgba(63, 43, 25, .08);
  }
  .hero-picture::after {
    background: linear-gradient(90deg, rgba(250, 247, 241, .18), transparent 58%);
  }
  .hero-content {
    top: 54%;
    left: 6.5%;
    max-width: min(43vw, 630px);
  }
  .hero h1 {
    font-size: clamp(4.4rem, 6.6vw, 7.25rem);
    line-height: .97;
  }
  .hero-index { left: 6.5%; }
  .corner-tl, .corner-bl { left: 4%; }
}

/* A clean camera wipe changes medium; the six registered cutouts reunite without dissolving. */
.transformation {
  height: 285svh;
  min-height: 1800px;
  background: var(--paper);
}
.transformation-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  align-items: center;
  padding: 5rem clamp(1.25rem, 6.5vw, 8rem);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.transformation-copy {
  position: relative;
  z-index: 8;
  padding-right: 1.5rem;
}
.transformation-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 5.2vw, 6.6rem);
  line-height: 1.01;
  letter-spacing: -.065em;
  margin: 0;
}
.transformation-copy h2 em {
  color: var(--orange);
  font-weight: 400;
}
.transformation-copy > p:not(.eyebrow) {
  max-width: 360px;
  margin: 2rem 0 3rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.story-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 360px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.story-progress-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}
.story-progress-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.story-progress-line span {
  display: block;
  width: 0;
  height: 2px;
  background: var(--orange);
}
.transformation-visual {
  --labels-opacity: 0;
  --scan-opacity: 0;
  --scan-y: 18%;
  --image-reveal: 0%;
  --image-scale: 1;
  --wipe-x: 0%;
  --wipe-opacity: 0;
  position: relative;
  height: min(74svh, 690px);
  min-height: 540px;
  isolation: isolate;
}
.assembly-fallback {
  position: absolute;
  z-index: 1;
  inset: 6%;
  background: url("assets/hero-editorial.jpg") 62% center / cover no-repeat;
  transition: opacity .25s ease;
}
.transformation-visual.assembly-ready .assembly-fallback { opacity: 0; visibility: hidden; }
.story-model {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.transformation-visual.assembly-ready .story-model { opacity: 1; }
.story-model::part(default-progress-bar) { display: none; }
.transformation-visual.model-interactive .story-model { pointer-events: auto; }
.assembly-image {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  clip-path: inset(0 calc(100% - var(--image-reveal)) 0 0);
  pointer-events: none;
  will-change: clip-path;
}
.assembly-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  transform: translate(-50%, -50%) scale(var(--image-scale));
  transform-origin: center;
  will-change: transform;
}
.assembly-part {
  position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  max-width: none;
  max-height: none;
  filter: drop-shadow(0 10px 10px rgba(60, 36, 18, .13));
  transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% + var(--offset))) rotate(var(--tilt, 0deg));
  will-change: transform;
}
.assembly-top { z-index: 6; width: 643px; --offset: -117px; }
.assembly-pickles { z-index: 7; width: 563px; --offset: -15px; }
.assembly-beef { z-index: 4; width: 782px; --offset: 20px; }
.assembly-tomato { z-index: 3; width: 586px; --offset: 72px; }
.assembly-lettuce { z-index: 2; width: 754px; --offset: 116px; }
.assembly-base { z-index: 1; width: 707px; --offset: 157px; }
.assembly-wipe-edge {
  position: absolute;
  z-index: 7;
  top: 6%;
  bottom: 6%;
  left: var(--wipe-x);
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--paper), 0 0 22px rgba(220,101,52,.45);
  opacity: var(--wipe-opacity);
  pointer-events: none;
}
.assembly-score {
  position: absolute;
  z-index: 6;
  top: 9%;
  bottom: 8%;
  left: 1%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(28%, 176px);
  opacity: var(--labels-opacity);
  pointer-events: none;
}
.assembly-score span {
  padding: .46rem .5rem;
  border-bottom: 1px solid rgba(44, 56, 39, .24);
  background: rgba(250, 247, 241, .76);
  backdrop-filter: blur(6px);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.assembly-scan {
  position: absolute;
  z-index: 4;
  top: var(--scan-y);
  right: 6%;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(189,77,38,.72) 15%, rgba(189,77,38,.72) 85%, transparent);
  opacity: var(--scan-opacity);
  pointer-events: none;
}
.assembly-scan::before,
.assembly-scan::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--paper);
}
.assembly-scan::before { left: 0; }
.assembly-scan::after { right: 0; }
.assembly-scan span {
  position: absolute;
  right: 2%;
  bottom: .55rem;
  color: var(--orange);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}
.stage-corner {
  z-index: 5;
  width: 24px;
  height: 24px;
  border-color: var(--orange);
}
.stage-corner-tl { top: 4%; left: 4%; border-width: 2px 0 0 2px; }
.stage-corner-tr { top: 4%; right: 4%; border-width: 2px 2px 0 0; }
.stage-corner-bl { bottom: 4%; left: 4%; border-width: 0 0 2px 2px; }
.stage-corner-br { bottom: 4%; right: 4%; border-width: 0 2px 2px 0; }
.transformation-bottom {
  position: absolute;
  right: clamp(1.25rem, 6.5vw, 8rem);
  bottom: 1.6rem;
  left: clamp(1.25rem, 6.5vw, 8rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Conceptual AR photograph, with the calibrated placement overlay below. */
.ar-section {
  padding: 6rem clamp(1.25rem, 7vw, 8rem) 5rem;
  background: var(--cream);
}
.ar-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .45fr);
  align-items: end;
  gap: 7vw;
  margin: 4.5rem 0 3.5rem;
}
.ar-heading h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.8rem, 7vw, 8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.06em;
}
.ar-heading h2 em {
  color: var(--orange);
  font-weight: 400;
}
.ar-heading p {
  max-width: 400px;
  margin: 0 .3rem .5rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
}
.ar-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: #e8dfd2;
}
.ar-scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ar-corner {
  z-index: 3;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, .95);
}
.ar-corner-tl { top: 6%; left: 4%; border-width: 2px 0 0 2px; }
.ar-corner-tr { top: 6%; right: 4%; border-width: 2px 2px 0 0; }
.ar-corner-bl { bottom: 6%; left: 4%; border-width: 0 0 2px 2px; }
.ar-corner-br { bottom: 6%; right: 4%; border-width: 0 2px 2px 0; }
.ar-scene-label {
  position: absolute;
  z-index: 3;
  bottom: 7%;
  left: 5%;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .65rem .8rem;
  background: rgba(250, 247, 241, .92);
  color: var(--ink);
}
.ar-note {
  margin: 1.25rem 0 0;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .03em;
}

/* The menu reveals a different dish before inviting the visitor into the 3D demo. */
.menu-demo-visual { aspect-ratio: auto; height: 455px; }
.menu-catalog { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; background: #f5f0e8; }
.menu-feature { position: relative; min-height: 0; overflow: hidden; }
.model-poster .menu-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.menu-feature-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .45rem .6rem;
  background: rgba(250, 247, 241, .9);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menu-catalog .model-activate {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 105px;
  gap: .9rem;
  padding: .8rem 1rem;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: #f9f5ed;
  box-shadow: none;
  text-align: left;
  white-space: normal;
}
.model-activate-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: url('assets/hero-editorial.jpg') 68% center / cover;
}
.model-activate-copy { display: flex; flex-direction: column; gap: .2rem; }
.model-activate-copy small { font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; color: #a94827; }
.model-activate-copy strong { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; }
.menu-catalog .model-activate-arrow { font-size: 1.5rem; }
.model-close {
  display: none;
  position: absolute;
  z-index: 4;
  top: .8rem;
  right: .8rem;
  border: 0;
  border-radius: 2rem;
  padding: .55rem .8rem;
  background: rgba(249, 245, 237, .94);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-demo-visual.model-active .model-close { display: block; }
.model-status.sr-only-status { width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.menu-demo-description h3 { font-size: 1.85rem; }

/* Capture is photography; the adjacent fields are a labelled concept until product screens arrive. */
.capture-showcase { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); min-height: 560px; margin: 0 0 4rem; }
.capture-photo { position: relative; min-height: 560px; background: url('assets/capture-studio.jpg') 61% center / cover no-repeat; }
.capture-corner { z-index: 2; width: 26px; height: 26px; border-color: rgba(255,255,255,.92); }
.capture-corner-tl { top: 5%; left: 4%; border-width: 2px 0 0 2px; }
.capture-corner-tr { top: 5%; right: 4%; border-width: 2px 2px 0 0; }
.capture-corner-bl { bottom: 5%; left: 4%; border-width: 0 0 2px 2px; }
.capture-corner-br { bottom: 5%; right: 4%; border-width: 0 2px 2px 0; }
.capture-label { position: absolute; left: 5%; bottom: 7%; color: white; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.studio-preview { padding: 1.1rem; background: #e5e6dc; }
.studio-preview-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .3rem .3rem 1.1rem; border-bottom: 1px solid var(--line); }
.studio-preview-top strong { font-size: 1.1rem; letter-spacing: -.06em; }
.studio-preview-top strong span { color: var(--orange); }
.studio-preview-top > span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.studio-preview-body { display: flex; flex-direction: column; min-height: calc(100% - 50px); padding: 2.1rem clamp(1.1rem, 3vw, 3rem) 1.2rem; background: var(--paper); }
.studio-step { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }
.studio-preview h3 { margin: 1.2rem 0 1.6rem; font-family: "Fraunces", Georgia, serif; font-size: clamp(2rem, 3.5vw, 3.8rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.02; }
.studio-preview h3 em { color: var(--orange); font-weight: 400; }
.studio-field { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; font-size: .75rem; }
.studio-field span { text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.studio-field strong { font-weight: 500; text-align: right; }
.studio-preview-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.4rem; font-size: .7rem; line-height: 1.4; }
.studio-preview-foot span:last-child { font-size: 1.35rem; }

@media (max-width: 900px) {
  .hero { background: var(--paper); }
  .hero-picture {
    margin: 0 1rem 1rem;
    min-height: 390px;
    background-position: 64% center;
  }
  .transformation {
    height: 250svh;
    min-height: 1500px;
  }
  .transformation-sticky {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 0;
    padding: 2.4rem 1.4rem 3.9rem;
  }
  .transformation-copy { padding: 0; }
  .transformation-copy h2 {
    max-width: 600px;
    font-size: clamp(3rem, 7.5vw, 5.4rem);
  }
  .transformation-copy > p:not(.eyebrow) {
    max-width: 530px;
    margin: 1.1rem 0 1.3rem;
  }
  .transformation-visual {
    width: 100%;
    height: 54svh;
    min-height: 350px;
    flex: none;
  }
  .assembly-score { display: none; }
  .transformation-bottom { right: 1.4rem; left: 1.4rem; bottom: 1rem; }
  .ar-section { padding: 5rem 1.4rem 4rem; }
  .ar-heading { display: block; margin: 3rem 0 2rem; }
  .ar-heading h2 { font-size: clamp(3.6rem, 8vw, 6rem); }
  .ar-heading p { margin: 1.5rem 0 0; }
  .capture-showcase { grid-template-columns: 1fr; }
  .capture-photo { min-height: 480px; }
  .studio-preview-body { min-height: 520px; }
}
@media (max-width: 560px) {
  .hero-picture { height: 57svh; min-height: 350px; margin: 0 .75rem .75rem; }
  .hero-content { padding-bottom: 1.7rem; }
  .transformation { height: 240svh; min-height: 1350px; }
  .transformation-sticky { padding: 2rem 1.4rem 3.6rem; }
  .transformation-copy h2 { font-size: clamp(2.9rem, 10.5vw, 4.2rem); }
  .transformation-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.45; margin: .8rem 0 1rem; }
  .story-progress { max-width: 310px; gap: .7rem; }
  .transformation-visual { height: 48svh; min-height: 310px; }
  .assembly-scan span { display: none; }
  .transformation-bottom { font-size: .65rem; }
  .menu-demo-visual { height: 390px; }
  .menu-catalog .model-activate { grid-template-columns: 60px minmax(0, 1fr) auto; min-height: 92px; gap: .65rem; padding: .6rem; }
  .model-activate-thumb { width: 60px; height: 60px; }
  .model-activate-copy strong { font-size: 1.2rem; }
  .menu-demo-description h3 { font-size: 1.55rem; }
  .ar-heading h2 { font-size: clamp(3.35rem, 11vw, 4.8rem); }
  .ar-heading p { font-size: 1rem; }
  .ar-scene { aspect-ratio: 1.12 / 1; }
  .ar-scene > img { object-position: 50% center; }
  .ar-corner { width: 20px; height: 20px; }
  .ar-scene-label { bottom: 6%; left: 7%; }
  .ar-note { font-size: .75rem; }
  .capture-photo { min-height: 360px; background-position: 70% center; }
  .studio-preview { padding: .7rem; }
  .studio-preview-body { min-height: 500px; padding: 1.5rem 1.1rem; }
  .studio-field { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .studio-field strong { text-align: left; }
}

@media (max-width: 560px) and (max-height: 680px) {
  .transformation-sticky { justify-content: flex-start; gap: 2.3rem; padding: 1rem 1rem 2.6rem; }
  .transformation-copy .eyebrow { margin-bottom: .45rem; }
  .transformation-copy h2 { font-size: 1.8rem; line-height: .98; }
  .transformation-copy > p:not(.eyebrow) { font-size: .875rem; line-height: 1.35; margin: .45rem 0 .7rem; }
  .transformation-visual { height: 40svh; min-height: 0; }
  .assembly-score { display: none; }
  .transformation-bottom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .assembly-fallback { transition: none; }
  .transformation { height: auto; min-height: 0; }
  .transformation-sticky { position: relative; min-height: 720px; }
}
