/* Tomette — a renovation firm: the worksite beside the delivered room. 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, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul, ol, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { 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; }
.nav__tel { font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__tel:hover { color: var(--accent); }

/* Hero: what the firm does, in two lines, and the same kitchen on either side of the line. */
.hero { padding: 96px var(--m) var(--m); min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; gap: 24px; }
.hero h1 { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 5.35vw, 6.25rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero__side { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 24px; align-self: stretch; }
.hero__lead { font-size: clamp(1.125rem, 1.45vw, 1.5rem); line-height: 1.35; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.facts { margin-top: auto; display: grid; gap: 6px; }
.facts li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 2px solid var(--ink); }
.facts b { flex: none; min-width: 5.2em; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }

.ba { grid-column: 5 / -1; position: relative; min-height: 380px; overflow: hidden; background: var(--graphite); --split: 50%; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ba__after { clip-path: inset(0 0 0 var(--split)); }
.ba__tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 8px 14px; background: var(--graphite); color: var(--on-dark); font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: 0.9375rem; pointer-events: none; }
.ba__tag--r { left: auto; right: 12px; background: var(--accent); color: var(--accent-ink); }
.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; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:hover .ba__line span { scale: 1.1; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Intro: the right half of the page and the film beside it. */
.intro { padding: 140px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.intro__pic { grid-column: 1 / 6; grid-row: 1 / 3; overflow: hidden; }
.intro__pic video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro__text { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.intro__note { grid-column: 7 / 11; color: var(--muted); font-size: 1rem; }

/* Works: six trades, wide and narrow in turn. */
.works { padding: 0 var(--m) 160px; }
.works__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 40px; }
.works__head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.works__head p { grid-column: 8 / 13; }
.works__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.work { grid-column: span var(--s); min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-content: start; }
.work img { grid-column: 1 / -1; width: 100%; height: clamp(240px, 26vw, 420px); object-fit: cover; margin-bottom: 12px; filter: saturate(0.9); }
.work h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1.25rem; line-height: 1.1; }
.work p { grid-column: 1; }
.work .work__price { grid-column: 2; grid-row: 2 / 4; justify-self: end; align-self: start; padding: 6px 12px; background: var(--ink); color: var(--bg); font-weight: 500; white-space: nowrap; }

/* The worksite: one room at a time, chosen with the buttons below. */
.site { position: relative; background: var(--graphite); color: var(--on-dark); }
.site__stage { position: relative; height: calc(100svh - 72px); min-height: 560px; overflow: hidden; }
.step { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.step.is-on { opacity: 1; visibility: visible; }
.step img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.9); }
.step__word { position: relative; text-align: center; padding: 0 var(--m); }
.step__when { font-size: var(--step-lead); margin-bottom: 8px; }
.step h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.75rem, 10.5vw, 12rem); line-height: 0.9; letter-spacing: -0.06em; }
.step__note { position: absolute; left: var(--m); bottom: var(--m); max-width: 44ch; padding: 16px 20px; background: rgba(24, 25, 27, 0.78); }
html:not(.js) .step { position: relative; height: 70svh; opacity: 1; visibility: visible; }
html:not(.js) .site__stage { height: auto; }
html:not(.js) .site__tabs { display: none; }
.site__tabs { display: grid; grid-template-columns: repeat(6, 1fr); }
.site__tabs button { min-height: 72px; padding: 0 12px; border: 0; border-right: 1px solid var(--graphite); background: var(--graphite-2); color: var(--on-dark); font-weight: 500; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.site__tabs button:hover { background: #303338; }
.site__tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* What we keep: one band of unequal panels. */
.band { padding: 160px 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; }

/* Price: one sentence, the figure on an orange block. */
.price { margin-top: 160px; background: var(--graphite); color: var(--on-dark); padding: 120px var(--m); 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: start; }
.price__text { grid-column: 1 / 6; font-size: 1.25rem; max-width: 44ch; }
.calc { grid-column: 7 / 13; display: grid; gap: 24px; padding: 28px; background: var(--bg); color: var(--ink); }
.calc__kind { display: grid; gap: 8px; }
.calc__kind legend, .calc__size > span { font-weight: 500; margin-bottom: 8px; }
.calc__kind label { position: relative; display: block; cursor: pointer; }
.calc__kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc__kind span { display: flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--surface); transition: background-color 0.2s, color 0.2s; }
.calc__kind input:checked + span { background: var(--ink); color: var(--bg); }
.calc__kind input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc__size { display: grid; gap: 4px; }
.calc__size input { width: 100%; height: 36px; margin: 0; accent-color: var(--accent); }
.calc__out { display: block; }
.calc__out b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc__out span { color: var(--muted); }

/* FAQ: the wide heading, the questions indented under it. */
.faq { padding: 160px var(--m); }
.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 phone and the form, side by side. */
.contact { background: var(--graphite); color: var(--on-dark); padding: 120px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.contact__side { grid-column: 1 / 6; display: grid; gap: 20px; justify-items: start; }
.contact__side h2 { font-size: clamp(1.75rem, 3.1vw, 3.5rem); }
.contact__side p { max-width: 38ch; }
.contact__tel { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.04em; text-decoration: none; transition: color 0.2s; }
.contact__tel:hover, .contact__mail:hover { color: var(--accent); }
.contact__mail { transition: color 0.2s; }
.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--graphite-2); color: var(--on-dark); font-weight: 400; }
.form textarea { resize: vertical; }
.form__wide { grid-column: 1 / -1; }
.form__done { color: var(--accent); font-weight: 500; }

/* Footer: the ways in, then the small print. */
.foot { padding: 72px var(--m) 24px; overflow: hidden; }
.foot__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot__id { grid-column: 1 / 4; display: grid; gap: 8px; align-content: start; }
.foot__places { grid-column: 4 / 8; display: grid; gap: 8px; align-content: start; }
.foot__places a { text-decoration: none; transition: color 0.2s; }
.foot__places a:hover { color: var(--accent); }
.foot__links { grid-column: 9 / 13; display: grid; grid-template-columns: repeat(2, 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: 48px; 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) {
  .step { transition: none; }
  .panel, .panel img { transition: none; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
}

@media (max-width: 1023px) {
  .hero { min-height: 0; grid-template-rows: auto; }
  .hero__side { grid-column: 1 / -1; }
  .facts { margin-top: 0; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .facts li { flex-direction: column; gap: 2px; }
  .ba { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3; }
  .intro__pic, .intro__text, .intro__note { grid-column: 1 / -1; grid-row: auto; }
  .intro { padding: 96px var(--m); }
  .price__text, .calc { grid-column: 1 / -1; }
  .contact__side, .form { grid-column: 1 / -1; }
  .contact { gap: 40px; }
  .works__head h2, .works__head p { grid-column: 1 / -1; }
  .work { grid-column: span 6; }
  .work img { height: 30vw; }
  .qa { margin-left: 0; }
  .qa details { margin: 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; }
  .foot__id, .foot__places, .foot__links { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --m: 20px; }
  .nav { gap: 12px; }
  .nav__tel { display: none; }
  .hero { padding-top: 88px; gap: 20px; }
  .hero h1 { font-size: 9.2vw; }
  .hero__side { display: contents; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__lead, .hero__actions, .facts { grid-column: 1 / -1; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link { display: none; }
  .ba { order: 3; aspect-ratio: 1 / 1; }
  .facts { order: 4; font-size: 0.875rem; gap: 10px; }
  .facts b { font-size: 0.9375rem; min-width: 0; }
  .ba__tag { font-size: 0.8125rem; padding: 6px 10px; }
  .works { padding-bottom: 96px; }
  .work { grid-column: 1 / -1; }
  .work img { height: 62vw; }
  .site__stage { height: 74svh; min-height: 480px; }
  .step { place-items: start center; padding-top: 18svh; }
  .step h3 { font-size: 13.5vw; }
  .step__note { right: var(--m); font-size: 1rem; padding: 12px 14px; }
  .site__tabs { grid-template-columns: repeat(3, 1fr); }
  .site__tabs button { min-height: 56px; border-bottom: 1px solid var(--graphite); }
  .band { padding-top: 96px; }
  .band h2 { margin: 0 var(--m) 32px; }
  .panel figcaption { font-size: 0.9375rem; padding: 12px 14px; }
  .price { margin-top: 96px; padding: 96px var(--m); gap: 40px; }
  .price h2 { font-size: 8.4vw; }
  .price__text { font-size: 1.0625rem; }
  .calc { padding: 20px; margin: 0 calc(-1 * var(--m)); }
  .calc .btn { width: 100%; }
  .faq { padding: 96px var(--m); }
  .faq h2 { font-size: 9vw; }
  .qa { margin-top: 48px; }
  .qa details { margin: 0 calc(-1 * var(--m)); padding: 10px var(--m); }
  .contact { padding: 96px var(--m); }
  .form { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
}
