/* B.W. Painting: shared styles. Black and white, as the client asked; photography carries the colour.
   Display: Libre Caslon Text (the English roman of shop fronts and sign boards). Body: Instrument Sans. */

@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* metric-matched fallbacks so nothing jumps when the web fonts arrive */
@font-face { font-family: "Caslon Fallback"; src: local("Georgia"); size-adjust: 108.2%; ascent-override: 89.6%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Caslon Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 700; size-adjust: 101.9%; ascent-override: 95.2%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"); size-adjust: 103.1%; ascent-override: 94.1%; descent-override: 24.2%; line-gap-override: 0%; }

:root {
  --ink: #111111;         /* lamp black */
  --coal: #1c1c1b;        /* dark surfaces */
  --graphite: #54544f;    /* quiet text on white */
  --ash: #b4b4ae;         /* quiet text on black */
  --rule: #dcdcd7;
  --chalk: #f2f2ef;       /* second white, for alternate bands */
  --white: #ffffff;
  --serif: "Libre Caslon Text", "Caslon Fallback", Georgia, serif;
  --sans: "Instrument Sans", "Instrument Fallback", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1480px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --media-cap: min(76vh, 760px);
  --head-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .site-footer__big em { font-style: italic; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { position: relative; padding-block: clamp(72px, 9vw, 136px); }
.sec--dark { background: var(--ink); color: var(--white); }
.sec--chalk { background: var(--chalk); }
.h2 { font-size: clamp(2rem, 3.5vw, 3.9rem); }
.lede { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.6; }
.sec--dark .lede, .sec--dark p { color: #e4e4e0; }
.label { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* the roller edge: the top of a band looks like the wet edge of a rolled coat */
.edge-top::before, .edge-bot::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; background: inherit; -webkit-mask: url("../img/edge.svg") 0 0 / 100% 100% no-repeat; mask: url("../img/edge.svg") 0 0 / 100% 100% no-repeat; pointer-events: none; z-index: 1; }
.edge-top::before { top: -25px; }
.edge-bot::after { bottom: -25px; transform: scaleY(-1); }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 14px 26px; border: 1.5px solid currentColor; border-radius: 0; font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn .i-arrow { width: 20px; height: 12px; transition: transform .45s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark::before { background: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light::before { background: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { color: var(--white); }
.btn--line { background: transparent; color: inherit; }
.btn--line::before { background: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--white); }
.sec--dark .btn--line::before, .hero .btn--line::before, .phero .btn--line::before, .site-footer .btn--line::before { background: var(--white); }
.sec--dark .btn--line:hover, .hero .btn--line:hover, .phero .btn--line:hover, .site-footer .btn--line:hover,
.sec--dark .btn--line:focus-visible, .hero .btn--line:focus-visible, .phero .btn--line:focus-visible { color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.tlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding: 12px 0 3px; }
.tlink .i-arrow { width: 18px; height: 11px; transition: transform .45s var(--ease); }
.tlink:hover .i-arrow { transform: translateX(4px); }

/* ---------------- header ---------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--white); transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -60px; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.34) 55%, rgba(0,0,0,0)); pointer-events: none; transition: opacity .5s var(--ease); }
.site-header.is-scrolled::before, .menu-open .site-header::before { opacity: 0; }
.site-header__inner { position: relative; width: min(1680px, 100% - 2 * var(--gutter)); margin-inline: auto; height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .5s var(--ease); }
.brand { position: relative; display: block; height: 70px; flex: none; transition: height .5s var(--ease); }
.brand img { height: 100%; width: auto; transition: opacity .4s var(--ease); }
.brand__dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled, .menu-open .site-header { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.menu-open .site-header { box-shadow: none; }
.site-header.is-scrolled .site-header__inner { height: 76px; }
.site-header.is-scrolled .brand { height: 56px; }
.site-header.is-scrolled .brand__light, .menu-open .brand__light { opacity: 0; }
.site-header.is-scrolled .brand__dark, .menu-open .brand__dark { opacity: 1; }

.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 0; font-family: var(--sans); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover::after, .nav__link.is-current::after, .nav__item.is-open .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { width: 12px; height: 8px; transition: transform .4s var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border: 1.5px solid currentColor; font-weight: 600; text-decoration: none; transition: background-color .4s var(--ease), color .4s var(--ease); }
.nav__cta:hover, .nav__cta.is-current { background: currentColor; }
.nav__cta:hover { color: inherit; }
.site-header:not(.is-scrolled) .nav__cta:hover, .site-header:not(.is-scrolled) .nav__cta.is-current { background: var(--white); color: var(--ink); border-color: var(--white); }
.site-header.is-scrolled .nav__cta:hover, .site-header.is-scrolled .nav__cta.is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }

.nav__item--drop { position: relative; }
.drop { position: absolute; top: calc(100% + 14px); left: 50%; width: min(760px, 80vw); translate: -50% 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); visibility: hidden; opacity: 0; transform: translateY(12px); clip-path: inset(0 0 100% 0); transition: opacity .35s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease), visibility 0s .6s; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item.is-open .drop { visibility: visible; opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity .35s var(--ease), transform .6s var(--ease), clip-path .6s var(--ease), visibility 0s; }
.drop__inner { padding: 22px; }
.drop__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0 0 18px; padding: 0; }
.drop__card { display: block; text-decoration: none; }
.drop__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--chalk); }
.drop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.drop__card:hover .drop__img img, .drop__card:focus-visible .drop__img img { transform: scale(1.06); }
.drop__name { display: block; margin-top: 10px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.drop__all { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--rule); padding-top: 14px; width: 100%; }
.drop__all .i-arrow { width: 18px; height: 11px; }

.burger { display: none; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; font-weight: 600; min-height: 48px; }
.burger__lines { width: 26px; height: 12px; position: relative; display: block; }
.burger__lines span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 10px; }
.menu-open .burger__lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger__lines span:last-child { top: 5px; transform: rotate(-45deg); }

.mmenu { position: fixed; inset: 0; z-index: 90; background: var(--white); color: var(--ink); padding: calc(var(--head-h) + 12px) var(--gutter) 32px; overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu-open .mmenu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.mmenu__inner { max-width: 640px; margin-inline: auto; }
.mmenu__label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); margin-bottom: 12px; }
.mmenu__services { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mmenu__services a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; min-height: 56px; }
.mmenu__thumb { width: 56px; height: 56px; flex: none; overflow: hidden; }
.mmenu__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mmenu__links { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1px solid var(--rule); }
.mmenu__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; }
.mmenu__cta { width: 100%; justify-content: space-between; background: var(--ink); color: var(--white); border-color: var(--ink); }

@media (max-width: 1100px) {
  :root { --head-h: 84px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .brand { height: 58px; }
  .site-header.is-scrolled .site-header__inner { height: 70px; }
  .site-header.is-scrolled .brand { height: 50px; }
}
@media (max-width: 420px) { .brand { height: 50px; } .mmenu__services { grid-template-columns: 1fr; } }

/* ---------------- inner-page hero (dark, full bleed photo) ---------------- */
.phero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; background: var(--ink); color: var(--white); overflow: clip; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.08) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.82) 100%); }
.phero__copy { position: relative; z-index: 2; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--head-h) + 60px) 0 clamp(56px, 7vw, 104px); }
.phero h1 { font-size: clamp(2.7rem, min(6.2vw, 12vh), 6.4rem); line-height: 1.08; margin-bottom: 22px; }
.phero .lede { color: #ececea; margin-bottom: 30px; max-width: 120ch; }
.phero .btns { margin-top: 4px; }

/* ---------------- holding pages ---------------- */
.hold { background: var(--white); overflow: clip; }
.hold__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.hold__note h2 { margin-bottom: 22px; }
.hold__note p { color: var(--graphite); }
.hold__note ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--graphite); }
.hold__pic { position: relative; }
.hold__pic .frame { aspect-ratio: 3 / 2; max-height: var(--media-cap); }
.hold__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hold-card { display: block; text-decoration: none; }
.hold-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--chalk); }
.hold-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.hold-card:hover .hold-card__img img { transform: scale(1.06); }
.hold-card__txt { display: block; padding-top: 14px; }
.hold-card__txt strong { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.hold-card__txt strong .i-arrow { width: 18px; height: 11px; flex: none; }
.hold-card__txt span { display: block; color: var(--graphite); font-size: .98rem; margin-top: 4px; }
@media (max-width: 1000px) { .hold__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hold__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hold__links { grid-template-columns: 1fr; } }

/* ---------------- framed pictures: a black keyline offset from the photo, like a cut-in line ---------------- */
.frame { position: relative; overflow: hidden; background: var(--chalk); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.framed { position: relative; padding: 0 14px 14px 0; }
.framed::before { content: ""; position: absolute; inset: 14px 0 0 14px; border: 1.5px solid currentColor; pointer-events: none; }
.framed > .frame { position: relative; z-index: 1; }

/* ---------------- the wet edge: a bright line that rides the edge of every roller wipe ---------------- */
.wipe-edge { position: absolute; top: 0; bottom: 0; width: 10px; margin-left: -5px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.95) 45%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0)); box-shadow: 0 0 24px rgba(255,255,255,.35); opacity: 0; }
.wipe-edge--down { width: auto; height: 10px; margin: -5px 0 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.95) 45%, rgba(255,255,255,.6) 60%, rgba(255,255,255,0)); }
.wipe-edge--ink { background: linear-gradient(90deg, rgba(17,17,17,0), rgba(17,17,17,.9) 45%, rgba(17,17,17,.5) 60%, rgba(17,17,17,0)); box-shadow: none; }
.wipe-edge--ink.wipe-edge--down { background: linear-gradient(180deg, rgba(17,17,17,0), rgba(17,17,17,.9) 45%, rgba(17,17,17,.5) 60%, rgba(17,17,17,0)); }

/* ---------------- footer ---------------- */
.site-footer { position: relative; background: var(--ink); color: var(--white); overflow: clip; }
.site-footer__cta { position: relative; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; border-bottom: 1px solid rgba(255,255,255,.16); }
.site-footer__cta::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: url("../img/brushes-sm.webp") center 60% / cover no-repeat; opacity: .16; filter: grayscale(1); }
.site-footer__cta { isolation: isolate; }
.site-footer__big { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.12; margin: 0; }
.site-footer__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 56px 0 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer__logo img { height: 84px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--ash); margin: 0; }
.site-footer__h { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 10px 0; text-decoration: none; transition: opacity .3s; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ash); font-size: .95rem; }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--white); }
@media (max-width: 900px) {
  .site-footer__cta { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------------- forms (contact and calculator) ---------------- */
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: .98rem; }
.field .hint { font-size: .92rem; color: var(--graphite); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 54px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #8d8d88; border-radius: 0; transition: border-color .3s, box-shadow .3s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.16); }
.textarea { min-height: 150px; resize: vertical; }
.select { -webkit-appearance: none; appearance: none; padding-right: 48px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: #a4161a; }
.err { color: #a4161a; font-size: .95rem; font-weight: 500; margin: 0; }

/* ---------------- motion: hidden start states only while the scripts can run them ---------------- */
.ln-mask { padding: .22em .15em .3em; margin: 0 -.15em -.52em; }
.ln-mask:first-child { margin-top: -.22em; }
.ln-mask:last-child { margin-bottom: -.3em; }
[data-split] { display: flow-root; }
.js:not(.rm):not(.no-motion) [data-split] { visibility: hidden; }
.js:not(.rm):not(.no-motion) [data-hero-in] { opacity: 0; }
.js:not(.rm):not(.no-motion) .phero [data-rise] { opacity: 0; }
.js:not(.rm):not(.no-motion) [data-wipe], .js:not(.rm):not(.no-motion) .phero__media { clip-path: inset(0% 100% 0% 0%); }
.js:not(.rm):not(.no-motion) [data-wipe="down"] { clip-path: inset(0% 0% 100% 0%); }
.no-motion [data-split], .no-motion [data-hero-in], .no-motion .phero [data-rise] { visibility: visible !important; opacity: 1 !important; transform: none !important; }
.no-motion [data-wipe], .no-motion .phero__media { clip-path: none !important; }
.wf .hero h1, .wf .phero h1, .wf .nav, .wf .burger { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
