/* ==========================================================================
   T&A Building, Elgin — concept for KH Digital Studio
   Full-bleed photography, black and the gold from the firm's logo.
   ========================================================================== */

:root {
  --ink: #151310;
  --body: #5c564d;
  --muted: #8e8677;
  --brand: #17140f;
  --brand-2: #0e0c0a;
  --brand-soft: #f4eee1;
  --accent: #f1d380;
  --accent-2: #f6e7ab;
  --paper: #f7f4ec;
  --white: #ffffff;
  --line: #e7e1d4;
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 26px 60px -38px rgba(20, 16, 10, 0.35);
  --pad: clamp(1.1rem, 4vw, 2.6rem);
  --head: 78px;
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.95rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; line-height: 1.25; }
h4 { font-size: 1.1rem; font-weight: 600; }

.accent { color: var(--brand); }

.wrap {
  width: min(1200px, calc(100% - var(--pad) - var(--pad)));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 300;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- ribbon ---------- */

.ribbon {
  background: var(--brand-2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.ribbon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.ribbon b { color: var(--accent-2); font-weight: 700; }
.ribbon a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.ribbon a:hover { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-head.is-stuck { box-shadow: 0 18px 40px -34px rgba(18, 15, 11, 0.7); }
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  padding: 0.78rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111111;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1;
  color: var(--ink);
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.38rem;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.7vw, 1.7rem);
  font-size: 0.94rem;
  font-weight: 600;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }

.head-phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
  flex: none;
}
.head-phone:hover { color: var(--brand-2); }

.head-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #151310;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.66rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.head-cta:hover { background: #f6e0a2; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  margin-left: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

/* ---------- quotation banner ---------- */

.quote-banner {
  display: block;
  background: var(--accent);
  color: #151310;
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.quote-banner:hover { background: #f6e0a2; }
.quote-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem 1.2rem;
  flex-wrap: wrap;
  padding: clamp(0.95rem, 1.7vw, 1.25rem) 0;
}
.quote-banner-kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand-2);
  color: var(--accent);
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  line-height: 1;
  flex: none;
}
.quote-banner-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.45vw, 1.95rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.quote-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  background: var(--brand-2);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.quote-banner:hover .quote-banner-cta { background: var(--brand); }
.quote-banner-cta svg { transition: transform 0.2s var(--ease); }
.quote-banner:hover .quote-banner-cta svg { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 700px);
  background: var(--brand-2);
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(14, 12, 9, 0.9) 0%, rgba(14, 12, 9, 0.66) 46%, rgba(14, 12, 9, 0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.2rem, 7vw, 5.4rem);
}
.hero-copy { max-width: 44rem; }
.hero .kicker { color: var(--accent-2); }
.hero .kicker::before { background: var(--accent); }
.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero .accent { color: var(--accent-2); }
.hero .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  max-width: 36rem;
}
.hero .acts { margin-top: 2rem; }

/* spec card sitting over the bottom of the hero */

.spec-wrap {
  position: relative;
  z-index: 5;
  margin-top: clamp(-3.4rem, -3vw, -2.2rem);
}
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(18, 15, 11, 0.6);
  padding: 1.25rem 1.5rem;
}
.specs div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}
.specs div:first-child { border-left: 0; padding-left: 0; }
.specs span {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.28rem;
}
.specs b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- shared ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 44ch;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.55rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover { background: var(--brand-2); border-color: var(--brand-2); transform: translateY(-1px); }
.button svg { transition: transform 0.2s var(--ease); }
.button:hover svg { transform: translateX(3px); }

.button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #151310;
}
.button-accent:hover { background: #f6e0a2; border-color: #f6e0a2; }

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(23, 20, 15, 0.35);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--brand); }

figure { margin: 0; }
figcaption {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 60ch;
}
figcaption b { color: var(--ink); font-weight: 700; }

/* ---------- intro ---------- */

.intro {
  padding: clamp(3.4rem, 6.5vw, 5.4rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.intro .kicker { justify-content: center; }
.intro h2 { max-width: 24ch; margin-inline: auto; }
.intro > .wrap > p:not(.kicker) {
  max-width: 62ch;
  margin: 1rem auto 2rem;
  font-size: 1.02rem;
}

/* ---------- work cards ---------- */

.pair {
  background: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.pair-head {
  text-align: center;
  max-width: 62rem;
  margin: 0 auto;
}
.pair-head .kicker { justify-content: center; }
.pair-head h2 { max-width: 24ch; margin-inline: auto; }
.pair-head > p { max-width: 60ch; margin-inline: auto; color: var(--body); }

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
  padding-top: clamp(1.8rem, 3.5vw, 2.6rem);
}
.pair-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 1.6rem;
}
.pair-card figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.pair-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.pair-card:hover img { transform: scale(1.035); }

.card-no {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.38rem 0.72rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.pair-card h3 { color: var(--brand); margin: 1.4rem 1.5rem 0.5rem; }
.pair-card > p { padding: 0 1.5rem; font-size: 0.95rem; }
.pair-card ul {
  list-style: none;
  margin: 0.6rem 1.5rem 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.pair-card li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  color: var(--body);
}
.pair-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pair-link {
  margin: auto 1.5rem 0;
  align-self: flex-start;
  color: var(--brand);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(23, 20, 15, 0.22);
  padding-bottom: 2px;
}
.pair-link:hover { border-color: var(--brand); }

/* ---------- how it's built ---------- */

.built {
  padding: clamp(3.4rem, 6.5vw, 5.4rem) 0;
  background: #fff;
}
.built-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4.5vw, 3.8rem);
  align-items: start;
}
.built-copy h2 { max-width: 18ch; }
.built-copy > p { max-width: 50ch; font-size: 0.98rem; }

.layers {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: layer;
}
.layers li {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--body);
}
.layers li::before {
  content: counter(layer);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #151310;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.86rem;
}
.layers b {
  grid-column: 2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--brand);
  margin-bottom: 0.1rem;
}

.built-art {
  position: sticky;
  top: calc(var(--head) + 1.4rem);
}
.built-photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.built-photo figcaption { margin-top: 0.8rem; }
.cut-note {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 40ch;
}

/* ---------- porcelain split ---------- */

.porcelain {
  padding: clamp(3.2rem, 6vw, 5.2rem) 0;
  background: var(--paper);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.split-body h2 { max-width: 20ch; }
.split-body p { max-width: 48ch; }

/* ---------- details / gallery ---------- */

.details {
  padding: clamp(3.4rem, 6.5vw, 5.4rem) 0 clamp(3rem, 6vw, 4.8rem);
  background: #fff;
}
.details-head {
  text-align: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.details-head h2 { margin-inline: auto; max-width: 20ch; }
.details-head p { color: var(--body); max-width: 52ch; margin-inline: auto; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}
.details-grid img,
.more-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.details-grid figcaption { font-size: 0.8rem; }

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.details-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.details-note a { color: var(--brand); font-weight: 600; }

.recent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.recent > div {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
}
.recent-k {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.45rem;
}
.recent p { font-size: 0.9rem; margin: 0; }
.recent b { color: var(--ink); font-weight: 700; }

/* ---------- about ---------- */

.about {
  background: var(--paper);
  padding: clamp(3.2rem, 6vw, 5.2rem) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.about-grid h2 { max-width: 16ch; }
.about-grid p { max-width: 48ch; }

.facts {
  margin: 1.7rem 0 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 0.2rem 1.4rem;
  box-shadow: var(--shadow);
}
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.facts div:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.34rem;
}
.facts dd { margin: 0; }

.area {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.area h3 { color: var(--brand); }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.area-list li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
}
.area-note { font-size: 0.86rem; color: var(--muted); margin-top: 1.1rem; }

/* ---------- contact ---------- */

.contact {
  padding: clamp(3.4rem, 6.5vw, 5.4rem) 0;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.82);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.contact .kicker { color: var(--accent-2); }
.contact .kicker::before { background: var(--accent); }
.contact-copy h2 { color: #fff; max-width: 16ch; }
.contact .accent { color: var(--accent-2); }
.contact-copy > p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }

.methods { margin-top: 1.8rem; }
.method {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.method span {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.3rem;
}
.method .tbc {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #fff;
  margin: 0 0 0.35rem;
  display: inline-block;
  word-break: break-word;
}
.method .tbc a { color: inherit; text-decoration: none; }
.method .tbc a:hover { color: var(--accent-2); }
.method p:last-child {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 44ch;
}

.enquiry {
  background: #fff;
  color: var(--body);
  border-radius: 22px;
  box-shadow: 0 30px 70px -30px rgba(10, 8, 6, 0.55);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
}
.enquiry h3 { color: var(--ink); margin-bottom: 1.1rem; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.9rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.enquiry .button { width: 100%; margin-top: 0.2rem; }
.form-note {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0.9rem 0 0;
}
.form-status {
  font-size: 0.84rem;
  color: var(--brand);
  margin: 0.6rem 0 0;
}
.form-status:empty { display: none; }

/* ---------- page head (notes) ---------- */

.page-head {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.page-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
}
.page-head h1 { margin-bottom: 0; max-width: 16ch; }
.page-head .aside p { font-size: 0.98rem; max-width: 46ch; }

/* ---------- notes body ---------- */

.notes-body {
  padding: clamp(2rem, 3.6vw, 3rem) 0 clamp(2.8rem, 4.4vw, 3.8rem);
  max-width: 800px;
}
.notes-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.notes-body h2:first-of-type { margin-top: 1.6rem; }
.notes-body p, .notes-body li { font-size: 0.96rem; }
.notes-body ul, .notes-body ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.notes-body li { margin-bottom: 0.5rem; }
.notes-body .note {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}
.notes-body code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.notes-back { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--brand-2);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  padding: clamp(2.4rem, 4vw, 3.4rem) 0 1.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.site-foot strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.site-foot p { margin: 0 0 0.55rem; }
.site-foot a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-foot a:hover { color: var(--accent-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.foot-small span { max-width: 64ch; }

/* ---------- quotation page ---------- */

.doc-page .head-cta { margin-left: auto; }

.doc-wrap {
  max-width: 54rem;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 0;
}
.doc-kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.doc-title { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 22ch; }
.doc-lede {
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 46rem;
}

.price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  background: var(--brand);
  color: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.price-copy { display: flex; flex-direction: column; gap: 0.4rem; max-width: 34rem; }
.price-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.price-note { font-size: 0.88rem; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.price {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.doc-section {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  padding-top: clamp(1.2rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}
.doc-section h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); margin-bottom: 0.7rem; }
.doc-section > p { max-width: 46rem; }

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
.doc-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.doc-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--brand); }
.doc-card p { font-size: 0.93rem; }
/* these two carry two classes on purpose: .doc-card p would otherwise
   win on specificity and flatten the label and the figure */
.doc-card .doc-card-k {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.doc-card .doc-card-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0.1rem 0 0.7rem;
}

.doc-list { margin: 0.7rem 0 0; padding-left: 1.2rem; font-size: 0.94rem; }
.doc-list li { margin-bottom: 0.4rem; }
.doc-list code { font-family: ui-monospace, Menlo, monospace; font-size: 0.86em; }

.doc-note {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 54ch;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.doc-foot {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero { min-height: clamp(480px, 64vh, 620px); }
  .specs { grid-template-columns: 1fr 1fr; row-gap: 1.1rem; }
  .specs div:nth-child(3) { border-left: 0; padding-left: 0; }
  .specs div:nth-child(-n+2) { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
  .pair-grid { gap: 1.2rem; }
  .built-grid { grid-template-columns: 1fr; }
  .built-art { position: static; max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 680px; }
  .about-grid,
  .contact-grid,
  .page-head .wrap { grid-template-columns: 1fr; }
  .details-grid { gap: 1rem; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: block; order: 4; margin-left: 0.5rem; }
  .site-head .wrap { flex-wrap: wrap; row-gap: 0.6rem; }
  .site-head .brand { margin-right: auto; }
  .nav {
    order: 6;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .head-cta { display: none; }
}

@media (max-width: 760px) {
  .ribbon .wrap { justify-content: flex-start; }
  .ribbon .wrap span:last-child { display: none; }
  .pair-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .more-grid { grid-template-columns: 1fr; }
  .recent { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-actions .button { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .quote-banner-cta { margin-left: 0; }
  .specs { padding: 1.1rem 1.2rem; }
}

@media (max-width: 560px) {
  .site-head .wrap { gap: 0.55rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 0.8rem; }
  .brand-name { font-size: 1rem; }
  .brand-name span { display: none; }
  .head-phone { order: 2; margin-left: 0; font-size: 0.74rem; }
  .nav-toggle { order: 3; margin-left: 0.45rem; padding: 0.5rem 0.7rem; font-size: 0.8rem; }
  .head-cta { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 9.4vw, 2.9rem); }
  .hero .lede { font-size: 0.98rem; }
  .hero-bg { object-position: 62% 68%; }
  .spec-wrap { margin-top: -1.6rem; }
  .specs { grid-template-columns: 1fr; }
  .specs div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
  .specs div:last-child { border-bottom: 0; padding-bottom: 0; }
  .specs div:nth-child(-n+2) { padding-bottom: 0.8rem; }
  .layers li { grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 0.8rem; }
  .layers li::before { width: 2rem; height: 2rem; font-size: 0.78rem; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .facts div { grid-template-columns: 1fr; gap: 0.05rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .quote-banner-text { font-size: 1.08rem; }
  .quote-banner-kicker { font-size: 0.58rem; }
}

/* the quotation page has no menu, so keep its way back on a phone */
@media (max-width: 560px) {
  .doc-page .head-cta {
    display: inline-flex;
    margin-left: auto;
    font-size: 0.78rem;
    padding: 0.52rem 0.85rem;
  }
}

/* ---------- interior pages ---------- */

.page-lead {
  padding: clamp(1.8rem, 3.4vw, 2.6rem) 0 clamp(2rem, 3.6vw, 3rem);
}
.page-lead img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.page-lead figcaption { max-width: 70ch; }

.pair .recent > div { background: #fff; }

/* closing band on the interior pages */
.next {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: clamp(3.2rem, 6vw, 5rem) 0;
}
.next h2 { color: #fff; margin-inline: auto; max-width: 22ch; }
.next .accent { color: var(--accent-2); }
.next p { max-width: 54ch; margin: 0 auto 1.7rem; }
.next .acts { justify-content: center; }
.next .acts .button { margin: 0; }
