:root {
  --bg: #0f1011;
  --surface: #1a1b1d;
  --ink: #ffffff;
  --muted: #a5a29c;
  --accent: #c8a94f;
  --accent-ink: #0f1011;
  --field-1: #23262a;  --field-1-ink: #ffffff;
  --field-2: #ecebe8;  --field-2-ink: #15171a;
  --field-3: #2b2620;

  --serif: "Zodiak", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
h2 { font-size: var(--step-head); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #d8bb66; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-block { width: 100%; }

/* Hero: menu sheet and sticky photograph */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding: var(--gap); min-height: 100svh;
}
.hero-sheet {
  background: var(--field-2); color: var(--field-2-ink);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: calc(100svh - 2 * var(--gap)); padding: 28px var(--m) 0;
}
.hero-nav { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: var(--step-small); }
.hero-nav a { text-decoration: none; }
.hero-nav a:first-child { justify-self: start; }
.hero-nav a:last-child { justify-self: end; }
.hero-nav a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 300 var(--step-lead)/1 var(--serif); letter-spacing: 0.04em; }
.wordmark img { width: 40px; height: 40px; }
.hero-copy { margin-top: 26vh; max-width: 30rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--step-head); text-transform: uppercase; }
.hero h1 span { display: block; }
.hero-lead { margin-top: 36px; max-width: 40ch; font-size: var(--step-body); }
.hero-copy .btn { margin-top: 32px; }
.lang { margin-top: 20px; font-size: var(--step-small); text-decoration: none; }
.lang:hover { text-decoration: underline; }

.hero-photo {
  margin: 0; position: sticky; top: var(--gap);
  height: calc(100svh - 2 * var(--gap)); overflow: hidden; background: var(--surface);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero-photo img.is-on { opacity: 1; }
.hero-photo img:first-child { object-position: 30% 60%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1%); } }
.hero-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--field-2); color: var(--field-2-ink); font-size: var(--step-small);
}

/* Showcase band */
.showcase { padding-top: var(--section); }
.showcase h2 { margin: 0 var(--m) 64px calc(var(--m) + 16.66%); }
.band { display: flex; height: 68svh; }
.panel { position: relative; margin: 0; flex: 2 1 0; overflow: hidden; transition: flex-grow .5s var(--ease); }
.panel:nth-child(1) { flex-grow: 5; }
.panel:nth-child(3) { flex-grow: 3; }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.panel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); /* taste-skill-ignore: neutral scrim under caption on photo */
  font-size: var(--step-small); line-height: 1.35;
}
.panel figcaption strong { display: block; font: 300 var(--step-lead)/1.1 var(--serif); margin-bottom: 4px; }
@media (hover: hover) {
  .band:hover .panel { flex-grow: 2; }
  .band .panel:hover { flex-grow: 6; }
  .panel:hover img { transform: scale(1.03); }
}
.band-caption { margin: 28px var(--m) 0; max-width: 62ch; }

/* Diagonal */
.diag {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--section) var(--m) 0; align-items: start;
}
.diag img, .diag video { width: 100%; object-fit: cover; display: block; }
.diag-h { grid-column: 8 / 13; grid-row: 1; }
.d1 { grid-column: 1 / 5; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.t1 { grid-column: 5 / 8; grid-row: 1; max-width: 36ch; margin-top: 220px; }
.d2 { grid-column: 6 / 9; grid-row: 2; aspect-ratio: 1; margin-top: 160px; background: #fff; object-fit: contain !important; }
.t2 { grid-column: 9 / 13; grid-row: 2; margin-top: 160px; max-width: 36ch; }
.d3 { grid-column: 7 / 13; grid-row: 3; aspect-ratio: 16 / 10; margin-top: 140px; }
.t3 { grid-column: 3 / 7; grid-row: 3; margin-top: 140px; max-width: 36ch; justify-self: end; }
.diag strong { font-weight: 500; }

/* Steps with the day slider */
.steps {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: var(--section) var(--m) 0; align-items: start;
}
.steps-photo { grid-column: 1 / 6; position: sticky; top: 12vh; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.steps-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.steps-photo img.is-on { opacity: 1; }
.steps-list { grid-column: 7 / 12; }
.steps-list h2 { margin-bottom: 40px; }
.dayline { display: grid; gap: 10px; margin-bottom: 24px; font-size: var(--step-lead); }
.dayline output { font-variant-numeric: tabular-nums; color: var(--accent); }
input[type=range] { width: 100%; height: 44px; accent-color: var(--accent); cursor: pointer; background: transparent; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-top: 0; }
.rows button {
  width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; padding: 0; color: var(--muted); text-align: left; cursor: pointer;
  font: 400 var(--step-body)/1.2 var(--sans); transition: color .2s ease;
}
.rows .d { font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.rows button:hover { color: var(--ink); }
.rows li.is-on button { color: var(--ink); }
.rows li.is-on .d { color: var(--accent); }
.rows p { display: none; max-width: 34ch; padding-bottom: 16px; font-size: var(--step-small); }
.rows li.is-on p { display: block; }
.note { margin-top: 24px; color: var(--muted); font-size: var(--step-small); }

/* Walls: stepping statements over one photograph */
.walls { position: relative; height: 420vh; margin-top: var(--section); }
.walls-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.walls-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walls-text { position: absolute; z-index: 2; left: 50%; top: 7vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; padding: 28px 44px; text-align: center; background: rgba(15,16,17,.86); }
.walls-text .st { font: 400 var(--step-body)/1.3 var(--sans); color: var(--muted); transition: color .3s ease; }
.walls-text h2.st { font: 300 var(--step-lead)/1.2 var(--serif); }
.walls-text .st.is-on { color: var(--ink); }
.walls-pics img {
  position: absolute; z-index: 2; object-fit: cover; opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.walls-pics .pl { left: 8vw; top: 48vh; width: 220px; aspect-ratio: 4 / 5; }
.walls-pics .pr { right: 8vw; top: 58vh; width: 240px; aspect-ratio: 3 / 2; }
.walls-pics img.is-on { opacity: 1; transform: none; }
.walls-marks { position: absolute; inset: 0; pointer-events: none; }
.walls-marks i { display: block; height: 70vh; }

/* Rising triptych */
.rise { height: 180svh; margin-top: var(--section); }
.rise-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; --p: 0; }
.rise-copy { text-align: center; padding: 8vh var(--m) 0; max-width: 46rem; margin: 0 auto; }
.rise-copy h2 { font-size: var(--step-head); }
.rise-copy p { margin-top: 16px; }
.rise img { position: absolute; object-fit: cover; will-change: transform; }
.r-c { left: 50%; width: min(760px, 56vw); aspect-ratio: 4 / 5; top: calc(8vh + 190px); transform: translate(-50%, calc((1 - var(--p)) * 26vh)) scale(calc(.86 + .14 * var(--p))); transform-origin: top center; }
.r-l, .r-r { width: min(360px, 24vw); aspect-ratio: 360 / 530; top: calc(8vh + 245px); }
.r-l { right: calc(50% + min(380px, 28vw) + 10px); transform: translate(calc(var(--p) * -6vw), calc((1 - var(--p)) * 38vh)); }
.r-r { left: calc(50% + min(380px, 28vw) + 10px); transform: translate(calc(var(--p) * 6vw), calc((1 - var(--p)) * 46vh)); }

/* Places card */
.places { background: var(--field-1); margin-top: var(--section); height: min(86svh, 820px); overflow: hidden; display: flex; justify-content: center; padding-top: 96px; }
.card {
  width: min(56vw, 760px); aspect-ratio: 5 / 7; flex: none; padding: 56px;
  background: var(--field-2); color: var(--field-2-ink); transform: rotate(-1.5deg); text-align: center;
}
.card h2 { font-size: var(--step-lead); font-weight: 300; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 32px 0; }
.card .names { font-size: var(--step-lead); line-height: 1.7; }

/* Catalog */
.catalog { position: relative; min-height: 100svh; }
.catalog-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.visit {
  position: absolute; top: 60px; right: 60px; width: 400px; padding: 32px 32px 0;
  background: var(--field-2); color: var(--field-2-ink); display: grid; gap: 16px;
}
.visit h2 { font-size: var(--step-lead); }
.visit p { font-size: var(--step-small); }
.visit label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.visit input {
  font: 400 16px/1.2 var(--sans); padding: 12px 12px; min-height: 48px;
  border: 1px solid #b9b5ad; border-radius: 0; background: #fff; color: var(--field-2-ink);
}
.visit input:focus-visible { outline: 2px solid var(--field-2-ink); outline-offset: 0; }
.visit .btn { margin: 8px -32px 0; width: calc(100% + 64px); min-height: 56px; }
.form-msg:empty { display: none; }

/* Footer */
.foot { background: var(--field-3); min-height: 90svh; display: flex; flex-direction: column; padding: 40px var(--m) 28px; }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; font-size: var(--step-small); }
.foot-top p:first-child { grid-column: 1 / 5; display: flex; align-items: center; gap: 10px; }
.foot-top p:nth-child(2) { grid-column: 5 / 9; }
.foot-top a { grid-column: 12 / 13; justify-self: end; }
.foot-mail {
  margin-top: auto; text-decoration: none; display: flex; flex-wrap: wrap;
  font: 300 clamp(48px, 8.6vw, 150px)/0.95 var(--serif); letter-spacing: -0.02em;
}
.foot-mail:hover { color: var(--accent); }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: var(--step-small); color: var(--muted); }

/* Entrances */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; height: 62svh; z-index: 0; }
  .hero-sheet { position: relative; z-index: 1; margin-top: -10svh; min-height: auto; padding: 28px var(--m) 72px; }
  .hero-copy { margin-top: 64px; }
  .band { flex-wrap: wrap; height: 84svh; }
  .panel { height: 50%; }
  .panel:nth-child(1), .panel:nth-child(4) { flex: 0 0 64%; }
  .panel:nth-child(2), .panel:nth-child(3) { flex: 0 0 36%; }
  .band:hover .panel, .band .panel:hover { flex-grow: 0; }
  .panel figcaption { padding: 40px var(--m) 16px; }
  .diag-h { grid-column: 1 / 13; margin-bottom: 40px; }
  .d1 { grid-column: 1 / 7; grid-row: 2; }
  .t1 { grid-column: 8 / 13; grid-row: 2; }
  .d2 { grid-column: 3 / 9; grid-row: 3; margin-top: 80px; }
  .t2 { grid-column: 9 / 13; grid-row: 3; margin-top: 80px; }
  .d3 { grid-column: 4 / 13; grid-row: 4; margin-top: 80px; }
  .t3 { grid-column: 1 / 4; grid-row: 4; margin-top: 80px; }
  .steps-photo { grid-column: 1 / 7; }
  .steps-list { grid-column: 7 / 13; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gap: 12px; }
  .hero { grid-template-columns: 1fr; padding: var(--gap); }
  .hero-photo { order: -1; height: 56svh; position: sticky; top: var(--gap); z-index: 0; }
  .hero-sheet { position: relative; z-index: 1; margin-top: -10svh; min-height: auto; padding: 24px 16px 56px; }
  .hero-nav { font-size: 15px; }
  .wordmark { font-size: 26px; }
  .hero-copy { margin-top: 48px; }
  .hero h1 { font-size: 9vw; }
  .hero-photo { height: 56svh; }
  .hero-copy .btn { width: 100%; }
  .hero-bar { font-size: 13px; padding: 0 14px; }
  .hero-bar span:last-child { display: none; }

  .showcase h2 { margin: 0 var(--m) 32px; font-size: 32px; }
  .band { flex-wrap: wrap; height: 84svh; }
  .panel { height: 50%; }
  .panel:nth-child(1) { flex: 0 0 64%; }
  .panel:nth-child(2) { flex: 0 0 36%; }
  .panel:nth-child(3) { flex: 0 0 36%; }
  .panel:nth-child(4) { flex: 0 0 64%; }
  .panel figcaption { padding: 40px 14px 14px; }

  .diag { display: flex; flex-direction: column; gap: 16px; }
  .diag-h { font-size: 32px; margin-bottom: 16px; }
  .d1 { width: 100%; aspect-ratio: 4 / 3; }
  .d2 { width: 62%; align-self: flex-end; margin-top: 40px; }
  .t2 { margin-top: 0; }
  .d3 { width: 78%; margin-top: 40px; }
  .t3 { margin-top: 0; justify-self: auto; }
  .diag p { max-width: none; }

  .steps { display: block; }
  .steps-photo { position: sticky; top: 0; aspect-ratio: auto; height: 38svh; z-index: 2; margin: 0 calc(-1 * var(--m)); }
  .steps-list { padding-top: 24px; }
  .steps-list h2 { font-size: 32px; margin-bottom: 24px; }

  .walls-text { justify-items: start; text-align: left; left: var(--m); right: var(--m); top: auto; bottom: 6svh; transform: none; padding: 20px; }
  .walls-text .st { font-size: 17px; }
  .walls-pics .pl { left: auto; right: 16px; top: 16px; width: 44vw; }
  .walls-pics .pr { display: none; }

  .rise-copy { padding-top: 6vh; }
  .rise-copy h2 { font-size: 30px; }
  .r-c { width: 64vw; top: calc(6vh + 200px); }
  .r-l, .r-r { width: 40vw; }
  .r-l { right: calc(50% + 32vw + 8px); }
  .r-r { left: calc(50% + 32vw + 8px); }

  .places { padding-top: 56px; height: 78svh; }
  .card { width: 92vw; padding: 28px; transform: rotate(-1deg); }
  .card h2 { font-size: 22px; }
  .card .names { font-size: 17px; }

  .catalog { min-height: auto; padding-bottom: 32px; }
  .catalog-bg { position: relative; height: 70svh; }
  .visit { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; }
  .visit .btn { margin: 8px -32px 0; }

  .foot-top { grid-template-columns: 1fr; gap: 8px; }
  .foot-top p, .foot-top a { grid-column: auto !important; justify-self: start !important; }
  .foot-mail { font-size: 12vw; margin-top: 30svh; }
  .foot-meta { flex-direction: column; gap: 4px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rise-stage { --p: 1 !important; }
}
