@font-face {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/open-sans-Regular.woff") format("woff");
}

@font-face {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/open-sans-Semibold.woff") format("woff");
}

@font-face {
  font-family: Open Sans Condensed;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/open-sans-CondBold.woff") format("woff");
}

:root {
  color-scheme: light;
  --charcoal: #1a1b17;
  --dark: #24251f;
  --dark-line: #424338;
  --gold: #efb749;
  --gold-dark: #9b6011;
  --cream: #f6f3eb;
  --paper: #fcfbf7;
  --sand: #ede9de;
  --text: #252620;
  --muted: #58574e;
  --line: #d8d3c5;
  --display: "Open Sans Condensed", "Arial Narrow", sans-serif;
  --body: "Open Sans", Arial, sans-serif;
  --gutter: clamp(20px, 5.7vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1rem/1.65 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b67011; outline-offset: 4px; }
.hero :focus-visible, .site-header :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1296px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 6; padding: .6rem 1rem; background: var(--gold); color: var(--charcoal); transform: translateY(-160%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; height: 1px; width: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

.site-header { background: var(--charcoal); color: var(--cream); position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #35352c; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; flex-shrink: 0; gap: .7rem; align-items: center; width: max-content; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 41px; height: 39px; border: 1px solid #a78032; color: var(--gold); font: 700 1.75rem/1 var(--display); }
.brand-name { font: 700 1.32rem/.98 var(--display); letter-spacing: .085em; }
.brand-name span { display: block; font: 600 .68rem/1.1 var(--body); letter-spacing: .24em; color: #c5c1ae; margin-top: .3rem; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem, 3.1vw, 3.1rem); }
.main-nav a { color: #e3dfd1; font-size: .9rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .footer a:hover { color: var(--gold); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: .65rem 1.12rem; border: 1px solid transparent; border-radius: 2px; font-size: .9rem; font-weight: 700; text-align: center; text-decoration: none; transition: background .18s, border-color .18s, color .18s; }
.button-gold { background: var(--gold); color: #1d1e18; }
.button-gold:hover { background: #ffc760; }
.button-outline { border-color: #858375; color: var(--cream); background: #1a1b176b; }
.button-outline:hover { background: #3b3c32; border-color: #d2cbbc; }
.header-action { min-height: 41px; padding-inline: 1rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--charcoal); color: var(--cream); }
.hero-image { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; max-width: none; object-fit: cover; object-position: 61% 52%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--charcoal) 36%, rgba(26,27,23,.87) 44%, rgba(26,27,23,.26) 62%, transparent 76%); }
.hero-photo-label { position: absolute; right: var(--gutter); bottom: .85rem; background: #1a1b17e0; color: var(--cream); padding: .15rem .5rem; font-size: .8rem; }
.hero-inner { display: grid; align-items: center; min-height: clamp(480px, 43vw, 670px); }
.hero-copy { padding: 4.7rem 0 5.2rem; }
.kicker { display: flex; align-items: center; gap: .7rem; color: var(--gold-dark); letter-spacing: .15em; font-size: .84rem; font-weight: 700; line-height: 1.45; text-transform: uppercase; }
.kicker span { display: block; width: 22px; height: 2px; background: currentColor; }
.hero .kicker, .contact .kicker { color: var(--gold); }
h1, h2 { font-family: var(--display); font-weight: 700; }
.hero h1 { margin-top: .62rem; font-size: clamp(4.25rem, 8.15vw, 8.35rem); line-height: .89; letter-spacing: -.024em; }
.hero h1 em { display: inline-block; margin-top: .1em; color: var(--gold); font-style: normal; }
.hero-summary { max-width: 380px; margin-top: 1.6rem; color: #e3dfd1; font-size: 1.08rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.75rem; }

.area-bar { background: var(--dark); color: var(--cream); border-top: 1px solid #4b493b; }
.area-inner { min-height: 64px; display: flex; align-items: center; gap: 2rem; }
.area-bar .kicker { color: var(--gold); font-size: .78rem; white-space: nowrap; }
.area-bar ul { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem clamp(1rem, 3vw, 3rem); padding: 0; margin: .7rem 0; list-style: none; font-weight: 600; font-size: .9rem; }
.area-bar li { display: flex; align-items: center; gap: .6rem; }
.area-bar li::before { content: ""; width: 4px; height: 4px; background: #c7a560; transform: rotate(45deg); }

.section { padding-block: clamp(3.6rem, 6vw, 6.3rem); }
.section h2 { font-size: clamp(3rem, 5.3vw, 5.55rem); line-height: .97; letter-spacing: -.012em; margin: .55rem 0 0; }
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.4rem, 6.8vw, 7.8rem); }
.intro > p:last-child, .projects-head > div > p:last-child { max-width: 390px; color: var(--muted); margin-top: 1.05rem; }
.service-list { align-self: center; border-top: 1px solid var(--line); }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list summary { display: grid; grid-template-columns: 30px 1fr 20px; align-items: center; min-height: 70px; padding: 8px 4px; gap: .85rem; list-style: none; color: var(--text); font-weight: 700; font-size: 1.12rem; }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:hover { color: var(--gold-dark); }
.trade-icon { position: relative; display: block; width: 23px; height: 23px; color: var(--gold-dark); }
.icon-timber { border: 2px solid currentColor; background: repeating-linear-gradient(90deg, transparent 0 4px, currentColor 4px 6px); }
.icon-steel { border-block: 3px solid currentColor; background: linear-gradient(90deg, transparent calc(50% - 1.5px), currentColor calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.icon-cladding { border: 2px solid currentColor; background: repeating-linear-gradient(0deg, transparent 0 4px, currentColor 4px 6px); }
.toggle { display: grid; place-items: center; color: var(--gold-dark); }
.toggle::before, .toggle::after { content: ""; width: 15px; height: 2px; grid-area: 1/1; background: currentColor; }
.toggle::after { transform: rotate(90deg); }
details[open] .toggle::after { transform: none; }
.service-detail { padding: 0 1.8rem 1.3rem 3.02rem; color: var(--muted); }
.service-detail a { display: inline-block; margin-top: .75rem; color: #7f4b0d; font-size: .9rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin-top: .85rem; list-style: none; }
.chips li { border: 1px solid var(--line); padding: .1rem .46rem; font-size: .82rem; color: var(--text); }

.projects { background: var(--paper); }
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.8rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filters button { min-height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: .35rem .8rem; font-weight: 600; font-size: .88rem; }
.filters button:hover { border-color: #a48a60; }
.filters button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(13px, 2vw, 27px); }
.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.project-card img { width: 100%; height: auto; aspect-ratio: 1.56; object-fit: cover; background: #b0a593; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.15rem 1.2rem .9rem; }
.category { color: #8c560e; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.card-body h3 { margin-top: .24rem; font-size: 1.17rem; line-height: 1.3; }
.card-body h3 + p { color: var(--muted); margin: .45rem 0 .75rem; }
.project-open { display: flex; align-items: center; justify-content: space-between; min-height: 41px; gap: .65rem; margin-top: auto; padding: .25rem 0; border: 0; background: transparent; color: #71430a; text-align: left; font-size: .9rem; font-weight: 700; }
.project-open:hover { text-decoration: underline; }
.project-open span::before { content: "+"; font-size: 1.1em; }

.about { background: var(--sand); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem clamp(2rem, 5vw, 6rem); }
.about-copy { color: var(--muted); max-width: 540px; }
.about-copy p + p { margin-top: .65rem; }

.contact { background: var(--charcoal); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.contact-copy > p:not(.kicker) { max-width: 330px; margin-top: .9rem; color: #d6d2c5; }
.contact-direct { display: grid; justify-items: start; gap: .1rem; margin-top: 1.55rem; padding-top: 1.1rem; border-top: 1px solid var(--dark-line); }
.contact-direct span { color: #d6d2c5; font-weight: 600; font-size: .88rem; }
.contact-direct a { color: var(--gold); font-size: 1.26rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-direct a[href^="mailto:"] { margin-top: .5rem; font-size: 1rem; }
.enquiry { border: 1px solid #4a4b40; background: var(--dark); padding: clamp(1rem, 3vw, 2rem); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1rem; }
.fields label { display: block; font-size: .91rem; font-weight: 600; }
.field-wide { grid-column: 1/-1; }
.optional { color: #d1cdbf; font-weight: 400; }
.fields :is(input, select, textarea) { display: block; width: 100%; min-height: 43px; background: #32332b; border: 1px solid #656457; border-radius: 2px; margin-top: .28rem; padding: .5rem .65rem; color: var(--cream); font-weight: 400; font-size: 1rem; color-scheme: dark; }
.fields :is(input,textarea)::placeholder { color: #cac5b6; }
.fields select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.8rem; }
.fields textarea { min-height: 108px; resize: vertical; }
.form-note { margin-top: .8rem; color: #d1cdbf; font-size: .85rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .85rem; }
.form-actions button:disabled { opacity: .64; cursor: wait; }
.form-status { flex: 1 1 215px; color: #f8d785; font-size: .9rem; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.error { color: #ffc6b9; }

.footer { background: #131411; border-top: 1px solid var(--dark-line); color: #d6d2c5; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.5rem; min-height: 90px; padding-block: .8rem; font-size: .85rem; }
.footer .brand { color: var(--cream); }
.footer-inner > a:last-child { font-weight: 600; white-space: nowrap; }

.project-dialog { width: min(90vw, 570px); max-height: 85dvh; padding: 0; border: 1px solid var(--line); border-top: 4px solid var(--gold); background: var(--cream); color: var(--text); }
.project-dialog::backdrop { background: #11130fc9; }
.dialog-inner { position: relative; padding: clamp(1.4rem, 4vw, 2.5rem); }
.dialog-close { position: absolute; right: .6rem; top: .6rem; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); font-size: 1.5rem; line-height: 1; }
.dialog-close:hover { background: var(--sand); }
.dialog-inner h2 { font: 700 clamp(2rem, 5vw, 3.2rem)/1.05 var(--display); margin: .45rem 2rem .65rem 0; }
.dialog-inner p:not(.kicker), .dialog-inner li { color: var(--muted); }
.dialog-inner h3 { margin-top: .9rem; font-size: 1rem; }
.dialog-inner ul { padding-left: 1.1rem; margin: .3rem 0 1rem; }

.inbox { min-height: 100vh; padding: 2rem 0 4rem; background: var(--cream); }
.inbox h1 { font: 700 clamp(2.5rem, 6vw, 4rem)/1.1 var(--display); margin: 1rem 0 .5rem; }
.inbox-list { display: grid; gap: 1rem; margin-top: 1.3rem; }
.inbox article { padding: 1rem; border: 1px solid var(--line); background: var(--paper); overflow-wrap: anywhere; }
.inbox article h2 { font-size: 1.45rem; }
.inbox-meta { color: var(--muted); font-size: .9rem; }
.inbox-message { margin-top: .6rem; white-space: pre-wrap; }
.inbox-pagination { display: flex; gap: 1.4rem; margin-top: 1rem; }

@media (max-width: 900px) {
  .hero-image { width: 72%; }
  .hero::after { background: linear-gradient(90deg, var(--charcoal) 24%, rgba(26,27,23,.82) 39%, rgba(26,27,23,.23) 71%, transparent 88%); }
  .hero h1 { font-size: clamp(3.9rem, 10vw, 6.9rem); }
  .section h2 { font-size: clamp(2.85rem, 6.5vw, 4.4rem); }
  .card-body { padding-inline: .85rem; }
}

@media (max-width: 690px) {
  html { scroll-padding-top: 111px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; row-gap: 0; padding-top: .65rem; }
  .header-action { grid-area: 1/2; min-height: 38px; padding: .38rem .65rem; }
  .main-nav { grid-column: 1/-1; justify-content: space-between; flex-wrap: nowrap; gap: .4rem; min-height: 40px; margin-top: .3rem; }
  .main-nav a { font-size: .83rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-name span { font-size: .59rem; }
  .hero-image { inset: 0 0 auto; width: 100%; height: min(72vw, 365px); object-position: center 47%; }
  .hero::after { background: linear-gradient(180deg, transparent 1%, rgba(26,27,23,.12) 16%, var(--charcoal) min(69vw, 350px)); }
  .hero-photo-label { top: .65rem; right: var(--gutter); bottom: auto; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding: clamp(8.3rem, 37vw, 13rem) 0 2.65rem; }
  .hero h1 { font-size: clamp(3rem, 11.8vw, 5.8rem); }
  .hero-summary { margin-top: 1rem; font-size: 1rem; }
  .hero-actions { gap: .5rem; margin-top: 1.25rem; }
  .hero-actions .button { min-height: 44px; padding-inline: .66rem; font-size: .85rem; }
  .area-inner { gap: .2rem; min-height: 0; flex-direction: column; align-items: start; padding-block: .65rem; }
  .area-bar ul { margin: .15rem 0 0; gap: .25rem .75rem; font-size: .85rem; }
  .area-bar li { gap: .35rem; }
  .service-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.55rem; }
  .service-detail { padding-right: .2rem; }
  .service-list summary { min-height: 61px; font-size: 1rem; }
  .projects-head { flex-direction: column; align-items: start; margin-bottom: 1.15rem; gap: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .project-card img { aspect-ratio: 1.8; }
  .card-body { padding-inline: 1rem; }
}

@media (max-width: 410px) {
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
