/* Brackwater Build Co. (a made-up renovation contractor, redesigned by Undefault).
   Owner 2026-11-07, direction A "studs to finished": paper white, graphite, pine as the one solid
   colour, measurement blue only for dimensions; Bricolage Grotesque and Source Sans 3; the first
   screen is one kitchen at studs and finished, and its divider is a ten-week timeline. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/demos/brackwater/after/fonts/bricolage-grotesque-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/demos/brackwater/after/fonts/source-sans-3-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/demos/brackwater/after/fonts/source-sans-3-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ee;
  --paper-deep: #eee8dc;
  --graphite: #1e2226;
  --graphite-soft: #3a4047;
  --pine: #d8b47e;
  --pine-deep: #c39a5c;
  --pine-pale: #f0e2c8;
  --blue: #2f5bd3;
  --muted: #545a61;
  --line: #ddd5c6;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
p {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--graphite);
  color: var(--paper);
}
.skip:focus {
  top: 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--graphite);
  border-radius: 6px;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.12s;
}
.button:active {
  transform: translateY(1px);
}
.button.dark {
  background: var(--graphite);
  color: var(--paper);
}
.button.dark:hover {
  background: #000;
}
.button.pine {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--graphite);
}
.button.ghost:hover {
  background: var(--graphite);
  color: var(--paper);
}
.button.wide {
  width: 100%;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  font: 700 1.45rem/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.nav-link,
.nav-phone {
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
}
.nav-link:hover,
.nav-phone:hover {
  text-decoration: underline;
}
.nav-cta {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding-top: clamp(20px, 3vw, 40px);
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  padding-bottom: clamp(20px, 2.4vw, 32px);
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  max-width: 13.5em;
  text-wrap: balance;
}
.proof {
  display: grid;
  gap: 4px;
  max-width: 21em;
  padding-left: 16px;
  border-left: 3px solid var(--pine);
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.4;
}
.proof b {
  color: var(--graphite);
  font: 700 1.15rem/1.2 var(--display);
}

.hero-stage {
  position: relative;
}
.split {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #cfc6b6;
  user-select: none;
  touch-action: pan-y;
  --p: 45%;
}
.layer,
.layer picture,
.layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.layer img {
  object-fit: cover;
}
.stages {
  clip-path: inset(0 calc(100% - var(--p)) 0 0);
}
.stage {
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.stage.on {
  opacity: 1;
}
.dim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dim path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}
.dim-label {
  position: absolute;
  left: 50%;
  top: 16.2%;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
}
.tag {
  position: absolute;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(247, 244, 238, 0.94);
  font-size: 0.86rem;
  line-height: 1.2;
  pointer-events: none;
}
.tag b {
  font-family: var(--display);
}
.tag-now {
  left: 14px;
}
.tag-done {
  right: 14px;
}
.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--p);
  width: 0;
  cursor: ew-resize;
  outline: none;
}
.handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 4px;
  background: var(--pine);
}
.grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--graphite);
  font: 700 1rem/1 var(--display);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(30, 34, 38, 0.28);
}
.arrow {
  font-size: 0.7rem;
}
.handle:focus-visible .grip {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.split.dragging .stage {
  transition-duration: 0.18s;
}

.stage-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.ledger p {
  display: grid;
}
.ledger .k {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ledger b {
  font: 700 1.35rem/1.2 var(--display);
}
.ledger .trades b {
  font: 600 1.05rem/1.5 var(--text);
}
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stage-tabs button {
  display: grid;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.stage-tabs button span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}
.stage-tabs button[aria-pressed='true'] {
  background: var(--pine);
  border-color: var(--pine);
}
.stage-tabs button[aria-pressed='true'] span {
  color: var(--graphite);
}

.rooms-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100vw * 9 / 21 - 24px);
  transform: translateY(-100%);
  pointer-events: none;
}
.rooms {
  pointer-events: auto;
  width: min(420px, 40%);
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(30, 34, 38, 0.25);
  z-index: 2;
}
.rooms-title {
  margin-bottom: 12px;
  font: 600 0.78rem/1.2 var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rooms ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rooms li a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid var(--graphite);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.rooms li a:hover,
.rooms li a:focus-visible {
  background: var(--pine);
  border-color: var(--pine);
}
.rooms li a b {
  font-weight: 600;
}
.rooms li a span {
  font: 700 1.05rem/1 var(--display);
}
.rooms li a small {
  color: var(--muted);
  font-size: 0.85rem;
  min-width: 4.6em;
  text-align: right;
}
.rooms-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: clamp(56px, 8vw, 112px) 0;
}
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

/* Estimate */
.estimate {
  background: var(--graphite);
  color: var(--paper);
}
.est-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.est-intro p {
  margin-top: 16px;
  max-width: 34em;
  color: #cfd2d4;
}
.ranges {
  margin: 28px 0 0;
  border-top: 1px solid #3c434a;
}
.ranges div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #3c434a;
}
.ranges dt {
  font-weight: 600;
}
.ranges dd {
  margin: 0;
  display: grid;
  justify-items: end;
}
.ranges dd b {
  font: 700 1.2rem/1.2 var(--display);
  color: var(--pine);
}
.ranges dd span {
  font-size: 0.9rem;
  color: #aeb3b8;
}
.est-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 10px;
  background: var(--paper);
  color: var(--graphite);
}
.pick legend {
  margin-bottom: 10px;
  font: 700 1.2rem/1.2 var(--display);
}
.pick.small legend {
  margin-bottom: 6px;
  font: 600 0.82rem/1.2 var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 6px 8px;
  border: 2px solid var(--graphite);
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}
.pick.small .seg span {
  min-height: 44px;
  border-width: 1px;
  border-color: #b8b0a2;
  font-size: 0.95rem;
}
.seg input:checked + span {
  background: var(--pine);
  border-color: var(--pine);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.result {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.result-what {
  color: var(--muted);
  font-weight: 600;
}
.result-range {
  font: 700 clamp(2.2rem, 5vw, 3.3rem)/1 var(--display);
  letter-spacing: -0.02em;
}
.result-weeks {
  font-weight: 600;
}
.bar {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: var(--paper-deep);
}
.bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lo, 20%);
  right: calc(100% - var(--hi, 60%));
  border-radius: 5px;
  background: var(--pine-deep);
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.bar-ends {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.unusual {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--pine-pale);
}
.unusual label {
  font-weight: 600;
}
.unusual-row {
  display: flex;
  gap: 8px;
}
.unusual input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #a99f8d;
  border-radius: 6px;
  background: #fff;
}
.demo-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.unusual-out {
  display: grid;
  gap: 6px;
  font-size: 0.97rem;
}
.unusual-out ul {
  margin: 0;
  padding-left: 1.1em;
}
.fine {
  font-size: 0.88rem;
  color: var(--muted);
}
.visit,
.booked {
  display: grid;
  gap: 16px;
}
.visit h3,
.booked h3 {
  font-size: 1.6rem;
}
.slots-set legend {
  margin-bottom: 8px;
  font-weight: 600;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.slot {
  min-height: 56px;
  padding: 6px 8px;
  border: 1px solid #b8b0a2;
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  cursor: pointer;
}
.slot[aria-pressed='true'] {
  background: var(--pine);
  border-color: var(--pine);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fields .full {
  grid-column: 1 / -1;
}
.fields label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.fields .opt {
  font-weight: 400;
  color: var(--muted);
}
.fields input,
.fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #a99f8d;
  border-radius: 6px;
  background: #fff;
}
.form-error {
  color: #a1281e;
  font-weight: 600;
}
.booked {
  padding: 4px 0;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.work-fig {
  margin: 0;
}
.work-fig img,
.crew-fig img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.work-fig figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.jobs {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.jobs li {
  border-bottom: 1px solid var(--line);
}
.jobs li > b,
.jobs li > span,
.jobs a {
  display: block;
}
.jobs li,
.jobs a {
  padding: 14px 0;
}
.jobs li:has(a) {
  padding: 0;
}
.jobs a {
  text-decoration: none;
}
.jobs a:hover b {
  text-decoration: underline;
}
.jobs b {
  font: 700 1.15rem/1.3 var(--display);
}
.jobs span {
  color: var(--muted);
}
.jobs .stat {
  margin-top: 2px;
  color: var(--graphite);
  font-weight: 600;
}

/* Crew */
.crew {
  background: var(--paper-deep);
}
.crew-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.crew-grid > div > p {
  margin-top: 16px;
  max-width: 36em;
}
.crew-fig {
  margin: 0;
}
.facts {
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}
.facts div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 12px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
}

/* Footer and dock */
.foot {
  padding: 40px 0 120px;
  background: var(--graphite);
  color: #c9ccce;
  font-size: 0.92rem;
}
.foot-in {
  display: grid;
  gap: 6px;
}
.foot-name {
  color: var(--paper);
  font: 700 1.2rem/1.2 var(--display);
}
.foot-demo {
  margin-top: 12px;
  max-width: 52em;
}
.dock {
  display: none;
}

/* Project page */
.crumbs {
  padding-top: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}
.p-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px 56px;
  align-items: end;
  padding: 18px 0 clamp(24px, 4vw, 44px);
}
.p-head h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  text-wrap: balance;
}
.p-head p {
  color: var(--muted);
}
.p-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--graphite);
}
.p-facts div {
  padding: 12px 12px 0 0;
}
.p-facts dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-facts dd {
  margin: 0;
  font: 700 1.5rem/1.2 var(--display);
}
.ba {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  --p: 50%;
}
.ba .after-layer {
  clip-path: inset(0 0 0 var(--p));
}
.ba-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.weeks {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.weeks li {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) 8em;
  gap: 8px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.weeks .when {
  font: 700 1.05rem/1.3 var(--display);
}
.weeks h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.weeks p {
  color: var(--muted);
  max-width: 40em;
}
.weeks .spent {
  text-align: right;
  font-weight: 600;
}
.weeks .spent small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}
.costs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.costbar {
  display: flex;
  height: 28px;
  margin: 24px 0 18px;
  border-radius: 4px;
  overflow: hidden;
}
.costbar span {
  display: block;
  height: 100%;
  border-right: 2px solid var(--paper);
}
.costbar span:nth-child(1) {
  flex: 6.8;
  background: #8e8576;
}
.costbar span:nth-child(2) {
  flex: 11.4;
  background: var(--graphite);
}
.costbar span:nth-child(3) {
  flex: 9.6;
  background: var(--graphite-soft);
}
.costbar span:nth-child(4) {
  flex: 10.9;
  background: #b9b1a2;
}
.costbar span:nth-child(5) {
  flex: 31.7;
  background: var(--pine);
}
.costbar span:nth-child(6) {
  flex: 7.6;
  background: var(--pine-deep);
  border-right: 0;
}
.costs {
  margin: 0;
}
.costs div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.costs dt {
  display: flex;
  align-items: center;
  gap: 12px;
}
.costs i {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.costs div:nth-child(1) i {
  background: #8e8576;
}
.costs div:nth-child(2) i {
  background: var(--graphite);
}
.costs div:nth-child(3) i {
  background: var(--graphite-soft);
}
.costs div:nth-child(4) i {
  background: #b9b1a2;
}
.costs div:nth-child(5) i {
  background: var(--pine);
}
.costs div:nth-child(6) i {
  background: var(--pine-deep);
}
.costs dd {
  margin: 0;
  font-weight: 600;
}
.costs .total {
  border-bottom: 0;
  font-weight: 700;
}
.costs .total dt,
.costs .total dd {
  font: 700 1.2rem/1.2 var(--display);
}
.made {
  margin: 24px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.made div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.made dt {
  font-weight: 600;
}
.made dd {
  margin: 0;
  color: var(--muted);
}
.made .m {
  color: var(--blue);
  font-weight: 600;
}
.said {
  margin: 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 10px;
  background: var(--pine);
}
.said p {
  font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.3 var(--display);
  letter-spacing: -0.01em;
}
.said footer {
  margin-top: 16px;
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .rooms-wrap {
    position: static;
    transform: none;
  }
  .rooms {
    width: auto;
    margin-top: 20px;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  .rooms ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rooms li a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rooms li a small {
    text-align: left;
  }
  .stage-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-head,
  .est-grid,
  .work-grid,
  .crew-grid,
  .costs-grid,
  .p-head {
    grid-template-columns: 1fr;
  }
  .weeks li {
    grid-template-columns: 1fr;
  }
  .weeks .spent {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .nav-link,
  .nav-cta {
    display: none;
  }
  .top-in {
    min-height: 56px;
  }
  .hero {
    padding-top: 16px;
  }
  .hero-head {
    gap: 12px;
    padding-bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.4rem);
  }
  .proof {
    font-size: 0.88rem;
  }
  .proof b {
    font-size: 1rem;
  }
  .proof span {
    display: none;
  }
  .split {
    aspect-ratio: 13 / 10;
  }
  .tag {
    top: 8px;
    font-size: 0.76rem;
    padding: 4px 7px;
  }
  .tag-now {
    left: 8px;
  }
  .tag-done {
    right: 8px;
  }
  .tag span {
    display: none;
  }
  .dim,
  .dim-label {
    display: none;
  }
  .grip {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.9rem;
  }
  .stage-bar {
    padding: 12px 0;
    gap: 10px;
  }
  .ledger {
    gap: 4px 20px;
  }
  .ledger b {
    font-size: 1.1rem;
  }
  .ledger .trades {
    width: 100%;
  }
  .stage-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stage-tabs button {
    padding: 4px 6px;
    font-size: 0.8rem;
  }
  .stage-tabs button span {
    display: none;
  }
  .hero-stage {
    display: flex;
    flex-direction: column;
  }
  .rooms-wrap {
    order: -1;
  }
  .split {
    order: -2;
  }
  .rooms {
    margin: 12px 0 0;
  }
  .rooms ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .rooms li a {
    grid-template-columns: 1fr auto auto;
    min-height: 48px;
    padding: 9px 12px;
  }
  .rooms li a small {
    text-align: right;
  }
  .rooms-title {
    margin-bottom: 8px;
  }
  .rooms-note {
    display: none;
  }
  .stage-bar {
    order: 1;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ba {
    aspect-ratio: 13 / 10;
  }
  .made div,
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 244, 238, 0.96);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s var(--ease);
  }
  .dock.show {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.est-card .visit {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
