/* ==========================================================================
   Design + Alchemy — "The House"
   Values come from the design handoff. Square corners everywhere, no shadows;
   separation is hairline borders in a tint of the foreground colour.
   ========================================================================== */

:root {
  --olive: #2C352C;
  --olive-light: #333D32;
  --olive-hover: #3A4438;
  --cream: #EFE7D6;
  --cream-warm: #F3EADA;
  --oxblood: #6B2A24;
  --oxblood-ink: #3A231F;
  --ochre: #E7B579;
  --ochre-deep: #C98A4B;
  --bronze: #8A5C2E;

  --line-dark: rgba(239, 231, 214, .2);
  --line-light: rgba(44, 53, 44, .18);

  --serif: "EB Garamond", Georgia, serif;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gutter: 40px;
  --ease: 200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--olive); color: var(--cream);
  font-family: var(--sans); font-size: 16px; line-height: normal;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--ease), background-color var(--ease), border-color var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ochre); color: var(--oxblood-ink);
  padding: 12px 18px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* Focus: ochre on the dark bands, oxblood on the light ones. */
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.band-light :focus-visible { outline-color: var(--oxblood); }

.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ochre); }

/* ---- Nav ---- */
.nav { position: relative; z-index: 20; background: var(--olive); border-bottom: 1px solid var(--line-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--serif); font-size: 19px; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 231, 214, .8); }
.nav-links a:hover, .footer a:hover { color: var(--ochre); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-enquire {
  display: inline-block; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--ochre-deep); color: var(--ochre);
}
.btn-enquire:hover { background: var(--ochre-deep); color: var(--olive); }
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; height: 620px; background: var(--olive-light); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 20, .15) 0%, rgba(20, 26, 20, .35) 45%, rgba(20, 26, 20, .88) 100%);
}
.hero-inner { position: relative; width: 100%; padding-bottom: 56px; }
.hero-copy { max-width: min(62vw, 769px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: 70px; line-height: 1.03; text-wrap: pretty; color: var(--cream); }
.hero-sub { margin-top: 22px; font-size: 16.5px; line-height: 1.7; max-width: 50ch; color: rgba(239, 231, 214, .88); }

/* ---- Stat bar ---- */
.stats { border-bottom: 1px solid var(--line-dark); }
.stats .wrap { padding-left: 0; padding-right: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 30px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stat-label { margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 231, 214, .7); }

/* ---- Light bands (Services, Field Notes) ---- */
.band-light { background: var(--cream); color: var(--olive); }
.band-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid rgba(44, 53, 44, .25);
}
.band-head h2 { font-size: 42px; }
.band-note { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(44, 53, 44, .65); }
.band-link { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.band-link:hover { color: var(--oxblood); }

/* ---- Services ---- */
.services { padding: 72px 0; }
.service {
  display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
  gap: 30px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line-light);
}
.service-no { padding-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--bronze); }
.service-name { font-size: 30px; line-height: 1.15; }
.service-meta { margin-top: 10px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(44, 53, 44, .6); }
.service-copy { font-size: 15.5px; line-height: 1.7; color: rgba(44, 53, 44, .85); }
.service-cta {
  white-space: nowrap; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 22px; background: var(--olive); color: var(--cream);
}
.service-cta:hover { background: var(--olive-hover); }

/* ---- Booking ---- */
.booking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-panel { background: var(--oxblood); padding: 64px 44px; color-scheme: dark; }
.booking .eyebrow { margin-bottom: 20px; }
.booking h2 { font-size: 44px; line-height: 1.06; color: var(--cream-warm); }
.booking-intro { margin: 18px 0 32px; max-width: 40ch; font-size: 15.5px; line-height: 1.7; color: rgba(243, 234, 218, .85); }

/* Step-by-step request form: one question per step, each choice explained. */
.bk { position: relative; max-width: 540px; }
.bk-step, .bk-block { margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-block { margin-top: 26px; }
.bk-block.bk-first { margin-top: 0; }
.bk-q { display: block; width: 100%; margin: 0 0 12px; padding: 0; font-family: var(--serif); font-size: 19px; line-height: 1.25; color: var(--cream-warm); outline: none; }
legend.bk-q { float: left; }
legend.bk-q + * { clear: both; }
.bk-q-lg { font-size: 30px; line-height: 1.12; margin-bottom: 18px; }
.bk-opt { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 234, 218, .55); vertical-align: 2px; }
.bk-help { margin-top: 9px; font-size: 13.5px; line-height: 1.6; color: rgba(243, 234, 218, .74); }
.bk-lock { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }
.bk-lock::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--ochre); }
.bk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fi {
  display: block; width: 100%; font-family: var(--sans); font-size: 15px; padding: 14px;
  border: 1px solid rgba(243, 234, 218, .4); background: transparent; color: var(--cream-warm);
  transition: border-color var(--ease);
}
textarea.fi { resize: vertical; }
.fi::placeholder { color: rgba(243, 234, 218, .55); opacity: 1; }
.fi:focus { border-color: var(--ochre); }
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.choice { position: relative; display: block; padding: 16px 46px 16px 18px; cursor: pointer; border: 1px solid rgba(243, 234, 218, .4); transition: border-color var(--ease), background-color var(--ease); }
.choice:hover { border-color: rgba(243, 234, 218, .8); }
.choice::after { content: ""; position: absolute; top: 20px; right: 18px; width: 9px; height: 9px; border: 1px solid rgba(243, 234, 218, .5); }
.choice:has(input:checked) { border-color: var(--ochre); background: rgba(231, 181, 121, .1); }
.choice:has(input:checked)::after { background: var(--ochre); border-color: var(--ochre); }
.choice:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--ochre); outline-offset: 2px; }
.choice-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.choice-t { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: var(--cream-warm); }
.choice-m { font-size: 10.5px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 234, 218, .7); }
.choice-d { display: block; margin-top: 8px; max-width: 48ch; font-size: 14px; line-height: 1.6; color: rgba(243, 234, 218, .8); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 10px 13px; cursor: pointer; border: 1px solid rgba(243, 234, 218, .4); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 234, 218, .85); transition: border-color var(--ease), background-color var(--ease); }
.chip:hover { border-color: rgba(243, 234, 218, .8); }
.chip:has(input:checked) { border-color: var(--ochre); background: rgba(231, 181, 121, .14); color: var(--cream-warm); }
.bk-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: rgba(243, 234, 218, .75); }
.bk-inline .fi { width: auto; flex: 1 1 170px; max-width: 220px; padding: 11px 12px; }
.bk .form-foot { margin-top: 28px; }
.bk-link { padding: 15px 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(243, 234, 218, .8); transition: color var(--ease); }
.bk-link:hover { color: var(--ochre); }
.bk-nav .btn-send { margin-left: auto; }
.bk-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.stepbar { display: flex; flex: 1; gap: 6px; }
.stepbar i { flex: 1; height: 2px; background: rgba(243, 234, 218, .25); transition: background-color var(--ease); }
.stepbar i.on { background: var(--ochre); }
.bk-count { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; white-space: nowrap; color: rgba(243, 234, 218, .7); }
.bk-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(243, 234, 218, .25); font-family: var(--mono); font-size: 11.5px; line-height: 1.6; letter-spacing: .04em; color: var(--ochre); }
.bk-summary .bk-link { padding: 0; font-size: 10.5px; }
.bk-done h3 { margin: 16px 0 12px; font-size: 38px; line-height: 1.08; color: var(--cream-warm); outline: none; }
.bk-done-p { max-width: 42ch; font-size: 15.5px; line-height: 1.7; color: rgba(243, 234, 218, .86); }
.bk-done .bk-link { margin-top: 12px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn-send {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 28px; border: 0; background: var(--ochre); color: var(--oxblood-ink); cursor: pointer;
}
.btn-send:disabled { cursor: default; }
.form-status { flex-basis: 100%; font-size: 14px; line-height: 1.55; }
.form-status:empty { display: none; }
.booking .form-status { color: rgba(243, 234, 218, .92); }
.booking .form-status[data-kind="error"] { color: #F6C9A4; }
.booking-media { background: var(--olive-light); min-height: 520px; }
.booking-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
@media (min-width: 721px) {
  /* Edge to edge, but the panel's content starts on the site's content edge: the panel is half
     the viewport (c), and that edge sits at (2c - 1240) / 2 + 40 = c - 580px from the left. */
  .booking-panel { padding-left: max(40px, calc(100% - 580px)); }
  /* The photo fills the height the form needs instead of setting it. */
  .booking-media { position: relative; min-height: 0; }
  .booking-media img { position: absolute; inset: 0; min-height: 0; }
}
/* Honeypot: off-screen by clipping, never by offset (an offset box overflows). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Studio + projects ---- */
.studio { border-top: 1px solid var(--line-dark); }
.studio .wrap { padding-left: 0; padding-right: 0; }
/* The studio column is sized so the portrait comes out exactly one project tile wide:
   (S - 72) = (W - S - 72 - 22) / 2  =>  S = (W + 50) / 3, given 36px column padding and a 22px tile gap. */
.studio-grid { display: grid; grid-template-columns: calc((100% + 50px) / 3) minmax(0, 1fr); }
.studio-note { padding: 56px 36px; border-right: 1px solid var(--line-dark); }
.studio .eyebrow { margin-bottom: 18px; }
.studio-portrait { margin: 0 0 30px; }
.studio-portrait-frame { display: block; overflow: hidden; background: var(--olive-light); }
/* 103% inside the clipping frame hides a stray edge in the source photo. */
.studio-portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; transform: scale(1.03); }
.studio-portrait figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 231, 214, .65); }
.studio-portrait figcaption span:first-child { color: var(--cream); }
.studio-quote { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: rgba(239, 231, 214, .92); }
.studio-path { margin-top: 24px; font-size: 13.5px; line-height: 1.8; color: rgba(239, 231, 214, .7); }
.projects { padding: 56px 36px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
/* Square tiles: the project photography is portrait, which a short landscape tile would crop to a sliver. */
.project { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--olive-light); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project:hover img { transform: scale(1.03); }
.project-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px;
  background: linear-gradient(180deg, rgba(20, 26, 20, 0), rgba(20, 26, 20, .78));
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream);
  opacity: 0; transition: opacity var(--ease);
}
.project:hover .project-name, .project:focus-visible .project-name { opacity: 1; }
@media (hover: none) { .project-name { opacity: 1; } }

/* ---- Field Notes ---- */
.notes { padding: 66px 0; }
.note-list.is-loading { min-height: 282px; }
.note {
  display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 30px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-light);
}
.note:hover { background: rgba(44, 53, 44, .04); }
.note:hover .note-title { color: var(--bronze); }
.note-date { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); }
.note-title { font-size: 26px; line-height: 1.2; transition: color var(--ease); }
.note-blurb { font-size: 15px; line-height: 1.65; color: rgba(44, 53, 44, .8); }
.subscribe {
  margin-top: 38px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px 30px; flex-wrap: wrap; border: 1px solid rgba(44, 53, 44, .3); padding: 30px 32px;
}
.subscribe-pitch { max-width: 46ch; font-family: var(--serif); font-size: 24px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input {
  width: 250px; font-family: var(--sans); font-size: 15px; padding: 14px 16px;
  border: 1px solid rgba(44, 53, 44, .4); background: transparent; color: var(--olive);
  transition: border-color var(--ease);
}
.subscribe-form input::placeholder { color: rgba(44, 53, 44, .55); opacity: 1; }
.subscribe-form input:focus { border-color: var(--oxblood); }
.subscribe-form button {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 14px 26px; border: 0; background: var(--olive); color: var(--cream); cursor: pointer;
  transition: background-color var(--ease);
}
.subscribe-form button:hover { background: var(--olive-hover); }
.sub-status { color: rgba(44, 53, 44, .8); }
.sub-status[data-kind="error"] { color: var(--oxblood); }
.sub-status a { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footer ---- */
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  padding-top: 34px; padding-bottom: 34px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 231, 214, .65);
}
.footer-links { display: flex; gap: 22px; }

/* ---- Not found ---- */
.notfound { padding: 120px 0 140px; }
.notfound h1 { margin-top: 22px; font-size: 56px; line-height: 1.05; }
.notfound .btn-enquire { margin-top: 34px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-dark);
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--cream); transition: transform var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px;
    background: var(--olive); border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links a:last-child { border-bottom: 0; }

  .hero { height: auto; min-height: 540px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 44px; }

  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-note { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 48px var(--gutter); }
  .studio-portrait { max-width: 360px; }
  .projects { padding: 36px var(--gutter) 48px; }
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 20px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }

  .service { grid-template-columns: 34px minmax(0, 1fr); gap: 14px 16px; }
  .service-copy, .service-cta { grid-column: 2; }
  .service-cta { justify-self: start; margin-top: 4px; }

  .note { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 720px) {
  .booking { grid-template-columns: minmax(0, 1fr); }
  .booking-media { order: -1; min-height: 0; }
  .booking-media img { min-height: 0; height: 300px; }
  .booking-panel { padding: 52px var(--gutter); }
  .booking h2 { font-size: 38px; }
}

@media (max-width: 600px) {
  .subscribe { padding: 24px 20px; }
  .subscribe-form { width: 100%; }
  .subscribe-form input { width: auto; flex: 1 1 180px; min-width: 0; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .nav-inner { gap: 10px; padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 14px; letter-spacing: .2em; }
  .nav-actions { gap: 8px; }
  .btn-enquire { padding: 10px 12px; font-size: 10.5px; letter-spacing: .14em; }
  .nav-toggle { width: 36px; height: 36px; padding: 0 9px; }
  .hero h1 { font-size: 38px; }
  .services, .notes { padding: 56px 0; }
  .band-head h2 { font-size: 34px; }
  .service-name { font-size: 26px; }
  .note-title { font-size: 22px; }
  .bk-row { grid-template-columns: minmax(0, 1fr); }
  .studio-portrait { max-width: none; } /* full width on phones, like the project tiles */
  .bk-q-lg { font-size: 25px; }
  .choice { padding-right: 40px; }
  .notfound h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
