@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #e9e9df;
  --ink: #232d25;
  --muted: #4d594f;
  --green: #304337;
  --soft: #dce3d6;
  --white: #f9f8f2;
  --line: #bbc3b6;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; line-height: 1.55; }
body:has(dialog[open]) { overflow: hidden; }
::selection { color: var(--white); background: var(--green); }
:focus-visible { outline: 2px solid #865324; outline-offset: 4px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.038em; font-weight: 700; }
h2 { font-size: clamp(2.5rem, 5vw, 4.65rem); line-height: 1.02; text-wrap: balance; }
h3 { font-size: 1.55rem; }
.shell { width: min(91%, 1380px); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { top: .7rem; left: .7rem; width: auto; height: auto; clip-path: none; background: var(--white); padding: .6rem 1rem; z-index: 20; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--paper); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .7rem; align-items: center; font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; text-decoration: none; }
.brand-light { font-weight: 500; }
nav, .hero-actions { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.5rem); }
nav a:not(.button) { text-decoration: none; font-weight: 700; padding-block: .6rem; }
nav a:not(.button):hover, nav [aria-current="location"] { color: #476151; text-decoration: underline; text-underline-offset: .35em; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .72rem 1.2rem; border: 1px solid transparent; border-radius: .28rem; text-decoration: none; font-weight: 700; transition: background .28s, color .28s, transform .35s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-dark { color: var(--white); background: var(--green); }
.button-dark:hover { background: #435b4c; }
.button:disabled { opacity: .7; cursor: wait; transform: none; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); align-items: center; gap: 3.2%; margin-block: clamp(1.3rem, 3vw, 3rem) clamp(4.5rem, 8vw, 8rem); }
.hero-copy { padding: clamp(1rem, 3vw, 3.25rem) 0; animation: copy-in .8s var(--ease) both; }
.hero h1 { font-size: clamp(2.45rem, 4.85vw, 5.25rem); line-height: 1.02; letter-spacing: -.04em; }
.hero-copy p { margin-block: 1.5rem 1.8rem; max-width: 35ch; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.22rem); }
.hero-actions { flex-wrap: wrap; gap: .8rem 1.3rem; }
.hero-media { overflow: hidden; animation: media-in 1.05s var(--ease) both; }
.hero-media img { aspect-ratio: 1.37; object-fit: cover; background: #a4a99b; }
.hero-media figcaption { display: flex; justify-content: space-between; gap: .8rem; padding-top: .6rem; font-size: .88rem; font-weight: 700; color: var(--muted); }
@keyframes media-in { from { clip-path: inset(0 13% 0 0); opacity: .65; } to { clip-path: inset(0); opacity: 1; } }
@keyframes copy-in { from { transform: translateY(1.4rem); opacity: .4; } to { transform: none; opacity: 1; } }

.section-head { border-top: 1px solid var(--line); padding-top: 1.35rem; display: flex; align-items: end; justify-content: space-between; gap: 1.3rem; }
.section-head p { max-width: 36ch; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.6rem 1.1rem; }
.filters button, .gallery-controls button { border: 1px solid var(--line); border-radius: 2rem; padding: .5rem .95rem; min-height: 2.75rem; background: transparent; color: inherit; font-weight: 700; transition: background .25s, color .25s; }
.filters button:hover, .gallery-controls button:hover { background: var(--soft); }
.filters button[aria-pressed="true"], .gallery-controls button[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.85rem, 2vw, 1.65rem); }
.project-card { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); padding-top: .6rem; }
.project-card.is-entering { animation: copy-in .48s var(--ease) both; animation-delay: var(--delay, 0ms); }
.comparison { position: relative; overflow: hidden; aspect-ratio: 1.5; background: #c4c6b7; border-radius: .22rem; --split: 50%; }
.comparison img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparison .before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.image-label { position: absolute; top: .65rem; padding: .25rem .5rem; background: #232d25; color: var(--white); font-size: .8rem; font-weight: 700; border-radius: .2rem; }
.label-before { left: .65rem; }
.label-after { right: .65rem; }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--white); transform: translateX(-50%); }
.comparison-handle { position: absolute; top: 50%; left: clamp(1.05rem, var(--split), calc(100% - 1.05rem)); transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--white); color: var(--ink); }
.comparison input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison input::-webkit-slider-thumb { width: 0; height: 0; -webkit-appearance: none; }
.comparison input::-moz-range-thumb { width: 0; height: 0; border: 0; }
.comparison:focus-within { outline: 2px solid #865324; outline-offset: 4px; }
.project-meta { color: var(--muted); font-size: .875rem; margin-block: 1.05rem .4rem; }
.project-card h3 { margin-bottom: .5rem; }
.project-summary { color: var(--muted); margin-bottom: .75rem; }
.project-open { align-self: flex-start; margin-top: auto; border: 0; padding: .25rem 0; background: transparent; color: inherit; }

.about { background: var(--soft); padding-block: clamp(3.5rem, 7vw, 7rem); margin-block: clamp(4.5rem, 8vw, 8rem); }
.about-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7.5rem); }
.about-photo { overflow: hidden; }
.about-photo img { object-fit: cover; aspect-ratio: 1.04; }
.about-copy p { margin-block: 1rem 1.55rem; max-width: 55ch; color: var(--muted); }
.steps { border-top: 1px solid #aeb9a9; }
.steps details { border-bottom: 1px solid #aeb9a9; }
.steps summary { display: flex; min-height: 3.1rem; align-items: center; justify-content: space-between; gap: .7rem; cursor: pointer; list-style: none; font-weight: 700; }
.steps summary::-webkit-details-marker { display: none; }
.steps summary::after { content: ''; width: .56rem; height: .56rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-right: .25rem; transition: transform .3s var(--ease); }
.steps details[open] summary::after { transform: rotate(225deg); }
.steps details[open] p { margin: 0 0 1rem; animation: copy-in .35s var(--ease) both; }

.contact { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: clamp(1.8rem, 6vw, 6rem); margin-bottom: clamp(4rem, 8vw, 8rem); }
.contact-copy > p { margin-top: 1rem; max-width: 38ch; color: var(--muted); }
.contact-info { margin-top: 2rem; display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .65rem 1rem; }
.contact-info dt { font-weight: 700; }
.contact-info dd { overflow-wrap: anywhere; color: var(--muted); }
.enquiry { padding: clamp(1rem, 3.5vw, 2.6rem); background: var(--white); border-radius: .35rem; min-width: 0; }
.enquiry > p { color: var(--muted); margin-block: .5rem 1.25rem; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .95rem; }
.fields label { display: grid; align-content: start; font-size: .92rem; font-weight: 700; }
.fields .field-title span, .fields small { color: var(--muted); font-weight: 400; }
.fields input, .fields select, .fields textarea { width: 100%; min-width: 0; padding: .57rem .7rem; border: 1px solid #9fa99b; border-radius: .2rem; background: #fff; color: var(--ink); font-size: 1rem; margin-top: .3rem; }
.fields textarea { resize: vertical; }
.file-picker { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .65rem; margin-block: .3rem .25rem; padding: .4rem; border: 1px solid #9fa99b; border-radius: .2rem; background: #fff; }
.file-picker input { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.file-picker:focus-within { outline: 2px solid #865324; outline-offset: 4px; }
.file-picker:hover .file-button { background: #cbd6c6; }
.file-button { background: var(--soft); padding: .32rem .55rem; border-radius: .15rem; }
#file-selection { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-weight: 400; }
.wide { grid-column: 1 / -1; }
.enquiry .button { margin-top: 1.35rem; }
#form-status { margin-bottom: 0; }
#form-status:empty { display: none; }
footer { background: var(--green); color: var(--white); }
.footer-inner { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }

dialog { padding: 0; border: 0; border-radius: .45rem; max-height: 91dvh; width: min(92vw, 870px); max-width: none; background: var(--white); color: var(--ink); }
dialog[open] { animation: copy-in .38s var(--ease) both; }
dialog::backdrop { background: rgba(26,35,29,.72); }
.about-photo.is-entering { animation: media-in .8s var(--ease) both; }
.dialog-body { position: relative; padding: clamp(1.05rem, 3vw, 2.3rem); }
.close { display: grid; place-items: center; position: absolute; right: 1rem; top: 1rem; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: inherit; }
.close:hover { background: var(--soft); }
.dialog-meta { padding-right: 3rem; font-weight: 700; color: var(--muted); }
.dialog-body h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-block: .5rem; padding-right: 2.5rem; text-wrap: initial; }
.dialog-description { max-width: 61ch; margin-block: .6rem 1rem; }
.dialog-gallery figure { aspect-ratio: 1.5; overflow: hidden; background: #c4c6b7; }
.dialog-gallery img { width: 100%; height: 100%; object-fit: cover; animation: gallery-in .45s var(--ease) both; }
@keyframes gallery-in { from { opacity: .35; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.gallery-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .65rem 1.2rem; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0,1.15fr); }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 4.75rem; }
  .header-inner { min-height: 4rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; background: transparent; border: 1px solid var(--line); border-radius: .2rem; color: inherit; padding: .45rem .72rem; font-weight: 700; min-height: 2.75rem; }
  .menu-toggle span { display: inline-block; width: .8rem; height: .48rem; border-block: 1.5px solid; }
  nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 4.5% 1rem; }
  .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .menu-toggle[aria-expanded="true"] + nav { animation: copy-in .25s var(--ease) both; }
  .hero, .about-inner, .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { margin-top: .8rem; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.45rem, 9.7vw, 4.1rem); }
  .hero-copy p { margin-block: .9rem 1rem; }
  .hero-media img { aspect-ratio: 1.4; }
  .section-head { align-items: start; flex-direction: column; gap: .55rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-copy { grid-row: 1; }
  .about-photo img { aspect-ratio: 1.45; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 2; width: 100%; }
}
@media (max-width: 470px) { .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
