/* Titan East Roofing website. Dark dusk look from the 3D hero, sections adapted from site-b. */
:root {
  --o: #ff5e1a;
  --o-hot: #ff7a3d;
  --ink: #0d0c0b;
  --ink-2: #15140f;
  --ink-3: #1d1b17;
  --paper: #f4efe6;
  --card: #fbfaf8;
  --muted: rgba(244, 239, 230, .72);
  --dim: rgba(244, 239, 230, .5);
  --line: rgba(244, 239, 230, .12);
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--o-hot);
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--o); flex: none; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: .005em; margin: 0; }
.display em, .h2 em { font-style: normal; color: var(--o); }
.lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--muted); max-width: 30em; margin: 0; }

/* ------------------------------------------------------------ header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px; transition: background .3s, box-shadow .3s, padding .3s; }
.top.solid { background: rgba(13, 12, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
  padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
.logo { display: block; line-height: 0; }
.logo img { height: clamp(44px, 5.2vw, 70px); width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); transition: height .3s; }
.top.solid .logo img { height: clamp(38px, 4vw, 50px); }
.top-right { display: flex; align-items: center; gap: 22px; }
.top .nav { display: flex; align-items: center; gap: 24px; font: 500 14px/1 var(--body); }
.top .nav a { color: var(--muted); text-decoration: none; transition: color .15s ease-out; white-space: nowrap; }
.top .nav a:hover { color: var(--paper); }
.top .nav .nav-tel { color: var(--paper); font-weight: 600; }
.socials { display: flex; align-items: center; gap: 4px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .15s, background-color .15s; }
.socials a:hover { color: var(--ink); background: var(--o); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid rgba(244,239,230,.5); border-radius: 50%; background: rgba(13,12,11,.25); cursor: pointer; position: relative; padding: 0; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .3s var(--out); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.btn-ghost { font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); text-decoration: none; white-space: nowrap;
  padding: 12px 18px 11px; border: 1.5px solid rgba(244,239,230,.5); border-radius: 999px; background: rgba(13,12,11,.25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, background .2s, color .2s; }
.btn-ghost:hover { border-color: var(--o); background: var(--o); color: var(--ink); }

/* ------------------------------------------------------------ hero (one screen, static, golden hour) */
/* The gradient is the first paint and the fallback without WebGL: the same golden-hour sky as the 3D scene. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #4b6ea6 0%, #9db3cf 52%, #f2c48e 78%, #3a2a1e 100%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette, .scrim-final, .grain { position: absolute; pointer-events: none; z-index: 1; }
.vignette { inset: 0; background: radial-gradient(120% 90% at 55% 45%, transparent 60%, rgba(30,18,10,.38) 100%), linear-gradient(180deg, rgba(20,14,10,.35) 0, transparent 16%); }
/* A warm, dark shade on the left keeps the headline readable over the sunlit trees. */
.scrim-final { inset: 0; background: linear-gradient(90deg, rgba(24,15,10,.86) 0%, rgba(24,15,10,.7) 32%, rgba(24,15,10,.25) 46%, rgba(24,15,10,0) 56%), linear-gradient(0deg, rgba(24,15,10,.5) 0%, transparent 26%); }
.grain { inset: -50%; z-index: 2; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-copy { position: absolute; z-index: 12; left: var(--gutter); top: 52%; transform: translateY(-50%); width: min(600px, 46vw); }
.hero-copy .eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .2em; color: #ffb27a; }
.hero-copy .display { font-size: clamp(68px, 8.4vw, 146px); line-height: .84; letter-spacing: 0; margin: 24px 0; text-shadow: 0 8px 40px rgba(0,0,0,.28); }
.hero-copy .display span { display: block; }
.hero-copy .lede { font-size: clamp(16.5px, 1.2vw, 18.5px); line-height: 1.6; color: rgba(250,240,228,.86); }


/* Phone only: the call to action sits at the bottom of the screen. */
.m-dock { display: none; position: absolute; z-index: 12; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); gap: 10px; }

/* First paint: a still of the scene at the visitor's time of day, then the 3D fades in over it. */
.poster { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; }
.p-day .poster { background-image: url(/img/hero/day-desktop.jpg); }
.p-gold .poster { background-image: url(/img/hero/gold-desktop.jpg); }
.p-night .poster { background-image: url(/img/hero/night-desktop.jpg); }
@media (max-width: 760px) {
  .p-day .poster { background-image: url(/img/hero/day-mobile.jpg); }
  .p-gold .poster { background-image: url(/img/hero/gold-mobile.jpg); }
  .p-night .poster { background-image: url(/img/hero/night-mobile.jpg); }
}
#scene { opacity: 0; transition: opacity .6s ease-out; }
.scene-ready #scene { opacity: 1; }

/* A soft ring where the house was tapped (the Easter eggs). */
.tap-ring { position: fixed; z-index: 40; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255,243,220,.7); animation: tap-ring .8s var(--out) forwards; }
.tap-ring.strong { border-color: var(--o); box-shadow: 0 0 18px rgba(255,94,26,.5); }
@keyframes tap-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #scene { transition: none; }
  .tap-ring { animation-duration: .01s; }
}

/* Poster capture (?poster): the scene only. */
.poster-mode .top, .poster-mode .hero > :not(#scene):not(.poster), .poster-mode #site { display: none !important; }

/* ------------------------------------------------------------ hero call to action */
.hero-cta { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--o); color: var(--ink); border-radius: 999px;
  padding: 18px 28px 16px; font: 900 17px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.34,1.3,.64,1), background .2s; }
.hero-btn:hover { transform: scale(1.04); background: var(--o-hot); }
.hero-btn:focus-visible, .hero-tel:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.hero-tel { color: var(--muted); text-decoration: none; font-size: 16px; }
.hero-tel b { color: var(--paper); font-weight: 600; border-bottom: 1.5px solid rgba(255,94,26,.6); }
.hero-tel:hover b { color: var(--o-hot); }
.fine { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fine span { display: inline-flex; align-items: center; gap: 8px; }
.fine span::before { content: ""; width: 6px; height: 6px; background: var(--o); transform: rotate(45deg); }

/* ------------------------------------------------------------ hero address box (the instant quote) */
.js .nojs-only { display: none !important; }
html:not(.js) .addr-form, html:not(.js) .js-only { display: none !important; }
.addr-form { position: relative; margin-top: 30px; }
.addr { position: relative; display: flex; max-width: 560px; background: rgba(244,239,230,.97); border-radius: 999px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.2); }
.addr label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.addr input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font: 500 17px/1 var(--body); color: var(--ink); outline: none; }
.addr input::placeholder { color: rgba(13,12,11,.55); }
.addr button { border: 0; cursor: pointer; background: var(--o); color: var(--ink); border-radius: 999px; padding: 17px 26px 15px;
  font: 900 18px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  transition: transform .25s cubic-bezier(.34,1.3,.64,1), background .2s; }
.addr button:hover { transform: scale(1.04); background: var(--o-hot); }
.addr button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.addr:focus-within { box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 3px rgba(255,94,26,.55); }
.addr-form.nudge .addr { animation: nudge .4s var(--out); }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.suggest { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 8px 0 0; padding: 6px; list-style: none;
  background: var(--card); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); max-height: 320px; overflow: auto; }
.suggest li { padding: 11px 14px; border-radius: 12px; cursor: pointer; font-size: 15px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.suggest li small { color: #6d6862; font-size: 13px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #fff1e8; }
.suggest li.hint, .suggest li.credit { color: #6d6862; font-size: 13px; cursor: default; background: none; }
.suggest li.credit { font-size: 12px; padding-top: 4px; }
.hero-copy .hero-cta { margin-top: 18px; }
.hero-alt { color: var(--muted); text-decoration: none; font-size: 16px; }
.hero-alt b { color: var(--paper); font-weight: 600; border-bottom: 1.5px solid rgba(255,94,26,.6); }
.hero-alt:hover b { color: var(--o-hot); }
.hero-alt:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.m-dock .addr-form { margin: 0; }
.m-dock .suggest { top: auto; bottom: 100%; margin: 0 0 8px; }
.m-links { margin: 0; display: flex; justify-content: center; gap: 18px; font-size: 15px; }
.m-links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.m-links a b, .m-links a:first-child { color: var(--paper); font-weight: 600; }

/* ------------------------------------------------------------ instant quote card, over the hero house */
body.q-open { overflow: hidden; }
.iq { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
@media (min-width: 1061px) { .iq { justify-items: end; padding-right: max(var(--gutter), 6vw); } }
.iq-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,6,.62), rgba(10,8,6,.28)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .3s var(--out); }
@keyframes fade { from { opacity: 0; } }
.iq-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: #141414; border-radius: 24px; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); animation: rise .5s var(--out); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.q-close { position: absolute; z-index: 5; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13,12,11,.72); color: #fff; display: grid; place-items: center; }
.q-close:hover { background: var(--o); color: var(--ink); }
.q-close:focus-visible, .q-wrong:focus-visible, .q-pickbar button:focus-visible, .tier:focus-visible, .q-inc summary:focus-visible, .q-alt a:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
.q-img { position: relative; height: 310px; overflow: hidden; background: #2a2a2a linear-gradient(110deg, #2a2a2a 30%, #3a3936 50%, #2a2a2a 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.q-img.loaded { animation: none; background: #2a2a2a; }
.q-img.empty { height: 140px; animation: none; background: radial-gradient(120% 140% at 70% 120%, #ff8a4a 0%, #6a4a6e 35%, #1d2440 70%, #0b0d16 100%); }
.q-img.empty .q-tag { display: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.q-img img, .q-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Aerial photos are dull and hazy as served; lift them so the roof reads clearly. */
.q-img img { object-fit: cover; opacity: 0; transition: opacity .5s ease-out; filter: brightness(1.14) contrast(1.12) saturate(1.15); }
.q-img img.on { opacity: 1; }
.q-img svg { pointer-events: none; }
.q-img #q-pick { pointer-events: auto; }
.q-face { fill: rgba(255,94,26,0); stroke: var(--o); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trace 1.1s cubic-bezier(.65,0,.35,1) forwards, fillin .6s ease-out forwards; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 900ms); }
.q-outline { fill: rgba(255,94,26,.1); stroke: #ff8a4a; stroke-width: 3.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.3s cubic-bezier(.65,0,.35,1) forwards; }
.q-outline.dashed { fill: none; stroke-dasharray: .012 .01; stroke-dashoffset: 0; animation: none; opacity: .9; stroke: var(--o); }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: rgba(255,94,26,.16); } }
.q-pin { fill: var(--o); stroke: #fff; stroke-width: 3; }
.q-house { fill: rgba(255,255,255,.22); stroke: #fff; stroke-width: 3; stroke-linejoin: round; cursor: pointer; transition: fill .15s; outline: none; }
.q-house:hover, .q-house:focus-visible { fill: rgba(255,94,26,.4); stroke: var(--o); }
.q-house.cur { stroke: var(--o); stroke-dasharray: 6 4; }
.q-scan { position: absolute; left: 0; right: 0; top: 0; height: 56px; margin-top: -56px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(255,94,26,0), rgba(255,94,26,.28) 85%, rgba(255,94,26,.9)); border-bottom: 2px solid var(--o); }
.q-img.scanning .q-scan { animation: scan 1.6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(366px); } }
.q-tag { position: absolute; top: 14px; right: 14px; background: #f2c94c; color: var(--ink); font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px 5px; border-radius: 6px; }
.q-wrong { position: absolute; left: 14px; bottom: 14px; border: 0; cursor: pointer; background: rgba(13,12,11,.82); color: #fff; font: 600 13px/1 var(--body); padding: 10px 13px; border-radius: 999px; }
.q-wrong:hover { background: var(--o); color: var(--ink); }
.q-pickbar { position: absolute; left: 60px; right: 10px; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(13,12,11,.86); color: #fff; font-size: 14px; padding: 8px 8px 8px 14px; border-radius: 12px; }
.q-pickbar button { border: 0; cursor: pointer; background: #fff; color: #141414; font: 600 13px/1 var(--body); padding: 9px 12px; border-radius: 8px; }
.q-credit { position: absolute; right: 8px; bottom: 4px; font: 500 9.5px/1.3 var(--mono); color: rgba(255,255,255,.88); text-shadow: 0 1px 2px rgba(0,0,0,.9); max-width: 50%; text-align: right; }
.q-addr { font-size: 13px; color: #6d6862; padding: 18px 28px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-addr b { color: #141414; font-weight: 600; }
.q-steps { list-style: none; margin: 12px 28px 0; padding: 0; display: grid; gap: 8px; }
.q-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #a39d95; transition: color .2s; }
.q-steps li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #ddd6cc; box-sizing: border-box; }
.q-steps li.on { color: #141414; font-weight: 600; }
.q-steps li.on::before { border-color: var(--o); border-right-color: transparent; animation: spin .8s linear infinite; }
.q-steps li.done { color: #4a4540; }
.q-steps li.done::before { border: 0; background: var(--o) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4L18 8.5' fill='none' stroke='%230d0c0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.q-steps.fin { display: none; }
.q-meas { margin: 8px 28px 0; font-size: 13.5px; color: #4a4540; }
.q-note { margin: 10px 28px 0; font-size: 13px; color: #6b5b2a; background: #fdf3d3; border-radius: 10px; padding: 9px 12px; }
.q-body { padding: 4px 28px 22px; }
.q-shingle { margin: 12px 0 2px; font-size: 13.5px; color: #4a4540; }
.tier { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 12px; margin: 6px -12px 0; width: calc(100% + 24px); border: 0; border-radius: 12px;
  background: none; font: inherit; font-size: 15px; color: #141414; cursor: pointer; text-align: left; }
.tier::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff5ef; box-shadow: inset 0 0 0 1.5px var(--o); opacity: 0; transform: scale(.97); transition: opacity .2s ease-out, transform .35s var(--spring); }
.tier:hover { background: #f2efea; }
.tier.sel::after { opacity: 1; transform: none; }
.tier > * { position: relative; z-index: 1; }
.tier .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbc5bb; flex: none; transition: border-color .2s ease-out; }
.tier .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--o); transform: scale(0); transition: transform .35s var(--spring); }
.tier.sel .dot { border-color: var(--o); }
.tier.sel .dot::after { transform: scale(1); }
.tier .t { flex: 1; min-width: 0; }
.tier .t small { display: block; color: #6d6862; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.tier b { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-size: 15px; }
.tier b small { display: block; font-weight: 400; color: #6d6862; font-size: 11.5px; }
.tier .tag { font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #141414; color: #fff; padding: 3px 6px 2px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; display: inline-block; }
.q-estimate { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: #f2efea; font-size: 13.5px; line-height: 1.45; color: #2b2824; }
.q-inc { margin-top: 12px; font-size: 13.5px; color: #4a4540; }
.q-inc summary { cursor: pointer; font-weight: 600; color: #141414; padding: 4px 0; }
.q-inc ul { margin: 6px 0 8px; padding-left: 18px; }
.q-inc p { margin: 4px 0 0; }
.q-alt { margin: 12px 0 0; text-align: center; font-size: 14px; }
.q-alt a { color: #4a4540; }
.iq .q-cta { display: flex; gap: 10px; margin-top: 16px; }
.q-lead { padding: 18px 28px 26px; }
.q-lead h3 { font: 900 30px/1 var(--display); text-transform: uppercase; margin: 6px 0 6px; }
.q-lead-sub { color: #6d6862; font-size: 14.5px; margin: 0 0 6px; }
.q-lead .fine-print { margin: 12px 0 0; font-size: 12.5px; color: #6d6862; }
.iq .q-done { padding: 22px 28px 26px; }
@media (max-width: 760px) {
  .addr input { font-size: 16px; padding: 0 10px 0 16px; }
  .addr button { padding: 15px 16px 13px; font-size: 16px; }
  .iq { padding: 0; align-items: end; }
  .iq-card { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .q-img { height: 250px; }
  .q-addr, .q-body, .q-lead, .iq .q-done { padding-left: 20px; padding-right: 20px; }
  .q-steps, .q-meas, .q-note { margin-left: 20px; margin-right: 20px; }
  .tier { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-face, .q-outline { animation: none; stroke-dashoffset: 0; }
  .q-img, .q-img.scanning .q-scan, .q-steps li.on::before { animation: none; }
}

/* ------------------------------------------------------------ form pieces */
.btn { flex: 1; border: 0; cursor: pointer; background: var(--o); color: var(--ink); border-radius: 12px; padding: 15px 14px 13px; font: 900 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .38s var(--spring), background .15s; }
.btn:hover { background: var(--o-hot); transform: translateY(-1px); }
.btn:active { transform: scale(.96); transition-duration: .09s; }
.btn.ghost { background: #ece7df; color: #141414; }
.btn.ghost:hover { background: #e2dcd2; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.fld { display: block; margin-top: 14px; }
.fld span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fld i { font-style: normal; color: #6d6862; font-weight: 400; }
.fld input, .fld textarea { width: 100%; font: 16px/1.4 var(--body); padding: 13px 14px; border: 1.5px solid #ddd6cc; border-radius: 12px; background: #fff; color: #141414; outline: none; }
.fld textarea { resize: vertical; min-height: 92px; }
.fld input::placeholder, .fld textarea::placeholder { color: #a39d95; }
.fld input:focus, .fld textarea:focus { border-color: var(--o); box-shadow: 0 0 0 3px rgba(255,94,26,.15); }
.fld.bad input, .fld.bad textarea { border-color: #d9381e; }
.fld-err, #site .closer .fld-err { margin: 6px 0 0; color: #b42318; font-size: 13px; line-height: 1.35; }
.fld label { display: block; }

/* ------------------------------------------------------------ keyboard focus and skip link */
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--o); color: var(--ink); border-radius: 10px; padding: 12px 16px;
  font: 600 15px/1 var(--body); text-decoration: none; transition: top .15s ease-out; }
.skip:focus { top: max(12px, env(safe-area-inset-top)); outline: 2px solid var(--paper); outline-offset: 2px; }
main:focus { outline: none; }
.logo:focus-visible, .top .nav a:focus-visible, .socials a:focus-visible, .btn-ghost:focus-visible, .menu-btn:focus-visible, .nav-back:focus-visible,
.btn:focus-visible, #site a:focus-visible, .foot-wrap a:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.closer .btn:focus-visible, .closer .box a:focus-visible { outline-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-err { margin: 12px 0 0; color: #b42318; font-size: 14px; }
.q-done { text-align: center; padding: 18px 4px 8px; outline: none; }
.q-done h3 { font: 900 30px/1 var(--display); text-transform: uppercase; margin: 6px 0 8px; }
.q-done p { color: #6d6862; font-size: 15px; margin: 0 auto 16px; max-width: 26em; }
.q-check { width: 56px; height: 56px; margin: 6px auto 8px; border-radius: 50%; background: var(--o); color: var(--ink); display: grid; place-items: center; animation: pop .5s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.q-done .btn { max-width: 240px; margin: 6px auto 0; display: block; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .top .nav { gap: 18px; }
  .top-socials { display: none; }
}
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .top .nav { display: none; position: fixed; left: 0; right: 0; top: 0; padding: calc(max(12px, env(safe-area-inset-top)) + 76px) var(--gutter) 28px;
    flex-direction: column; align-items: stretch; gap: 0; background: rgba(13,12,11,.97); box-shadow: 0 30px 60px rgba(0,0,0,.5); z-index: -1; }
  .menu-open .top .nav { display: flex; }
  .top .nav a { font-size: 19px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .top-right { gap: 12px; }
}
@media (max-width: 760px) {
  .btn-ghost { padding: 10px 14px 9px; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero { min-height: 640px; }
  .hero-copy { top: calc(max(12px, env(safe-area-inset-top)) + 76px); transform: none; width: auto; right: var(--gutter); }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .16em; }
  .hero-copy .eyebrow::before { width: 18px; }
  .hero-copy .display { font-size: clamp(58px, 17.4vw, 84px); margin: 14px 0 0; }
  .hero-copy .hero-cta, .hero-copy .fine, .hero-copy .addr-form { display: none; }
  .hero-copy .lede { margin-top: 16px; font-size: 15.5px; line-height: 1.5; max-width: 24em; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
  .m-dock { display: grid; }
  .m-dock .hero-btn { justify-content: center; padding: 18px 20px 16px; }
  .m-dock .hero-tel { text-align: center; font-size: 15px; padding: 4px 0; }
  .scrim-final { background: linear-gradient(180deg, rgba(24,15,10,.72) 0%, rgba(24,15,10,.2) 34%, transparent 46%, rgba(24,15,10,.86) 74%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
