/* Layout: a quiet twelve-column field on a slab of stone. Type sits low and left, ingredients lie loose
   on the ground, and one fluorescent yellow marks what matters. */

@font-face { font-family: "Shippori Mincho"; src: url("../fonts/shippori-mincho-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("../fonts/shippori-mincho-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --kalk: #ECEAE5;      /* limestone: the ground */
  --kiezel: #DDDAD2;    /* pebble: a raised surface */
  --graniet: #9C9991;   /* granite: hairlines, placeholders */
  --lei: #54524D;       /* slate: secondary text */
  --basalt: #1B1B19;    /* basalt: ink and the dark ground */
  --fluor: #E6FF1F;     /* the one accent */

  --ground: var(--kalk);
  --ink: var(--basalt);
  --muted: var(--lei);
  --line: rgba(27, 27, 25, .16);
  --head-ink: var(--basalt);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}
[data-tone="dark"] { --ground: var(--basalt); --ink: var(--kalk); --muted: #A9A69E; --line: rgba(236, 234, 229, .18); }
[data-tone="fluor"] { --ground: var(--fluor); --ink: var(--basalt); --muted: #3A3D10; --line: rgba(27, 27, 25, .28); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--kalk); color: var(--basalt); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b { font-weight: inherit; }
small { font-size: .82em; }
::selection { background: var(--fluor); color: var(--basalt); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -4rem; z-index: 200; background: var(--fluor); color: var(--basalt); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

[data-tone] { background: var(--ground); color: var(--ink); }
.page { position: relative; z-index: 1; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- type ---------- */
.d-xl { font: 500 clamp(3.4rem, 12.4vw, 14.5rem)/.92 var(--serif); letter-spacing: -.045em; }
.d-l { font: 500 clamp(2.3rem, 5.6vw, 6rem)/1 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.d-m { font: 400 clamp(1.4rem, 2.3vw, 2.4rem)/1.18 var(--serif); letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.35rem); line-height: 1.45; max-width: 30ch; }
.label { font: 400 .72rem/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.note { font-size: .92rem; max-width: 52ch; }

/* highlighter: a fluorescent stroke behind the words on light ground, fluorescent words on dark */
.hl { background: linear-gradient(var(--fluor), var(--fluor)) no-repeat 0 88% / 0% 46%; transition: background-size .5s var(--out), color .3s; }
.hl:hover, .hl:focus-visible { background-size: 100% 46%; }
[data-tone="dark"] .hl { background-image: none; }
[data-tone="dark"] .hl:hover, [data-tone="dark"] .hl:focus-visible { color: var(--fluor); }
mark { background: linear-gradient(var(--fluor), var(--fluor)) no-repeat 0 62% / 100% 62%; color: inherit; padding-inline: .08em; margin-inline: -.08em; }

.more { display: inline-flex; align-items: baseline; gap: .5em; }
.more::after { content: "→"; font-family: var(--sans); font-size: .8em; transition: transform .5s var(--out); }
.more:hover::after { transform: translateX(.35em); }

.btn { display: inline-flex; align-items: center; gap: .7em; padding: .85em 1.35em; border: 1px solid var(--ink); border-radius: 99px; font-size: .92rem; line-height: 1; cursor: pointer; background: linear-gradient(var(--ink), var(--ink)) no-repeat 50% 100% / 100% 0%; transition: background-size .5s var(--out), color .4s; }
.btn::after { content: "→"; transition: transform .5s var(--out); }
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--ground); }
.btn:hover::after { transform: translateX(.3em); }
.btn--fluor { border-color: var(--fluor); background-color: var(--fluor); color: var(--basalt); background-image: linear-gradient(var(--basalt), var(--basalt)); }
.btn--fluor:hover, .btn--fluor:focus-visible { color: var(--fluor); border-color: var(--basalt); }
.btn--ink { border-color: var(--basalt); background-color: var(--basalt); color: var(--fluor); background-image: linear-gradient(var(--kalk), var(--kalk)); }
.btn--ink:hover, a:hover > * > .btn--ink { color: var(--basalt); background-size: 100% 100%; }

/* small prompts that tell you what you can do */
.hint { display: inline-flex; align-items: center; gap: .55em; font: 400 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--fluor); color: var(--basalt); padding: .5em .7em; transition: opacity .6s, transform .6s var(--out); }
.hint::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--basalt); animation: pulse 1.6s ease-in-out infinite; }
.hint.is-done, html:not(.gl-on) .hint { opacity: 0; transform: translateY(.4rem); pointer-events: none; }
@keyframes pulse { 50% { transform: scale(.4); opacity: .5; } }

/* registration marks in the corners of an opening section */
.marks { position: absolute; inset: 5.5rem var(--gutter) 1.75rem; pointer-events: none; }
.marks i { position: absolute; width: 11px; height: 11px; opacity: .45; background: linear-gradient(currentColor, currentColor) 50% 0 / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat; }
.marks i:nth-child(1) { left: 0; top: 0; } .marks i:nth-child(2) { right: 0; top: 0; }
.marks i:nth-child(3) { left: 0; bottom: 3.2rem; } .marks i:nth-child(4) { right: 0; bottom: 3.2rem; }

/* ---------- objects ---------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: none; }
.gl-on .gl { display: block; }
.gl-on [data-tone="light"], .gl-on .hg__pin, .gl-on .hg__track, .gl-on .menu__stage { background: transparent; }
.o { position: absolute; aspect-ratio: var(--ar); pointer-events: none; }
.obj { width: 100%; height: 100%; mix-blend-mode: multiply; user-select: none; pointer-events: none; }
.obj--screen { position: absolute; width: auto; height: auto; mix-blend-mode: screen; }
.gl-on .o[data-gl] .obj { visibility: hidden; }

.frame { position: relative; overflow: hidden; background: var(--kiezel); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem var(--gutter); color: var(--head-ink); transition: color .5s var(--out), transform .7s var(--out); }
body[data-head="dark"] { --head-ink: var(--kalk); }
.head.is-away { transform: translateY(-110%); }
.mark { display: inline-flex; align-items: baseline; gap: .16em; font: 500 1.7rem/1 var(--serif); letter-spacing: -.04em; }
.mark i, .curtain__mark i { width: .34em; height: .34em; background: var(--fluor); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); font-size: .92rem; }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__links a { padding-block: .25rem; }
.nav__links a[aria-current="page"] { box-shadow: 0 1px 0 currentColor; }
body[data-head="dark"] .head .hl { background-image: none; }
body[data-head="dark"] .head .hl:hover { color: var(--fluor); }
.nav__cta { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.05em; border-radius: 99px; background: var(--fluor); color: var(--basalt); line-height: 1; transition: background-color .4s, color .4s; }
.nav__cta::before { content: ""; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }
.nav__cta:hover, .nav__cta:focus-visible { background: var(--basalt); color: var(--fluor); }
body[data-head="dark"] .nav__cta:hover { background: var(--kalk); color: var(--basalt); }
.nav__toggle { display: none; border: 0; background: none; padding: .5rem 0; cursor: pointer; font: inherit; }

.menu-ov { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; padding: 6.5rem var(--gutter) 2rem; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--inout); }
.menu-ov.is-open { clip-path: inset(0); }
.menu-ov nav { display: grid; gap: .35rem; }
.menu-ov a { font: 500 clamp(2.6rem, 13vw, 5rem)/1.08 var(--serif); letter-spacing: -.04em; transform: translateY(1.2em); opacity: 0; transition: transform .9s var(--out), opacity .6s; }
.menu-ov.is-open a { transform: none; opacity: 1; }
.menu-ov.is-open a:nth-child(2) { transition-delay: .06s; } .menu-ov.is-open a:nth-child(3) { transition-delay: .12s; }
.menu-ov.is-open a:nth-child(4) { transition-delay: .18s; } .menu-ov.is-open a:nth-child(5) { transition-delay: .24s; }

/* ---------- curtain: first load in basalt, page changes in fluorescent yellow ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; display: none; align-content: space-between; padding: 1.1rem var(--gutter) 1.75rem; background: var(--basalt); color: var(--kalk); }
.js .curtain { display: grid; }
.curtain__mark { display: inline-flex; align-items: baseline; gap: .16em; font: 500 1.7rem/1 var(--serif); letter-spacing: -.04em; }
.curtain__count { justify-self: end; font-size: clamp(2.5rem, 9vw, 8rem); letter-spacing: -.04em; line-height: .8; }
.from-nav .curtain { background: var(--fluor); }
.from-nav .curtain > * { visibility: hidden; }
.is-in .curtain { transform: translateY(-101%); transition: transform 1s var(--inout); }
.curtain.below { transform: translateY(101%); transition: none; background: var(--fluor); }
.curtain.below > * { visibility: hidden; }
.curtain.cover { transform: none; transition: transform .65s var(--inout); }
.js:not(.ready) .curtain { animation: failsafe 0s 6s forwards; }
@keyframes failsafe { to { visibility: hidden; } }

/* ---------- reveals (only once the script is running) ---------- */
.w { display: inline-block; }
.rl .w { overflow: hidden; vertical-align: top; padding: .14em .06em .2em; margin: -.14em -.06em -.2em; }
.rl .w > span { display: inline-block; }
.js.ready .rl .w > span { transform: translateY(118%); transition: transform 1.15s var(--out); transition-delay: calc(var(--l, 0) * 90ms + var(--i, 0) * 60ms); }
.js.ready .rl.in .w > span { transform: none; }
.js.ready .rv { opacity: 0; transform: translateY(1.4rem); transition: opacity 1s var(--out), transform 1.2s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.js.ready .rv.in { opacity: 1; transform: none; }
.js.ready .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--inout); }
.js.ready .clip.in { clip-path: inset(0); }
.fill .w { opacity: .16; transition: opacity .5s linear; }
.fill .w.on { opacity: 1; }
.fill mark { background-size: 0% 62%; transition: background-size .7s var(--out); }
.fill mark.on { background-size: 100% 62%; }
html:not(.js) .fill .w { opacity: 1; }
html:not(.js) .fill mark { background-size: 100% 62%; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem var(--gutter) 1.75rem; overflow: clip; }
.hero__space { position: absolute; left: 23vw; top: 9vh; width: 45vw; height: 38vh; pointer-events: none; }   /* where the loose ingredients float */
.hero__top { position: relative; width: min(100%, 160vh); margin-bottom: auto; }   /* the wall, and under its left corner the way to the game */
.hero__play { position: absolute; left: 0; top: calc(100% + .8rem); align-items: center; font: 400 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--fluor); color: var(--basalt); padding: .95em 1.1em; transition: background-color .4s, color .4s; }   /* in the colours of the small prompts */
.hero__play:hover, .hero__play:focus-visible { background: var(--basalt); color: var(--fluor); }
.hero__copy { position: relative; margin-top: 3.6rem; }
.hero__copy > .label { margin-bottom: 1.4rem; }
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { padding-left: 9vw; }
.hero__lead { position: absolute; right: 0; bottom: .6rem; max-width: 22ch; }
.hero__meta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: clamp(1.4rem, 4vh, 2.8rem); padding-top: 1rem; border-top: 1px solid var(--line); }
.hero__scroll { display: inline-flex; align-items: center; gap: .8rem; }
.hero__scroll i { width: 3.2rem; height: 1px; background: linear-gradient(90deg, currentColor 50%, transparent 0) 0 0 / 200% 100%; animation: draw 2.4s var(--inout) infinite; }
@keyframes draw { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- the wall: every product small, in one grid at the very top of the opening; the leaf starts in one of its tiles ---------- */
.wand { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wand__cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--kalk); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }   /* its own ground: the stills blend into this, not into the 3D layer */
.gl-on .wand__cell--leaf { background: none; }   /* a window onto the 3D layer, where the leaf lies */
.wand__cell .o { position: relative; width: calc(var(--fit) * 70%); }

/* ---------- manifest ---------- */
.manifest { position: relative; padding: clamp(8rem, 24vh, 17rem) var(--gutter) clamp(6rem, 16vh, 12rem); overflow: clip; }
.manifest__o { left: 9vw; top: 20vh; width: min(8vw, 7.5rem); }
.manifest__k { left: 7vw; bottom: 7vh; width: min(15vw, 14rem); }
.manifest__label { grid-column: 4 / span 3; margin-bottom: 1.6rem; }
.manifest__text { grid-column: 4 / -1; font: 400 clamp(1.9rem, 4.4vw, 4.6rem)/1.1 var(--serif); letter-spacing: -.035em; }
.manifest__aside { grid-column: 8 / span 4; margin-top: clamp(3rem, 8vh, 6rem); display: grid; gap: 1.4rem; justify-items: start; }

/* ---------- services ---------- */
.svc { position: relative; padding: clamp(7rem, 22vh, 15rem) var(--gutter) clamp(6rem, 14vh, 10rem); }
.svc__o { right: 12vw; top: calc(100% - 2.5rem); width: min(8vw, 7.5rem); }   /* where the leaf comes to rest: under the last row */
.svc__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.4rem; }
.svc__row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(1.5rem, 3vw, 2.8rem); border-top: 1px solid var(--line); }
.svc__row:last-of-type { border-bottom: 1px solid var(--line); }
.svc__name { grid-column: 1 / span 6; display: flex; align-items: flex-start; gap: .9rem; transition: transform .7s var(--out); }
.svc__name em { font-style: normal; margin-top: .9em; color: var(--muted); }
.svc__text { grid-column: 7 / span 4; color: var(--muted); max-width: 36ch; transition: color .4s; }
.svc__meta { grid-column: 11 / span 2; text-align: right; }
.svc__row:hover .svc__name, .svc__row:focus-visible .svc__name { transform: translateX(1.4rem); }
.svc__row:hover .svc__text { color: var(--ink); }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 21vw, 330px); aspect-ratio: 4 / 5; pointer-events: none; clip-path: inset(50%); transition: clip-path .7s var(--out); will-change: transform; }
.peek.is-on { clip-path: inset(0); }
.peek .frame { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.peek .frame.on { opacity: 1; }
.peek .frame img { height: 100%; transform: scale(1.25); transition: transform 1.4s var(--out); }
.peek .frame.on img { transform: scale(1.04); }

/* ---------- ingredients: a pinned walk from left to right ---------- */
.hg { position: relative; }
.hg__pin { display: flex; flex-direction: column; background: var(--ground); padding-block: clamp(4rem, 10vh, 7rem) 2rem; }
.hg__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-inline: var(--gutter); }
.hg__head .label { display: flex; align-items: center; gap: 1.2rem; }
.hg__track { display: flex; align-items: center; gap: clamp(2rem, 7vw, 8rem); padding: 2rem var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ground); }
.hg__track::-webkit-scrollbar { display: none; }
.hg__item { position: relative; flex: none; width: clamp(15rem, 33vw, 34rem); display: grid; gap: .5rem; scroll-snap-align: center; }
.hg__item:nth-child(even) { margin-top: 8vh; }
.hg__item:nth-child(odd) { margin-bottom: 8vh; }
.hg__o { position: relative; width: min(100%, calc(40vh * var(--ar))); }
.hg__name { font-size: clamp(2rem, 4.2vw, 4.4rem); }
.hg__use { max-width: 26ch; color: var(--muted); }
.tag { display: inline-block; margin-left: .9em; padding: .3em .55em; background: var(--fluor); color: var(--basalt); }
.hg__item--end { align-content: center; gap: 1rem; width: clamp(15rem, 30vw, 30rem); }
.hg__bar { position: relative; height: 1px; margin: 1.5rem var(--gutter) 0; background: var(--line); }
.hg__bar i { position: absolute; inset: -1px 0 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hg.is-pinned .hg__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; justify-content: space-between; }
.hg.is-pinned .hg__track { flex: 1; overflow: visible; width: max-content; padding-right: 22vw; will-change: transform; }

/* ---------- the menu of now (dark) ---------- */
.now { position: relative; padding: clamp(6rem, 17vh, 12rem) var(--gutter); overflow: clip; }
.now__o { left: -3vw; bottom: 3vh; width: min(34vw, 30rem); }
.now__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 7rem; display: grid; gap: 1.6rem; justify-items: start; }
.now__list { grid-column: 7 / -1; position: relative; }
.course { display: grid; grid-template-columns: 3rem 1fr auto; column-gap: 1rem; align-items: baseline; padding-block: clamp(1rem, 1.8vw, 1.6rem); border-top: 1px solid var(--line); }
.course:last-child { border-bottom: 1px solid var(--line); }

/* ---------- the fluorescent panel ---------- */
.promo { padding: 0; }
.promo__panel { display: grid; gap: clamp(3rem, 12vh, 9rem); min-height: 78vh; align-content: space-between; padding: clamp(2.5rem, 7vw, 6rem) var(--gutter); clip-path: inset(var(--clip, 0%) calc(var(--clip, 0%) * .7)); }
.promo__tag { display: flex; justify-content: space-between; gap: 1rem; }
.promo__panel h2 { max-width: 16ch; font-size: clamp(2.6rem, 7.4vw, 8.4rem); line-height: .96; }
.promo__foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.promo__foot p { max-width: 44ch; }

/* ---------- about teaser ---------- */
.abt { position: relative; padding: clamp(6rem, 16vh, 12rem) var(--gutter) clamp(1rem, 4vh, 3rem); }   /* the offer below brings its own room */
.abt__img { grid-column: 1 / span 2; aspect-ratio: 2 / 3; align-self: start; }   /* a small portrait */
.abt__img--2 { grid-column: 11 / span 2; grid-row: 1; }
.abt__copy { grid-column: 4 / span 6; grid-row: 1; align-self: center; display: grid; gap: 1.6rem; justify-items: start; }
.abt__copy p:not(.label) { max-width: 40ch; }

/* ---------- photographs: a contact sheet, every picture in its own proportions ---------- */
.pics { padding: clamp(10rem, 24vh, 15rem) var(--gutter) clamp(6rem, 16vh, 12rem); }   /* room at the top: the leaf comes to rest across the edge of the section above */
.pics__head { padding-bottom: 1.4rem; margin-bottom: var(--gap); border-bottom: 1px solid var(--line); }
.pics__grid { columns: 4; column-gap: var(--gap); }
.pics__grid .frame { break-inside: avoid; margin-bottom: var(--gap); }
.pics__grid .frame img { display: block; height: auto; }
@media (max-width: 1100px) { .pics__grid { columns: 3; } }

/* ---------- footer ---------- */
.foot { position: relative; padding: clamp(6rem, 18vh, 13rem) var(--gutter) 1.5rem; overflow: clip; }
.foot__cta { display: block; font: 500 clamp(4rem, 17.5vw, 20rem)/.86 var(--serif); letter-spacing: -.055em; margin-left: -.04em; }
.orb { position: absolute; right: var(--gutter); top: clamp(5rem, 14vh, 10rem); width: clamp(7.5rem, 12vw, 11rem); aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--fluor); color: var(--basalt); font-size: .9rem; line-height: 1.25; transition: transform .6s var(--out); }
.orb span { transition: transform .6s var(--out); }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gap); margin-top: clamp(4rem, 12vh, 9rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.foot__grid .label { margin-bottom: .9rem; }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(3rem, 8vh, 6rem); }

/* ---------- inner pages: opening ---------- */
.phero { position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.4rem; padding: 9rem var(--gutter) clamp(2.5rem, 7vh, 5rem); overflow: clip; }
.phero__a { right: 7vw; top: 14vh; width: min(30vw, 58vh); }
.phero__b { right: 40vw; top: 22vh; width: min(10vw, 18vh); }
.phero .lead { margin-left: 9vw; }
.phero .marks { bottom: 1.75rem; }
.phero .marks i:nth-child(n+3) { bottom: 0; }

/* ---------- menus ---------- */
.menu { padding: clamp(4rem, 12vh, 9rem) var(--gutter); }
.menu__list { grid-column: 1 / span 7; display: grid; gap: 2.4rem; justify-items: start; }
.menu__list ol { width: 100%; }
.menu__group { width: 100%; display: grid; gap: 2rem; scroll-margin-top: 6rem; }
.menu__group + .menu__group { margin-top: clamp(3rem, 9vh, 6rem); }
.menu__head { display: grid; gap: 1.2rem; }
.course--lg { padding-block: clamp(1.4rem, 3vw, 2.6rem); transition: padding-left .6s var(--out), color .4s; color: var(--muted); }
.course--lg.on { padding-left: 1.2rem; color: var(--ink); }
.course--lg .d-m { font-size: clamp(1.5rem, 2.9vw, 3rem); }
.prices { width: 100%; }
.prices > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.prices > div:last-child { border-bottom: 1px solid var(--line); }
.prices dd { font-family: var(--mono); font-size: .92rem; font-variant-numeric: tabular-nums; }
.menu__stage { grid-column: 9 / span 4; position: sticky; top: 16vh; align-self: start; height: 66vh; background: var(--ground); }
.menu__o { inset: 0; margin: auto; max-width: 100%; max-height: 100%; height: auto; width: 100%; }
.menu__o .obj { opacity: 0; transition: opacity .7s; }
.menu__o.on .obj { opacity: 1; }
.menu__n { position: absolute; left: 0; bottom: 0; }

.soon { padding: 0 var(--gutter) clamp(6rem, 16vh, 12rem); }
.soon__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gap); margin-top: 1.4rem; }
.soon__list li { display: grid; gap: 1rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.soon__list p:not(.label) { color: var(--muted); max-width: 36ch; }

.ltable { position: relative; padding: 0 0 clamp(5rem, 14vh, 10rem); }
.ltable__img { aspect-ratio: 16 / 8; }
.ltable .grid { padding: clamp(3rem, 9vh, 7rem) var(--gutter) 0; }
.ltable__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 7rem; display: grid; gap: 1.4rem; }
.ltable__list { grid-column: 7 / -1; display: grid; gap: 2rem; justify-items: start; }
.ltable__list ul { width: 100%; }

.ws { position: relative; padding: clamp(6rem, 16vh, 12rem) 0 0; }
.ws .grid { padding-inline: var(--gutter); }
.ws__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: 7rem; display: grid; gap: 1.4rem; justify-items: start; }
.ws__list { grid-column: 6 / -1; }
.ws__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: baseline; padding-block: clamp(1.6rem, 3.4vw, 3rem); border-top: 1px solid var(--line); }
.ws__row:last-child { border-bottom: 1px solid var(--line); }
.ws__row p { color: var(--muted); max-width: 38ch; }
.ws__img { aspect-ratio: 16 / 7; margin-top: clamp(5rem, 14vh, 10rem); }

/* ---------- about ---------- */
.bio { padding: clamp(3rem, 9vh, 7rem) var(--gutter) clamp(6rem, 16vh, 12rem); }
.bio__img { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.bio__copy { grid-column: 7 / span 5; align-self: end; display: grid; gap: 1.5rem; }
.bio__copy p:not(.d-m) { max-width: 44ch; color: var(--muted); }
.princ { position: relative; padding: clamp(6rem, 16vh, 12rem) var(--gutter); overflow: clip; }
.princ__o { right: -4vw; top: 3vh; width: min(52vw, 48rem); }
.princ > .label { position: relative; margin-bottom: min(25vw, 23rem); }
.princ__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.princ__list li { display: grid; gap: 1.2rem; align-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.princ__list p { color: var(--muted); max-width: 32ch; }
.steps { padding: clamp(6rem, 16vh, 12rem) var(--gutter); }
.steps__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: 7rem; display: grid; gap: 1.4rem; }
.steps__list { grid-column: 7 / -1; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem 0; align-items: baseline; padding-block: clamp(1.8rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step p { grid-column: 2; color: var(--muted); max-width: 44ch; }

/* ---------- offers ---------- */
.offers { padding: clamp(2rem, 6vh, 5rem) var(--gutter) clamp(6rem, 16vh, 12rem); }
.offer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.offer__tag { grid-column: 1 / span 2; display: grid; gap: .3rem; }
.offer h2 { grid-column: 3 / span 6; transition: transform .7s var(--out); }
.offer__text { grid-column: 9 / -1; }
.offer:hover h2 { transform: translateX(1.2rem); }
.offers .note { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); max-width: none; }

/* ---------- contact ---------- */
.ask { padding: clamp(2rem, 6vh, 5rem) var(--gutter) clamp(5rem, 14vh, 10rem); }
.form, .form__done { grid-column: 1 / span 9; }
.form { display: grid; gap: 2.2rem; justify-items: start; }
.form__s { font: 400 clamp(1.5rem, 3vw, 3.1rem)/1.5 var(--serif); letter-spacing: -.025em; }
.inl { width: 7ch; min-width: 3ch; max-width: 100%; padding: 0 .12em; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: linear-gradient(var(--fluor), var(--fluor)) no-repeat 0 100% / 100% 0%; font: inherit; letter-spacing: inherit; line-height: 1.15; transition: background-size .4s var(--out); appearance: none; }
select.inl { width: auto; padding-right: .9em; cursor: pointer; background-image: linear-gradient(var(--fluor), var(--fluor)), linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: 0 100%, calc(100% - .35em) 58%, calc(100% - .1em) 58%; background-size: 100% 0%, .25em .25em, .25em .25em; background-repeat: no-repeat; }
.inl:focus { outline: none; background-size: 100% 42%; }
select.inl:focus { background-size: 100% 42%, .25em .25em, .25em .25em; }
.inl::placeholder, .form textarea::placeholder { color: #6A6761; opacity: 1; }
.inl--n { -moz-appearance: textfield; }
.inl--n::-webkit-outer-spin-button, .inl--n::-webkit-inner-spin-button { appearance: none; margin: 0; }
.inl[aria-invalid="true"] { border-bottom: 3px solid currentColor; }
.form__more { display: grid; gap: .8rem; width: 100%; max-width: 46rem; }
.form textarea { width: 100%; padding: .9rem 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid currentColor; border-radius: 0; background: transparent; resize: vertical; }
.form textarea:focus { outline: none; border-bottom-width: 3px; }
.hp { position: absolute; left: -200vw; }
.check { display: flex; gap: .8rem; align-items: flex-start; max-width: 46rem; cursor: pointer; }
.check input { appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; border: 1px solid currentColor; background: var(--fluor) content-box; padding: 1.25rem 0 0; transition: padding .3s var(--out); cursor: pointer; }
.check input:checked { padding: 3px; }
.check input[aria-invalid="true"] { border-width: 3px; }
.form__foot { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form__msg:empty { display: none; }
.form__msg { font-size: .95rem; }
.form__done { display: grid; gap: 1.5rem; }
.form__done:focus { outline: none; }
.form__echo { margin: 0; padding: 1.4rem 0; border-block: 1px solid var(--line); font: 400 .85rem/1.6 var(--mono); white-space: pre-wrap; }
.ask__side { grid-column: 10 / -1; align-self: start; display: grid; gap: .5rem; }
.ask__side .label:not(:first-child) { margin-top: 1.4rem; }
.faq { padding: 0 var(--gutter) clamp(6rem, 16vh, 12rem); }
.faq__head { grid-column: 1 / span 3; padding-top: 1.6rem; }
.faq__list { grid-column: 4 / -1; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.4rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: .9rem; height: .9rem; background: linear-gradient(currentColor, currentColor) 50% / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) 50% / 1px 100% no-repeat; transition: transform .5s var(--out); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.6rem; max-width: 52ch; color: var(--muted); }

/* ---------- fixed furniture: progress rail and pointer ---------- */
.rail { position: fixed; right: .55rem; top: 50%; z-index: 50; display: grid; justify-items: center; gap: .6rem; translate: 0 -50%; color: var(--head-ink); transition: color .5s, opacity .5s; pointer-events: none; }
.rail i { width: 1px; height: 7rem; background: linear-gradient(currentColor, currentColor) 0 0 / 100% calc(var(--p, 0) * 100%) no-repeat, var(--line); }
.rail span { font: 400 .6rem/1 var(--mono); letter-spacing: .08em; writing-mode: vertical-rl; }
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.cursor span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; margin: -2.6rem 0 0 -2.6rem; border-radius: 50%; background: var(--fluor); color: var(--basalt); font: 400 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; transform: scale(.12); transition: transform .5s var(--out), color .2s; color: transparent; }
.cursor.is-label span { transform: scale(1); color: var(--basalt); }
.cursor.is-down span { transform: scale(.8); }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .rail, .marks { display: none; }
  .hero { padding-top: 5.5rem; }
  .wand { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hero__space { left: 2vw; top: 9vh; width: 96vw; height: 36vh; }
  .hero__l2 { padding-left: 0; }
  .hero__lead { position: static; margin-top: 1.2rem; }
  .hero__now { display: none; }
  .manifest__o { left: auto; right: 8vw; top: 2vh; width: 15vw; }
  .manifest__k { display: none; }
  .svc__o { right: 8vw; top: calc(100% - 5rem); width: 15vw; }
  .hg__head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .hg__head .label { white-space: nowrap; }
  .course--lg.on { padding-left: 0; }
  .manifest__label, .manifest__text, .manifest__aside { grid-column: 1 / -1; }
  .svc__row { row-gap: .8rem; }
  .svc__name, .svc__text, .svc__meta { grid-column: 1 / -1; text-align: left; }
  .peek { width: 38vw; }   /* small, it opens under a finger */
  .hg__item { width: 72vw; }
  .hg__item:nth-child(even), .hg__item:nth-child(odd) { margin-block: 0; }
  .now__o { left: auto; right: -10vw; bottom: auto; top: 2vh; width: 60vw; opacity: .8; }
  .now__head, .now__list, .ltable__head, .ltable__list, .ws__head, .ws__list, .steps__head, .steps__list { grid-column: 1 / -1; position: static; }
  .now__list, .ltable__list, .ws__list, .steps__list { margin-top: 3rem; }
  .abt__copy, .bio__img, .bio__copy { grid-column: 1 / -1; grid-row: auto; }
  .abt__img { grid-column: 1 / span 6; }
  .abt__img--2 { grid-column: 7 / span 6; grid-row: auto; }   /* the two pictures side by side */
  .abt__copy, .bio__copy { margin-top: 2.5rem; }
  .pics__grid { columns: 2; }
  .orb { position: static; margin-top: 2rem; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid > :first-child { grid-column: 1 / -1; }   /* the e-mail address is wider than half a phone screen */
  .phero { min-height: 78vh; padding-top: 7rem; }
  .phero__a { right: 6vw; top: 12vh; width: 56vw; }
  .phero__b { right: 62vw; top: 14vh; width: 20vw; }
  .phero .lead { margin-left: 0; }
  .menu__list { grid-column: 1 / -1; }
  .menu__stage { display: none; }
  .course--lg { color: var(--ink); }
  .ltable__img, .ws__img { aspect-ratio: 4 / 3; }
  .ws__row { grid-template-columns: 1fr; gap: .8rem; }
  .princ__o { right: -30vw; top: 1vh; width: 120vw; }
  .princ > .label { margin-bottom: 52vw; }
  .princ__list, .soon__list { grid-template-columns: 1fr; }
  .offer__tag, .offer h2, .offer__text { grid-column: 1 / -1; }
  .offer { row-gap: 1rem; }
  .form, .form__done, .ask__side, .faq__head, .faq__list { grid-column: 1 / -1; }
  .ask__side { margin-top: 4rem; }
  .faq__head { padding-bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js.ready .rl .w > span, .js.ready .rv { transform: none; opacity: 1; }
  .js.ready .clip { clip-path: none; }
  .fill .w { opacity: 1; }
  .fill mark { background-size: 100% 62%; }
}

/* ---------- grabbing objects in the 3D world ---------- */
.can-grab, .can-grab * { cursor: grab !important; }
.is-grabbing, .is-grabbing * { cursor: grabbing !important; user-select: none !important; }
