/* Orchid Building Solutions: drawn / built.
   Colours from their logo (navy #292f7c, orchid taupe #8f8c79); paper and stone from the travertine and
   large format panels they lay. Motif: the grout line, a hairline that always lines up across a seam. */

:root {
  --navy: #292f7c;
  --navy-deep: #1b1f57;
  --navy-ink: #20255f;
  --taupe: #8f8c79;
  --taupe-ink: #625f4d;
  --paper: #f6f4ef;
  --stone: #ebe7de;
  --stone-2: #ddd8cc;
  --grout: #d3cdbf;
  --ink: #1a1c29;
  --muted: #4f5163;
  --white: #fff;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, Menlo, monospace;
  --gut: clamp(16px, 5vw, 40px);
  --max: 1240px;
  --bar: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--navy-ink); text-wrap: balance; hyphens: none; }
h1 { font-size: clamp(2rem, 7.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 3.2vw, 1.35rem); }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono, .label { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.label { color: var(--taupe-ink); display: inline-flex; gap: .6em; align-items: center; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--taupe); flex: none; } /* a single tessera */
.muted { color: var(--muted); }
.lede { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.25em; border-radius: 2px; border: 1px solid var(--navy);
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff; transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 239, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--grout); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 38px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 32px; }
.head-call { display: none; font-family: var(--mono); font-size: .86rem; letter-spacing: .04em; text-decoration: none; color: var(--navy); min-height: 44px; align-items: center; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px 0 12px;
  border: 0; background: none; color: var(--navy); font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.menu-btn .bars { width: 22px; height: 12px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.menu-btn .bars::before { top: 2px; } .menu-btn .bars::after { top: 9px; }
.menu-open .menu-btn .bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-btn .bars::after { top: 5.5px; transform: rotate(-45deg); }
.nav-desk { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--paper); padding: 88px var(--gut) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .3s; }
.menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu li { border-top: 1px solid var(--grout); counter-increment: m; }
.menu li:last-child { border-bottom: 1px solid var(--grout); }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; text-decoration: none; font: 500 1.35rem/1.2 var(--display); color: var(--navy-ink); min-height: 48px; }
.menu li a::before { content: counter(m, decimal-leading-zero); font: .75rem var(--mono); color: var(--taupe-ink); }
.menu li a[aria-current="page"] { color: var(--taupe-ink); }
.menu .menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.menu .menu-foot .mono { color: var(--muted); }
body.menu-open { overflow: hidden; }

@media (min-width: 1000px) {
  .menu-btn, .menu { display: none; }
  .nav-desk { display: flex; gap: 4px; align-items: center; }
  .nav-desk a { font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
  .nav-desk a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 1px; background: var(--taupe); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .nav-desk a:hover::after, .nav-desk a[aria-current="page"]::after { transform: scaleX(1); }
  .head-call { display: inline-flex; }
  .site-header .wrap { height: 76px; }
  .brand img { height: 44px; }
}

/* The seam: a grout line down the middle of the page on wide screens */
.seamed { position: relative; }
@media (min-width: 900px) {
  .seamed::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--grout); pointer-events: none; }
}

/* Sections */
.section { padding: clamp(56px, 10vw, 120px) 0; position: relative; }
.section--stone { background: var(--stone); }
.section--navy { background: var(--navy); color: #e8e9f4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .label { color: #cfcbb8; }
.section--navy .label::before { background: #cfcbb8; }
.section--navy a { color: #fff; }
.section--navy .tile figcaption, .section--navy .row-hint { color: #cfcbb8; }
.section--navy .row { scrollbar-color: rgba(255,255,255,.3) transparent; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  .split > * { padding: 0 clamp(24px, 4vw, 64px); }
  .split > :first-child { padding-left: 0; }
  .split > :last-child { padding-right: 0; }
  .split--mid { align-items: center; }
}
.halfhead { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--grout); padding-top: 12px; margin-bottom: 20px; }
.section--navy .halfhead { border-color: rgba(255,255,255,.22); }

/* Grout grid behind a block: large format panel proportions (600 x 1200), lines meet at the seam */
.grout-bg { background-image:
  linear-gradient(to right, var(--grout) 1px, transparent 1px),
  linear-gradient(to bottom, var(--grout) 1px, transparent 1px);
  background-size: 120px 60px; background-position: 50% 0; }

/* Hero */
.hero { padding: 14px 0 0; }
.hero .wrap { display: grid; gap: 18px; }
.query {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--grout); background: #fff; border-radius: 999px;
  padding: 9px 16px; font: .8rem/1.3 var(--mono); color: var(--muted); max-width: 520px; min-height: 40px;
}
.query svg { width: 15px; height: 15px; flex: none; color: var(--taupe-ink); }
.query .typed { color: var(--ink); }
.query .caret { display: inline-block; width: 1px; height: 1em; background: var(--navy); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { margin: 0; font-size: clamp(1.95rem, 1rem + 4vw, 3.5rem); }
.hero .wrap.doors { display: block; margin-top: 28px; }
.hero h1 .ans { display: block; font-family: var(--mono); font-size: .32em; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe-ink); margin-bottom: .7em; }
.hero-copy p { margin: 12px 0 0; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 599px) { .hero-actions .btn--line { display: none; } .hero-actions .btn { flex: 1; } }
.hero-copy .query { margin: 0 0 20px; font-size: .78rem; color: var(--muted); }
.query > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creds { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; font: .72rem/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--taupe-ink); }
.creds li { display: flex; gap: 8px; align-items: center; }
.creds li::before { content: ""; width: 5px; height: 5px; background: var(--taupe); }
.hero-media { position: relative; }
@media (min-width: 900px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 48px; }
}

/* Drawn / built comparison (also before / after) */
.compare {
  --pos: 50%; position: relative; overflow: hidden; background: var(--paper); aspect-ratio: 4 / 5;
  border: 1px solid var(--grout); touch-action: pan-y; user-select: none; -webkit-user-select: none; isolation: isolate;
}
.compare--wide { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .compare--wide { aspect-ratio: 3 / 2; } }
.compare--hero { aspect-ratio: 5 / 4; }
@media (min-width: 900px) { .compare--hero { aspect-ratio: 6 / 5; } }
.compare .layer { position: absolute; inset: 0; }
.compare .layer img, .compare .layer svg { width: 100%; height: 100%; object-fit: cover; }
.compare .drawn { background: var(--paper); }
.compare .drawn svg { color: var(--navy); }
.compare .top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .seam { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white); box-shadow: 0 0 0 .5px rgba(41,47,124,.35); z-index: 3; pointer-events: none; }
.compare .grip {
  position: absolute; top: 50%; left: var(--pos); z-index: 4; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--white); color: var(--navy); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(27,31,87,.22); pointer-events: none;
  transition: transform .25s var(--ease);
}
.compare .grip svg { width: 22px; height: 22px; }
.compare.is-dragging .grip { transform: scale(1.08); }
.compare { cursor: ew-resize; }
.compare input[type="range"]:focus-visible ~ .grip { outline: 2px solid var(--navy); outline-offset: 3px; }
.compare input[type="range"]:focus-visible ~ .seam { width: 2px; }
.compare .tag { position: absolute; z-index: 2; bottom: 12px; font: .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; background: rgba(246,244,239,.94); color: var(--navy-ink); pointer-events: none; }
.compare .tag--l { left: 12px; } .compare .tag--r { right: 12px; background: rgba(27,31,87,.86); color: #fff; }
.compare .titleblock { position: absolute; z-index: 2; top: 12px; left: 12px; font: .62rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--taupe-ink); pointer-events: none; }
.cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font: .72rem/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cap span:last-child { text-align: right; }

/* line drawings draw themselves in */
.ld path, .ld line, .ld polyline { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ld .acc { stroke: var(--taupe); }
/* dashes are in screen pixels here (non-scaling stroke), so a long dash wipes each line in */
.js .ld.draw path { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.js .ld.draw.go path { animation: drawin 2.2s cubic-bezier(.45, .05, .25, 1) forwards; }
.js .ld.draw.go path:nth-child(3n+1) { animation-delay: .15s; }
.js .ld.draw.go path:nth-child(3n+2) { animation-delay: .35s; }
.js .ld.draw.go path:nth-child(5n) { animation-delay: .55s; }
@keyframes drawin { to { stroke-dashoffset: 0; } }

/* Doors along the foot of the hero (a strip of ruled panels into the site) */
.doors { margin-top: 18px; border-top: 1px solid var(--grout); }
.doors ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.doors ol::-webkit-scrollbar { display: none; }
.doors li { scroll-snap-align: start; border-right: 1px solid var(--grout); }
.doors a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 14px 16px 14px 0; text-decoration: none; color: var(--ink); min-height: 88px; }
.doors li + li a { padding-left: 16px; }
.doors img { width: 64px; height: 64px; object-fit: cover; }
.doors .n { font: .66rem/1 var(--mono); letter-spacing: .1em; color: var(--taupe-ink); display: block; margin-bottom: 6px; }
.doors b { font: 600 .98rem/1.25 var(--sans); color: var(--navy-ink); display: block; }
@media (min-width: 900px) {
  .doors ol { grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .doors a:hover b { text-decoration: underline; text-underline-offset: .2em; }
}

/* Rows to swipe */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gut) 12px; margin: 0 calc(var(--gut) * -1); scroll-padding: 0 var(--gut); scrollbar-width: thin; scrollbar-color: var(--grout) transparent; overscroll-behavior-x: contain; list-style: none; }
.row > * { scroll-snap-align: start; }
@media (min-width: 700px) { .row { grid-auto-columns: 42%; } }
@media (min-width: 1100px) { .row--fit { grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
@media (min-width: 1100px) { .steps-row { grid-auto-flow: initial; grid-template-columns: repeat(7, 1fr); overflow: visible; margin: 0; padding: 0; } .steps-row h3 { font-size: 1.05rem; } }
.row-hint { font: .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--taupe-ink); display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
@media (min-width: 1100px) { .row-hint--fit { display: none; } }

.tile { display: block; text-decoration: none; color: inherit; }
.tile figure, figure.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.tile figcaption { padding-top: 10px; font: .72rem/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* Steps (what happens when) */
.steps-row li { border-top: 1px solid var(--grout); padding-top: 14px; }
.section--navy .steps-row li { border-color: rgba(255,255,255,.22); }
.step-n { font: .74rem/1 var(--mono); letter-spacing: .1em; color: var(--taupe-ink); }
.section--navy .step-n { color: #cfcbb8; }
.step-ico { width: 56px; height: 56px; margin: 14px 0; color: var(--navy); }
.section--navy .step-ico { color: #fff; }
.step-ico path, .step-ico rect, .step-ico circle, .step-ico line, .step-ico polyline { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.step-ico .acc { stroke: var(--taupe); }
.steps-row h3 { margin-bottom: .35em; }
.steps-row p { font-size: .97rem; margin: 0; }

/* Spec table (precise voice) */
.spec { margin: 0; border-top: 1px solid var(--grout); }
.spec div { display: grid; grid-template-columns: minmax(0, 9em) 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--grout); }
.spec dt { font: .72rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--taupe-ink); padding-top: 2px; }
.spec dd { margin: 0; }
.section--navy .spec, .section--navy .spec div { border-color: rgba(255,255,255,.22); }
.section--navy .spec dt { color: #cfcbb8; }

/* Quote */
.pull { margin: 0; }
.pull blockquote { margin: 0; font: 500 clamp(1.3rem, 4.2vw, 2rem)/1.3 var(--display); color: var(--navy-ink); letter-spacing: -.01em; text-wrap: pretty; }
.pull blockquote::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--taupe); margin-bottom: .1em; }
.pull figcaption { margin-top: 18px; font: .74rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aligned-joint { position: relative; height: 1px; background: var(--grout); margin: 26px 0; }
.aligned-joint::after { content: ""; position: absolute; left: 50%; top: -10px; width: 1px; height: 21px; background: var(--taupe); }

/* Page heads */
.page-head { padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(28px, 5vw, 48px); border-bottom: 1px solid var(--grout); }
.sheet-pill {
  position: fixed; right: 12px; bottom: calc(var(--bar) + 12px + env(safe-area-inset-bottom)); z-index: 45; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--navy); background: #fff; color: var(--navy); font: .76rem/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; box-shadow: 0 6px 18px rgba(27,31,87,.16); cursor: pointer; transition: transform .3s var(--ease), opacity .3s;
}
.sheet-pill[hidden] { display: inline-block; opacity: 0; transform: translateY(12px); pointer-events: none; }
.sheet-pill.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); background: var(--stone); } }
@media (min-width: 980px) { .sheet-pill { display: none !important; } }
.page-head h1 { font-size: clamp(2rem, 7vw, 3.6rem); margin-top: 14px; }
.page-head .lede { margin-top: 10px; }
.crumbs { font: .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 24px; }
.crumbs a:hover { color: var(--navy); }
.page-hero { margin-top: 22px; }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .page-hero img { aspect-ratio: 21 / 9; } }

.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .45em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--grout); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--taupe); }
.section--navy .ticks li { border-color: rgba(255,255,255,.22); }

.cta-band { padding: clamp(48px, 8vw, 96px) 0; background: var(--navy); color: #e8e9f4; }
.cta-band h2 { color: #fff; }
.cta-band .label { color: #cfcbb8; } .cta-band .label::before { background: #cfcbb8; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .wrap { display: grid; gap: 20px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn--line { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--line:hover { background: #fff; color: var(--navy); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: end; } }

/* Gallery grid */
.gal { display: grid; gap: 28px; }
.gal figure, .quote, .pull { margin: 0; }
.cap span:last-child { white-space: nowrap; }
@media (min-width: 900px) { .gal { grid-template-columns: 1fr 1fr; gap: 48px 64px; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--grout); background: #fff; font: .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; border-radius: 999px; }
.filters button[aria-pressed="true"], .filters button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
@media (min-width: 700px) { .thumbs { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs figure { margin: 0; }

/* Testimonials */
.quotes { display: grid; gap: 0; }
.quote { padding: 36px 0; border-top: 1px solid var(--grout); display: grid; gap: 14px; }
.quote blockquote { margin: 0; font-size: 1.06rem; }
.quote .who { font: .74rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--taupe-ink); }
.quote .who b { display: block; color: var(--navy-ink); font-weight: 600; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
@media (min-width: 900px) { .quote { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* Planner (the written-quote guide) */
.planner { display: grid; gap: 28px; }
@media (min-width: 980px) { .planner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; } .planner > * { padding: 0 40px; } .planner > :first-child { padding-left: 0; border-right: 1px solid var(--grout); } .planner > :last-child { padding-right: 0; } }
.q { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 4px; font: 600 1.08rem/1.3 var(--sans); color: var(--navy-ink); }
.q .why { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q .opt { position: relative; }
.q .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q .opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--grout); background: #fff; font-size: .95rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; border-radius: 2px; }
.q .opt span:hover { border-color: var(--taupe); }
.q .opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.q .opt input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.qnum { font: .7rem/1 var(--mono); letter-spacing: .1em; color: var(--taupe-ink); display: block; margin-bottom: 8px; }

.sheet { background: #fff; border: 1px solid var(--grout); padding: 22px 20px; position: relative; }
@media (min-width: 980px) { .sheet-wrap { position: sticky; top: 100px; } }
.sheet h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sheet .tb { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--grout); margin: 14px 0; font: .66rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet .tb div { padding: 8px 10px; border-right: 1px solid var(--grout); border-bottom: 1px solid var(--grout); }
.sheet .tb div:nth-child(2n) { border-right: 0; }
.sheet .tb div:nth-last-child(-n+2) { border-bottom: 0; }
.sheet .tb b { display: block; color: var(--ink); font-weight: 600; letter-spacing: .02em; text-transform: none; font-family: var(--sans); font-size: .86rem; }
.lines { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.lines li { counter-increment: l; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--stone-2); font-size: .95rem; align-items: baseline; transition: background .4s; }
.lines li::before { content: counter(l, decimal-leading-zero); font: .7rem var(--mono); color: var(--taupe-ink); }
.lines li .why { grid-column: 2 / -1; font-size: .84rem; color: var(--muted); margin-top: -2px; }
.lines li .t { font: .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--taupe-ink); border: 1px solid var(--grout); padding: 4px 6px; white-space: nowrap; }
.lines li.is-new { background: #f1eee5; }
.lines li.is-new .t { background: var(--taupe); color: #fff; border-color: var(--taupe); }
.sheet .note { font-size: .86rem; color: var(--muted); margin: 14px 0; }
.sheet .actions { display: grid; gap: 8px; }

/* Quote drawer: rises over the page */
.drawer { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20, 22, 50, .45); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: relative; background: var(--paper); max-height: 92dvh; overflow-y: auto; padding: 22px var(--gut) calc(22px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform .45s var(--ease); border-top: 3px solid var(--navy);
  width: 100%; max-width: 640px; margin: 0 auto; overscroll-behavior: contain;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel h2 { font-size: 1.45rem; margin-bottom: 4px; }
.drawer-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; font-size: 1.6rem; line-height: 1; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: block; font: .72rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--taupe-ink); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--stone-2); background: #fff; font: 16px/1.4 var(--sans); color: var(--ink); border-radius: 2px; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form .small { font-size: .84rem; color: var(--muted); margin: 0; }
.form .btn { width: 100%; }
.form-done { display: none; padding: 16px; background: #fff; border-left: 3px solid var(--taupe); }
.form.is-sent .fields { display: none; }
.form.is-sent .form-done { display: block; }
body.drawer-open { overflow: hidden; }

/* Phone bar: the number never leaves the screen */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--grout); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(27,31,87,.08);
  transition: transform .35s var(--ease);
}
.callbar a, .callbar button { display: flex; align-items: center; justify-content: center; gap: 8px; height: var(--bar); border: 0; text-decoration: none; font: 600 .98rem/1 var(--sans); cursor: pointer; }
.callbar .c { background: var(--navy); color: #fff; }
.callbar .q2 { background: var(--paper); color: var(--navy); }
.callbar svg { width: 18px; height: 18px; }
.callbar .num { font: .72rem/1 var(--mono); letter-spacing: .04em; opacity: .85; display: block; margin-top: 4px; }
.callbar .c > span { display: grid; text-align: left; }
.callbar.is-low .num { opacity: 1; }
.drawer-open .callbar, .menu-open .callbar { transform: translateY(110%); }
@media (min-width: 900px) {
  .callbar { left: auto; right: 24px; bottom: 24px; grid-template-columns: auto auto; border-radius: 2px; overflow: hidden; padding: 0; }
  .callbar a, .callbar button { height: 54px; padding: 0 20px; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfd1e6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.foot-mark { width: 56px; height: auto; opacity: .95; margin-bottom: 14px; }
.site-footer h2 { font: .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #b9b6a2; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
@media (max-width: 899px) {
  .site-footer { padding-top: 40px; }
  .foot-grid { gap: 22px; }
  .foot-mark { width: 40px; margin-bottom: 0; }
  .foot-grid > div:first-child p { display: none; }
  .section { padding: 48px 0; }
  .site-footer .pages { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .board { max-width: 300px; margin: 0 auto; }
  .compare--wide { aspect-ratio: 1 / 1; }
}
.foot-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 22px; font: .72rem/1.6 var(--mono); letter-spacing: .04em; color: #a9abc6; }
.foot-legal a { color: #cfd1e6; }
.credit { margin-left: auto; }
.credit a { color: #a9abc6; text-decoration: none; }
.credit a:hover { color: #fff; }

/* Timeline: what happens when (two halves: the step and its detail) */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--grout); }
.timeline .tl-n .step-ico { width: 48px; height: 48px; margin: 10px 0 0; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { margin: 0; }
@media (min-width: 900px) {
  .timeline li { grid-template-columns: 1fr 1fr; gap: 0; }
  .timeline .tl-n { display: flex; gap: 24px; align-items: flex-start; padding-right: 48px; }
  .timeline .tl-n .step-ico { margin: 0; width: 64px; height: 64px; }
  .timeline li > div:last-child { padding-left: 48px; border-left: 1px solid var(--grout); }
}

/* Questions that open */
.faqs details { border-top: 1px solid var(--grout); }
.faqs details:last-child { border-bottom: 1px solid var(--grout); }
.faqs summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; min-height: 48px; font-weight: 600; color: var(--navy-ink); position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.4rem/1 var(--mono); color: var(--taupe-ink); transition: transform .3s var(--ease); }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { margin: 0 0 18px; color: var(--muted); }

.board { color: var(--navy); width: 100%; max-width: 520px; }
.board .acc { stroke: var(--taupe); }
.mt-s { margin-top: 6px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 64px; } .pt-s { padding-top: 24px; } .mw { max-width: 520px; }
.btn--block { width: 100%; max-width: 420px; }
.split img { margin-top: 18px; }
.pull blockquote p { margin: 0; max-width: none; }

/* Photo carry: the door's picture grows into the top of its page */
[data-vt="p0"] { view-transition-name: p0; } [data-vt="p1"] { view-transition-name: p1; }
[data-vt="p2"] { view-transition-name: p2; } [data-vt="p3"] { view-transition-name: p3; }
::view-transition-group(p0), ::view-transition-group(p1), ::view-transition-group(p2), ::view-transition-group(p3) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }

/* Arrival as you scroll */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

/* Photo carry between pages */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .ld.draw path { stroke-dashoffset: 0; }
  .query .caret { display: none; }
  @view-transition { navigation: none; }
}
@media print { .callbar, .site-header, .drawer, .menu { display: none !important; } body { padding: 0; } }
