:root {
  --paper: #f7f6f2;
  --stone: #eaeae4;
  --ink: #141514;
  --muted: #545550;
  --yellow: #edcd1f;
  --on-dark: #d4d5cf;
  --rule: #d8d8d2;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(22px, 4.6vw, 88px);
  --section-space: clamp(78px, 8.4vw, 144px);
  --header-height: 82px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .project-title, .services-list summary, .mobile-nav a { font-family: var(--display); font-weight: 400; }
h1, h2 { letter-spacing: -.038em; line-height: .95; }
h2 { font-size: clamp(66px, 6.4vw, 118px); }
h1 em, h2 em { font-weight: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 5px; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { width: min(calc(100% - var(--gutter) - var(--gutter)), 1680px); margin-inline: auto; }
.icon-library { position: absolute; overflow: hidden; width: 0; height: 0; pointer-events: none; }
.icon { flex: 0 0 auto; width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: square; stroke-linejoin: miter; }
.sr-only, .skip-link:not(:focus) { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; white-space: nowrap; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 11px 20px; background: var(--paper); color: var(--ink); }
.text-line { display: block; overflow: clip; padding: .075em .13em .14em .02em; margin: -.075em -.13em -.14em -.02em; }
.line-inner { display: block; transform-origin: 0 100%; }
.kicker, .project-type { font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1.35; letter-spacing: .15em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 13px; color: var(--muted); }
.kicker-rule { display: inline-block; width: 35px; height: 1px; flex: none; background: var(--yellow); transform-origin: left center; }
.solid-link, .inline-link, .nav-enquiry, .gallery-controls, .round-button { display: inline-flex; align-items: center; }
.solid-link { justify-content: space-between; gap: 22px; min-height: 48px; width: fit-content; padding: 0 20px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .008em; }
.solid-link .icon { width: 14px; height: 14px; }
.inline-link { width: fit-content; min-height: 36px; gap: 17px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; }
.inline-link .icon, .nav-enquiry .icon { width: 13px; height: 13px; }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid #363734; color: var(--paper); background: var(--ink); --focus: var(--yellow); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-height); gap: 24px; }
.wordmark { display: inline-flex; width: fit-content; align-items: center; gap: 12px; font-size: 12px; font-weight: 650; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.wordmark img { width: 35px; height: 41px; object-fit: contain; filter: brightness(0) invert(1); }
.desktop-nav { display: flex; align-items: center; gap: clamp(23px, 2.9vw, 50px); font-size: 13px; }
.desktop-nav a { position: relative; padding: 9px 0; }
.desktop-nav a::after, .nav-enquiry::after { content: ""; position: absolute; bottom: 6px; left: 0; right: 0; height: 1px; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.desktop-nav a.is-active::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }
.nav-enquiry { position: relative; justify-self: end; gap: 21px; min-height: 42px; font-size: 13px; font-weight: 600; }
.nav-enquiry .icon { color: var(--yellow); }
.menu-toggle, .mobile-nav { display: none; }

.hero { border-bottom: 1px solid #363734; background: var(--ink); color: var(--paper); --focus: var(--yellow); }
.hero-spread { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1fr); align-items: stretch; gap: clamp(26px, 3.2vw, 74px); padding-block: clamp(26px, 2.6vw, 48px) clamp(26px, 2.3vw, 42px); }
.hero-page { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: clamp(42px, 6.5vw, 112px); min-width: 0; }
.hero-kicker { margin: 0 0 clamp(31px, 3.4vw, 65px); }
.hero h1 { font-size: clamp(76px, 7.65vw, 147px); letter-spacing: -.041em; line-height: .93; }
.hero h1 em { color: var(--yellow); }
.hero-deck { margin-top: clamp(24px, 2.5vw, 43px); max-width: 32ch; color: var(--on-dark); font-size: clamp(15px, 1.18vw, 21px); line-height: 1.58; }
.hero-link { margin-top: clamp(22px, 2.3vw, 38px); }
.brand-object { position: absolute; z-index: 1; right: clamp(4px, 1.5vw, 34px); bottom: 0; width: clamp(145px, 12.2vw, 238px); aspect-ratio: 1; pointer-events: none; }
.mark-canvas, .mark-fallback { position: absolute; display: block; }
.mark-canvas { inset: 0; width: 100%; height: 100%; }
.mark-fallback { inset: 16% 21%; width: 58%; height: 68%; object-fit: contain; }
.mark-canvas { z-index: 1; }
.hero-figure { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.hero-photo { overflow: hidden; position: relative; min-height: clamp(455px, 40.5vw, 738px); flex: 1; background: #30312e; }
.hero-photo img, .project-photo img, .about-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { position: absolute; inset: 0; object-position: 54% 53%; }
.hero-figure figcaption, .about-figure figcaption { color: var(--on-dark); font-size: 12px; }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 7px; }
.hero-figure figcaption span { font-family: var(--display); font-size: 19px; font-style: italic; }
.hero-figure figcaption button { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 11px; font-weight: 600; }
.hero-figure figcaption .icon { width: 11px; height: 11px; }

.work { padding-block: var(--section-space); }
.section-top { display: grid; grid-template-columns: minmax(0, 1fr) max(29%, 270px); align-items: end; gap: 40px; }
.section-top .kicker, .service-heading .kicker, .about-copy .kicker, .contact-copy .kicker { margin-bottom: clamp(24px, 2.2vw, 39px); }
.section-aside { justify-self: end; max-width: 32ch; margin-bottom: .3em; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; }
.filters { display: flex; align-items: stretch; flex-wrap: wrap; gap: 5px clamp(14px, 2.25vw, 43px); margin-top: clamp(33px, 3.25vw, 54px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.filters button { position: relative; align-self: stretch; padding: 15px 0 14px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.filters button[aria-pressed="true"], .filters button.is-active { color: var(--ink); font-weight: 600; }
.filters button::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.filters button[aria-pressed="true"]::after, .filters button.is-active::after { transform: scaleX(1); }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.3vw, 50px); row-gap: clamp(38px, 4.1vw, 75px); margin-top: clamp(23px, 2.15vw, 42px); align-items: end; }
.project-card { grid-column: span 4; min-width: 0; }
.project-extension, .project-exterior { grid-column: span 7; }
.project-kitchen, .project-roof { grid-column: span 5; }
.project-bathroom, .project-loft { grid-column: span 6; }
.project-card button { display: block; width: 100%; text-align: left; }
.project-photo { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.25; background: #ddddd7; }
.project-photo img { position: absolute; inset: 0; }
.project-extension .project-photo, .project-exterior .project-photo { aspect-ratio: 1.52; }
.project-kitchen .project-photo, .project-roof .project-photo { aspect-ratio: 1.36; }
.project-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 16px; }
.project-heading { display: grid; gap: 6px; }
.project-type { color: var(--muted); font-size: 9px; }
.project-title { color: var(--ink); font-size: clamp(29px, 2.75vw, 52px); line-height: 1.07; letter-spacing: -.025em; }
.project-arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1px; border: 1px solid #a6a7a1; border-radius: 50%; }
.project-arrow .icon { width: 13px; height: 13px; }
.project-grid:has([hidden]) { align-items: start; }
.project-grid:has([hidden]) .project-card { grid-column: span 6; }
.project-grid:has([hidden]) .project-photo { aspect-ratio: 1.55; }

.services { padding-block: var(--section-space); color: var(--ink); background: var(--stone); }
.service-layout, .contact-layout { display: grid; grid-template-columns: .85fr 1fr; align-items: start; gap: clamp(50px, 8vw, 165px); }
.services .kicker { color: var(--muted); }
.services .kicker-rule { background: var(--yellow); }
.services h2 em { color: var(--ink); }
.service-heading > p:last-child { max-width: 33ch; margin-top: 26px; color: var(--muted); }
.services-list { border-top: 1px solid #b9bab3; }
.services-list details { border-bottom: 1px solid #b9bab3; }
.services-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: clamp(30px, 3vw, 55px); line-height: 1.15; letter-spacing: -.02em; padding: 22px 0; list-style: none; cursor: pointer; }
.services-list summary::-webkit-details-marker { display: none; }
.services-list summary i { position: relative; flex: 0 0 18px; height: 18px; margin-right: 2px; }
.services-list summary i::before, .services-list summary i::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--ink); }
.services-list summary i::after { transform: rotate(90deg); }
.services-list details[open] summary i::after { transform: rotate(0); }
.service-detail { padding: 0 32px 25px 0; }
.service-detail p { max-width: 49ch; color: var(--muted); font-size: 15px; }
.service-detail .inline-link { margin-top: 12px; color: var(--ink); border-color: var(--ink); }

.about { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1fr); align-items: center; gap: clamp(52px, 9.5vw, 195px); padding-block: var(--section-space); }
.about-photo { position: relative; width: 100%; aspect-ratio: 1.16; overflow: hidden; background: var(--stone); }
.about-photo img { position: absolute; inset: 0; object-position: 50% 65%; }
.about-figure figcaption { margin-top: 9px; }
.about-copy > p:not(.kicker) { max-width: 43ch; margin-top: 14px; color: var(--muted); }
.about-copy h2 + p { margin-top: 25px; }
.about-copy .inline-link { margin-top: 16px; }
.contact { padding-block: var(--section-space); background: var(--yellow); border-top: 1px solid var(--ink); --muted: #444016; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: clamp(32px, 4.5vw, 75px); }
.contact-details a { display: inline-flex; align-items: center; gap: 13px; font-size: 16px; }
.contact-details .icon { width: 13px; height: 13px; color: var(--ink); }
#enquiry-form { display: grid; gap: 23px; padding-top: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#enquiry-form label { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; font-weight: 600; }
#enquiry-form :is(input, select, textarea) { width: 100%; min-width: 0; padding: 8px 0; border: 0; border-bottom: 1px solid #666017; border-radius: 0; color: var(--ink); background: transparent; font-size: 16px; font-weight: 400; }
#enquiry-form select { cursor: pointer; }
#enquiry-form select:invalid { color: var(--muted); }
#enquiry-form option { background: var(--paper); color: var(--ink); }
#enquiry-form textarea { min-height: 74px; resize: vertical; }
.form-end { display: flex; align-items: center; gap: 18px; }
.form-note { max-width: 27ch; font-size: 12px; line-height: 1.5; color: var(--muted); }
.footer { background: var(--ink); color: var(--paper); --focus: var(--yellow); }
.footer-main { display: flex; align-items: center; gap: clamp(34px, 5vw, 95px); min-height: 134px; padding-block: 20px; }
.footer .wordmark { margin-right: auto; }
.footer .wordmark img { filter: brightness(0) invert(1); }
.footer-main > a:not(.wordmark) { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 12px; }
.footer .icon { width: 12px; height: 12px; color: var(--yellow); }
.footer-base { display: flex; align-items: center; justify-content: space-between; padding-block: 13px 17px; border-top: 1px solid #424340; color: var(--on-dark); font-size: 11px; }
[data-motion-toggle] { min-height: 32px; }
[data-motion-toggle]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: .09em; }
html[data-motion="off"] [data-motion-toggle]::before { background: transparent; border: 1px solid #aaa; }

#project-dialog { position: fixed; width: min(940px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #494a46; color: var(--paper); background: var(--ink); --focus: var(--yellow); }
#project-dialog::backdrop { background: rgb(0 0 0 / 85%); }
.gallery-layout { padding: 17px clamp(17px, 2.2vw, 32px) 21px; }
.dialog-head, .gallery-meta { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.dialog-head { margin-bottom: 14px; }
.dialog-head h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.025em; }
.round-button { flex: none; height: 42px; width: 42px; justify-content: center; border: 1px solid #72736e; border-radius: 50%; }
.round-button .icon { width: 16px; height: 16px; }
.gallery-stage { position: relative; display: grid; place-items: center; width: 100%; height: clamp(180px, 58dvh, 680px); background: #080908; }
#gallery-image { display: block; height: 100%; width: 100%; min-height: 0; object-fit: contain; }
#gallery-status { position: absolute; bottom: 13px; left: 50%; width: max-content; max-width: calc(100% - 26px); transform: translateX(-50%); padding: 6px 11px; color: white; background: var(--ink); text-align: center; font-size: 12px; }
#gallery-status:empty { display: none; }
.gallery-meta { margin-top: 13px; }
.gallery-info { display: flex; align-items: baseline; gap: 15px; }
#gallery-count { flex: none; color: var(--on-dark); font-size: 11px; font-variant-numeric: tabular-nums; }
#gallery-caption { font-size: 13px; line-height: 1.45; }
.gallery-controls { gap: 8px; }
#gallery-enquire { margin-top: 4px; font-size: 12px; }

@media (hover: hover) {
  .desktop-nav a:hover::after, .nav-enquiry:hover::after, .filters button:hover::after { transform: scaleX(1); }
  .solid-link:hover { background: #292a28; }
  .inline-link:hover, .contact-details a:hover, .hero-figure button:hover { color: var(--ink); }
  .service-detail .inline-link:hover { color: var(--ink); border-color: var(--yellow); }
  .project-card button:hover .project-arrow, .round-button:hover { color: var(--ink); background: var(--yellow); border-color: var(--ink); }
  .footer a:hover, .footer button:hover { color: var(--yellow); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) { scroll-behavior: smooth; }
  html:not([data-motion="off"]) :is(.solid-link, .project-arrow, .round-button, .inline-link) { transition: color .22s, background-color .22s, border-color .22s; }
  html:not([data-motion="off"]) :is(.desktop-nav a, .nav-enquiry, .filters button)::after,
  html:not([data-motion="off"]) .services-list summary i::after { transition: transform .35s cubic-bezier(.2,.75,.25,1); }
}
@media (min-width: 1600px) {
  :root { --header-height: 90px; }
  .hero-spread { gap: 5vw; }
}
@media (max-width: 1080px) {
  :root { --header-height: 72px; }
  .hero h1 { font-size: clamp(71px, 7.9vw, 88px); }
  .hero-spread { grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: 21px; }
  .hero-page { padding-bottom: 80px; }
  .hero-kicker { margin-bottom: 28px; }
  .brand-object { width: 138px; right: 0; bottom: -2px; }
  .hero-photo { min-height: 455px; }
  .about { gap: 7vw; }
  .project-title { font-size: 32px; }
}
@media (max-width: 800px) {
  :root { --header-height: 64px; }
  .header-inner { display: flex; gap: 20px; }
  .header-inner .wordmark { margin-right: auto; }
  .wordmark { gap: 10px; font-size: 11px; }
  .wordmark img { width: 29px; height: 37px; }
  .desktop-nav { display: none; }
  .nav-enquiry { gap: 9px; font-size: 12px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; width: 42px; height: 42px; margin-right: -8px; }
  .menu-toggle span { width: 22px; height: 1.5px; background: var(--paper); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-nav:not([hidden]) { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 13px var(--gutter) 25px; border-block: 1px solid #3a3b38; background: var(--ink); box-shadow: 0 10px 16px rgb(0 0 0 / 22%); }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding-block: 9px; border-bottom: 1px solid #3a3b38; font-size: 32px; line-height: 1.2; }
  .mobile-nav .icon { width: 14px; height: 14px; color: var(--yellow); }
  .mobile-nav .mobile-phone { min-height: 42px; margin-top: 12px; border: 0; font: 500 13px/1.5 var(--sans); }
  .hero-spread { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; padding-bottom: 17px; }
  .hero-page { padding: 0; }
  .hero-kicker { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(72px, 9vw, 96px); }
  .hero-deck { margin-top: 20px; }
  .hero-link { margin-top: 18px; }
  .brand-object { width: clamp(120px, 20vw, 163px); right: 1vw; bottom: 4px; }
  .hero-photo { min-height: auto; aspect-ratio: 1.72; }
  .hero-figure figcaption { padding-top: 4px; }
  .section-top { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
  .filters { column-gap: 21px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 19px; align-items: start; }
  .project-grid .project-card, .project-grid:has([hidden]) .project-card { grid-column: auto; }
  .project-grid .project-photo, .project-grid:has([hidden]) .project-photo { aspect-ratio: 1.25; }
  .project-grid:not(:has([hidden])) .project-extension { grid-column: 1/-1; }
  .project-grid:not(:has([hidden])) .project-extension .project-photo { aspect-ratio: 1.85; }
  .service-layout, .contact-layout { gap: 38px; grid-template-columns: .82fr 1fr; }
  .service-heading > p:last-child, .about-copy > p:not(.kicker) { font-size: 15px; }
  .about { gap: 34px; }
  .about-photo { aspect-ratio: .83; }
  .form-row { gap: 14px; }
  .form-end { align-items: flex-start; flex-direction: column; gap: 10px; }
  .form-note { max-width: none; }
}
@media (max-width: 600px) {
  :root { --gutter: clamp(19px, 5.25vw, 28px); --section-space: 66px; }
  h2 { font-size: clamp(61px, 13.3vw, 79px); }
  .header-inner { gap: 14px; }
  .wordmark { font-size: 10px; letter-spacing: .07em; }
  .hero-spread { gap: 23px; padding-top: 26px; }
  .hero h1 { font-size: clamp(67px, 15.8vw, 91px); }
  .hero-deck { max-width: min(27ch, calc(100% - 115px)); font-size: 14px; line-height: 1.48; }
  .brand-object { width: clamp(112px, 28vw, 151px); right: 0; bottom: -4px; }
  .hero-photo { aspect-ratio: 1.31; }
  .hero-link { min-height: 45px; }
  .kicker { gap: 10px; font-size: 9px; }
  .kicker-rule { width: 27px; }
  .section-top, .service-layout, .contact-layout { grid-template-columns: 1fr; }
  .section-top { gap: 18px; }
  .section-aside { justify-self: start; max-width: 33ch; margin: 0; font-size: 14px; }
  .section-top .kicker, .service-heading .kicker, .about-copy .kicker, .contact-copy .kicker { margin-bottom: 20px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 22px; margin-top: 25px; scrollbar-width: thin; scrollbar-color: #b7b8b1 transparent; scroll-padding-inline: 5px; }
  .filters button { min-height: 45px; padding-block: 13px; }
  .filters button::after { bottom: 0; }
  .filters button:focus-visible { outline-offset: -3px; }
  .project-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 21px; }
  .project-grid .project-photo, .project-grid:has([hidden]) .project-photo, .project-grid:not(:has([hidden])) .project-extension .project-photo { aspect-ratio: 1.5; }
  .project-caption { padding-top: 12px; }
  .project-title { font-size: clamp(28px, 7.7vw, 35px); }
  .project-heading { gap: 5px; }
  .project-type { font-size: 8.5px; }
  .project-arrow { width: 32px; height: 32px; }
  .service-layout, .contact-layout { gap: 33px; }
  .services-list summary { padding-block: 20px; font-size: 33px; }
  .service-detail { padding-right: 12px; }
  .about { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { grid-row: 1; }
  .about-copy h2 .text-line { display: inline; }
  .about-copy h2 .line-inner { display: inline-block; }
  .about-photo { aspect-ratio: 1.23; }
  .about-figure figcaption { font-size: 11px; }
  .contact-details { margin-top: 23px; }
  .contact-details a { min-height: 29px; font-size: 15px; }
  .form-end { gap: 13px; }
  .footer-main { flex-wrap: wrap; column-gap: 24px; row-gap: 9px; min-height: 0; padding-block: 26px 17px; }
  .footer-main .wordmark { flex-basis: 100%; font-size: 11px; }
  .footer-base { gap: 18px; padding-block: 8px 13px; font-size: 10px; }
  #project-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .gallery-layout { padding: 13px; }
  .dialog-head { gap: 8px; }
  .gallery-stage { height: clamp(175px, 50dvh, 430px); }
  .gallery-meta { align-items: flex-start; }
  .gallery-info { flex-direction: column; gap: 4px; }
  #gallery-caption { font-size: 12px; }
  .gallery-controls { gap: 5px; }
  .round-button { height: 38px; width: 38px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 9px; }
  .wordmark { gap: 6px; }
  .wordmark img { width: 24px; }
  .nav-enquiry { font-size: 11px; }
  .hero h1 { font-size: 60px; }
  .hero-deck { max-width: calc(100% - 98px); }
  .brand-object { width: 98px; }
  .form-row { grid-template-columns: 1fr; gap: 23px; }
}
@media (max-height: 580px) and (orientation: landscape) {
  .gallery-stage { height: 43dvh; min-height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Motion follows type and yellow accents. Photograph frames have a fixed layout. */
html { scrollbar-gutter: stable; }
body.gallery-open { overflow: hidden; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--yellow); transform-origin: left center;
  transform: scaleX(var(--progress, 0)); pointer-events: none;
}
.headline-word, .headline-script { display: inline-block; transform-origin: 12% 88%; }
.headline-script { padding-right: .10em; }
html[data-motion="on"] :is(.project-arrow, .solid-link, .inline-link, .nav-enquiry) .icon {
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) {
  html[data-motion="on"] .project-card button:hover .icon,
  html[data-motion="on"] :is(.inline-link, .nav-enquiry):hover .icon { transform: translate(2px,-2px); }
  html[data-motion="on"] .hero-link:hover .icon { transform: translateY(3px); }
}
.filters { position: relative; }
.filter-ink { position: absolute; left: 0; top: 0; height: 2px; background: var(--yellow); pointer-events: none; }
html[data-motion="on"] .with-ink .filter-ink { transition: transform .47s cubic-bezier(.2,.75,.2,1), width .47s cubic-bezier(.2,.75,.2,1); }
.filters.with-ink button[aria-pressed="true"]::after { transform: scaleX(0); }
#project-dialog { margin: auto; }
.gallery-stage { overflow: hidden; touch-action: pan-y pinch-zoom; }
.gallery-stage img { user-select: none; -webkit-user-select: none; }
.gallery-strip { display: flex; align-items: center; gap: 6px; max-width: 100%; overflow-x: auto; padding: 7px 2px; margin: 8px 0 3px; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #72736e transparent; }
.gallery-thumb { flex: 0 0 52px; width: 52px; height: 40px; padding: 2px; border: 1px solid transparent; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--yellow); }
.gallery-thumb:focus-visible { outline-offset: -1px; }
#gallery-image { pointer-events: none; }
@media (max-width: 600px) {
  .gallery-thumb { flex-basis: 45px; width: 45px; height: 37px; }
  .gallery-strip { gap: 4px; }
  .round-button { width: 44px; height: 44px; }
  .gallery-stage { height: clamp(170px, 48dvh, 420px); }
}
@media (max-height: 580px) and (orientation: landscape) {
  .gallery-stage { height: 38dvh; }
  .gallery-strip { margin-block: 1px; padding-block: 4px; }
  .gallery-thumb { height: 32px; }
}
.project-type { font-size: 10px; letter-spacing: .13em; }
@media (max-width: 600px) { .kicker { font-size: 10px; } }

.nav-label-short { display: none; }
@media (max-width: 360px) {
  .header-inner .wordmark { white-space: nowrap; font-size: 9px; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .nav-enquiry { white-space: nowrap; }
  .hero h1 { font-size: clamp(48px, 15.6vw, 56px); }
  .hero-link { padding-inline: 16px; }
}

.gallery-stage { background-size: contain; background-position: center; background-repeat: no-repeat; }

.hero-kicker, .about-surface .kicker { color: var(--on-dark); }
.hero-link { background: var(--yellow); color: var(--ink); }
.hero-figure button, .about-surface h2 em, .about-surface .inline-link, #gallery-enquire { color: var(--yellow); }
.about-surface { background: var(--ink); color: var(--paper); --muted: var(--on-dark); --focus: var(--yellow); }
.contact .kicker-rule { background: var(--ink); }
.gallery-controls .round-button { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
@media (hover: hover) {
  .hero-link:hover, .gallery-controls .round-button:hover { background: #ffe044; color: var(--ink); }
  .hero-figure button:hover, .about-surface .inline-link:hover, #gallery-enquire:hover { color: white; }
}

/* Driveway build walkthrough */
#driveway-porch { scroll-margin-top: calc(var(--header-height) + 18px); }
#project-dialog[data-walkthrough] { width: min(1050px, calc(100vw - 48px)); }
[data-walkthrough] .gallery-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(230px, .82fr); column-gap: clamp(24px, 3vw, 49px); }
[data-walkthrough] .dialog-head { grid-column: 1/-1; }
[data-walkthrough] .gallery-stage { height: auto; aspect-ratio: 1; max-height: 61dvh; }
[data-walkthrough] .gallery-meta { flex-direction: column; align-items: stretch; align-self: center; gap: 25px; margin: 0; }
[data-walkthrough] .gallery-info { display: block; }
[data-walkthrough] #gallery-count { color: var(--yellow); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
#build-stage-title { margin: 10px 0 12px; font: 400 clamp(34px, 3.5vw, 55px)/.98 var(--display); letter-spacing: -.025em; }
[data-walkthrough] #gallery-caption { max-width: 35ch; line-height: 1.55; color: var(--on-dark); }
[data-walkthrough] .round-button:disabled { color: #999a93; background: transparent; border-color: #565750; cursor: default; }
[data-walkthrough] #gallery-enquire { justify-self: start; align-self: center; }
.build-progress { min-width: 0; }
#build-timeline { --filled: 0%; display: block; appearance: none; width: 100%; height: 32px; margin: 0; padding: 0 7px; background: transparent; cursor: pointer; accent-color: var(--yellow); }
#build-timeline::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--yellow) var(--filled), #66665b var(--filled)); }
#build-timeline::-moz-range-track { height: 3px; border-radius: 3px; background: #66665b; }
#build-timeline::-moz-range-progress { height: 3px; background: var(--yellow); }
#build-timeline::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -6px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
#build-timeline::-moz-range-thumb { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.build-endpoints { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-dark); }
@media (max-width: 700px) {
  #project-dialog[data-walkthrough] { width: calc(100vw - 20px); }
  [data-walkthrough] .gallery-layout { display: flex; flex-direction: column; }
  [data-walkthrough] .gallery-stage { width: 100%; max-height: min(38dvh, 420px); }
  [data-walkthrough] .gallery-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-self: stretch; gap: 8px 15px; margin-top: 14px; }
  [data-walkthrough] .gallery-info { grid-column: 1/-1; }
  #build-stage-title { margin: 6px 0; font-size: 31px; }
  [data-walkthrough] #gallery-caption { max-width: none; }
  [data-walkthrough] .gallery-controls { align-self: center; }
  [data-walkthrough] #gallery-enquire { align-self: flex-start; }
}
@media (max-height: 520px) and (orientation: landscape) {
  [data-walkthrough] .gallery-stage { max-height: 44dvh; }
  [data-walkthrough] .gallery-meta { gap: 6px; }
  #build-stage-title { margin: 3px 0; font-size: 26px; }
}

/* Native project enquiries */
.enquiry-shell { min-width: 0; }
.enquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 24px; }
.enquiry-field { min-width: 0; }
.enquiry-field-wide { grid-column: 1/-1; }
#enquiry-form .field-label { display: block; margin-bottom: 2px; }
.enquiry-field input::placeholder, .enquiry-field textarea::placeholder { color: #5b5119; opacity: 1; }
.enquiry-field small, .enquiry-help { display: block; color: #474119; font-size: 12px; line-height: 1.45; }
.enquiry-help { margin-top: 5px; }
.enquiry-field input[type=file] { font-size: 13px !important; overflow: hidden; text-overflow: ellipsis; }
.enquiry-field input::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 1px solid #6a5b12; border-radius: 0; background: transparent; color: var(--ink); font: 600 12px var(--sans); cursor: pointer; }
.enquiry-remove { display: inline-block; margin: 4px 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.enquiry-field [aria-invalid=true] { border-bottom: 2px solid #7b2113 !important; }
.form-error { color: #631b12; font-size: 13px; font-weight: 600; }
.enquiry-status { max-width: 38ch; line-height: 1.55; }
.enquiry-status[data-success] { padding-left: 18px; border-left: 3px solid var(--ink); font: 400 clamp(25px, 2.2vw, 34px)/1.22 var(--display); }
#enquiry-retry { margin-top: 9px; }
#enquiry-form [type=submit]:disabled { opacity: .7; cursor: wait; }
@media (max-width: 440px) {
  .enquiry-fields { gap: 20px 16px; }
  .enquiry-field:first-child, .enquiry-field:nth-child(2) { grid-column: 1/-1; }
}
@media (max-width: 335px) { .enquiry-fields { grid-template-columns: 1fr; } }

/* The progress collection covers construction across several projects. */
.progress-copy { color: var(--muted); max-width: 32ch; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 801px) {
  .project-grid:not(:has([hidden])) .project-progress { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 24px; }
  .project-grid:not(:has([hidden])) .project-progress button { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
  .project-grid:not(:has([hidden])) .project-progress .project-photo { aspect-ratio: 2; }
  .project-grid:not(:has([hidden])) .project-progress .project-caption { padding: 0; }
}

#gallery-related { color: var(--yellow); font-size: 12px; min-height: 36px; }

/* The text supplies the natural word widths and the accessible headline.
   The drawing shares its font baseline and is decorative. */
#hero-title .glyph-origin, #hero-title .glyph-sheet { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] #home .hero-page :is(.hero-kicker, .hero-deck, .hero-link) {
    animation: draft-letter .83s ease-out;
  }
  #hero-title .glyph-origin {
    display: inline-block;
    position: relative;
    width: 0;
    height: 0;
    vertical-align: baseline;
  }
  html[data-motion="on"] #hero-title .glyph-sheet {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1em;
    height: 1em;
    overflow: visible;
    pointer-events: none;
    color: #fff0ba;
    opacity: 0;
    animation: glyph-sheet 2.2s linear both;
  }
  html[data-motion="on"] #hero-title em .glyph-sheet { color: #ffe052; }
  html[data-motion="on"] #hero-title .glyph-fill { animation: glyph-fill 2.2s ease-in-out both; }
  #hero-title .glyph-guide { fill: currentColor; opacity: .48; }
  #hero-title .glyph-plot {
    fill: none;
    stroke: currentColor;
    stroke-width: 40;
    stroke-linecap: round;
    stroke-dasharray: 1 1;
    animation: glyph-plot .84s var(--plot-delay) cubic-bezier(.25,.65,.2,1) both;
  }
  #hero-title .glyph-handles {
    fill: none;
    stroke: currentColor;
    stroke-width: 6;
    opacity: .5;
  }
}
@keyframes draft-letter {
  0%, 100% { -webkit-text-stroke: 0 transparent; -webkit-text-fill-color: currentColor; }
  22%, 44% {
    -webkit-text-stroke: .021em color-mix(in srgb, currentColor 54%, #d0ab26);
    -webkit-text-fill-color: color-mix(in srgb, currentColor 83%, transparent);
  }
}
@keyframes glyph-plot {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes glyph-sheet {
  0%, 73% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes glyph-fill {
  0%, 62% { opacity: .12; }
  100% { opacity: 1; }
}
