/* Basalt Facade & Cladding. Mobile-first, no frameworks. Breakpoints: 640, 960, 1200. */

@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --basalt-950: #121314;
  --basalt-900: #1b1d1f;
  --basalt-800: #26292c;
  --stone-400: #9a9ea2;
  --paper: #f5f3ef;
  --stone-100: #e8e4de;
  --stone-600: #5a5e62;
  --ink: #1e2022;
  --ember: #c8743f;
  --ember-light: #e39a66;
  --ember-dark: #9a4f22;
  --white: #ffffff;
  --ember-hover: #d88a57;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --gutter: 20px;
  --section-pad: var(--s8);
  --header-h: 64px;

  /* Light surface defaults (overridden by .dark) */
  --bg: var(--paper);
  --fg: var(--ink);
  --head: var(--ink);
  --muted-c: var(--stone-600);
  --link: var(--ember-dark);
  --focus: var(--ember-dark);
  --rule: var(--stone-100);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* Surfaces */
.light { --bg: var(--paper); background: var(--bg); }
.light-alt { --bg: var(--stone-100); --muted-c: var(--stone-600); --link: var(--ember-dark); --rule: #d6d1c9; background: var(--bg); }
.dark, .dark-alt {
  --fg: var(--white);
  --head: var(--white);
  --muted-c: var(--stone-400);
  --link: var(--ember-light);
  --focus: var(--ember-light);
  --rule: var(--basalt-800);
}
.dark { --bg: var(--basalt-950); background: var(--bg); }
.dark-alt { --bg: var(--basalt-900); background: var(--bg); }
.light, .light-alt, .dark, .dark-alt { color: var(--fg); }
.light, .light-alt { --fg: var(--ink); --head: var(--ink); }

/* Type */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--head);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 1.3rem + 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.eyebrow {
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted-c);
  margin: 0 0 var(--s3);
}
.lede { font-size: 1.1875rem; margin-top: var(--s5); }
.intro { margin-top: var(--s4); }
.muted { color: var(--muted-c); }
.note { color: var(--muted-c); font-size: 0.9375rem; margin: var(--s3) 0 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; position: relative; }
.section > .container > h2 { margin-bottom: var(--s5); }
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--ember); color: var(--basalt-950); padding: var(--s3) var(--s4);
  font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip:focus { top: var(--s2); outline: 3px solid var(--ember-light); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px;
  border-radius: 2px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn-primary { background: var(--ember); color: var(--basalt-950); }
.btn-primary:hover { background: var(--ember-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--fg); border-color: currentColor; }
.dark .btn-secondary:hover, .dark-alt .btn-secondary:hover { background: var(--basalt-800); text-decoration: none; }
.light .btn-secondary:hover, .light-alt .btn-secondary:hover { background: var(--stone-100); text-decoration: none; }
.light-alt .btn-secondary:hover { background: var(--paper); }
.btn-compact { min-height: 44px; padding: 10px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* Header */
.site-header {
  background: var(--basalt-950);
  border-bottom: 1px solid var(--basalt-800);
  position: relative; z-index: 50;
}
.js .site-header { position: sticky; top: 0; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s2) var(--s3); min-height: calc(var(--header-h) - 1px); padding-top: 6px; padding-bottom: 6px;
}
.brand { display: block; text-decoration: none; color: var(--white); line-height: 1; margin-right: auto; padding: 0; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.16em; }
.brand-sub { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--stone-400); margin-top: 4px; }
.site-footer .brand-name, .site-footer .brand-sub { margin: 0; max-width: none; }
.site-footer .brand-sub { margin-top: 4px; }
.cta-short { display: inline; }
.cta-long { display: none; }
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; color: var(--white); border: 1px solid var(--basalt-800); border-radius: 2px; cursor: pointer;
}
.site-nav { order: 5; width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s1); color: var(--white); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ember-light); text-decoration: underline; }

@media (max-width: 959.98px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; padding-bottom: var(--s3); }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-top: 1px solid var(--basalt-800); }
  .js .site-nav a { width: 100%; padding: 0 var(--s2); }
}

/* Hero */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: var(--s7) 0; }
.hero > .hero-inner { width: 100%; }
.hero-inner { position: relative; z-index: 1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(18, 19, 20, 0.62); }
/* Text sits on a photograph, so every hero text colour is white (muted greys fail contrast over a photo). */
.hero .eyebrow, .hero .note, .hero .lede { color: var(--white); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 52ch; }
.hex-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--basalt-800); pointer-events: none; z-index: 0;
}
.contact-inner { position: relative; z-index: 1; }

/* Cards (why) */
.cards { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--stone-100); border-radius: 2px; padding: var(--s5); }
.card .icon { color: var(--ember-dark); margin-bottom: var(--s4); display: block; }
.card h3 { margin-bottom: var(--s2); }
.card p { margin: 0; color: var(--stone-600); font-size: 1rem; }

/* Services */
.services { list-style: none; margin: var(--s6) 0 var(--s5); padding: 0; counter-reset: svc; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.services li { counter-increment: svc; position: relative; padding: var(--s4) 0 var(--s4) 56px; border-bottom: 1px solid var(--rule); }
.services li::before {
  content: counter(svc, decimal-leading-zero);
  position: absolute; left: 0; top: var(--s4);
  font: 700 1.25rem/1.2 var(--font-head); color: var(--ember-dark);
}
.services h3 { margin-bottom: var(--s1); font-size: 1.25rem; }
.services p { margin: 0; color: var(--stone-600); font-size: 1rem; }

/* Steps */
.steps { list-style: none; margin: var(--s6) 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; grid-template-columns: 1fr; }
.steps li { counter-increment: step; position: relative; padding: var(--s4) 0 var(--s4) 64px; border-top: 1px solid var(--basalt-800); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: var(--s4);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--ember); color: var(--ember-light);
  font: 700 1.25rem/1 var(--font-head);
}
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--stone-400); font-size: 1rem; }
.steps .confirm { color: var(--stone-400); }

/* What to send */
.send-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
.checklist { list-style: none; margin: var(--s5) 0 var(--s5); padding: 0; }
.checklist li { position: relative; padding: var(--s2) 0 var(--s2) 36px; border-bottom: 1px solid var(--stone-100); }
.checklist li::before {
  content: ""; position: absolute; left: 6px; top: 15px; width: 9px; height: 16px;
  border-right: 3px solid var(--ember-dark); border-bottom: 3px solid var(--ember-dark); transform: rotate(40deg);
}
.send-action { background: var(--white); border: 1px solid var(--stone-100); border-radius: 2px; padding: var(--s5); align-self: start; display: grid; gap: var(--s3); }
.send-action .action-title { font: 700 1.5rem/1.2 var(--font-head); margin: 0; }
.send-action .btn { width: 100%; }
.send-action .note { margin: 0; }
.copy-btn { display: none; }
.js .copy-btn { display: inline-flex; }
.copy-status { margin: 0; min-height: 1.6em; font-size: 0.9375rem; color: var(--ink); font-weight: 600; }

/* Projects (hidden by default) */
.project-grid { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.project img { display: block; width: 100%; height: auto; border-radius: 0; background: var(--stone-100); }
.project dl { margin: var(--s3) 0 0; }

/* Credentials */
.credentials { margin: var(--s6) 0 0; border-top: 1px solid var(--rule); }
.credentials div { display: grid; gap: var(--s1); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.credentials dt { font-weight: 600; }
.credentials dd { margin: 0; color: var(--stone-600); }

/* About */
.about p { max-width: 62ch; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); margin-top: var(--s5); }
.faq summary {
  min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s3) 0; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.75rem/1 var(--font-body); color: var(--ember-dark); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--s4); color: var(--stone-600); }

/* Contact */
.contact { padding: var(--s8) 0; overflow: hidden; }
.big-email {
  display: inline-block; font: 600 clamp(1.5rem, 1rem + 3vw, 2.5rem)/1.2 var(--font-head);
  color: var(--ember-light); word-break: break-word; padding: var(--s2) 0;
}
.contact p { margin-bottom: var(--s3); }
.contact .btn-row { margin-top: var(--s4); }

/* Footer */
.site-footer { padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--basalt-800); }
.footer-inner { display: grid; gap: var(--s6); }
.footer-brand p { margin-bottom: var(--s3); }
.footer-brand .brand-name { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.16em; line-height: 1; }
.footer-brand .brand-sub { color: var(--stone-400); font-size: 13px; letter-spacing: 0.04em; margin-bottom: var(--s4); }
.footer-details { list-style: none; margin: 0; padding: 0; }
.footer-details li { padding: var(--s1) 0; color: var(--white); }
.footer-details a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-base { margin: 0; color: var(--stone-400); font-size: 0.9375rem; max-width: none; }

/* Review aids: placeholders and unconfirmed copy must stand out until resolved */
.placeholder {
  outline: 2px dashed var(--ember-dark); outline-offset: 2px; padding: 0 4px; border-radius: 2px; font-weight: 600;
}
.dark .placeholder, .dark-alt .placeholder { outline-color: var(--ember-light); }
.confirm { text-decoration: underline dashed; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ember-dark); }
.dark .confirm, .dark-alt .confirm { text-decoration-color: var(--ember-light); }

/* >= 640px */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); }
  .credentials div { grid-template-columns: 14rem 1fr; gap: var(--s4); }
  .btn-row { margin-top: var(--s7); }
}

/* >= 960px */
@media (min-width: 960px) {
  :root { --section-pad: 112px; --gutter: 32px; }
  body { font-size: 1.125rem; } /* 18px */
  .site-header { position: sticky; top: 0; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { order: 0; width: auto; display: block; margin-left: var(--s6); margin-right: auto; }
  .brand { margin-right: 0; }
  .site-nav ul { gap: 0 var(--s5); }
  .hero { padding: var(--s9) 0; }
  .contact { padding: 112px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); max-width: 52rem; }
  .hero::after { background: linear-gradient(90deg, rgba(18, 19, 20, 0.84) 0%, rgba(18, 19, 20, 0.62) 55%, rgba(18, 19, 20, 0.32) 100%); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--s5); }
  .steps li { padding: 72px 0 0; border-top: 1px solid var(--basalt-800); }
  .steps li::before { top: var(--s4); }
  .send-grid { grid-template-columns: 7fr 5fr; gap: var(--s9); align-items: start; }
  .footer-inner { grid-template-columns: 5fr 4fr 3fr; align-items: start; }
  .footer-base { grid-column: 1 / -1; }
}

/* >= 1200px */
@media (min-width: 1200px) {
  .hero h1 { max-width: 18ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
