:root {
  --ground: #fdfbfb;
  --surface: #faf0ed;
  --tint: #fee0d9;
  --tint2: #fdbbac;
  --tint3: #ec8e78;
  --ink: #291814;
  --muted: #5f4a45;
  --line: #e4d8d5;
  --brand: #c7462b;
  --brand-deep: #a82607;
  --brand-text: #c03f24;
  --on-brand: #ffffff;
  --on-brand-soft: #ffffff;
  --stripe: #fab27b;
  --h1d: 92.0px;
  --h1v: 6.389vw;
  --h1m: 50.0px;
}
/* v3 looks: swatch card (painters), van lettering (reformas, carpenters, plumbers), works sign (locksmiths, electricians).
   Colours above come from build_v3.py (one brand hue, contrast checked). Light ground: the owner opens it on a phone in daylight. */
[data-look="swatch"] { --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; --body: "Hanken Grotesk", system-ui, sans-serif; --dw: 800; --track: -0.035em; --stretch: 100%; --r: 14px; }
[data-look="van"] { --display: "Archivo", system-ui, sans-serif; --body: "Archivo", system-ui, sans-serif; --dw: 850; --track: -0.025em; --stretch: 125%; --r: 6px; }
[data-look="sign"] { --display: "Overpass", system-ui, sans-serif; --body: "Overpass", system-ui, sans-serif; --dw: 800; --track: -0.02em; --stretch: 100%; --r: 3px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; accent-color: var(--brand); scrollbar-color: var(--brand) var(--surface); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--body); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: var(--dw); font-stretch: var(--stretch); letter-spacing: var(--track); line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--h1m); overflow-wrap: break-word; }
h2 { font-size: clamp(32px, 4.4vw, 60px); margin-bottom: clamp(28px, 4vw, 52px); overflow-wrap: break-word; hyphens: auto; }
h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; }
:root { --gut: clamp(20px, 4vw, 48px); }
.shell { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); box-sizing: content-box; }
/* sections carry their own inset on all four sides (the impeccable detector reads padding side by side) */
main > section > .shell { padding-inline: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; padding: 12px 16px; background: var(--ink); color: var(--ground); }
.ic { width: 20px; height: 20px; flex: none; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border: 2px solid transparent; border-radius: var(--r); font: 650 17px/1 var(--body); text-decoration: none; transition: background-color .2s, color .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-line-light { border-color: var(--on-brand); color: var(--on-brand); }
.btn-line-light:hover { background: var(--on-brand); color: var(--brand); }
.btn-s { min-height: 44px; padding: 10px 18px; font-size: 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); text-decoration: none; min-width: 0; }
.logo { width: auto; height: auto; max-height: 52px; max-width: min(240px, 52vw); object-fit: contain; }
.logo-plate { padding: 8px 12px; background: var(--brand); border-radius: var(--r); }
.logo-boxed { border-radius: var(--r); }
.mono { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--brand); color: var(--on-brand); border-radius: var(--r); font: var(--dw) 18px/1 var(--display); font-stretch: var(--stretch); }
.wordmark { font: var(--dw) 20px/1.1 var(--display); font-stretch: var(--stretch); letter-spacing: var(--track); }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 16px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--brand-text); text-decoration: underline; }

/* opening screen: words on a solid field, the photo bright beside them */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: min(calc(100svh - 76px), 860px); overflow: clip; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(40px, 6vw, 96px) clamp(20px, 4.5vw, 72px); }
.on-field .hero-copy { background: var(--brand); color: var(--on-brand); }
.lede { max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; }
.on-field .lede, .on-field .where { color: var(--on-brand-soft); }
.where { font-size: 16px; color: var(--muted); }
.hero-visual { position: relative; min-height: 420px; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
[data-look="swatch"] h1 { color: var(--brand-text); }

/* fan of their photos (a paint fan deck for painters, a layered collage or a pinned row for the others) */
.fan-field { position: absolute; inset: 0; overflow: clip; background: var(--tint); }
[data-look="van"] .fan-field, [data-look="sign"] .fan-field { background: var(--surface); }
.fan { position: absolute; inset: 8% 4% 18%; }
.leaf { position: absolute; left: 50%; bottom: 0; width: min(48%, 380px); aspect-ratio: 3 / 4; margin-left: calc(min(48%, 380px) / -2); padding: 8px 8px 30px; background: #fff; border-radius: var(--r); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45), 0 2px 6px rgb(0 0 0 / .12); transform-origin: 50% 118%; transform: rotate(var(--a, 0deg)) translateX(var(--x, 0)); }
.leaf img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 6px); }
.leaf-0-3, .leaf-0-5 { z-index: 5; }
.leaf-1-3 { --a: -14deg; z-index: 3; } .leaf-2-3 { --a: 14deg; z-index: 4; }
.leaf-1-5 { --a: -10deg; z-index: 4; } .leaf-2-5 { --a: 10deg; z-index: 4; } .leaf-3-5 { --a: -20deg; z-index: 2; } .leaf-4-5 { --a: 20deg; z-index: 2; }
[data-look="van"] .leaf, [data-look="sign"] .leaf { top: 50%; bottom: auto; translate: 0 -50%; }
[data-look="van"] .leaf { padding: 0; transform-origin: 50% 50%; }
[data-look="van"] .leaf img { border-radius: var(--r); }
[data-look="van"] .leaf { width: min(38%, 300px); margin-left: calc(min(38%, 300px) / -2); }
[data-look="van"] .leaf-1-3, [data-look="van"] .leaf-1-5 { --a: -3deg; --x: -58%; } [data-look="van"] .leaf-2-3, [data-look="van"] .leaf-2-5 { --a: 3deg; --x: 58%; }
[data-look="van"] .leaf-3-5 { --a: -2deg; --x: -104%; } [data-look="van"] .leaf-4-5 { --a: 2deg; --x: 104%; }
[data-look="sign"] .leaf { padding: 6px; border-radius: var(--r); transform-origin: 50% 50%; }
[data-look="sign"] .leaf-1-3, [data-look="sign"] .leaf-1-5 { --x: -104%; } [data-look="sign"] .leaf-2-3, [data-look="sign"] .leaf-2-5 { --x: 104%; }
[data-look="sign"] .leaf-3-5, [data-look="sign"] .leaf-4-5 { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .leaf { animation: fan-open 1.15s cubic-bezier(.16, 1, .3, 1) .2s both; }
  @keyframes fan-open { from { transform: rotate(0deg) translateX(0); } }
}

/* van: a livery stripe drawn across the bottom, like the side of a work van */
[data-look="van"] .hero-copy { padding-bottom: clamp(110px, 10vw, 140px); }
.livery { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; width: 100%; height: 96px; pointer-events: none; }
.livery path { fill: none; stroke-linecap: round; }
.livery .l1 { stroke: var(--stripe); stroke-width: 16; }
.livery .l2 { stroke: var(--on-brand); stroke-width: 5; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .livery path { stroke-dasharray: 1700; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) .25s both; }
  .livery .l2 { animation-delay: .45s; }
  @keyframes draw { from { stroke-dashoffset: 1700; } to { stroke-dashoffset: 0; } }
}

/* works sign: ruled rows like the board outside a building site */
.spec { margin: 8px 0 0; max-width: 520px; }
.spec .row { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; }
.spec .row::before { position: absolute; left: 0; right: 0; top: 0; height: 2px; content: ""; background: var(--on-brand-soft); transform-origin: left; }
.spec dt { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.spec dd { margin: 0; font-size: 17px; color: var(--on-brand-soft); }
.spec dd a { color: var(--on-brand); font-weight: 800; font-size: 20px; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .spec .row::before { animation: rule .9s cubic-bezier(.16, 1, .3, 1) both; }
  .spec .row:nth-child(2)::before { animation-delay: .15s; } .spec .row:nth-child(3)::before { animation-delay: .3s; }
  @keyframes rule { from { transform: scaleX(0); } }
}
[data-look="sign"] h2::before { display: block; width: 56px; height: 6px; margin-bottom: 20px; content: ""; background: var(--brand); }
[data-look="van"] h2, [data-look="van"] .big-tel { font-stretch: 118%; }

/* paint chips: their services on tints of their colour */
.chips { padding: 36px 20px 0; }
.chip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.chip { display: grid; grid-template-rows: 88px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.chip:hover { transform: translateY(-4px); }
.chip-n { padding: 14px 16px 16px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.c-tint { background: var(--tint); } .c-tint2 { background: var(--tint2); } .c-tint3 { background: var(--tint3); } .c-brand { background: var(--brand); } .c-brand-deep { background: var(--brand-deep); }

/* their work */
/* fixed steps, not clamp(): the impeccable detector reads padding values literally */
.work, .services, .zona, .faq, .contact, .band { padding: 72px 20px; }
.window { padding: 0 20px; }
@media (min-width: 700px) { .work, .services, .zona, .faq, .contact, .band { padding: 96px 32px; } .chips { padding: 48px 32px 0; } .window { padding: 0 32px; } }
@media (min-width: 1100px) { .work, .services, .zona, .faq, .contact { padding: 128px 48px; } .band { padding: 112px 48px; } .chips { padding: 64px 48px 0; } .window { padding: 0 48px; } }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 236px); grid-auto-flow: dense; gap: 10px; }
.g { overflow: hidden; border-radius: calc(var(--r) * .6); background: var(--surface); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.g:hover img { transform: scale(1.04); }
.gw { grid-column: span 2; } .gt { grid-row: span 2; }

/* one sentence of theirs on a field of their colour */
.band { background: var(--brand); color: var(--on-brand); }
.band blockquote { margin: 0; max-width: 30ch; }
.band blockquote p { font: var(--dw) clamp(26px, 3.2vw, 46px)/1.12 var(--display); font-stretch: var(--stretch); letter-spacing: var(--track); }
.band blockquote footer { margin-top: 20px; font-size: 16px; color: var(--on-brand-soft); }
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.proof li { padding-top: 16px; border-top: 2px solid var(--on-brand-soft); font-size: 18px; line-height: 1.4; }

/* services: their photo beside their words */
.svc-list { display: grid; gap: clamp(40px, 6vw, 80px); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc:nth-child(even) .svc-photo { order: 2; }
.svc-photo { max-width: 560px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.svc:nth-child(even) .svc-photo { justify-self: end; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-text p { max-width: 44ch; margin-top: 16px; font-size: 18px; color: var(--muted); }
.svc-list.no-photo { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.no-photo .svc { display: block; padding: 24px 0; border-top: 1px solid var(--line); }
.more { margin-top: clamp(32px, 4vw, 48px); font-size: 17px; color: var(--muted); }

/* photo window: their photo moving slower than the page, a plate of their colour with their words */
.window { position: relative; display: grid; align-items: end; min-height: min(80vh, 760px); overflow: clip; view-timeline: --win block; }
.window-bg { position: absolute; inset: -16% 0; z-index: 0; }
.window-bg img { width: 100%; height: 100%; object-fit: cover; }
.window-copy { position: relative; z-index: 1; width: 100%; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.plate { display: inline-block; max-width: 22ch; padding: 22px 28px; background: var(--brand); color: var(--on-brand); border-radius: var(--r); font: var(--dw) clamp(24px, 3vw, 42px)/1.1 var(--display); font-stretch: var(--stretch); letter-spacing: var(--track); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .window-bg { animation: pan linear both; animation-timeline: --win; animation-range: cover; }
  }
}
@keyframes pan { from { transform: translateY(-12%); } to { transform: translateY(12%); } }

/* where they work */
.zona { border-top: 1px solid var(--line); }
.zona-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.places { margin: 0; padding: 0; list-style: none; }
.places li { padding: 10px 0 12px; border-bottom: 1px solid var(--line); font: var(--dw) clamp(24px, 2.8vw, 40px)/1.15 var(--display); font-stretch: var(--stretch); letter-spacing: var(--track); }
.places li:first-child { color: var(--brand-text); }

/* questions */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-size: 19px; font-weight: 650; line-height: 1.35; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 18px; height: 18px; flex: none; }
.qa summary i::before, .qa summary i::after { position: absolute; left: 0; top: 8px; width: 18px; height: 2px; content: ""; background: var(--brand-text); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.qa summary i::after { transform: rotate(90deg); }
.qa details[open] summary i::after { transform: rotate(0deg); }
.qa details p { max-width: 60ch; padding: 0 4px 24px; font-size: 17px; color: var(--muted); }

/* contact */
.contact { background: var(--ground); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.big-tel { display: inline-block; margin-bottom: 24px; color: var(--brand-text); font: var(--dw) clamp(40px, 6vw, 84px)/1 var(--display); letter-spacing: var(--track); text-decoration: none; }
.line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; font-size: 17px; }
.line span:first-child { min-width: 72px; color: var(--muted); }
.contact .actions { margin-top: 28px; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.contact-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* footer and phone bar */
.foot { padding-top: 48px; padding-bottom: 48px; background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .logo { max-height: 64px; }
.foot .logo-plate { padding: 10px 14px; background: var(--brand); border-radius: var(--r); }
.foot p { font-size: 16px; }
.foot .note { margin-left: auto; color: var(--muted); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--line); }
.bar .btn { min-height: 50px; padding: 12px 14px; }

/* reveal: their photos unveil as they arrive (from an already visible state) */
.js .rv { transition: clip-path 1s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); }
.js .rv:not(.in) { clip-path: inset(0 0 16% 0); transform: translateY(20px); }

/* sized for a 1440 screen and scaled down with the window, so the longest word never breaks */
@media (min-width: 861px) { h1 { font-size: min(var(--h1d), var(--h1v)); } }
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { order: -1; min-height: 0; height: 32svh; }
  .hero-fan .hero-visual { height: 340px; }
  .hero-copy { gap: 18px; padding: 28px 20px 36px; }
  [data-look="van"] .hero-copy { padding-bottom: 96px; }
  .livery { height: 64px; bottom: 10px; }
  .leaf { width: min(46%, 230px); margin-left: calc(min(46%, 230px) / -2); }
  .hero-fan .fan { inset: 6% 3% 8%; }
  [data-look="van"] .leaf { width: 40%; margin-left: -20%; }
  [data-look="sign"] .leaf { width: 34%; margin-left: -17%; }
  .zona-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .svc:nth-child(even) .svc-photo { order: 0; justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 8px; }
  .chip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chip { grid-template-rows: 52px auto; }
  .chip-n { padding: 12px; font-size: 15px; }
  .gt { grid-row: span 2; }
}
@media (max-width: 640px) {
  .btn-s { width: 48px; padding: 0; }
  .btn-s span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-in { min-height: 64px; gap: 12px; }
  .logo { max-height: 42px; }
  .wordmark { font-size: 17px; }
  .bar { display: grid; }
  body { padding-bottom: 76px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .foot .note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv:not(.in) { clip-path: none; transform: none; }
}
