/* Spec Building Service — site styles
   Colours measured from their logo: navy #1a3667, green #3cae49.
   Motif: the logo's overlapping rounded squares, used as thin frames. */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --navy: #1a3667;
  --navy-2: #102449;
  --navy-3: #0b1a36;
  --green: #3cae49;
  --green-ink: #22762e;
  --green-soft: #e6f4e7;
  --paper: #f6f4ef;
  --paper-2: #ece8de;
  --white: #ffffff;
  --ink: #131b2a;
  --ink-2: #485366;
  --line: rgba(26, 54, 103, .16);
  --line-2: rgba(26, 54, 103, .28);
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1200px;
  --gut: 20px;
  --hd: 68px;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); line-height: 1.55; max-width: 40ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.spec { display: inline-flex; align-items: center; gap: .6em; font: 400 .74rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 1.1rem; }
.spec::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--green); border-radius: 4px; flex: none; }
.spec-plain::before { display: none; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent; font: 600 1rem/1 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--navy); color: #fff; }
.btn-call .i { color: var(--green); stroke-width: 2; }
.btn-call:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.6); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--green-soft); color: var(--navy); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-line-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--navy); }
.link-arrow .i { transition: transform .3s var(--ease); color: var(--green-ink); }
.link-arrow:hover .i { transform: translateX(4px); }

/* tape-measure progress line, under the header */
.tape { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.tape::before { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green) 0 100%) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--navy) 0 1px, transparent 1px 10px) 0 1px / 100% 2px no-repeat; }
@supports (animation-timeline: scroll()) {
  .tape::before { animation: tape linear both; animation-timeline: scroll(root); }
}
@keyframes tape { to { transform: scaleX(1); } }

/* header */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.hd.is-stuck { border-bottom-color: var(--line); background: rgba(246, 244, 239, .97); }
.hd-in { display: flex; align-items: center; gap: 16px; height: var(--hd); transition: height .3s var(--ease); }
.hd.is-stuck .hd-in { height: 58px; }
.hd-logo { display: block; flex: none; margin-right: auto; }
.hd-logo img { height: 52px; width: auto; transition: height .3s var(--ease); }
.hd.is-stuck .hd-logo img { height: 44px; }
.hd-call { display: none; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.hd-call .i { color: var(--green-ink); }
.nav-btn { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--navy); font: 600 .95rem var(--sans); cursor: pointer; }
.nav-btn .i { width: 1.15em; height: 1.15em; }
#menu { margin: 0; padding: 18px var(--gut) 28px; inset: var(--hd) 0 auto 0; width: 100%; max-width: none; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(16, 36, 73, .35); }
#menu:popover-open { display: block; animation: drop .35s var(--ease); }
#menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
#menu a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-size: 1.2rem; font-weight: 500; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--line); }
#menu a[aria-current="page"] { color: var(--green-ink); }
#menu .menu-call { margin-top: 18px; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1000px) {
  .nav-btn { display: none; }
  #menu { display: block; position: static; inset: auto; padding: 0; background: none; border: 0; box-shadow: none; width: auto; overflow: visible; }
  #menu ul { display: flex; gap: 4px; }
  #menu a { padding: 8px 12px; font-size: .97rem; border: 0; border-radius: 10px; }
  #menu a:hover { background: rgba(26, 54, 103, .06); color: var(--navy); }
  #menu a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
  #menu .menu-call { display: none; }
  .hd-call { display: inline-flex; padding-left: 18px; margin-left: 8px; border-left: 1px solid var(--line); }
  .hd-logo img { height: 58px; }
  .hd-in { gap: 8px; }
}

/* frames: the logo's offset rounded squares */
.frame { position: relative; isolation: isolate; }
.frame::before, .frame::after { content: ""; position: absolute; z-index: -1; border: 1.5px solid var(--green); border-radius: 12px; pointer-events: none; }
.frame::before { width: 34%; aspect-ratio: 1; left: -12px; top: -12px; }
.frame::after { width: 22%; aspect-ratio: 1; right: -12px; bottom: -12px; }
.frame > img, .frame > picture img { border-radius: var(--r); }

/* sections */
.sec { padding-block: clamp(64px, 10vw, 128px); }
.sec-tight { padding-block: clamp(48px, 7vw, 88px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.dark { background: var(--navy-2); color: #dfe6f3; }
.dark h2, .dark h3 { color: #fff; }
.dark .spec { color: #c9d6ec; }
.dark a:not(.btn) { color: #fff; }
.paper-2 { background: var(--paper-2); }
.white { background: #fff; }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--hd)), 820px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--navy-3); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: drift 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1.1) translate3d(1.5%, 1%, 0); } to { transform: scale(1.01) translate3d(-1%, -.5%, 0); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 26, 54, .15) 0%, rgba(11, 26, 54, .2) 30%, rgba(11, 26, 54, .78) 62%, rgba(11, 26, 54, .94) 100%); }
.hero-body { position: relative; z-index: 2; padding-block: 48px 28px; }
.hero .spec { color: #e3ebf7; }
.hero .spec::before { border-color: var(--green); }
.hero h1 { color: #fff; max-width: 12ch; margin-bottom: .35em; }
.hero p { color: #dbe3f0; max-width: 36ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero .btns { margin-top: 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.hero .btn-call { background: #fff; color: var(--navy); }
.hero .btn-call .i { color: var(--green-ink); }
.hero .btn-call:hover { background: var(--green-soft); }
.creds { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); font: 400 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #cfd9ea; }
.creds li { display: inline-flex; align-items: center; gap: .55em; }
.creds .i { color: var(--green); width: 1.3em; height: 1.3em; stroke-width: 1.75; }
.hero-lines { position: absolute; z-index: 1; right: -40px; top: 8%; width: min(62vw, 520px); color: var(--green); opacity: .9; pointer-events: none; }
.hero-lines rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s var(--ease) .4s forwards; }
.hero-lines rect:nth-child(2) { animation-delay: .9s; }
.hero-lines rect:nth-child(3) { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (min-width: 900px) {
  .hero-body { padding-block: 80px 44px; }
  .hero::after { background: linear-gradient(90deg, rgba(11, 26, 54, .92) 0%, rgba(11, 26, 54, .7) 40%, rgba(11, 26, 54, .1) 75%), linear-gradient(0deg, rgba(11, 26, 54, .5), transparent 40%); }
  .hero { align-items: center; }
  .hero-lines { right: 4%; top: 12%; width: 380px; }
}

/* ---------- spec to built ---------- */
.stb { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .stb { grid-template-columns: 5fr 7fr; } }
.stb-copy h2 { max-width: 13ch; }
.stb-copy p { color: var(--ink-2); max-width: 40ch; }
.reveal-box { --x: 50%; position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: #fbfaf7; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 30px 60px -36px rgba(16, 36, 73, .45); }
.reveal-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.reveal-draw { position: absolute; inset: 0; background: #fbfaf7; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.reveal-draw::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .45; }
.reveal-draw img { mix-blend-mode: multiply; }
.reveal-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.reveal-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.75px; width: 1.5px; background: var(--green); }
.reveal-knob { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%); background: #fff; border: 1.5px solid var(--green); border-radius: 12px; display: grid; place-items: center; color: var(--navy); box-shadow: 0 8px 20px -8px rgba(16, 36, 73, .5); }
.reveal-knob .i { width: 22px; height: 22px; }
.reveal-tag { position: absolute; top: 12px; z-index: 3; font: 400 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--navy); pointer-events: none; }
.reveal-tag-l { left: 12px; }
.reveal-tag-r { right: 12px; background: rgba(16, 36, 73, .82); color: #fff; }
.reveal-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.reveal-box:has(.reveal-range:focus-visible) { outline: 3px solid var(--green); outline-offset: 4px; }
.reveal-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: .88rem; color: var(--ink-2); }

/* ---------- starter + planner chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-weight: 600; color: var(--navy); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 500; font-size: .98rem; transition: border-color .2s, background-color .2s, color .2s; white-space: nowrap; }
.chip span .i { color: var(--green-ink); }
.chip input:hover + span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span .i { color: var(--green); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.swipe { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 8px; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { scroll-snap-align: start; flex: none; }

.starter { display: grid; gap: 28px; align-items: center; background: #fff; border-radius: calc(var(--r) + 6px); padding: clamp(22px, 4vw, 48px); border: 1px solid var(--line); }
@media (min-width: 900px) { .starter { grid-template-columns: 1fr 1fr; } }
.starter h2 { max-width: 14ch; }
.starter .lede { margin-bottom: 22px; }
.starter-plan { color: var(--navy); }
.starter-plan svg { width: 100%; }
.starter form .btn { margin-top: 18px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; }
.cards.swipe { display: flex; gap: 14px; }
.cards.swipe > * { width: min(78vw, 330px); }
@media (min-width: 900px) { .cards.swipe { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } .cards.swipe > * { width: auto; } }
.card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(16, 36, 73, .45); color: inherit; }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; }
.card-body .spec { margin-bottom: .55rem; font-size: .68rem; }
.card-body h3 { margin: 0 0 .3em; font-size: 1.16rem; }
.card-body p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.sec-foot { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }

/* steps */
.steps { list-style: none; counter-reset: s; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 10px; }
.steps::-webkit-scrollbar { display: none; }
.steps li { counter-increment: s; flex: none; width: min(64vw, 240px); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 20px; position: relative; }
.steps li::before { content: "0" counter(s); display: block; font: 400 .72rem var(--mono); letter-spacing: .1em; color: var(--green-ink); margin-bottom: 26px; }
.steps .i { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; color: var(--navy); stroke-width: 1.25; }
.steps h3 { font-size: 1.08rem; margin: 0 0 .3em; }
.steps p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 1000px) { .steps { display: grid; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; } .steps li { width: auto; } }

/* proof */
.proof { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .proof { grid-template-columns: 7fr 5fr; align-items: center; } }
.quote { margin: 0; position: relative; }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.38; color: #fff; font-weight: 400; letter-spacing: -.01em; text-wrap: pretty; }
.quote blockquote::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 20px; border: 1.5px solid var(--green); border-radius: 10px; background: linear-gradient(var(--green), var(--green)) 50% 50% / 1.5px 50% no-repeat; transform: rotate(0deg); }
.quote figcaption { margin-top: 18px; font: 400 .78rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b9c7de; }
.quote-alt blockquote { font-size: 1.1rem; color: #e3e9f4; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r); overflow: hidden; }
.facts li { background: var(--navy-2); padding: 18px 16px; }
.facts b { display: block; font-size: 1.55rem; font-weight: 600; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.facts span { display: block; margin-top: 6px; font-size: .85rem; color: #b9c7de; line-height: 1.35; }
.brands { margin: 26px 0 0; font: 400 .74rem/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb0cc; }
.brands b { color: #fff; font-weight: 400; }

/* close */
.closer { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .closer { grid-template-columns: 1.2fr 1fr; } }
.closer h2 { max-width: 14ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: .7em; text-decoration: none; font-weight: 500; }
.contact-list .i { color: var(--green-ink); }

/* page head (inner pages) */
.ph { padding-block: clamp(44px, 8vw, 96px) clamp(28px, 5vw, 56px); }
.ph h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); max-width: 16ch; }
.ph .lede { max-width: 52ch; }
.crumbs { font: 400 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* prose + two column */
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } .split-wide { grid-template-columns: 7fr 5fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: .7em; align-items: flex-start; }
.ticks .i { color: var(--green-ink); margin-top: .2em; stroke-width: 2; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.panel h2, .panel h3 { margin-top: 0; }

/* services list */
.svc { display: grid; gap: 14px; }
@media (min-width: 760px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; scroll-margin-top: calc(var(--hd) + 20px); }
.svc-item .i { width: 38px; height: 38px; color: var(--navy); stroke-width: 1.25; margin-bottom: 18px; }
.svc-item h3 { margin-bottom: .35em; }
.svc-item p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.scope { counter-reset: sc; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .scope { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.scope li { counter-increment: sc; display: flex; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }
.scope li::before { content: counter(sc, decimal-leading-zero); font: 400 .72rem var(--mono); color: var(--green-ink); letter-spacing: .08em; }

/* gallery by room */
.filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 24px; padding: 4px var(--gut); border: 0; }
.filter::-webkit-scrollbar { display: none; }
.filter .chip span { min-height: 42px; font-size: .93rem; padding: 0 14px; }
.gal { columns: 2 160px; column-gap: 12px; }
@media (min-width: 900px) { .gal { columns: 3 260px; column-gap: 16px; } }
.gal figure { break-inside: avoid; margin: 0 0 12px; position: relative; }
@media (min-width: 900px) { .gal figure { margin-bottom: 16px; } }
.gal img { width: 100%; border-radius: var(--r-sm); background: var(--paper-2); }
.gal figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.gal figcaption a { color: var(--ink-2); }
.gal-room:has(#r-all:checked) ~ .gal figure { display: block; }
.gal-room:has(input:checked:not(#r-all)) ~ .gal figure { display: none; }
.gal-room:has(#r-counter:checked) ~ .gal figure[data-room~="counter"],
.gal-room:has(#r-work:checked) ~ .gal figure[data-room~="work"],
.gal-room:has(#r-kitchen:checked) ~ .gal figure[data-room~="kitchen"],
.gal-room:has(#r-dining:checked) ~ .gal figure[data-room~="dining"],
.gal-room:has(#r-front:checked) ~ .gal figure[data-room~="front"],
.gal-room:has(#r-joinery:checked) ~ .gal figure[data-room~="joinery"] { display: block; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.gal-count { font: 400 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: -10px 0 18px; }

/* project page */
.proj-hero { margin-top: 8px; }
.proj-hero img { width: 100%; aspect-ratio: 960 / 700; object-fit: cover; border-radius: var(--r); }
@media (min-width: 900px) { .proj-hero img { aspect-ratio: 16 / 8; } }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.meta div { background: #fff; padding: 14px 16px; }
.meta dt { font: 400 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.meta dd { margin: 0; font-weight: 500; color: var(--navy); }
.next-proj { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }

/* finishes library */
.jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut); position: sticky; top: 58px; z-index: 20; background: var(--paper); padding-block: 10px; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; text-decoration: none; font-weight: 500; font-size: .93rem; background: #fff; }
.fin-group { padding-top: 36px; scroll-margin-top: calc(var(--hd) + 70px); }
.fin-group h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.fin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .fin-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .fin-grid { grid-template-columns: repeat(4, 1fr); } }
.fin { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.fin.is-saved { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.fin-img { aspect-ratio: 4 / 3; overflow: hidden; }
.fin-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fin:hover .fin-img img { transform: scale(1.05); }
.fin-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.fin h3 { font-size: 1rem; margin: 0 0 .3em; letter-spacing: -.005em; }
.fin p { font-size: .85rem; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.fin-src { font: 400 .64rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: auto; margin-bottom: 10px; }
.fin-src a { color: var(--ink-2); }
.save-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 40px; width: 100%; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; color: var(--navy); font: 600 .88rem var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.save-btn:hover { border-color: var(--navy); }
.save-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.save-btn[aria-pressed="true"] .i { color: var(--green); }
.save-btn .t-on { display: none; }
.save-btn[aria-pressed="true"] .t-on { display: inline; }
.save-btn[aria-pressed="true"] .t-off { display: none; }
.tray { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: var(--navy-2); color: #fff; border-radius: 14px; box-shadow: 0 20px 40px -16px rgba(11, 26, 54, .6); transform: translateY(160%); transition: transform .45s var(--ease); }
.tray.is-on { transform: none; }
.tray p { margin: 0; font-size: .92rem; }
.tray .btn { min-height: 42px; padding: 0 14px; font-size: .9rem; }
@media (min-width: 900px) { .tray { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 600; color: var(--navy); font-size: .95rem; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(60, 174, 73, .35); }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--ink-2); margin: 0; }
.err { display: none; color: #a3261b; font-size: .85rem; }
.was-checked :invalid ~ .err { display: block; }
.was-checked :invalid { border-color: #a3261b; }

/* quote drawer */
.qd { margin: 0; padding: 0; border: 0; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92svh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: 0 -30px 60px -20px rgba(11, 26, 54, .45); overscroll-behavior: contain; }
.qd::backdrop { background: rgba(11, 26, 54, .45); backdrop-filter: blur(2px); }
.qd:popover-open { animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.qd-in { padding: 10px 20px 26px; }
.qd-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 14px; }
.qd-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.qd h2 { font-size: 1.6rem; margin: 0; }
.qd-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; }
.qd-sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 16px; }
.qd-or { font-size: .9rem; color: var(--ink-2); margin: 14px 0 0; text-align: center; }
@media (min-width: 900px) {
  .qd { inset: auto 24px 24px auto; width: 460px; border-radius: 20px; max-height: calc(100svh - 48px); }
  .qd-grip { display: none; }
  .qd-in { padding: 24px 26px 26px; }
}

/* phone bar (phones) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 244, 239, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: grid-template-columns .35s var(--ease), padding .35s var(--ease); }
.callbar .btn { min-height: 52px; padding: 0 12px; }
.callbar .btn-ghost { background: #fff; }
.callbar.is-slim { grid-template-columns: 1fr 0fr; gap: 0; padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }
.callbar.is-slim .btn-ghost { opacity: 0; visibility: hidden; padding: 0; border-width: 0; min-width: 0; overflow: hidden; }
.callbar.is-slim .btn-call { min-height: 46px; }
@media (min-width: 900px) { .callbar { display: none; } }

/* footer */
.ft { background: var(--paper-2); padding-block: 56px calc(120px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .95rem; }
@media (min-width: 900px) { .ft { padding-bottom: 36px; } }
.ft-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ft-logo img { height: 64px; width: auto; margin-bottom: 14px; }
.ft p { color: var(--ink-2); max-width: 38ch; }
.ft h2 { font: 400 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ft a { color: var(--navy); text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.ft-base a { color: var(--ink-2); }
.credit { opacity: .85; }

/* scroll reveal (only when script runs) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }

/* 404 */
.nf { min-height: 60svh; display: grid; align-items: center; }
.nf-draw { color: var(--navy); max-width: 420px; }

/* page-to-page */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.vt-boq { view-transition-name: p-boq; }
.vt-mp { view-transition-name: p-mp; }
.vt-office { view-transition-name: p-office; }
::view-transition-group(p-boq), ::view-transition-group(p-mp), ::view-transition-group(p-office) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(p-boq), ::view-transition-new(p-boq), ::view-transition-old(p-mp), ::view-transition-new(p-mp), ::view-transition-old(p-office), ::view-transition-new(p-office) { height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-media img { animation: none; transform: none; }
  .hero-lines rect { stroke-dashoffset: 0; animation: none; }
  .js .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
  .tape::before { animation: none; }
}
@media print { .hd, .callbar, .qd, .tape, .tray { display: none !important; } body { background: #fff; } }

/* small helpers used by the pages */
[data-gap] { margin-top: 14px; }
[data-mt] { margin-top: 18px; }
[data-mb] { margin-bottom: 26px; }
.ph .btns { margin-top: 24px; }
.panel.quote blockquote { color: var(--navy); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.panel.quote figcaption { color: var(--ink-2); }
.split .frame { margin: 12px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
pre.pl-brief { overflow-x: auto; }

/* phone refinements */
.nw { white-space: nowrap; }
.hero-lines rect { vector-effect: non-scaling-stroke; stroke-width: 2; }
@media (max-width: 899px) {
  .starter-plan { display: none; }
  .hero .btns { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero .btn-ghost { min-height: 44px; padding: 0 2px; border: 0; background: none; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--green); }
  .ft { padding-top: 44px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-grid > div:first-child, .ft-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .ft-logo img { height: 52px; }
  .ft-grid > div:first-child p { margin-bottom: 0; }
  .closer .lede { margin-bottom: 0; }
}
.hero .spec { font-size: .74rem; max-width: none; color: #e3ebf7; }
@media (max-width: 899px) {
  .hero { min-height: calc(100svh - var(--hd) - 76px); }
  .hero-body { padding-block: 40px 22px; }
  .creds { margin-top: 16px; padding-top: 14px; gap: 6px 14px; }
  .sec { padding-block: 60px; }
}
.swipe { flex-wrap: nowrap; }
@media (min-width: 900px) { .starter .chips.swipe { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.starter { grid-template-columns: minmax(0, 1fr); }
.starter > * { min-width: 0; }
.starter .chips.swipe { margin-inline: calc(clamp(22px, 4vw, 48px) * -1); padding-inline: clamp(22px, 4vw, 48px); scroll-padding-inline: clamp(22px, 4vw, 48px); }
@media (min-width: 900px) { .starter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.swipe, .steps, .filter { scroll-padding-inline: var(--gut); }
.quote blockquote::before { width: 44px; height: 1.5px; border: 0; border-radius: 0; background: var(--green); margin-bottom: 22px; }
.panel.quote blockquote::before { background: var(--green); }
@media (min-width: 900px) { .hero h1 { max-width: 13em; } .hero p:not(.spec) { max-width: 34ch; } }
.fin-src { font: 400 .8rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.ph + .sec-tight { padding-top: 8px; }
@media (max-width: 899px) {
  .hero::after { background: linear-gradient(180deg, rgba(11, 26, 54, .22) 0%, rgba(11, 26, 54, .5) 24%, rgba(11, 26, 54, .84) 48%, rgba(11, 26, 54, .95) 100%); }
}
.hero-body { text-shadow: 0 1px 18px rgba(11, 26, 54, .35); }
.hero .btn { text-shadow: none; }
fieldset.filter { min-width: 0; min-inline-size: 0; }
