/* Jupiter Tile by Design — the wall.
   Everything on the page is a tile sitting on a grout joint. */

@font-face { font-family: "Julius Sans One"; src: url("../fonts/JuliusSansOne-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* materials */
  --grout: oklch(0.868 0.007 245);
  --grout-deep: oklch(0.74 0.01 245);
  --porcelain: oklch(0.992 0.002 240);
  --porcelain-matte: oklch(0.957 0.005 240);
  --inlet: oklch(0.285 0.055 232);
  --inlet-deep: oklch(0.225 0.045 234);
  --sea: oklch(0.925 0.011 84); /* honed limestone */
  --brass: oklch(0.77 0.095 84);
  --brass-deep: oklch(0.55 0.085 78);
  --lighthouse: oklch(0.5 0.165 27);
  --lighthouse-deep: oklch(0.43 0.15 27);
  --ink: oklch(0.21 0.03 236);
  --ink-soft: oklch(0.43 0.022 236);
  --on-inlet: oklch(0.985 0.003 230);
  --on-inlet-soft: oklch(0.85 0.022 225);
  --line: oklch(0.21 0.03 236 / 0.14);
  --line-on-inlet: oklch(0.77 0.095 84 / 0.42);

  /* the joint: one width, everywhere */
  --joint: clamp(3px, 0.3vw, 5px);
  --ease: 2px;
  --pad: clamp(22px, 3.1vw, 56px);
  --nav-h: 58px;

  --display: "Julius Sans One", "Figtree", sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);

  --edge: 0 0 0 0.5px oklch(0.2 0.03 240 / 0.08);
  --edge-dark: 0 0 0 0.5px oklch(0.2 0.03 240 / 0.2);
  --lift: 0 22px 34px -20px oklch(0.2 0.04 235 / 0.5), 0 4px 8px -3px oklch(0.2 0.04 235 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--joint) * 3); scrollbar-color: var(--inlet) var(--grout); }
body {
  margin: 0;
  background-color: var(--grout);
  /* sanded grout */
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--lighthouse);
}
::selection { background: var(--inlet); color: var(--on-inlet); }
.t-inlet ::selection, .t-red ::selection { background: var(--sea); color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: var(--ease); }
.t-inlet :focus-visible, .t-red:focus-visible, .t-inlet:focus-visible, .t-red :focus-visible { outline-color: var(--porcelain); }
.t-photo:focus-visible { outline-offset: -5px; outline-color: var(--porcelain); box-shadow: inset 0 0 0 8px var(--ink); }

.skip { position: absolute; left: var(--joint); top: var(--joint); z-index: 100; padding: 0.7em 1em; background: var(--porcelain); border-radius: var(--ease); transform: translateY(-200%); }
.skip:focus { transform: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the wall ---------- */
.wall { max-width: 1640px; margin-inline: auto; padding-inline: var(--joint); }
.course { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--joint); margin-top: var(--joint); }

.tile { position: relative; border-radius: var(--ease); overflow: hidden; min-width: 0; background-color: var(--porcelain); box-shadow: var(--edge); }
.t-matte { background-color: var(--porcelain-matte); background-image: none; }
.t-inlet { background-color: var(--inlet); color: var(--on-inlet); box-shadow: var(--edge-dark); }
.t-sea { background-color: var(--sea); }
.t-red { background-color: var(--lighthouse); background-image: none; color: var(--on-inlet); box-shadow: var(--edge-dark); }
.t-photo { background-color: var(--grout-deep); background-image: none; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.04); }
.t-photo::after { display: none; }
/* the logo's line herringbone, on blank tiles */
.t-herring { background-color: var(--porcelain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='h' width='72' height='72' patternUnits='userSpaceOnUse' patternTransform='rotate(45)'%3E%3Cg fill='none' stroke='%23a98a4a' stroke-opacity='.6' stroke-width='1'%3E%3Cpath d='M0 0h36v18H0zM18 18h36v18H18zM36 36h36v18H36zM54 54h36v18H54zM-18 54h36v18h-36zM54 0h18v36H54zM0 18h18v36H0zM18 36h18v36H18zM36 54h18v36H36zM36-18h18v36H36z'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23h)'/%3E%3C/svg%3E"); }
.pad { padding: var(--pad); }
.plaque::before { content: ""; position: absolute; inset: clamp(8px, 0.8vw, 12px); border: 1px solid var(--brass); border-radius: 1px; pointer-events: none; }

/* the trim course between sections: a brass profile set into the joint */
.listello { height: 3px; margin-block: calc(var(--joint) * 3) calc(var(--joint) * 2); border-radius: 0; background: var(--brass); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.3vw, 5.4rem); line-height: 1.02; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3.15rem); line-height: 1.08; }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.15; }
.lede { font-size: clamp(1.06rem, 1.25vw, 1.25rem); line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.soft { color: var(--ink-soft); }
.t-inlet .soft { color: var(--on-inlet-soft); }
.small { font-size: 0.9rem; }
.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

.textlink { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent); transition: text-decoration-color 0.2s; }
.textlink:hover { text-decoration-color: currentColor; }
.textlink .ic { transition: transform 0.35s var(--out); }
.textlink:hover .ic { transform: translateX(4px); }

/* tiles you can press */
.press { display: flex; align-items: center; justify-content: center; gap: 0.6em; text-decoration: none; text-align: center; transition: transform 0.35s var(--out), box-shadow 0.35s var(--out), background-color 0.2s; }
.press:hover { transform: translateY(-2px); box-shadow: var(--edge), var(--lift); z-index: 2; }
.press.t-red:hover, .press.t-inlet:hover { box-shadow: var(--edge-dark), var(--lift); }
.press:active { transform: translateY(1px); box-shadow: var(--edge); transition-duration: 0.08s; }
.t-red.press:hover { background-color: var(--lighthouse-deep); }

/* ---------- nav course ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--grout); background-image: inherit; padding-block: var(--joint); }
.nav-course { margin-top: 0; grid-template-columns: minmax(250px, 2.1fr) repeat(4, minmax(0, 1fr)) minmax(170px, 1.35fr) minmax(190px, 1.5fr); }
.nav-course > * { height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; padding-inline: 1rem; text-decoration: none; justify-content: flex-start; }
.brand svg { height: 40px; width: auto; flex: none; }
.brand-name { font-family: var(--display); line-height: 1; display: grid; gap: 4px; text-align: left; }
.brand-name b { font-weight: 400; font-size: 1.22rem; letter-spacing: 0.06em; }
.brand-name i { font-style: normal; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--ink-soft); }
.nav-link { font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.16em; }
.nav-phone { font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em; }
.nav-cta { font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.16em; }
.nav-menu { display: none; }

/* ---------- hero wall ---------- */
.hero { grid-template-rows: repeat(6, minmax(0, 1fr)); height: clamp(600px, calc(100svh - var(--nav-h) - var(--joint) * 4), 860px); }
.hero-title { grid-column: 1 / 7; grid-row: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.hero-title .lede { color: var(--on-inlet-soft); }
.hero-title h1 { max-width: none; }
.hero-title .lede b { color: var(--on-inlet); font-weight: 600; }
.hero-start { grid-column: 1 / 7; grid-row: 5 / 7; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--joint); padding: 0; background: none; box-shadow: none; overflow: visible; }
.hero-start fieldset { padding: clamp(16px, 1.6vw, 26px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }
.hero-start legend, .q { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: 0.03em; float: left; width: 100%; margin-bottom: 0.35rem; }
.hero-go { flex-direction: column; gap: 0.7rem; width: clamp(150px, 13vw, 210px); padding: 1rem; font-family: var(--display); font-size: clamp(0.92rem, 1.05vw, 1.05rem); line-height: 1.35; letter-spacing: 0.16em; }
.hero-go .ic { width: 1.5em; height: 1.5em; }
.hero-a { grid-column: 7 / 10; grid-row: 1 / 7; }
.hero-b { grid-column: 10 / 13; grid-row: 1 / 3; }
.hero-years { grid-column: 10 / 13; grid-row: 3 / 4; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 clamp(18px, 2vw, 32px); font-family: var(--display); font-size: clamp(0.95rem, 1.2vw, 1.2rem); letter-spacing: 0.14em; line-height: 1.3; }
.hero-c { grid-column: 10 / 13; grid-row: 4 / 7; }

.chips { display: flex; flex-wrap: wrap; gap: var(--joint); clear: both; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 0.4em; min-height: 42px; padding: 0.35em 1em; border-radius: var(--ease); background: oklch(1 0 0 / 0.6); box-shadow: inset 0 0 0 1px oklch(0.21 0.03 236 / 0.22); font-size: 0.93rem; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; user-select: none; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--inlet); color: var(--on-inlet); box-shadow: var(--edge-dark); }
.chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.t-inlet .chip:has(input:focus-visible) { outline-color: var(--porcelain); }

/* ---------- section heads ---------- */
.head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; padding: clamp(48px, 6.6vw, 112px) var(--pad) clamp(30px, 3.4vw, 56px); }
.head .lede { justify-self: end; }

/* ---------- what I set ---------- */
.rooms-list { grid-column: 1 / 7; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.rooms-list h2 { margin-bottom: 0.5rem; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; text-align: left; padding: clamp(12px, 1.25vw, 18px) 0; border-top: 1px solid var(--line-on-inlet); color: var(--on-inlet-soft); transition: color 0.25s; }
.room-name { font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 2.15rem); line-height: 1.1; letter-spacing: 0.012em; transition: transform 0.45s var(--out); }
.room .ic { width: 1.4rem; height: 1.4rem; opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.45s var(--out); }
.room-desc { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; font-size: 1rem; line-height: 1.5; transition: grid-template-rows 0.45s var(--out); }
.room-desc > span { overflow: hidden; }
.room-desc > span > span { display: block; padding-top: 0.5rem; max-width: 46ch; color: var(--on-inlet-soft); }
.room:hover, .room[aria-pressed="true"] { color: var(--on-inlet); }
.room[aria-pressed="true"] .ic { opacity: 1; transform: none; }
.room[aria-pressed="true"] .room-name { transform: translateX(0.35rem); }
.room[aria-pressed="true"] .room-desc { grid-template-rows: 1fr; }
.rooms li:last-child .room { border-bottom: 1px solid var(--line-on-inlet); }
.rooms-photo { grid-column: 7 / 13; min-height: clamp(480px, 46vw, 700px); }
.rooms-photo img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--out), transform 0.9s var(--out); }
.rooms-photo img.is-on { opacity: 1; transform: none; }
.tag { position: absolute; left: clamp(10px, 1vw, 16px); bottom: clamp(10px, 1vw, 16px); z-index: 2; display: inline-flex; align-items: center; gap: 0.6em; padding: 0.7em 1.1em; border-radius: var(--ease); background: var(--porcelain); box-shadow: 0 10px 22px -10px oklch(0.15 0.04 235 / 0.6); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; }
a.tag { transition: transform 0.35s var(--out); }
a.tag:hover { transform: translateY(-2px); }

/* ---------- the board ---------- */
.board-tools { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--joint); }
.lay, .filter { display: flex; align-items: center; gap: 1rem; padding: 0.75rem clamp(14px, 1.5vw, 22px); flex-wrap: wrap; }
.tool-label { font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.16em; }
.seg { display: flex; gap: var(--joint); }
.seg button { display: inline-flex; align-items: center; gap: 0.55em; min-height: 44px; padding: 0.4em 1em; border-radius: var(--ease); background: oklch(1 0 0 / 0.6); box-shadow: inset 0 0 0 1px oklch(0.21 0.03 236 / 0.22); font-size: 0.93rem; font-weight: 500; letter-spacing: 0.01em; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.seg button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.seg button[aria-pressed="true"] { background: var(--inlet); color: var(--on-inlet); box-shadow: var(--edge-dark); }
.seg .ic { width: 1.35em; height: 1.35em; stroke-width: 1.3; }
.filter { justify-content: flex-end; }
.filter .chips { justify-content: flex-end; }

.board { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--joint); }
.board.is-live { display: block; position: relative; overflow: hidden; border-radius: var(--ease); }
.piece { display: block; aspect-ratio: 1 / 2; width: 100%; padding: 0; }
.is-live .piece, .is-live .blank { position: absolute; left: 0; top: 0; aspect-ratio: auto; will-change: transform; }
.is-live.is-moving .piece { z-index: 3; animation: lift 0.8s var(--out) both; animation-delay: calc(var(--i, 0) * 22ms); transition: transform 0.8s var(--out), width 0.8s var(--out), height 0.8s var(--out); transition-delay: calc(var(--i, 0) * 22ms); }
.piece img { transition: transform 0.7s var(--out), opacity 0.4s, filter 0.4s; }
.piece:hover img, .piece:focus-visible img { transform: scale(1.05); }
.piece-cap { position: absolute; left: var(--joint); right: var(--joint); bottom: var(--joint); z-index: 2; padding: 0.5em 0.7em; border-radius: var(--ease); background: var(--porcelain); color: var(--ink); font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.25; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.4s var(--out); }
.piece:hover .piece-cap, .piece:focus-visible .piece-cap { opacity: 1; transform: none; }
.piece.is-dim { background: var(--sea); }
.piece.is-dim img { opacity: 0.1; filter: grayscale(1); }
.piece.is-dim .piece-cap { display: none; }
.blank { animation: blank-in 0.6s var(--out) both; animation-delay: 0.25s; }
.blank.sample { background-color: var(--grout-deep); background-size: cover; background-position: center; }
@keyframes blank-in { from { opacity: 0; } }
@keyframes lift { 0% { box-shadow: none; } 35% { box-shadow: 0 26px 40px -18px oklch(0.15 0.04 235 / 0.55); } 100% { box-shadow: none; } }
.board-cta { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0.7rem; padding: clamp(14px, 1.4vw, 22px); text-align: left; font-family: var(--display); font-size: clamp(0.82rem, 0.95vw, 1rem); letter-spacing: 0.14em; line-height: 1.35; text-decoration: none; animation: blank-in 0.6s var(--out) both; animation-delay: 0.25s; }
.board-cta .ic { width: 1.4em; height: 1.4em; }
.board-note { grid-column: 1 / -1; padding: 0.9rem clamp(14px, 1.5vw, 22px); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- samples ---------- */
.samples-head { grid-column: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: clamp(16px, 1.7vw, 28px); }
.samples-head h2 { font-size: clamp(1.3rem, 1.9vw, 1.9rem); }
.swatch { aspect-ratio: 1 / 1.28; display: flex; flex-direction: column; }
.swatch img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.swatch figcaption { flex: none; padding: 0.6em 0.7em; background: var(--porcelain); font-size: clamp(0.72rem, 0.78vw, 0.82rem); font-weight: 500; letter-spacing: 0.015em; line-height: 1.25; min-height: 3.3em; display: flex; align-items: center; border-top: 1px solid var(--brass); }
.swatch::after { display: none; }

/* ---------- reviews ---------- */
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.quote p { font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.5; text-wrap: pretty; max-width: 40ch; }
.quote.big p { font-size: clamp(1.2rem, 1.9vw, 1.85rem); line-height: 1.42; max-width: 34ch; }
.quote footer { font-family: var(--display); font-size: 0.92rem; letter-spacing: 0.16em; display: flex; align-items: center; gap: 1rem; }
.quote footer::before { content: ""; width: 2.4rem; height: 1px; background: var(--brass); flex: none; }
.q1 { grid-column: 1 / 6; }
.q2 { grid-column: 6 / 13; }
.q3 { grid-column: 1 / 9; }
.fb { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; text-decoration: none; padding: 0; align-items: stretch; text-align: left; }
.fb > span { display: block; margin: clamp(10px, 1vw, 16px); padding: clamp(18px, 1.8vw, 28px); background: var(--porcelain); border-radius: var(--ease); box-shadow: 0 12px 26px -14px oklch(0.2 0.04 235 / 0.45); }
.fb b { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.7rem); line-height: 1.15; display: block; margin-bottom: 0.6rem; }

/* ---------- how a job goes ---------- */
.about { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.about .badge { width: min(230px, 66%); height: auto; background: var(--porcelain); border-radius: var(--ease); padding: 16px 20px 12px; box-shadow: 0 14px 30px -16px oklch(0.1 0.04 235 / 0.7); }
.about p + p { margin-top: 1rem; }
.steps { grid-column: 6 / 10; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.steps h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: 1.5rem; }
.steps ol { counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 0 0.6rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 1.5rem; line-height: 1.1; color: var(--brass-deep); }
.steps h3 { margin-bottom: 0.25rem; }
.steps li p { grid-column: 2; font-size: 0.98rem; color: var(--ink-soft); }
.jobsite { grid-column: 10 / 13; display: grid; gap: var(--joint); grid-template-rows: 1fr 1fr; }
.jobsite .tile { min-height: 240px; }

/* ---------- estimate ---------- */
.est-side { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 2rem; justify-content: space-between; }
.est-side .lede { color: var(--on-inlet-soft); margin-top: 1.2rem; }
.bigphone { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5em; letter-spacing: 0.02em; }
.bigphone .ic { width: 0.8em; height: 0.8em; }
.ready { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.ready li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: 0.6rem; align-items: start; color: var(--on-inlet-soft); }
.ready .ic { margin-top: 0.22em; color: var(--on-inlet); }
.est-form { grid-column: 6 / 13; }
.est-form h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin-bottom: 0.5rem; }
.est-form .need { margin-bottom: 1.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.f { display: grid; gap: 0.4rem; align-content: start; }
.f.wide { grid-column: 1 / -1; }
.f > label, .f > legend, .flabel { font-weight: 500; font-size: 0.93rem; letter-spacing: 0.01em; }
.f .opt { font-weight: 400; color: var(--ink-soft); }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f select, .f textarea { width: 100%; min-height: 48px; padding: 0.65em 0.8em; border: 1px solid oklch(0.21 0.03 236 / 0.5); border-radius: var(--ease); background: var(--porcelain); box-shadow: inset 0 1px 2px oklch(0.2 0.03 235 / 0.06); transition: border-color 0.2s, box-shadow 0.2s; }
.f textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d2b36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8em center; background-size: 1em; padding-right: 2.4em; }
.f ::placeholder { color: oklch(0.47 0.03 230); opacity: 1; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--ink); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 3px solid var(--inlet); outline-offset: 1px; border-color: var(--inlet); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--lighthouse); box-shadow: inset 0 0 0 1px var(--lighthouse); }
.err { display: none; color: var(--lighthouse-deep); font-size: 0.9rem; font-weight: 600; }
.f.bad .err { display: flex; gap: 0.4em; align-items: center; }
.drop { position: relative; display: flex; align-items: center; gap: 0.9rem; min-height: 64px; padding: 0.8rem 1rem; border: 1.5px dashed oklch(0.23 0.035 232 / 0.42); border-radius: var(--ease); background: var(--porcelain-matte); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.drop:hover { border-color: var(--ink); background: var(--porcelain); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:has(input:focus-visible) { outline: 3px solid var(--inlet); outline-offset: 1px; }
.drop .ic { width: 1.5rem; height: 1.5rem; }
.drop span { font-size: 0.95rem; }
.send { width: 100%; min-height: 64px; font-family: var(--display); font-size: 0.98rem; letter-spacing: 0.1em; border-radius: var(--ease); }
.fine { font-size: 0.88rem; color: var(--ink-soft); }
.sent { display: none; }
.est-form.is-sent form { display: none; }
.est-form.is-sent .sent { display: grid; gap: 1.2rem; align-content: center; min-height: 420px; animation: set-in 0.8s var(--out) both; }
.sent h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: 0; }
.sent dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.2rem; margin: 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.sent dt { color: var(--ink-soft); }
.sent dd { margin: 0; font-weight: 600; }
.demo { padding: 0.95rem 1.1rem; border-radius: var(--ease); background: var(--sea); font-size: 0.93rem; }

/* ---------- footer ---------- */
.foot-brand { grid-column: 1 / 5; display: grid; place-items: center; padding: clamp(24px, 3vw, 48px); }
.foot-brand svg { width: min(300px, 100%); height: auto; }
.foot-contact { grid-column: 5 / 10; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.foot-contact address { font-style: normal; display: grid; gap: 0.35rem; color: var(--on-inlet-soft); }
.foot-contact address a { color: var(--on-inlet); }
.socials { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-nav { grid-column: 10 / 13; display: grid; gap: var(--joint); background: none; box-shadow: none; overflow: visible; }
.foot-nav a { min-height: 52px; font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.16em; }
.foot-end { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding: 0.9rem clamp(14px, 1.5vw, 22px); font-size: 0.88rem; color: var(--ink-soft); margin-bottom: var(--joint); }

/* ---------- project sheet ---------- */
.sheet { width: min(1180px, calc(100vw - var(--joint) * 4)); max-width: none; max-height: calc(100dvh - var(--joint) * 4); padding: var(--joint); border: 0; border-radius: calc(var(--ease) + var(--joint)); background: var(--grout); color: var(--ink); box-shadow: 0 40px 80px -30px oklch(0.15 0.04 235 / 0.7); overflow: auto; }
.sheet::backdrop { background: oklch(0.2 0.045 230 / 0.72); }
.sheet[open] { animation: set-in 0.5s var(--out) both; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--joint); }
.sheet-photo { display: grid; place-items: center; background: var(--inlet-deep); min-height: 300px; }
.sheet-photo img { width: 100%; height: 100%; max-height: calc(100dvh - var(--joint) * 6); object-fit: contain; }
.sheet-side { display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--joint); }
.sheet-bar { display: grid; grid-template-columns: 1fr auto auto auto; gap: var(--joint); }
.sheet-bar > * { min-height: 52px; }
.sheet-count { display: flex; align-items: center; padding-inline: 1rem; font-weight: 600; font-size: 0.95rem; }
.sq { width: 52px; }
.sheet-info h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 0.4rem; }
.sheet-info ul { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.sheet-info li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: 0.6rem; }
.sheet-info li .ic { margin-top: 0.25em; color: var(--inlet); }
.sheet-cta { min-height: 64px; font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.1em; padding-inline: 1rem; }
.sheet-fine { padding: 0.8rem 1rem; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- mobile action bar ---------- */
.bar { display: none; }

/* ---------- motion: tiles get set ---------- */
@keyframes set-in {
  from { opacity: 0; transform: translateY(14px) scale(1.035); box-shadow: 0 26px 40px -16px oklch(0.2 0.04 235 / 0.6); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero > .tile, .js .hero-start > *, .js .nav-course > * { animation: set-in 0.9s var(--out) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav-course { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .nav-link { display: none; }
  .nav-menu { display: flex; width: var(--nav-h); }
  .nav-phone, .nav-cta { padding-inline: 1.1rem; }
  .nav-course.is-open .nav-link { display: flex; grid-column: 1 / -1; order: 5; justify-content: flex-start; padding-inline: 1.1rem; font-size: 1.1rem; }

  .hero { height: auto; grid-template-rows: auto auto repeat(3, clamp(120px, 21vw, 220px)); }
  .hero-title { grid-column: 1 / -1; grid-row: 1; min-height: 0; gap: 3.5rem; }
  .hero-title h1 { font-size: clamp(2.3rem, 7.4vw, 4.4rem); }
  .hero-start { grid-column: 1 / -1; grid-row: 2; }
  .hero-a { grid-column: 1 / 7; grid-row: 3 / 6; }
  .hero-b { grid-column: 7 / 13; grid-row: 3; }
  .hero-years { grid-column: 7 / 13; grid-row: 4; }
  .hero-c { grid-column: 7 / 13; grid-row: 5; }

  .head { grid-template-columns: 1fr; }
  .head .lede { justify-self: start; }
  .rooms-list, .rooms-photo { grid-column: 1 / -1; }
  .rooms-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .board-tools { grid-template-columns: 1fr; }
  .filter, .filter .chips { justify-content: flex-start; }
  .samples-head { grid-column: 1 / -1; }
  .samples .swatch { grid-column: span 4; }
  .q1, .q2, .q3, .fb { grid-column: 1 / -1; }
  .fb { min-height: 220px; }
  .about, .steps { grid-column: 1 / -1; }
  .jobsite { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .jobsite .tile { aspect-ratio: 4 / 5; min-height: 0; }
  .est-side, .est-form { grid-column: 1 / -1; }
  .foot-brand { grid-column: 1 / 6; }
  .foot-contact { grid-column: 6 / 13; }
  .foot-nav { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .sheet-grid { grid-template-columns: 1fr; }
  .sheet-photo img { max-height: 56dvh; }
}
@media (min-width: 1081px) {
  .samples .swatch { grid-column: span 1; }
  .nav-menu { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 54px; --pad: 22px; }
  body { font-size: 1rem; padding-bottom: calc(62px + var(--joint) * 2 + env(safe-area-inset-bottom)); }
  .brand { padding-inline: 0.7rem; gap: 0.55rem; }
  .brand svg { height: 34px; }
  .brand-name b { font-size: 1.02rem; }
  .brand-name i { font-size: 0.6875rem; letter-spacing: 0.24em; }
  .nav-phone { width: var(--nav-h); padding: 0; }
  .nav-phone span { display: none; }
  .nav-cta { display: none; }
  .nav-course { grid-template-columns: minmax(0, 1fr) auto auto; }

  .hero { grid-template-rows: auto repeat(3, 27vw) auto; }
  .hero-title { grid-row: 1; min-height: 0; gap: 1.6rem; padding-block: 28px 24px; }
  .hero-a { grid-column: 1 / 7; grid-row: 2 / 5; }
  .hero-b { grid-column: 7 / 13; grid-row: 2; }
  .hero-years { grid-column: 7 / 13; grid-row: 3; padding: 0 16px; font-size: 0.82rem; letter-spacing: 0.08em; }
  .hero-c { grid-column: 7 / 13; grid-row: 4; }
  .hero-start { grid-row: 5; grid-template-columns: 1fr; }
  .hero-go { width: auto; flex-direction: row; min-height: 60px; }

  .head { padding-block: 38px 26px; }
  .room { min-height: 54px; }
  .lay, .filter { gap: 0.7rem; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding-inline: 0.4em; font-size: 0.9rem; }
  .samples .swatch { grid-column: span 4; }
  .quote { gap: 1.5rem; }
  .fgrid { grid-template-columns: 1fr; }
  .jobsite { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .sheet { width: calc(100vw - var(--joint) * 2); max-height: calc(100dvh - var(--joint) * 2); }
  .sheet-photo img { height: 58dvh; max-height: none; object-fit: cover; }
  .sheet-photo { min-height: 0; }
  .piece-cap { display: none; }

  .bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--joint); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: var(--joint); padding-bottom: calc(var(--joint) + env(safe-area-inset-bottom)); background: var(--grout); box-shadow: 0 -10px 24px -14px oklch(0.2 0.04 235 / 0.6); }
  .bar a { min-height: 54px; font-family: var(--display); font-size: 0.84rem; letter-spacing: 0.14em; }
}

.todo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: baseline; padding: 1rem clamp(14px, 1.5vw, 22px); font-size: 0.9rem; }
.todo b { font-weight: 600; }

/* action labels: set in the text face so they hold at small sizes on red */
.nav-cta, .hero-go, .board-cta, .send, .sheet-cta, .bar a, .foot-nav a.t-red {
  font-family: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.86rem;
}
.hero-go { font-size: clamp(0.86rem, 0.95vw, 0.98rem); }
.send, .sheet-cta { font-size: 0.95rem; }
@media (max-width: 640px) {
  .hero-years { font-size: 0.95rem; letter-spacing: 0.06em; }
  .bar a { font-size: 0.86rem; }
}
