/* Premier Brushworks — site styles. Mobile first. Colours are theirs: brown #593E31, tan #C1AA98, cream #FAF4F0. */
:root {
  --paper: #ffffff;
  --cream: #faf4f0;
  --ink: #2b211c;
  --ink-2: #5d4f48;
  --brown: #593e31;
  --brown-deep: #46301f;
  --tan: #c1aa98;
  --tan-line: #e6dad0;
  --print: #36261e;          /* the "brownprint" ground for drawings */
  --print-line: #f2e6da;
  --print-dim: #b9a28f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --pad: clamp(20px, 6vw, 72px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brown); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-deep); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 9vw, 4.7rem); }
h2 { font-size: clamp(1.85rem, 6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.kicker { font: 600 .74rem/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--brown); margin: 0 0 1rem; }
.lede { font-family: var(--serif); font-size: clamp(1.18rem, 3.6vw, 1.45rem); line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.35em; border-radius: 999px;
  font: 600 .98rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--brown); background: var(--brown); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--brown-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--brown); }
.btn--ghost:hover { background: var(--cream); color: var(--brown-deep); }
.btn--light { background: var(--print-line); border-color: var(--print-line); color: var(--print); }
.btn--light:hover { background: #fff; color: var(--print); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 2px; }
.textlink:hover { border-color: var(--brown); }

/* The motif: their vertical-joint (VJ) board, as a quiet strip of grooves */
.vj { height: 34px; background: repeating-linear-gradient(90deg, transparent 0 21px, var(--tan-line) 21px 22px); position: relative; }
.vj::after { content: ""; position: absolute; inset: 0 auto 0 calc(50% - 11px); width: 22px; background: var(--cream); border-inline: 1px solid var(--tan); }
.vj--print { background: repeating-linear-gradient(90deg, transparent 0 21px, rgba(242, 230, 218, .14) 21px 22px); }
.vj--print::after { background: rgba(242, 230, 218, .1); border-color: rgba(242, 230, 218, .3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--tan-line); box-shadow: 0 6px 24px -18px rgba(43, 33, 28, .5); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 150px; height: auto; transition: width .3s var(--ease); }
.site-header.is-scrolled .brand img { width: 132px; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-desktop a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { border-bottom-color: var(--brown); color: var(--brown); }
.hdr-phone { display: none; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr-quote { display: none; min-height: 42px; padding: .6em 1.1em; font-size: .9rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .bars { width: 22px; height: 12px; position: relative; border-block: 1.5px solid var(--ink); }
.menu summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ink); transform: translateY(-50%); }
.menu[open] summary .bars { border-color: transparent; }
.menu[open] summary .bars::after { transform: rotate(45deg); }
.menu[open] summary .bars::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--ink); transform: rotate(-45deg); }
.menu ul {
  position: absolute; right: calc(-1 * var(--pad) + 8px); top: calc(100% + 10px); width: min(320px, 88vw);
  list-style: none; margin: 0; padding: 10px 0; background: #fff; border: 1px solid var(--tan-line); border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(43, 33, 28, .45);
}
.menu li a { display: block; padding: 12px 22px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.menu li a[aria-current="page"] { color: var(--brown); }
.menu li a:hover { background: var(--cream); }
.menu li.menu-call a { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--brown); border-top: 1px solid var(--tan-line); margin-top: 6px; padding-top: 16px; }
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
  .hdr-phone, .hdr-quote { display: inline-flex; }
  .brand img { width: 172px; }
  .site-header.is-scrolled .brand img { width: 150px; }
  .site-header .wrap { min-height: 76px; gap: 28px; }
}

/* Phone bar: the number never leaves the screen */
.phonebar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(54, 38, 30, .96);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transition: transform .4s var(--ease), left .4s var(--ease), right .4s var(--ease);
}
.phonebar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .97rem; white-space: nowrap; }
.phonebar .pb-call { background: var(--print-line); color: var(--print); }
.phonebar .pb-quote { color: var(--print-line); }
.phonebar svg { width: 18px; height: 18px; }
.phonebar.is-compact { left: auto; }
.phonebar.is-compact .pb-quote { display: none; }
.phonebar.is-compact .pb-call { padding-inline: 18px; }
body { padding-bottom: 84px; }
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .phonebar { left: auto; right: 24px; bottom: 24px; transform: translateY(160%); }
  .phonebar .pb-quote { display: none; }
  .phonebar .pb-call { padding-inline: 20px; }
  .phonebar.is-shown { transform: none; }
}

/* Sections */
.section { padding-block: clamp(48px, 10vw, 128px); }
.section--cream { background: var(--cream); }
.section--tight { padding-block: clamp(40px, 7vw, 88px); }
.team-act { margin-top: 24px; }
.section-head { max-width: 40rem; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--ink-2); }

/* Home: opening */
.opening { padding-top: clamp(20px, 4vw, 56px); padding-bottom: clamp(40px, 7vw, 96px); position: relative; overflow: hidden; }
.opening .wrap { display: grid; gap: 18px; grid-template-areas: "text" "figure" "act"; }
.opening-text { grid-area: text; }
.opening-figure { grid-area: figure; }
.opening-act { grid-area: act; display: grid; gap: 14px; }
.opening h1 { margin-bottom: .2em; }
.opening .kicker { margin-bottom: .7rem; }
.opening .answer { font-family: var(--serif); font-size: clamp(1.12rem, 3.4vw, 1.42rem); line-height: 1.45; color: var(--ink-2); max-width: 32rem; margin: 0; }
.opening .answer strong { color: var(--ink); font-weight: 400; }
.opening .btn-row { margin-top: 6px; }
.opening .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .86rem; color: var(--ink-2); }
.opening .facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border: 1px solid var(--brown); transform: rotate(45deg) translateY(-2px); }
.opening-figure { margin: 0 calc(-1 * var(--pad)); position: relative; }
@media (min-width: 900px) {
  .opening .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "text figure" "act figure"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 80px); row-gap: 28px; }
  .opening-figure { margin: 0; }
  .opening-text { align-self: end; padding-top: 48px; }
  .opening-act { align-self: start; }
  .opening .bg-word { display: block; }
}
/* With the script, the drawing waits until it is in view before it is painted in */
.js .reveal:not(.play) *, .js .reveal:not(.play) .drawing { animation-play-state: paused; }
.bg-word { display: none; position: absolute; right: -2vw; bottom: -0.18em; font: 400 clamp(8rem, 17vw, 16rem)/1 var(--serif); color: var(--cream); letter-spacing: -.03em; z-index: -1; pointer-events: none; user-select: none; }

/* Drawn, then painted (the first-screen moment) */
.reveal { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--print); }
@media (min-width: 900px) { .reveal { border-radius: 4px; box-shadow: 0 40px 80px -48px rgba(43, 33, 28, .6); } }
.reveal img, .reveal .drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal .drawing { background: var(--print); clip-path: inset(0 0 0 100%); }
.reveal .edge { position: absolute; top: 0; bottom: 0; left: 100%; width: 10px; margin-left: -5px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.55) 45%, rgba(255,255,255,.95) 50%, rgba(193,170,152,.6) 56%, rgba(255,255,255,0) 100%); }
.drawing .ln { fill: none; stroke: var(--print-line); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.drawing .ln-b { stroke-width: 6; }
.drawing .ln-l { stroke: var(--print-dim); stroke-width: 2.4; }
.drawing .ln-d { stroke: var(--print-dim); stroke-width: 2.4; stroke-dasharray: 14 12; }
.drawing .tx { fill: var(--print-line); font: 600 38px/1 var(--sans); letter-spacing: .14em; }
.drawing .tx-s { fill: var(--print-dim); font: 500 30px/1 var(--sans); letter-spacing: .16em; }
.drawing .tx-serif { fill: var(--print-line); font: 400 64px/1 var(--serif); letter-spacing: 0; }
.drawing .fill-print { fill: var(--print); }
.reveal figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: end;
  font: 500 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.reveal figcaption span:last-child { text-align: right; }

/* The sequence runs once, on load, with CSS alone */
@media (prefers-reduced-motion: no-preference) {
  .reveal .drawing { clip-path: inset(0 0 0 0); animation: wipe 2.2s cubic-bezier(.55, .05, .35, 1) 2.1s forwards; }
  .reveal .edge { animation: edge 2.2s cubic-bezier(.55, .05, .35, 1) 2.1s forwards; }
  .reveal .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s var(--ease) forwards; }
  .reveal .draw.d2 { animation-delay: .25s; }
  .reveal .draw.d3 { animation-delay: .5s; }
  .reveal .draw.d4 { animation-delay: .75s; }
  .reveal .fade { opacity: 0; animation: fade .8s ease forwards; animation-delay: .9s; }
  .reveal .fade.f2 { animation-delay: 1.3s; }
  .reveal figcaption { opacity: 0; animation: fade .8s ease 4.2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes edge { 0% { left: 0; opacity: 1; } 96% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Scroll arrival (added by script only, so nothing hides without it) */
.js .arrive { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .arrive.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .arrive { opacity: 1; transform: none; transition: none; } }

/* Swipe rows */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--pad) 18px; margin-inline: calc(-1 * var(--pad)); scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--tan) transparent; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: 42%; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 2 * var(--pad) - 42px) / 3.6); } }
.rail-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.rail-count { font: 500 .8rem var(--mono); letter-spacing: .08em; }

/* Work spread (home) */
.plate { margin: 0; }
.plate .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); border-radius: 3px; }
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.plate:hover img { transform: scale(1.03); }
.plate figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding-top: 12px; font-size: .92rem; color: var(--ink-2); }
.plate figcaption b { font: 500 .78rem var(--mono); color: var(--brown); padding-top: 3px; }
.plate figcaption span { color: var(--ink); }

/* Pull-quote and reviews */
.pull { margin: 0 0 clamp(22px, 5vw, 48px); max-width: 46rem; }
.pull blockquote { margin: 0; font: 400 clamp(1.7rem, 5.6vw, 2.9rem)/1.18 var(--serif); color: var(--ink); text-indent: -.42em; }
.pull figcaption { margin-top: 16px; font-size: .92rem; color: var(--ink-2); }
.review { margin: 0; background: #fff; border: 1px solid var(--tan-line); border-radius: 14px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.section--cream .review { border-color: #eadfd5; }
.review blockquote { margin: 0; font: 400 1.04rem/1.55 var(--serif); color: var(--ink); }
.review figcaption { margin-top: auto; font-size: .86rem; color: var(--ink-2); }
.review figcaption b { display: block; color: var(--ink); font-weight: 600; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; fill: var(--brown); }
.proofline { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin-top: 20px; font-size: .92rem; color: var(--ink-2); }
.proofline strong { color: var(--ink); font-weight: 600; }

/* Service cards */
.svc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border-radius: 4px; }
.svc .ph { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--print); }
.svc .ph img, .svc .ph svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .ph img { transform: scale(1.04); }
.svc h3 { margin: 14px 0 6px; }
.svc p { font-size: .96rem; color: var(--ink-2); margin: 0 0 10px; }
.svc .more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--brown); }
.svc:hover { color: var(--ink); }

/* Team */
.team { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.team .ph { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 4 / 3; overflow: hidden; }
.team .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.people { display: flex; gap: 28px; margin: 18px 0 22px; padding: 0; list-style: none; }
.people li { font-size: .9rem; color: var(--ink-2); }
.people b { display: block; font: 400 1.25rem/1.2 var(--serif); color: var(--ink); }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--tan-line); border: 1px solid var(--tan-line); border-radius: 12px; overflow: hidden; margin: 0; }
.creds div { background: #fff; padding: 14px 16px; }
.creds dt { font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.creds dd { margin: 4px 0 0; font: 400 1.05rem/1.3 var(--serif); }
@media (min-width: 900px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team .ph { margin: 0; border-radius: 3px; aspect-ratio: 4 / 4.4; }
}

/* Closing */
.closing { text-align: left; }
.closing h2 { max-width: 15ch; }
.closing .btn-row { margin-top: 24px; }
.hours { font-size: .92rem; color: var(--ink-2); margin-top: 18px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--tan-line); padding: 44px 0 28px; font-size: .9rem; color: var(--ink-2); }
.site-footer .grid { display: grid; gap: 26px 20px; grid-template-columns: 1fr 1fr; }
.site-footer .grid > :first-child, .site-footer .grid > :last-child { grid-column: 1 / -1; }
.site-footer .grid > :first-child p { margin: 12px 0 0; max-width: 34rem; }
.site-footer img { width: 150px; }
.site-footer h2 { font: 600 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brown); text-decoration: underline; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--tan-line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; }
.site-footer .credit { margin-left: auto; }
.site-footer .credit a { color: var(--ink-2); }
@media (min-width: 800px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .site-footer .grid > :first-child, .site-footer .grid > :last-child { grid-column: auto; } .site-footer img { width: 170px; } }

/* Inner pages */
.page-head { padding-block: clamp(36px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.2rem, 7.6vw, 4.2rem); max-width: 18ch; }
.page-head .lede { max-width: 38rem; }
.crumbs { font-size: .84rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.hero-photo { margin: 0 0 clamp(36px, 6vw, 72px); }
.hero-photo .ph { aspect-ratio: 16 / 10; overflow: hidden; margin-inline: calc(-1 * var(--pad)); background: var(--print); }
.hero-photo img, .hero-photo svg { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-photo .ph { margin-inline: 0; border-radius: 4px; aspect-ratio: 21 / 9; } }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }
.aside-card { background: var(--cream); border-radius: 14px; padding: 26px; }
.aside-card h2 { font-size: 1.5rem; }
.aside-card p:last-child { margin-bottom: 0; }
.break-out { margin: clamp(28px, 5vw, 56px) calc(-1 * var(--pad)); }
.break-out img { width: 100%; }
@media (min-width: 900px) { .break-out { margin-inline: calc(-1 * clamp(40px, 8vw, 140px)) 0; } .break-out img { border-radius: 3px; } }

/* Services index */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tan-line); }
.svc-list > li { border-bottom: 1px solid var(--tan-line); }
.svc-list details summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.2em 1fr 24px; align-items: baseline; gap: 10px; padding: 20px 0; }
.svc-list details summary::-webkit-details-marker { display: none; }
.svc-list summary b { font: 500 .8rem var(--mono); color: var(--brown); }
.svc-list summary h2 { font-size: clamp(1.35rem, 4.4vw, 2rem); margin: 0; }
.svc-list summary .plus { width: 18px; height: 18px; position: relative; align-self: center; }
.svc-list summary .plus::before, .svc-list summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--brown); transition: transform .3s var(--ease); }
.svc-list summary .plus::after { transform: rotate(90deg); }
.svc-list details[open] summary .plus::after { transform: rotate(0); }
.svc-list .body { padding: 0 0 26px 2.2em; display: grid; gap: 18px; }
.svc-list .body p { color: var(--ink-2); margin: 0; max-width: 38rem; }
.svc-list .body img { border-radius: 3px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; max-width: 560px; }
@media (min-width: 900px) { .svc-list .body { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tan); background: #fff; color: var(--ink); font: 500 .9rem var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.gallery { columns: 2 160px; column-gap: 12px; }
.gallery figure { break-inside: avoid; margin: 0 0 12px; }
.gallery img { width: 100%; border-radius: 3px; background: var(--cream); }
.gallery figcaption { font-size: .82rem; color: var(--ink-2); padding: 6px 2px 0; }
.gallery figure[hidden] { display: none; }
@media (min-width: 900px) { .gallery { columns: 3 240px; column-gap: 18px; } .gallery figure { margin-bottom: 18px; } }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #cdbcae; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; border-color: var(--brown); }
.form .note { font-size: .84rem; color: var(--ink-2); margin: 0; }
.form .two { display: grid; gap: 14px; }
@media (min-width: 560px) { .form .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Quote drawer: rises over the page */
.drawer { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 640px; max-height: 92vh; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink); box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .5); }
.drawer::backdrop { background: rgba(43, 33, 28, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: rise .45s var(--ease); }
.drawer::backdrop { animation: fade .35s ease; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer::backdrop { animation: none; } }
.drawer .vj { height: 18px; border-radius: 22px 22px 0 0; }
.drawer-inner { padding: 6px clamp(20px, 5vw, 36px) 28px; overflow: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px; }
.drawer-top h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 10px 0 4px; }
.drawer-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tan-line); background: #fff; cursor: pointer; display: grid; place-items: center; margin-top: 6px; }
.drawer-close svg { width: 16px; height: 16px; stroke: var(--ink); }
.drawer .carried { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); margin: 4px 0 6px; }
.drawer .carried b { color: var(--brown); font-weight: 600; }
@media (min-width: 700px) { .drawer { margin: auto; border-radius: 22px; } .drawer .vj { border-radius: 22px 22px 0 0; } }

/* Job sheet tool (brownprint) — see js/job-sheet.js */
.sheet-sec { background: var(--print); color: var(--print-line); }
.sheet-sec h2, .sheet-sec h3 { color: #fff; }
.sheet-sec .kicker { color: var(--tan); }
.sheet-sec .section-head p { color: #d9c8b9; }
.sheet { display: grid; gap: 22px; }
.sheet-draw { margin: 0 calc(-1 * var(--pad)); position: relative; background: #2e2019; border-block: 1px solid rgba(242, 230, 218, .14); }
.sheet-draw svg { width: 100%; height: auto; }
.sheet-controls { display: grid; gap: 18px; }
.sheet-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sheet-controls legend { font: 600 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tan); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(242, 230, 218, .32); color: var(--print-line); font-size: .92rem; transition: background .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--print-line); color: var(--print); border-color: var(--print-line); }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chip input[type="checkbox"] + span::before { content: ""; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 2px; }
.chip input[type="checkbox"]:checked + span::before { background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%); }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(242, 230, 218, .32); border-radius: 999px; }
.stepper button { width: 46px; height: 44px; border: 0; background: none; color: var(--print-line); font-size: 1.3rem; cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: rgba(242, 230, 218, .1); }
.stepper output { min-width: 7.5em; text-align: center; font-size: .95rem; }
.titleblock { border: 1px solid rgba(242, 230, 218, .4); display: grid; grid-template-columns: 1fr; font-size: .9rem; margin: 0; }
.titleblock div { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 9px 12px; border-top: 1px solid rgba(242, 230, 218, .22); }
.titleblock div:first-child { border-top: 0; }
.titleblock dt { font: 600 .68rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.titleblock dd { margin: 0; color: #fff; }
.involves { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; color: #e3d4c6; }
.involves li { padding-left: 18px; position: relative; }
.involves li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; border-top: 1px solid var(--tan); }
.involves b { color: #fff; font-weight: 600; }
.sheet-out { display: grid; gap: 16px; }
.sheet-sec .btn--ghost { color: var(--print-line); border-color: rgba(242, 230, 218, .5); }
.sheet-sec .btn--ghost:hover { background: rgba(242, 230, 218, .1); color: #fff; }
.sheet-sec a:not(.btn) { color: var(--print-line); }
.sheet-noscript { color: #d9c8b9; }
.js .sheet-noscript { display: none; }
.sheet-controls, .sheet-out { display: none; }
.js .sheet-controls, .js .sheet-out { display: grid; }
@media (max-width: 959px) {
  .sheet { gap: 18px; }
  .sheet-controls { gap: 14px; }
  .sheet-controls legend { margin-bottom: 8px; }
  .sheet-controls .chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); margin-inline: calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .sheet-out .titleblock, .sheet-out .sheet-call { display: none; }
  .sheet-controls .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .chip span { white-space: nowrap; min-height: 40px; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div { grid-template-columns: 1fr; gap: 2px; border-left: 1px solid rgba(242, 230, 218, .22); }
  .titleblock div:nth-child(odd) { border-left: 0; }
  .titleblock div:nth-child(2) { border-top: 0; }
  .titleblock div:last-child { grid-column: 1 / -1; border-left: 0; }
  .involves { font-size: .88rem; }
  .sheet-sec .vj { display: none; }
}
@media (min-width: 960px) {
  .sheet { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; gap: 40px; }
  .sheet-draw { margin: 0; border: 1px solid rgba(242, 230, 218, .16); border-radius: 4px; position: sticky; top: 96px; grid-row: span 2; }
}
/* drawing marks inside the sheet svg */
.js-sheet .l { fill: none; stroke: var(--print-line); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.js-sheet .lt { fill: none; stroke: var(--print-dim); stroke-width: 1; }
.js-sheet .dash { fill: none; stroke: var(--print-dim); stroke-width: 1; stroke-dasharray: 5 4; }
.js-sheet .t { fill: var(--print-dim); font: 600 10px var(--sans); letter-spacing: .14em; }
.js-sheet .tb { fill: var(--print-line); font: 600 11px var(--sans); letter-spacing: .14em; }
.js-sheet .gl { fill: #2e2019; stroke: var(--print-line); stroke-width: 1.6; transition: stroke .3s; }
.js-sheet .mask { fill: #2e2019; stroke: none; }
.js-sheet .on .gl { stroke: #fff; stroke-width: 2.2; }
.js-sheet .surf { fill: transparent; transition: fill .45s var(--ease); }
.js-sheet .on .surf { fill: url(#wash); }
.js-sheet .on .l { stroke: #fff; }
.js-sheet .tag { opacity: 0; transition: opacity .4s var(--ease); }
.js-sheet .on .tag, .js-sheet .on.tag { opacity: 1; }
.js-sheet .tag circle { fill: var(--print-line); }
.js-sheet .tag text { fill: var(--print); font: 700 10px var(--sans); }
.js-sheet .addon { opacity: 0; transition: opacity .45s var(--ease); }
.js-sheet .addon.on { opacity: 1; }
.js-sheet .house { transition: opacity .35s ease; }
@media (prefers-reduced-motion: reduce) { .js-sheet * { transition: none !important; } }

.ph img[src$="-drawing.svg"] { object-fit: contain; }

/* A job's picture grows into the top of its own page (cross-page view transitions; plain navigation elsewhere) */
.vt-int { view-transition-name: svc-int; }
.vt-roof { view-transition-name: svc-roof; }
.vt-epoxy { view-transition-name: svc-epoxy; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } ::view-transition-group(*) { animation: none; } }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; }
.lost svg { max-width: 520px; margin-bottom: 28px; }

/* Phone: keep the home page short (about seven screens). Kept last so it wins. */
@media (max-width: 899px) {
  .hero-call, .hide-phone, .site-footer .grid > :first-child p { display: none; }
  .section { padding-block: 40px; }
  .opening { padding-bottom: 28px; }
  .opening .facts { font-size: .78rem; gap: 4px 12px; }
  .opening .facts li::before { width: 6px; height: 6px; margin-right: 6px; }
  .creds div { padding: 9px 13px; }
  .creds dd { font-size: 1rem; }
  .svc p { display: none; }
  .team { gap: 22px; }
  .team-quote { background: var(--brown); color: #fff; }
}

/* Print */
@media print { .site-header, .phonebar, .drawer, .site-footer .credit { display: none !important; } body { padding: 0; } }
