/* contractor-web-design-seattle.html — v3.26 (SPEC_V3_26): the Rolls-Royce Bespoke direction, light.
   The approved prototype (reference/contractor-bespoke/prototype) in the site's engine: ivory, warm ink, brass, Jost wide caps,
   outline rectangular buttons, hairline rules, centred intro blocks, half-screen photo splits, one dark band (pricing).
   The kitchen film is not darkened (no shade): the first headline is ink on the light empty room, the end one light with a
   soft text shadow. Eliwit's wordmark stays Inter Tight. Self-contained: css/site.css is not loaded. */
@font-face { font-family: 'Jost'; src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

html[data-page="contractor"] {
  color-scheme: light;
  --ivory: #f7f3ed; --ivory-2: #fbf8f3; --ink: #1f1b17; --ink2: #4d463e; --dim: #8a8175; --brass: #8f7148;
  --rule: rgba(31, 27, 23, .16); --night: #16130f; --on-dark: #f6f1e8; --on-dark-k: #ead3a8;
  /* ui-polish (AA): text versions of brass / dim for small type (#8f7148 = 4.1 : 1, #8a8175 = 3.5 : 1 on ivory); the spec's
     brass stays for rules and underlines. --brass-film: the start kicker on the light drywall (was 1.6 : 1) */
  --brass-t: #7a5f3a; --dim-t: #6e665b; --brass-night: #b8976a; --brass-film: #382a17;
  --j: 'Jost', 'Futura', 'Century Gothic', sans-serif; --brand: 'Inter Tight', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --hdr: 76px; --gut: 40px; --pad: 150px; --ease: cubic-bezier(.3, .7, .2, 1);
  --stage-h: 100vh;
}
@supports (height: 100lvh) { html[data-page="contractor"] { --stage-h: 100lvh; } }
@media (max-width: 820px) { html[data-page="contractor"] { --hdr: 62px; --gut: 20px; --pad: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 17px/1.6 var(--j); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }   /* ui-polish: ink, never currentColor (a pressed chip's ivory ring was invisible) */
.night :focus-visible, .beat-end :focus-visible, .hdr.on-dark :focus-visible { outline-color: #f6f1e8; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--gut); top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 16px; font: 400 12px var(--j); letter-spacing: .24em; text-transform: uppercase; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--hdr) + 16px); }

/* ---------- the outline button (thin border, uppercase, wide tracking) and the small label ---------- */
.ob { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px; border: 1px solid currentColor; font: 400 12px/1 var(--j); letter-spacing: .3em; text-transform: uppercase; transition: background-color .4s, color .4s, border-color .4s; }
.ob:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.kick { display: block; font: 400 12px/1.5 var(--j); letter-spacing: .36em; text-transform: uppercase; color: var(--brass-t); }
.nw { white-space: nowrap; }

/* ---------- header: Eliwit's, quiet: logo left, three links right, a thin full-width rule under it ---------- */
.hdr { position: fixed; z-index: 40; inset: 0 0 auto 0; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gut); color: var(--ink); transition: color .5s, background-color .5s; }
.hdr::after { content: ''; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: currentColor; opacity: .28; }
.hdr.on-dark { color: #f4efe6; }
.hdr.solid { color: var(--ink); background: rgba(247, 243, 237, .96); }
.wm { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; align-items: center; }
.wm b { font: 600 26px/1 var(--brand); letter-spacing: -.045em; }
.wm small { font: 500 13px/1 var(--brand); opacity: .8; }
.hnav { display: flex; gap: 10px; margin-right: -12px; }
.hnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 400 12px/1 var(--j); letter-spacing: .24em; text-transform: uppercase; }
.hnav a:hover { opacity: .65; }
@media (max-width: 820px) { .wm b { font-size: 23px; } .wm small { display: none; } .hnav { gap: 0; margin-right: -8px; } .hnav a { padding: 0 8px; font-size: 10px; letter-spacing: .16em; } }

/* ---------- the film ---------- */
.film { position: relative; }
.k-stage { position: relative; overflow: hidden; background: #d9d6d1; height: 100svh; min-height: 520px; }
.k-poster img { width: 100%; height: 100%; object-fit: cover; }
.k-poster { position: absolute; inset: 0; }
.k-poster-end { opacity: 0; }
.k-cvs { display: none; }
html.js:not(.rm) .film { height: 440vh; }
html.js:not(.rm) .k-stage { position: sticky; top: 0; height: var(--stage-h); min-height: 0; }
/* two stacked canvases (frame i, frame i+1 at opacity = the fraction) in a wrapper that carries the push-in: compositor work only */
html.js:not(.rm) .k-cvs { display: block; visibility: hidden; position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
html.js:not(.rm) .k-cvs.on { visibility: visible; }
.k-cv { position: absolute; inset: 0; width: 100%; height: 100%; will-change: opacity; }

.beat { --by: -50%; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(var(--by)); padding: 0 6vw; text-align: center; pointer-events: none; }
.beat .kick { margin-bottom: 26px; letter-spacing: .38em; }
.beat h1, .beat-h { font: 300 clamp(34px, 4.6vw, 76px)/1.12 var(--j); letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; }
.beat-start { color: var(--ink); }
.beat-start .kick { color: var(--brass-film); font-weight: 500; }
.beat-end { color: var(--on-dark); text-shadow: 0 2px 30px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25); }
/* ui-polish: the end line sits on the dark upper cabinets (contractor.js measures their band on screen: --band-top / --band-h,
   from the frame geometry, the cover crop and the push-in); the kicker starts at the band's top, the two lines fill it */
.beat-end { --by: 0px; top: calc(var(--band-top, 26.5%) + 4px); }
.beat-end .beat-h { font-size: min(clamp(34px, 4.6vw, 76px), calc((var(--band-h, 160px) - 64px) / 2.2)); line-height: 1.06; }
.beat-end .kick { margin-bottom: 14px; }
.beat-end .kick { color: var(--on-dark-k); }
.beat-end .ob { margin-top: 30px; pointer-events: auto; text-shadow: none; background: rgba(20, 17, 14, .5); }   /* ui-polish: the button's own fill (.18 -> .5) over the lit backsplash; the film itself is not darkened */
.beat-end .ob:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
html.js:not(.rm) .beat { will-change: opacity, transform; }
html.js:not(.rm) .beat-end { opacity: 0; visibility: hidden; }
.cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 10px/1 var(--j); letter-spacing: .32em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
.cue::after { content: ''; width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); }
html:not(.js) .cue { display: none; }
@media (max-width: 820px) {
  .beat h1, .beat-h { font-size: clamp(24px, 7vw, 34px); letter-spacing: .08em; }
  .beat-end .beat-h { font-size: min(clamp(22px, 6.4vw, 30px), calc((var(--band-h, 110px) - 40px) / 2.2)); }
  .beat-end .kick { margin-bottom: 10px; font-size: 10px; letter-spacing: .2em; white-space: nowrap; }   /* ui-polish: one line, on the cabinets */
  .beat-end .ob { margin-top: 22px; }
}
/* static film (JS off): frame 1 with the H1. Reduced motion: frame 1 with the H1, then one plain cross-fade to the finished kitchen
   and the end line when the reader scrolls half-way (contractor.js toggles .end); no push-in, no glide */
html:not(.js) .beat-end { display: none; }
html.rm .film { height: 200vh; }
html.rm .k-stage { position: sticky; top: 0; height: var(--stage-h); }
html.rm .k-poster-end, html.rm .beat { transition: opacity .9s ease !important; }
html.rm .beat-end { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s !important; }
html.rm .k-stage.end .k-poster-end, html.rm .k-stage.end .beat-end { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s !important; }
html.rm .k-stage.end .beat-start, html.rm .k-stage.end .cue { opacity: 0; }

/* ---------- sections after the film ---------- */
.s { padding: var(--pad) 8vw; }
.s.full { padding-left: 0; padding-right: 0; }
.s.tight-top { padding-top: 60px; }
.center { text-align: center; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.center.wide { max-width: 1240px; } .center.mid { max-width: 1100px; } .center.narrow { max-width: 1000px; } .center.bleed { max-width: none; }
h2.t { font: 300 clamp(30px, 3.4vw, 52px)/1.15 var(--j); letter-spacing: .12em; text-transform: uppercase; text-wrap: balance; }
p.l { font: 300 19px/1.75 var(--j); color: var(--ink2); max-width: 640px; text-wrap: pretty; }
.small { font: 300 14px/1.6 var(--j); color: var(--dim-t); }

/* the slow reveal: opacity + 24 px as a section enters (only with JS, never with reduced motion) */
html.js:not(.rm) .rv { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
html.js:not(.rm) .rv.in { opacity: 1; transform: none; }

/* half-screen photo splits */
.split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 92vh; }
.split .ph { position: relative; overflow: hidden; background: #e7e1d8; }
.split .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .tx { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px; padding: 100px 7vw; }
.split.rev { grid-template-columns: 1fr 1.15fr; } .split.rev .ph { order: 2; }
.rows { border-top: 1px solid var(--rule); width: 100%; max-width: 520px; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); font: 400 13px/1.4 var(--j); letter-spacing: .24em; text-transform: uppercase; }
.rows li span { font: 300 16px/1.4 var(--j); letter-spacing: 0; text-transform: none; color: var(--ink2); text-align: right; }

/* five ruled columns */
.cols { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 42px; }
.cols li { padding: 40px 26px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.cols li:first-child { border-left: 0; }
.cols i { font: 400 12px/1 var(--j); letter-spacing: .3em; color: var(--dim-t); font-style: normal; }
.cols b { font: 400 18px/1.2 var(--j); letter-spacing: .22em; text-transform: uppercase; }
.cols span { font: 300 16px/1.5 var(--j); color: var(--ink2); }

/* the carousel: one project at a time, the neighbours peek, ‹ › and swipe */
.car { width: 100%; margin-top: 32px; overflow: hidden; }
.track { display: flex; gap: 28px; padding: 0 12vw; transition: transform 1s var(--ease); touch-action: pan-y; }
.track figure { flex: 0 0 76vw; text-align: left; }
.track picture, .track img { display: block; width: 100%; height: min(64vh, 640px); object-fit: cover; background: #e7e1d8; }
.track figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--rule); margin-top: 20px; padding-top: 18px; }
.track figcaption b { font: 400 16px/1.3 var(--j); letter-spacing: .24em; text-transform: uppercase; }
.track figcaption span { font: 300 15px/1.4 var(--j); color: var(--ink2); }
.cnav { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 26px 12vw 0; font: 400 12px/1 var(--j); letter-spacing: .26em; color: var(--dim-t); font-variant-numeric: tabular-nums; }
.cnav button { width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; font: 300 20px/1 var(--j); color: var(--ink); cursor: pointer; transition: border-color .3s; }
.cnav button:hover { border-color: var(--ink); }

/* the example form */
.est { display: grid; grid-template-columns: 1.2fr 1fr; width: 100%; margin-top: 14px; border: 1px solid var(--rule); text-align: left; }
.est .f { padding: 44px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 26px; }
.lab, .est h3 { display: block; margin-bottom: 12px; font: 400 11px/1.4 var(--j); letter-spacing: .3em; text-transform: uppercase; color: var(--dim-t); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 400 12px/1 var(--j); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.est .r { padding: 44px; background: var(--ivory-2); }
.est .r h3 { margin-bottom: 18px; }
.est dl div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); font: 300 16px/1.4 var(--j); }
.est dt { font: 400 12px/1.4 var(--j); letter-spacing: .2em; text-transform: uppercase; color: var(--dim-t); }
.est dd { text-align: right; }

/* Washington: the example footer row */
.wa { margin-top: 22px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px 30px; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 26px 0; font: 400 13px/1.5 var(--j); letter-spacing: .2em; text-transform: uppercase; }
.wa a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 7px; }   /* ui-polish: 44 px target */
.wa a:hover { text-decoration-color: var(--ink); }

/* the one dark band */
.night { background: var(--night); color: #f1ebe1; }
.night .ob:hover { background: #f1ebe1; border-color: #f1ebe1; color: var(--night); }
.night .small { color: #a69d90; }
.night .kick { color: var(--brass-night); }

/* FAQ, collapsed */
.faq { width: 100%; max-width: 900px; margin-top: 42px; border-top: 1px solid var(--rule); text-align: left; }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font: 400 14px/1.5 var(--j); letter-spacing: .22em; text-transform: uppercase; }
.qa summary::after { content: '+'; flex: none; font: 300 22px/1 var(--j); transition: transform .3s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { font: 300 17px/1.75 var(--j); color: var(--ink2); padding: 0 0 28px; max-width: 720px; }
.qa p a { border-bottom: 1px solid var(--brass); }

/* the final CTA + small links */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; margin-top: 30px; font: 400 12px/1 var(--j); letter-spacing: .22em; text-transform: uppercase; }
.links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink2); }
.links a:hover, .trades a:hover { color: var(--ink); }
.trades { font: 300 15px/1.9 var(--j); color: var(--dim-t); max-width: 70ch; }
.trades a { color: var(--ink2); border-bottom: 1px solid var(--rule); }

/* footer: Eliwit's, in the prototype's quiet row */
.foot { border-top: 1px solid var(--rule); padding: 56px 8vw calc(56px + env(safe-area-inset-bottom)); font: 400 11px/1.6 var(--j); letter-spacing: .26em; text-transform: uppercase; color: var(--dim-t); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 18px 30px; flex-wrap: wrap; }
.foot-row + .foot-row { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.foot-wm { font: 600 22px/1 var(--brand); letter-spacing: -.04em; text-transform: none; color: var(--ink); }
.foot-links span, .foot-links nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .split, .split.rev { grid-template-columns: 1fr; min-height: 0; }
  .split .ph { min-height: 52vh; } .split.rev .ph { order: 0; }
  .split .tx { padding: 70px 22px; }
  .cols { grid-template-columns: 1fr; }
  .cols li { border-left: 0; border-top: 1px solid var(--rule); padding: 26px 4px; }
  .cols li:first-child { border-top: 0; }
  .track { padding: 0 22px; gap: 14px; }
  .track figure { flex-basis: 84vw; }
  .track picture, .track img { height: 52vh; }
  .track figcaption { flex-direction: column; gap: 6px; }
  .cnav { padding: 20px 22px 0; }
  .est { grid-template-columns: 1fr; }
  .est .f { border-right: 0; border-bottom: 1px solid var(--rule); padding: 26px; }
  .est .r { padding: 26px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1100px) and (min-width: 821px) { .cols li { padding: 32px 16px; } .cols b { letter-spacing: .14em; font-size: 16px; } }

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