/* Ampiri motion prototypes: the shell every version shares.
   Tokens are the card identity (website/app/src/app/globals.css, --s-*). Scale and rhythm are
   the jeton study: display six times the body, 160 px between ideas, 285 before a statement.
   No feathered edges, no textures, no boxes. The red is one thing at a time. */

:root {
  --ink: #2D1F0E; --red: #BF3E1D; --red-t: #b63e1a; --leaf: #7D8B63;
  --gold: #BFA678; --gold-t: #816134;
  --sand: #F2E4C9; --sand-2: #E9DCC0; --paper: #FBF4E6;
  --canopy: #14170f; --mist: #dbe2e6; --dawn: #e8d3b3;
  --cg: "Cormorant Garamond", Georgia, serif;
  --in: "Inter", system-ui, -apple-system, sans-serif;
  --gut: clamp(20px, 4.4vw, 56px);
  --quiet: clamp(96px, 12.5vw, 160px);
  --statement: clamp(140px, 22vw, 285px);
  --measure: 38rem;
  --bar-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .55s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease-out) both; }
::view-transition-group(mark) { animation-duration: .6s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-2vh); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(3vh); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--in); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* ---------- the bar: the wordmark in the centre, the words either side ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); color: var(--ink); transition: color .5s var(--ease), background-color .5s var(--ease); }
.bar::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgba(45,31,14,.14); transform: scaleX(0); transition: transform .8s var(--ease); }
.bar.is-solid { background: var(--paper); }
.bar.is-solid::after { transform: scaleX(1); }
.bar.is-light { color: var(--paper); }
.bar nav { display: flex; gap: clamp(20px, 2.6vw, 40px); font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; }
.bar__r { justify-content: flex-end; }
.bar nav a { text-decoration: none; padding: 10px 0; position: relative; }
.bar nav a::after, .enq-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.bar nav a.enq::after { background: var(--red); transform: scaleX(1); }
.bar__mark { view-transition-name: mark; font: 400 22px/1 var(--cg); letter-spacing: .32em; margin-right: -.32em; text-decoration: none; white-space: nowrap; }
.bar__mark span, .foot__mark span, .mk__dot { color: var(--red); }
.bar__menu { display: none; justify-self: end; background: none; border: 0; color: inherit; font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; padding: 14px 0; cursor: pointer; }
html.is-home .bar__mark { opacity: 0; }
html.is-home .bar.is-docked .bar__mark { opacity: 1; }
@media (max-width: 860px) {
  :root { --bar-h: 60px; }
  .bar nav { display: none; }
  .bar__menu { display: block; grid-column: 3; }
  .bar__mark { grid-column: 2; font-size: 19px; }
}

/* ---------- the menu: a full sheet of paper, five words ---------- */
.menu { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gut) 32px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-out); }
.menu[hidden] { display: grid; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__close { justify-self: end; background: none; border: 0; font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; padding: 14px 0; color: var(--ink); cursor: pointer; }
.menu__list { align-self: center; display: flex; flex-direction: column; gap: 4px; }
.menu__list a { font: 300 clamp(44px, 12vw, 96px)/1.05 var(--cg); text-decoration: none; overflow: hidden; display: block; }
.menu__list a span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out) calc(.12s + var(--i) * .06s); }
.menu.is-open .menu__list a span { transform: none; }
.menu__list a.enq span { color: var(--red); }
.menu__more { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; }
.menu__more a { text-decoration: none; padding: 8px 0; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.4 var(--in); letter-spacing: .2em; text-transform: uppercase; color: var(--red-t); }
.eyebrow--light { color: var(--paper); opacity: .9; }
.display { font: 300 clamp(48px, 7.4vw, 112px)/.98 var(--cg); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.display em, .hero__title em { font-style: italic; }
.lede { font: 400 clamp(26px, 2.9vw, 40px)/1.28 var(--cg); max-width: 22em; text-wrap: pretty; }
.statement { font: 300 clamp(32px, 4.2vw, 60px)/1.18 var(--cg); max-width: 19em; margin: 0 auto; text-align: center; text-wrap: balance; }
.tagline { font: italic 400 clamp(24px, 3vw, 40px)/1.15 var(--cg); }
.prose { max-width: var(--measure); text-wrap: pretty; }
.prose + .prose { margin-top: 1.1em; }
.prose mark { background: none; color: inherit; font-weight: 500; }
.prose a, .list a { text-decoration-color: var(--red); text-underline-offset: .25em; }
.list { list-style: none; padding: 0; margin: 2em 0 0; max-width: 44rem; }
.list li { padding: 22px 0; border-top: 1px solid rgba(45,31,14,.16); }
.list li:last-child { border-bottom: 1px solid rgba(45,31,14,.16); }
.list strong { display: block; font: 500 12px/1.4 var(--in); letter-spacing: .18em; text-transform: uppercase; color: var(--red-t); margin-bottom: 6px; }
.quote { font: italic 400 clamp(24px, 2.6vw, 34px)/1.3 var(--cg); margin: 2em 0; max-width: 28em; }
.enq-link { display: inline-block; position: relative; margin-top: 32px; font: 500 12px/1 var(--in); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 12px 0; }
.enq-link::after { background: var(--red); transform: scaleX(1); }
.enq-link:hover::after { animation: rule 0.9s var(--ease) both; }
@keyframes rule { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 55% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* the wordmark as letters */
.mk { display: inline-flex; align-items: baseline; font-family: var(--cg); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.mk__l, .mk__dot { display: inline-block; }
.mk__l { margin-right: .12em; }

/* ---------- hero: the photograph is the page ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--paper); background: var(--canopy); }
.hero__ph, .hero__ph picture, .hero__ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ph img { object-fit: cover; object-position: 50% 58%; }
/* the film: the hot spring loop. Phone: the whole screen (it is portrait). Desktop: a tall
   column in the centre at its own sharpness, the dawn photograph either side. Straight edges. */
.film { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); background: var(--canopy); }
.film.is-on { opacity: 1; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 861px) and (min-aspect-ratio: 4/5) {
  .film { left: 50%; right: auto; width: min(calc(100svh * 480 / 864), 40vw); transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(191,166,120,.35); }
}
.hero__ph::after { z-index: 1; content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,7,.42) 0%, rgba(10,13,7,0) 26%, rgba(10,13,7,0) 52%, rgba(10,13,7,.5) 100%); }
.hero__type { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 var(--gut); z-index: 2; }
.hero__mark { margin: 0; font-size: clamp(64px, 14.5vw, 220px); line-height: .9; }
.hero__mark .mk__l { margin-right: .12em; }
.hero__title { margin: 0; font: 300 clamp(56px, 10vw, 156px)/.95 var(--cg); text-wrap: balance; max-width: 12em; }
.cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(251,244,230,.35); z-index: 2; overflow: hidden; }
.cue::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleY(0); transform-origin: top; animation: cue 1.4s var(--ease) 2.6s both; }
@keyframes cue { to { transform: scaleY(1); } }

/* ---------- chapters: one idea per screen ---------- */
.ch { position: relative; padding: var(--quiet) var(--gut); }
.ch--sand { background: var(--sand); }
.ch--paper { background: var(--paper); }
.ch--dark { background: var(--canopy); color: var(--paper); }
.ch--dark .eyebrow { color: var(--dawn); }
.ch--dark .list li { border-color: rgba(251,244,230,.18); }
.ch--dark .list strong { color: var(--dawn); }
.ch > * + * { margin-top: var(--quiet); }
.ch__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.ch__head .lede { margin: 0 auto; }
.ch__body { margin-left: auto; margin-right: auto; max-width: var(--measure); }
.ch--statement { padding: var(--statement) var(--gut); }
.ch--where .ch__head { margin-bottom: 0; }
.ch--plate { padding-left: 0; padding-right: 0; }

/* a photograph, whole and straight-edged */
.plate { margin: 0; }
.plate__win { position: relative; overflow: hidden; width: min(100%, 1240px); margin: 0 auto; aspect-ratio: 3 / 2; background: var(--sand-2); }
.plate__win img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { width: min(100%, 1240px); margin: 14px auto 0; font: 500 12px/1.5 var(--in); letter-spacing: .12em; text-transform: uppercase; opacity: .7; padding: 0 var(--gut); }
.ch--plate .plate__win { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- the six questions ---------- */
.qs { position: relative; padding: var(--quiet) var(--gut); background: var(--paper); }
.qs > .eyebrow { text-align: center; margin-bottom: 48px; }
.qs__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; }
.qs__list li { border-top: 1px solid rgba(45,31,14,.18); }
.qs__list li:last-child { border-bottom: 1px solid rgba(45,31,14,.18); }
.q { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 24px; padding: 30px 0; text-decoration: none; position: relative; }
.q__n { font: 500 12px/1 var(--in); letter-spacing: .16em; color: var(--red-t); }
.q__t { font: 300 clamp(30px, 4.6vw, 68px)/1.05 var(--cg); transition: transform .7s var(--ease-out), color .4s; }
.q__to { font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; opacity: .6; transition: opacity .4s; }
.q:hover .q__t { transform: translateX(18px); }
.q:hover .q__to { opacity: 1; }
.qs__peek { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.qs__peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .q { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .q__n { display: none; }
  .qs__peek { display: none; }
}
@media (hover: none) { .qs__peek { display: none; } }

/* ---------- next: every page leads on ---------- */
.next { position: relative; display: grid; place-items: center; height: 92svh; min-height: 520px; overflow: hidden; text-decoration: none; color: var(--paper); background: var(--canopy); }
.next__win { position: absolute; inset: 0; }
.next__win img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.6s var(--ease-out); }
.next:hover .next__win img { transform: scale(1.04); }
.next__label { position: absolute; top: 40px; font: 500 12px/1 var(--in); letter-spacing: .2em; text-transform: uppercase; z-index: 2; }
.next__title { position: relative; z-index: 2; font: 300 clamp(56px, 10vw, 150px)/.95 var(--cg); text-align: center; padding: 0 var(--gut); }
.next--home .next__title::before { content: "Ready? "; font-style: italic; }

/* ---------- gallery ---------- */
.grid { columns: 3 280px; column-gap: 16px; max-width: 1400px; margin: 0 auto; }
.grid__it { margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: var(--sand-2); }
.grid__it img { width: 100%; height: auto; }
.ch--mail { text-align: center; padding: var(--statement) var(--gut); }
.bigmail { font: 300 clamp(36px, 7vw, 104px)/1 var(--cg); text-decoration: none; border-bottom: 2px solid var(--red); }

/* ---------- foot ---------- */
.foot { background: var(--sand); padding: 96px var(--gut) 40px; display: grid; justify-items: center; gap: 36px; text-align: center; }
.foot__mark { font: 400 28px/1 var(--cg); letter-spacing: .32em; margin-right: -.32em; text-decoration: none; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font: 500 12px/1 var(--in); letter-spacing: .16em; text-transform: uppercase; }
.foot__nav a, .foot__mail { text-decoration: none; padding: 6px 0; }
.foot__mail { font: 400 clamp(24px, 3vw, 36px)/1 var(--cg); }
.foot__ver { font-size: 12px; opacity: .55; }

/* things the scripts hide before they reveal; never hidden without the scripts */
.js [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
