/* Amier hero stage: bordeaux field, the AMIER wordmark in depth around a real plate of hommus,
   floating photo cards, then "De tafel" rises over it with a stepped cream edge.
   Works as static layout without JS; hero-stage.js only adds the scrubbed motion. */

:root{
  --hs-h:calc(100svh - var(--head-h));  /* visible stage height under the fixed header */
  --hs-p:50svh;                         /* motion-only scroll before "De tafel" starts to cover */
  --hs-plate:min(56vh,37vw,600px);
}
.hs-stage{
  position:relative;margin-top:var(--head-h);
  height:calc(2 * var(--hs-h) + var(--hs-p));
}
.hs{
  position:sticky;top:var(--head-h);height:var(--hs-h);min-height:520px;overflow:hidden;
  color:var(--cream);isolation:isolate;
  background:
    radial-gradient(90% 75% at 50% 46%, #7d1807 0%, var(--bordeaux) 34%, #3c0902 72%, #1e0401 100%);
  /* the lattice and the edge shadow live in .hs-bg; keep this the only static fill */
}
/* fine paper grain so the flat field reads as a surface, not a fill */
.hs::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.22;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ---- the room behind the plate: the gold mashrabiya screens of Korte Poten, caught by a moving light ---- */
.hs-bg{position:absolute;inset:-6%;z-index:0;pointer-events:none;overflow:hidden}
.hs-lat{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M26 26H54V54H26ZM40 20.2L59.8 40L40 59.8L20.2 40ZM40 20.2V0M40 59.8V80M20.2 40H0M59.8 40H80M26 26L0 0M54 26L80 0M54 54L80 80M26 54L0 80' fill='none' stroke='%23F2DCA8' stroke-width='0.7'/%3E%3C/svg%3E");background-size:clamp(96px,9vw,150px) auto;background-position:center}
.hs-lat-base{opacity:.07}
/* the lit part: a round window that moves over the screens (transform only, nothing repaints).
   The lattice inside is counter-moved so it stays registered with the base lattice. */
.hs-lit{position:absolute;left:0;top:0;width:var(--hs-ld);height:var(--hs-ld);will-change:transform;
  -webkit-mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.6) 30%,rgba(0,0,0,.15) 65%,transparent 100%);
          mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.6) 30%,rgba(0,0,0,.15) 65%,transparent 100%)}
.hs-lit .hs-lat{inset:auto;left:0;top:0;opacity:.85;will-change:transform}
.hs-light{position:absolute;left:0;top:0;width:var(--hs-ld);height:var(--hs-ld);will-change:transform;
  background:radial-gradient(closest-side,rgba(255,226,180,.16) 0,rgba(230,150,80,.06) 45%,transparent 100%)}
.hs-bg{--hs-ld:max(70vmax,820px)}
.hs-lat-base{will-change:transform}
/* candle glow behind the plate, breathing slowly */
.hs-glow{position:absolute;left:50%;top:46%;width:min(110vh,80vw);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,190,120,.26),rgba(170,50,15,.16) 48%,transparent 74%);
  animation:hs-breathe 7s ease-in-out infinite alternate}
@keyframes hs-breathe{from{opacity:.75;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1.04)}}
/* deep edges so the centre glows */
.hs-vig{position:absolute;inset:0;background:radial-gradient(110% 90% at 50% 46%,transparent 45%,rgba(14,2,0,.5) 100%);pointer-events:none}
/* the pointed arch of the dining room's screens, as a gold niche the plate sits in */
.hs-arch{position:absolute;left:50%;top:13%;width:min(80vh,56vw,860px);aspect-ratio:100/125;transform:translateX(-50%);overflow:visible;
  -webkit-mask-image:linear-gradient(#000 52%,transparent 74%);mask-image:linear-gradient(#000 52%,transparent 74%)}
.hs-arch path{fill:none;stroke:#E9CF98;vector-effect:non-scaling-stroke}
.hs-arch .a1{stroke-width:1;opacity:.7}
.hs-arch .a2{stroke-width:1;opacity:.35}
.hs-arch .a0{fill:url(#hsArchFill);stroke:none}

/* ---- layers, back to front: cards, solid word, plate, outline word, copy ---- */
.hs-cards{position:absolute;inset:0;z-index:1;perspective:1100px;pointer-events:none}
.hs-card{position:absolute;margin:0;width:var(--w);aspect-ratio:var(--ar,4/3);transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotateZ(var(--rz,0deg))}
.hs-card-in{width:100%;height:100%;overflow:hidden;border-radius:3px;
  box-shadow:0 30px 60px -28px rgba(20,4,0,.75),0 0 0 1px rgba(254,247,229,.08)}
.hs-card img{width:100%;height:100%;object-fit:cover;filter:saturate(.92) contrast(1.02)}
.hs-c1{--w:clamp(150px,15vw,250px);--ar:4/3;left:5.5%;top:9%;--rz:-7deg;--ry:16deg}
.hs-c2{--w:clamp(120px,11.5vw,190px);--ar:4/5;right:7%;top:7%;--rz:6deg;--ry:-18deg}
.hs-c3{--w:clamp(120px,11vw,180px);--ar:1/1;left:13%;bottom:21%;--rz:5deg;--rx:10deg;--ry:12deg}
.hs-c4{--w:clamp(150px,14vw,236px);--ar:3/2;right:10%;bottom:23%;--rz:-4deg;--rx:8deg;--ry:-14deg}

.hs-kicker{position:absolute;z-index:5;left:0;right:0;top:clamp(18px,4.2vh,40px);margin:0;text-align:center;
  font:600 .74rem/1 var(--sans);letter-spacing:.24em;text-transform:uppercase;color:rgba(254,247,229,.78)}

.hs-word,.hs-word-front{position:absolute;left:0;right:0;top:46%;margin:0;transform:translateY(-50%);
  display:flex;justify-content:center;gap:.04em;
  font:700 clamp(4.5rem,17.5vw,19rem)/.8 var(--serif);letter-spacing:.1em;white-space:nowrap;pointer-events:none}
.hs-word{z-index:2;color:var(--cream)}
/* the letters pass through the plate: an outline drawn only inside the plate's circle */
.hs-word-front{z-index:4;color:transparent;-webkit-text-stroke:max(1.25px,.1vw) var(--bordeaux);
  clip-path:circle(calc(var(--hs-plate) / 2 - 2px) at 50% calc(50% + 0px))}
.hs-word-back{display:flex;gap:inherit}
.hs-l{display:inline-block;will-change:transform}

.hs-plate{position:absolute;z-index:3;left:50%;top:46%;width:var(--hs-plate);aspect-ratio:1;
  transform:translate(-50%,-50%);pointer-events:none;will-change:transform}
/* the plate is round, so a box-shadow is an exact, cheap contact shadow (no filter re-raster while it turns) */
.hs-plate img{width:100%;height:100%;border-radius:50%;
  box-shadow:0 34px 60px -6px rgba(25,4,0,.55),0 8px 14px rgba(25,4,0,.35)}

.hs-foot{position:absolute;z-index:5;left:var(--gutter);right:var(--gutter);bottom:clamp(22px,4.4vh,44px);
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.hs-sub{margin:0;max-width:40ch;font:500 clamp(.98rem,.9rem + .3vw,1.12rem)/1.55 var(--sans);color:rgba(254,247,229,.9);text-wrap:pretty}
.hs-cta{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.hs .btn-cream:hover{background:#fff}
.hs .hs-line{color:var(--cream)}
.hs .hs-line:hover{background:var(--cream);color:var(--bordeaux);border-color:var(--cream)}
.hs :focus-visible{outline-color:var(--cream)}

/* darkens the stage while "De tafel" covers it (driven by JS; static 0 otherwise) */
.hs-veil{position:absolute;inset:0;z-index:6;background:#1a0501;opacity:0;pointer-events:none}

/* ---- the next section rises over the sticky stage ---- */
.hs-next{position:relative;z-index:2;margin-top:calc(-1 * var(--hs-h));background:var(--cream)}
.hs-teeth{position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:clamp(90px,22vh,240px);display:flex;pointer-events:none}
.hs-teeth i{flex:1;height:100%;background:var(--cream);box-shadow:0 0 0 1px var(--cream);transform-origin:50% 100%;transform:scaleY(0)}


/* ---- "De tafel" carries the room on: the same screen lattice, faint in bordeaux, and the arch landing behind the welcome ---- */
.hs-next{isolation:isolate;padding-top:clamp(64px,7.5vw,120px)}
.hs-next::before{content:"";position:absolute;left:0;right:0;top:0;height:min(1100px,130vh);z-index:-1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M26 26H54V54H26ZM40 20.2L59.8 40L40 59.8L20.2 40ZM40 20.2V0M40 59.8V80M20.2 40H0M59.8 40H80M26 26L0 0M54 26L80 0M54 54L80 80M26 54L0 80' fill='none' stroke='%236A1204' stroke-width='0.7'/%3E%3C/svg%3E");background-size:clamp(96px,9vw,150px) auto;background-position:center top;opacity:.07;
  -webkit-mask-image:linear-gradient(transparent 0,#000 140px,#000 45%,transparent 100%);mask-image:linear-gradient(transparent 0,#000 140px,#000 45%,transparent 100%)}
.hs-next::after{content:"";position:absolute;left:0;right:0;top:0;height:min(1100px,130vh);z-index:-1;pointer-events:none;
  background:radial-gradient(60% 50% at 22% 38%,rgba(199,169,135,.22),transparent 70%)}
.hs-next .tafel-head{isolation:isolate}
.hs-tarch{position:absolute;z-index:-1;left:50%;top:-34%;width:min(108%,420px);aspect-ratio:100/125;transform:translateX(-50%);pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 60%,transparent 92%);mask-image:linear-gradient(#000 60%,transparent 92%)}
.hs-tarch path{fill:none;vector-effect:non-scaling-stroke;stroke-width:1}
.hs-tarch .a0{fill:rgba(249,240,211,.75);stroke:none}
.hs-tarch .a1{stroke:var(--sand);opacity:.9}
.hs-tarch .a2{stroke:var(--bordeaux);opacity:.18}
@media (max-width:800px){.hs-tarch{width:min(78vw,340px);top:-22%}.hs-tarch .a0{display:none}}
.hs-next .prose{position:relative;z-index:1}


/* =====================================================================
   Site atmosphere: every section sits in the same room as the hero.
   The screen lattice breathes in and out (masked bands, never wallpaper),
   and a warm light pool moves side to side from section to section.
   ===================================================================== */
.menu,.adressen,.groups,.story-sec,.sahtein,.site-foot{position:relative;isolation:isolate}
.menu::before,.adressen::before,.groups::before,.story-sec::before,.sahtein::before,.site-foot::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M26 26H54V54H26ZM40 20.2L59.8 40L40 59.8L20.2 40ZM40 20.2V0M40 59.8V80M20.2 40H0M59.8 40H80M26 26L0 0M54 26L80 0M54 54L80 80M26 54L0 80' fill='none' stroke='%236A1204' stroke-width='0.7'/%3E%3C/svg%3E");background-size:clamp(96px,9vw,150px) auto;background-position:center top;opacity:var(--atmo-lat,.06);
  -webkit-mask-image:var(--atmo-mask);mask-image:var(--atmo-mask)}
.menu::after,.adressen::after,.groups::after,.story-sec::after,.sahtein::after,.site-foot::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--atmo-light)}
/* each section gets its own band and light, so the page alternates instead of repeating */
.menu{--atmo-mask:linear-gradient(transparent,#000 22%,#000 48%,transparent 78%);
  --atmo-light:radial-gradient(55% 45% at 84% 18%,rgba(199,169,135,.26),transparent 70%),radial-gradient(40% 35% at 8% 70%,rgba(106,18,4,.05),transparent 70%)}
.adressen{--atmo-mask:radial-gradient(70% 60% at 20% 30%,#000 10%,transparent 75%);
  --atmo-light:radial-gradient(50% 40% at 12% 20%,rgba(199,169,135,.24),transparent 70%)}
.groups{--atmo-mask:linear-gradient(90deg,#000,rgba(0,0,0,.6) 35%,transparent 70%);--atmo-lat:.07;
  --atmo-light:radial-gradient(55% 50% at 78% 40%,rgba(199,169,135,.22),transparent 70%)}
.story-sec{--atmo-mask:radial-gradient(60% 70% at 80% 50%,#000 15%,transparent 75%);
  --atmo-light:radial-gradient(50% 55% at 30% 50%,rgba(255,214,150,.20),transparent 72%)}
.sahtein{--atmo-mask:radial-gradient(45% 80% at 22% 50%,#000 20%,transparent 80%);--atmo-lat:.08;
  --atmo-light:radial-gradient(40% 70% at 22% 50%,rgba(199,169,135,.30),transparent 72%)}
.site-foot{--atmo-mask:linear-gradient(transparent,#000 60%);--atmo-lat:.045;
  --atmo-light:radial-gradient(60% 80% at 50% 120%,rgba(106,18,4,.06),transparent 70%)}
/* the mezza table: same gold screen as the hero, with candlelight along the plates */
.mt-sticky{background:
  radial-gradient(120% 90% at 50% 55%,transparent 40%,rgba(20,4,2,.6) 100%),
  radial-gradient(70% 45% at 50% 62%,rgba(255,170,90,.16),transparent 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M26 26H54V54H26ZM40 20.2L59.8 40L40 59.8L20.2 40ZM40 20.2V0M40 59.8V80M20.2 40H0M59.8 40H80M26 26L0 0M54 26L80 0M54 54L80 80M26 54L0 80' fill='none' stroke='%23E6C892' stroke-width='0.7' opacity='.16'/%3E%3C/svg%3E"),
  linear-gradient(180deg,#5E120A,#3E0A05)!important;
  background-size:auto,auto,clamp(96px,9vw,150px) auto,auto!important}

/* ---- phone: the word sits on top, the plate is tucked in front of its lower edge ---- */
@media (max-width:760px){
  :root{--hs-p:28svh;--hs-plate:min(74vw,40svh)}
  .hs{min-height:600px}
  .hs-kicker{top:18px;font-size:.66rem;letter-spacing:.2em}
  .hs-word{top:25%;font-size:20.5vw;gap:.02em;letter-spacing:.04em}
  .hs-word-front{display:none}
  .hs-plate{top:44.5%}
  .hs-c1{--w:31vw;--ar:4/3;left:-7%;top:52%;--rz:-8deg;--ry:14deg}
  .hs-c2{--w:26vw;--ar:4/5;right:-6%;top:36%;--rz:7deg;--ry:-16deg}
  .hs-c3,.hs-c4{display:none}
  .hs-glow{top:44.5%;width:150vw;animation:none}
  .hs-lit,.hs-light{display:none}
  .hs-lat-base{opacity:.11}
  .hs-arch{width:92vw;top:12%}
  .hs-foot{flex-direction:column;align-items:stretch;gap:16px;bottom:max(18px,env(safe-area-inset-bottom))}
  .hs-sub{font-size:.95rem;max-width:none}
  .hs-cta{flex-direction:column}
  .hs-cta .btn{width:100%}
}
@media (max-width:760px) and (max-height:700px){
  :root{--hs-plate:min(62vw,33svh)}
  .hs-word{top:24%;font-size:19vw}
  .hs-plate{top:46%}
  .hs-sub{display:none}
}

@media (prefers-reduced-motion:reduce){
  .hs-teeth{display:none}
  .hs-glow{animation:none}
  .hs-l,.hs-card,.hs-plate{will-change:auto}
}

/* headings that lead to their own page */
.h3link{color:inherit;text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .25s var(--ease-out)}
.h3link::after{content:" \2192";font:500 .8em var(--sans)}
.h3link:hover,.h3link:focus-visible{background-size:100% 1px}

/* hero: book + menu as buttons, ordering as a quiet link */
.hs-cta{align-items:center}
.hs-order{color:rgba(254,247,229,.86);font:500 .9rem/1 var(--sans);text-underline-offset:.3em;padding:12px 4px}
.hs-order:hover{color:var(--cream)}
@media (max-width:760px){.hs-order{text-align:center;padding:4px}}
/* homepage groups: short items, each leads to its page */
.group-short .group-item{padding:16px 0}
.group-short .group-item p{font-size:.95rem;color:var(--stone)}
.hs-word .hs-l:last-child,.hs-word-front .hs-l:last-child{margin-right:-.1em}

/* QA 18 okt 2026 */
/* 3. short landscape screens: the 520/600px stage minimum pushed the hero CTAs below the fold
   and "De tafel" slid over them. Fit the stage to the screen with the buttons in one row. */
@media (orientation:landscape) and (max-height:500px){
  :root{--hs-plate:min(52svh,30vw)}
  .hs{min-height:0}
  .hs-kicker{top:12px;font-size:.62rem}
  .hs-word{top:40%;font-size:min(17vw,30svh)}
  .hs-word-front{display:none}
  .hs-plate{top:44%}
  .hs-cards,.hs-sub{display:none}
  .hs-arch{top:6%;width:min(60svh,40vw)}
  .hs-foot{flex-direction:row;align-items:center;justify-content:center;bottom:max(12px,env(safe-area-inset-bottom))}
  .hs-cta{flex-direction:row;flex-wrap:nowrap;justify-content:center}
  .hs-cta .btn{width:auto;min-height:44px;padding-inline:1.1em;white-space:nowrap;letter-spacing:.12em;font-size:clamp(.66rem,1.5vw,.8rem)}
  .hs-order{white-space:nowrap}
}
/* 4. small portrait phones (iPhone SE, 568px): the 600px minimum put the second CTA below the fold */
@media (max-width:760px) and (max-height:620px) and (orientation:portrait){
  :root{--hs-plate:min(50vw,27svh)}
  .hs{min-height:0}
  .hs-word{top:19%}
  .hs-plate{top:39%}
  .hs-c1,.hs-c2{display:none}
  .hs-foot{gap:10px}
  .hs-cta{gap:8px}
  .hs-cta .btn{min-height:46px}
}
