/* Tomette — the name as a monument. Cool light grey and graphite, safety orange for the action. */
:root {
  --bg: #eff0f1;
  --surface: #e2e3e5;
  --ink: #18191b;
  --muted: #55585e;
  --graphite: #18191b;
  --graphite-2: #222427;
  --on-dark: #eff0f1;
  --on-dark-muted: #a4a6ab;
  --accent: #ff4a1f;
  --accent-ink: #18191b;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 2vw, 32px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --text: 'Onest', 'Helvetica Neue', Arial, sans-serif;
}

*, *::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.5 var(--text); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
section { overflow-x: clip; }

h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 0 18px; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color 0.2s; }
.link:hover { color: var(--accent); }

/* Nav: a plain bar under one thick orange band. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 32px;
  padding: 10px var(--m); background: var(--bg); border-top: 6px solid var(--accent);
  transition: translate 0.4s var(--ease-out);
}
.nav.is-hidden { translate: 0 -100%; }
.nav__mark { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); scale: 0 1; transform-origin: left; transition: scale 0.3s var(--ease-out); }
.nav__links a:hover::after { scale: 1 1; }

/* Hero: one word, cropped by the screen. */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; perspective: 1400px; }
.hero__top { position: relative; z-index: 2; padding: calc(96px + 6vh) var(--m) 0; display: grid; gap: 28px; justify-items: start; max-width: calc(34ch + 2 * var(--m)); }
.hero__lead { font-size: clamp(1.25rem, 1.7vw, 1.625rem); line-height: 1.3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero__tile { position: absolute; z-index: 1; right: var(--m); top: 70px; width: min(46vw, 760px); height: 58svh; display: none; }
html.webgl .hero__tile { display: block; }
.monument { position: absolute; left: -3vw; bottom: -0.06em; margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(9rem, 19vw, 30rem); line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; color: var(--ink); transform-style: preserve-3d; }
.monument__word { display: inline-block; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-origin: 50% 80%; transition: transform 0.1s linear; }
.monument__word > span { display: inline-block; }
html.js .monument__word > span { translate: 0 40%; opacity: 0; transition: translate 1s var(--ease-out), opacity 0.6s; }
html.js .hero.is-loaded .monument__word > span { translate: 0 0; opacity: 1; }
.monument__word > span:nth-child(2) { transition-delay: 0.05s; }
.monument__word > span:nth-child(3) { transition-delay: 0.1s; }
.monument__word > span:nth-child(4) { transition-delay: 0.15s; }
.monument__word > span:nth-child(5) { transition-delay: 0.2s; }
.monument__word > span:nth-child(6) { transition-delay: 0.25s; }
.monument__word > span:nth-child(7) { transition-delay: 0.3s; }

/* The site in 3D: the weeks on the left, the room on the right. */
.site { background: var(--graphite); color: var(--on-dark); }
.site .scene-stage { min-height: 100svh; padding: 96px var(--m) 32px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: stretch; }
.site__text { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.week { white-space: nowrap; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.25rem, 3.6vw, 4.25rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 12px; color: var(--on-dark-muted); }
.steps li { position: relative; padding-left: 26px; transition: color 0.3s; }
.steps li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--graphite-2); transition: background-color 0.3s; }
.steps li.is-on { color: var(--on-dark); }
.steps li.is-on::before { background: var(--accent); }
.site__view { grid-column: 5 / 13; position: relative; overflow: hidden; background: var(--graphite-2); min-height: 420px; }
.site__view canvas, .site__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site__view canvas, .ba__frame canvas { display: none; }
html.webgl .site__view canvas, html.webgl .ba__frame canvas { display: block; }
html.webgl .site__fallback, html.webgl .ba__fallback { display: none; }

/* Intro: the right half of the page and one photograph hanging below. */
.intro { padding: 160px 5vw; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.intro__text { grid-column: 7 / 13; grid-row: 1; margin-top: 10vh; font-size: var(--step-lead); line-height: 1.4; text-indent: 3em; max-width: 40ch; }
.intro__pic { grid-column: 1 / 5; grid-row: 1 / 3; align-self: end; overflow: hidden; margin-bottom: -6vh; }
.intro__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 35%; }
.intro__note { grid-column: 7 / 10; grid-row: 2; align-self: start; color: var(--muted); font-size: 1rem; }

/* Before and after: one frame, two states of the same room. */
.ba { padding: 120px var(--m) 0; }
.ba__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 32px; }
.ba__head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.ba__head p { grid-column: 8 / 13; }
.ba__frame { position: relative; aspect-ratio: 16 / 8; background: var(--graphite); overflow: hidden; --split: 50%; }
.ba__frame canvas, .ba__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.ba__line span { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--accent); transition: scale 0.25s var(--ease-out); }
.ba__line span::before, .ba__line span::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--accent-ink); border-left: 3px solid var(--accent-ink); margin-top: -6px; }
.ba__line span::before { left: 14px; rotate: -45deg; }
.ba__line span::after { right: 14px; rotate: 135deg; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__frame:hover .ba__line span { scale: 1.1; }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba__foot { margin-top: 20px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; }
.ba__side strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.25rem; }
.ba__side--r { text-align: right; }
.ba__views { display: flex; gap: 8px; }
.ba__views button { min-height: 44px; padding: 0 18px; border: 0; background: var(--surface); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.ba__views button:hover { background: #d3d4d7; }
.ba__views button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* What we keep: one band of unequal panels. */
.band { padding: 200px 0 0; }
.band h2 { margin: 0 0 64px calc(2 * (100vw - 2 * var(--m)) / 12 + var(--m)); font-size: var(--step-head); }
.band__row { display: flex; height: 68svh; }
.panel { position: relative; flex: var(--g) 1 0; min-width: 0; overflow: hidden; transition: flex-grow 0.5s var(--ease-out); }
.panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: scale 0.8s var(--ease-out); }
.panel figcaption { position: absolute; left: 12px; top: 12px; padding: 14px 18px; background: rgba(24, 25, 27, 0.72); color: var(--on-dark); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.125rem; line-height: 1.1; max-width: calc(100% - 24px); }
.band__row:hover .panel:hover { flex-grow: 6; }
.panel:hover img { scale: 1.04; }
.band__cap { padding: 18px var(--m) 0; }

/* Method: four verbs, each on its own photograph. */
.verbs { margin-top: 200px; }
.verb { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--graphite); }
.verb img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: brightness(0.55) saturate(0.85); }
.verb__word { position: relative; z-index: 1; }
.verb h2 { font-size: clamp(3rem, 11.5vw, 13rem); line-height: 0.85; letter-spacing: -0.06em; color: var(--on-dark); }
.verb p { position: absolute; z-index: 1; left: var(--m); bottom: var(--m); max-width: 42ch; padding: 16px 20px; background: rgba(24, 25, 27, 0.72); color: var(--on-dark); }

/* Price: one sentence, the figure on an orange block. */
.price { min-height: 82svh; background: var(--graphite); color: var(--on-dark); padding: 160px var(--m) 120px; display: flex; flex-direction: column; justify-content: center; gap: 64px; }
.price h2 { font-size: clamp(2.6rem, 6.2vw, 7rem); line-height: 0.98; letter-spacing: -0.05em; }
.price h2 > span { display: block; }
.price mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.15em; }
.price__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.price__row p { grid-column: 1 / 7; font-size: 1.25rem; max-width: 60ch; }
.price__row .btn { grid-column: 10 / 13; justify-self: end; }

/* FAQ: the wide heading, the questions indented under it. */
.faq { padding: 200px var(--m) 160px; }
.faq h2 { font-size: clamp(2.4rem, 5.5vw, 6rem); line-height: 0.95; letter-spacing: -0.05em; max-width: 13ch; }
.qa { margin: 80px 0 0 calc(4 * (100% / 12)); display: grid; gap: 12px; }
.qa details { padding: 12px 24px; margin: 0 -24px; transition: background-color 0.3s; }
.qa details[open] { background: var(--surface); }
.qa summary { font-size: clamp(1.25rem, 1.6vw, 1.5rem); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 48px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -4px; transition: rotate 0.3s var(--ease-out); }
.qa details[open] summary::after { rotate: 225deg; translate: 0 4px; }
.qa summary:hover { color: var(--accent); }
.qa details p { padding: 8px 0 14px; max-width: 48ch; font-size: 1.0625rem; color: var(--muted); }

/* Contact: the address as the display type. */
.contact { min-height: 76svh; background: var(--graphite); color: var(--on-dark); padding: 120px var(--m) var(--m); display: grid; grid-template-rows: auto 1fr auto; gap: 40px; }
.contact__lead { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-family: var(--text); font-weight: 400; text-transform: none; letter-spacing: 0; max-width: 30ch; line-height: 1.3; }
.contact__mail { align-self: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 5.6vw, 6.5rem); line-height: 1; letter-spacing: -0.05em; text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.contact__mail span { display: inline-block; }
.contact__mail:hover { color: var(--accent); }
.contact__foot { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); color: var(--on-dark-muted); }
.contact__foot a { color: var(--on-dark); }

/* Footer: the name first, then the ways in. */
.foot { padding: 160px var(--m) 24px; overflow: hidden; }
.foot__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 18.4vw; line-height: 0.8; letter-spacing: -0.06em; margin-left: -0.04em; white-space: nowrap; }
.foot__row { margin-top: 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot__places { grid-column: 1 / 6; display: grid; gap: 8px; }
.foot__places a { font-size: clamp(1.25rem, 2vw, 2rem); text-decoration: none; transition: color 0.2s; }
.foot__places a:hover { color: var(--accent); }
.foot__links { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 0.9375rem; }
.foot__links ul { display: grid; gap: 6px; align-content: start; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--accent); }
.credits { margin-top: 72px; font-size: var(--step-small); color: var(--muted); max-width: 90ch; }
.credits a { color: var(--ink); }
.foot__legal { margin-top: 32px; display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }

/* Entrances */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] > * { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  html.js [data-reveal].in > * { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .monument__word > span { translate: none; opacity: 1; }
  .panel, .panel img { transition: none; }
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .site .scene-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 104px; gap: 20px; }
  .contact { min-height: 0; }
  .site__text, .site__view { grid-column: 1; }
  .site__text { gap: 14px; }
  .steps { gap: 6px; font-size: 0.9375rem; }
  .intro__text { grid-column: 5 / 13; }
  .intro__note { grid-column: 5 / 13; }
  .ba__head h2, .ba__head p { grid-column: 1 / -1; }
  .ba__frame { aspect-ratio: 4 / 3; }
  .ba__foot { grid-template-columns: 1fr 1fr; }
  .ba__views { grid-column: 1 / -1; grid-row: 2; }
  .qa { margin-left: 0; }
  .band__row { flex-wrap: wrap; height: 84svh; }
  .panel { flex: none; height: 50%; }
  .panel:nth-child(1), .panel:nth-child(4) { width: 64%; }
  .panel:nth-child(2), .panel:nth-child(3) { width: 36%; }
  .band__row:hover .panel:hover { flex-grow: 0; }
}

@media (max-width: 767px) {
  :root { --m: 20px; }
  .nav { gap: 12px; }
  .hero__top { padding-top: 104px; max-width: none; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .link { display: none; }
  .monument { left: -2vw; font-size: 18.5vw; }
  .monument__word { transform: none; }
  .hero__tile { right: 0; top: 30svh; width: 70vw; height: 36svh; }
  .site__text h2 { font-size: 1.5rem; }
  .week { font-size: 2.5rem; }
  .steps li { display: none; }
  .steps li.is-on { display: block; }
  .intro { padding: 96px var(--m); grid-template-columns: repeat(10, 1fr); gap: 16px; }
  .intro__text { grid-column: 1 / -1; margin: 0; font-size: 1.375rem; text-indent: 0; }
  .intro__pic { grid-column: 4 / -1; grid-row: 2; margin: 0; }
  .intro__pic img { aspect-ratio: 4 / 5; }
  .intro__note { grid-column: 1 / 4; grid-row: 2; align-self: end; font-size: 0.875rem; }
  .ba { padding-top: 96px; }
  .ba__frame { aspect-ratio: 4 / 5; }
  .ba__foot { grid-template-columns: 1fr; }
  .ba__side--r { text-align: left; }
  .ba__views { grid-row: auto; flex-wrap: wrap; }
  .band { padding-top: 120px; }
  .band h2 { margin: 0 var(--m) 32px; }
  .band__row { flex-wrap: wrap; height: 84svh; }
  .panel { flex: none; height: 50%; }
  .panel:nth-child(1), .panel:nth-child(4) { width: 64%; }
  .panel:nth-child(2), .panel:nth-child(3) { width: 36%; }
  .panel figcaption { font-size: 0.9375rem; padding: 12px 14px; }
  .verbs { margin-top: 120px; }
  .verb h2 { font-size: 11vw; }
  .verb p { right: var(--m); font-size: 1rem; }
  .price { padding: 120px var(--m) 96px; gap: 40px; }
  .price h2 { font-size: 6.4vw; }
  .price__row { grid-template-columns: 1fr; }
  .price__row p, .price__row .btn { grid-column: 1; justify-self: stretch; font-size: 1.0625rem; }
  .faq { padding: 120px var(--m) 96px; }
  .faq h2 { font-size: 9vw; }
  .qa { margin-top: 48px; }
  .qa details { margin: 0 calc(-1 * var(--m)); padding: 10px var(--m); }
  .contact { min-height: 86svh; }
  .contact__mail { white-space: normal; font-size: 7.6vw; }
  .contact__mail span { display: block; }
  .contact__foot { flex-direction: column; gap: 12px; font-size: 0.9375rem; }
  .foot__row { grid-template-columns: 1fr; }
  .foot__places, .foot__links { grid-column: 1; }
  .foot__places a { font-size: 1.375rem; }
  .foot__links { grid-template-columns: 1fr 1fr; }
  .foot__legal { flex-direction: column; }
}
