/* TidyTribe · room-to-room reveal build · 2026-08-26
   Light ground. Two families: Bricolage Grotesque (display), Instrument Sans
   (text). One accent. No gradient text, no counters, no scroll cues. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --canvas: #F7F4EE;
  --panel: rgba(247, 244, 238, 0.88);
  --putty: #E0D8CC;
  --ink: #22302A;
  --ink-soft: #5C6862;
  --accent: #2E7D5B;
  --accent-deep: #256549;
  --accent-ink: #F7F4EE;
  --hairline: rgba(34, 48, 42, 0.14);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --shadow: 0 2px 6px rgba(24, 36, 30, 0.10), 0 14px 34px -12px rgba(24, 36, 30, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }
:root { caret-color: var(--accent); accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: rgba(34, 48, 42, 0.35) transparent; scrollbar-width: thin; }
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

h1, h2 {
  font-family: var(--display);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 3.9vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3.1rem); }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--ink); color: var(--canvas);
  padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 160ms var(--ease-out);
}
.skip:focus-visible { top: 1rem; }

/* ---------------------------------------------------------------- chrome -- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gutter);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 660; font-size: 1.18rem;
  letter-spacing: -0.02em; text-decoration: none;
  color: var(--ink);
  background: var(--panel); border-radius: 999px;
  padding: 0.42rem 0.95rem 0.42rem 0.55rem;
  box-shadow: var(--shadow);
}
.top__actions { display: inline-flex; align-items: center; gap: 0.6rem; }
.top__tel {
  font-weight: 560; text-decoration: none; font-size: 0.95rem;
  background: var(--panel); border-radius: 999px; padding: 0.55rem 0.95rem;
  box-shadow: var(--shadow);
}
.top__tel:hover { color: var(--accent-deep); }

.cta {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--text); font-weight: 620; font-size: 1.02rem;
  text-decoration: none; border-radius: 999px;
  padding: 0.85rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.cta:active { transform: translateY(1px) scale(0.98); }
.cta--small { padding: 0.55rem 1.05rem; font-size: 0.95rem; }
.cta--big { padding: 1.05rem 2.2rem; font-size: 1.15rem; }

.rooms {
  position: fixed; right: 1.4rem; top: 50%; translate: 0 -50%; z-index: 80;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.rooms a {
  font-size: 0.78rem; font-weight: 560;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  background: var(--panel);
  border-radius: 999px; padding: 0.38rem 0.8rem;
  box-shadow: var(--shadow);
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}
.rooms a:hover { color: var(--ink); }
.rooms a.is-active { background: var(--ink); color: var(--canvas); }
@media (max-width: 1099px) { .rooms { display: none; } }

/* ----------------------------------------------------------------- rooms -- */
.room { position: relative; height: 240vh; }
.room--hero { height: 270vh; }
.room--close { height: 170vh; }

.room__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  background: var(--putty);
}
.room__clean, .room__grime {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.room__clean { object-fit: cover; }
.room__grime { touch-action: pan-y; }

.room__label {
  position: absolute; right: var(--gutter); bottom: 1.1rem; z-index: 3;
  margin: 0;
  font-family: var(--display); font-weight: 660;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: rgba(247, 244, 238, 0.94);
  text-shadow: 0 2px 22px rgba(24, 36, 30, 0.55), 0 1px 4px rgba(24, 36, 30, 0.35);
}

/* hero copy sits on a bottom band scrim; the scrim is a sibling, never a child */
.room__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top,
    rgba(19, 28, 24, 0.72) 0%,
    rgba(19, 28, 24, 0.42) 26%,
    rgba(19, 28, 24, 0.10) 46%,
    transparent 62%);
}
.room__scrim--card { display: none; }
.room__scrim--close {
  background: linear-gradient(to top,
    rgba(19, 28, 24, 0.78) 0%,
    rgba(19, 28, 24, 0.46) 30%,
    rgba(19, 28, 24, 0.12) 52%,
    transparent 68%);
}

.room__copy {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: clamp(2.2rem, 7vh, 5.5rem); z-index: 4;
  max-width: 46rem;
  color: #F7F4EE;
}
.room__copy h1, .room__copy h2 { color: #FDFBF7; }
.kicker {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(247, 244, 238, 0.85);
  margin-bottom: 0.9rem;
}
.support {
  margin-top: 1rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: rgba(247, 244, 238, 0.92);
  max-width: 44ch;
}
.hint { font-weight: 620; color: #FDFBF7; }
.hint--hover, .hint--touch { display: none; }
@media (hover: hover) and (pointer: fine) { .hint--hover { display: inline; } }
@media (hover: none) { .hint--touch { display: inline; } }

.hero-ctas {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
}
.pill {
  font-size: 0.85rem; font-weight: 560;
  color: rgba(247, 244, 238, 0.92);
  border: 1px solid rgba(247, 244, 238, 0.45);
  border-radius: 999px; padding: 0.5rem 0.95rem;
}

/* checklist card on kitchen and bath */
.room__card {
  position: absolute; left: var(--gutter);
  bottom: clamp(2.2rem, 7vh, 5.5rem); z-index: 4;
  max-width: 22.5rem;
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.4rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.room__card h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem); }
.room__card ul { margin: 0.9rem 0 0; padding: 0; list-style: none; }
.room__card li {
  padding: 0.5rem 0 0.5rem 1.6rem; position: relative;
  border-top: 1px solid var(--hairline);
  color: var(--ink); font-weight: 500; font-size: 0.98rem;
}
.room__card li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.95rem;
  width: 0.85rem; height: 0.5rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-48deg);
}

/* ----------------------------------------------------------------- beats -- */
.beat { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); }
.beat__wrap {
  max-width: 68rem; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.beat__wrap--narrow { display: block; max-width: 44rem; }
.beat__col p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.steps {
  margin: 1.4rem 0 0; padding: 0; list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 0.8rem 0 0.8rem 2.6rem; position: relative;
  border-top: 1px solid var(--hairline);
  font-weight: 540;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.72rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.85rem; font-weight: 640;
  border-radius: 999px;
}
.steps + p { margin-top: 1.4rem; }
.link { font-weight: 620; color: var(--accent-deep); }

.beat--pricing { background: var(--putty); }
.beat--pricing h2 { margin-bottom: 1.6rem; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td {
  text-align: left; padding: 0.85rem 0.25rem;
  border-top: 1px solid rgba(34, 48, 42, 0.18);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}
.prices th { font-weight: 560; }
.prices td { text-align: right; font-weight: 640; color: var(--accent-deep); white-space: nowrap; }
.fine { margin-top: 1.1rem; color: #4C5750; font-size: 0.95rem; max-width: 60ch; }

/* ----------------------------------------------------------------- close -- */
.room__copy--close { bottom: clamp(5.5rem, 14vh, 9rem); }
.close-ctas { margin-top: 1.5rem; }
.close-contact {
  margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.75;
  color: rgba(247, 244, 238, 0.95);
}
.close-contact a { font-weight: 620; color: #FDFBF7; }

.foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1rem; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem; color: rgba(247, 244, 238, 0.78);
}
.foot p { margin: 0; }
.foot a { color: rgba(247, 244, 238, 0.92); }

/* ---------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  .room { height: 210vh; }
  .room--hero { height: 240vh; }
  .room--close { height: 150vh; }
  .top { padding: 0.7rem 1rem; }
  .top__tel { display: none; }
  .room__copy { left: 1.1rem; right: 1.1rem; bottom: 4.6rem; }
  .room__label { right: 1.1rem; bottom: 0.8rem; font-size: 1.2rem; }
  .room__card { left: 1.1rem; right: 1.1rem; max-width: none; bottom: 3.6rem; }
  .beat__wrap { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: 0.2rem; bottom: 0.8rem; }
}

/* ---------------------------------------------------- reduced motion & no-JS
   The clean render is the truth. The grime canvas only exists with JS and
   motion; without either, the page is simply a clean, readable document. */
@media (prefers-reduced-motion: reduce) {
  .room__grime { display: none !important; }
  .hint { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------- answers page --
   A reading document, not a second scroll experience. The homepage owns the
   wipe; this page owns the plain answer. */
.doc { padding: 7.5rem var(--gutter) 0; }
.doc__wrap { max-width: 52rem; margin-inline: auto; }
.doc h1 {
  font-family: var(--display); font-weight: 640;
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem);
  line-height: 1.03; letter-spacing: -0.028em; margin: 0;
}
.doc__lede {
  margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft); max-width: 46ch;
}
.doc__meta { margin-top: 1.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.doc__meta a { color: var(--accent-deep); font-weight: 600; }

.jump { margin: 2.6rem 0 0; padding: 1.3rem 1.5rem; background: var(--putty); border-radius: 14px; }
.jump p { font-weight: 620; margin-bottom: 0.7rem; }
.jump ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.jump a { font-weight: 560; color: var(--accent-deep); }

.qgroup { margin-top: clamp(3rem, 6vw, 4.5rem); }
.qgroup > h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
  padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink);
}
.qa { margin-top: 2.1rem; }
.qa h3 {
  font-family: var(--display); font-weight: 620;
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.35rem);
  line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.6rem;
}
.qa p { color: #3F4A44; }
.qa p + p { margin-top: 0.7rem; }
.qa ul { margin: 0.7rem 0 0; padding-left: 1.1rem; color: #3F4A44; }
.qa ul + p { margin-top: 0.9rem; }
.qa li { margin-top: 0.35rem; }
.qa strong { color: var(--ink); }

.doc-cta {
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--ink); color: #F7F4EE; border-radius: 18px;
}
.doc-cta h2 { color: #FDFBF7; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.doc-cta p { margin-top: 0.8rem; color: rgba(247, 244, 238, 0.9); max-width: 46ch; }
.doc-cta .cta { margin-top: 1.5rem; }
.doc-cta a:not(.cta) { color: #FDFBF7; font-weight: 620; }

.doc-foot {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--hairline);
  font-size: 0.85rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
}
.doc-foot a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .doc { padding-top: 5.5rem; }
  .doc-foot { flex-direction: column; }
}
