/* ------------------------------------------------------------------
   _shared/base.css
   Brand-neutral foundation consumed by every archetype. Palette, type,
   and scale are driven entirely by CSS custom properties. The :root
   below is the DEFAULT token set; generate.js injects a per-prospect
   <style id="brand-tokens"> AFTER the stylesheet link, so brand tokens
   override these defaults (equal specificity, later wins). Veils and
   overlays are derived from --bg with color-mix so they track any palette.

   Also owns the frozen contact-form styles (the form markup is the single
   shared partial archetypes/_shared/contact-form.partial.html), the header,
   footer, buttons, make-it-mine CTA, reveal animation, and a11y utilities.
   ------------------------------------------------------------------ */

:root {
  /* palette (default: charcoal-sienna) */
  --bg: #0d0e0a;
  --surface: #161812;
  --surface-2: #1f221c;
  --text: #f4ede0;
  --text-soft: rgba(244,237,224,0.78);
  --text-mute: rgba(244,237,224,0.55);
  --text-dim: rgba(244,237,224,0.22);
  --accent: #c47753;
  --accent-deep: #a4623f;
  --highlight: #9bb47a;
  --on-accent: #f4ede0;
  --rule: rgba(244,237,224,0.14);
  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Karla', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display-clamp: clamp(2.6rem, 6.2vw, 5.4rem);
  --display-lh: 0.98;
  --display-ls: -0.015em;
  --base-size: 17px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--base-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }

.skip {
  position: absolute; left: -9999px;
  background: var(--text); color: var(--bg); padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; z-index: 1000; }

/* ---------- Shared type primitives ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.kicker-line { display: inline-block; width: 32px; height: 1px; background: var(--accent); }
.kicker-center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--display-clamp);
  line-height: var(--display-lh);
  letter-spacing: var(--display-ls);
  color: var(--text);
  margin: 0 0 24px;
}
.display em { font-style: italic; color: var(--highlight); font-weight: 400; }

.section-lede { font-size: 1.05rem; color: var(--text-soft); max-width: 50ch; margin: 0; }
.section-head { margin: 0 0 56px; max-width: 640px; }
.section-head-center { margin: 0 auto 64px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); transform: translateY(-1px); }
.btn-block { width: 100%; padding: 18px 32px; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.btn-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding: 0; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; row-gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.wordmark { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; flex-shrink: 0; }
.wordmark-text { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.005em; color: var(--text); }
.wordmark-sub { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--text-mute); text-transform: uppercase; }
.nav { display: none; gap: 36px; align-items: center; }
.nav a { color: var(--text-soft); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding-bottom: 4px; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s ease; }
.nav a:hover::after { width: 100%; }
.header-phone { color: var(--text); font-family: var(--serif); font-weight: 500; font-size: 18px; font-feature-settings: "lnum"; border-bottom: 1px solid var(--text-dim); padding-bottom: 2px; white-space: nowrap; transition: border-color .25s ease, color .25s ease; }
.header-phone:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 1000px) { .nav { display: flex; } }

/* ---------- Contact (frozen partial) ---------- */
.contact { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--rule); }
.contact-wrap { display: grid; gap: 56px; grid-template-columns: 1fr; }
.contact-lede { color: var(--text-soft); font-size: 1.1rem; max-width: 40ch; margin: 0 0 36px; }
.contact-direct { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-direct li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cd-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; }
.contact-direct a, .contact-direct li > span:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.contact-direct a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 22px; background: var(--bg); padding: 40px 32px; border: 1px solid var(--rule); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; padding: 14px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--text); width: 100%; transition: border-color .25s ease; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-opacity='.5' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px;
}
.field select option { background: var(--bg); color: var(--text); }
.field textarea { resize: vertical; min-height: 84px; }
.row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
.form-status { margin: 0; font-size: 14px; min-height: 20px; color: var(--text-soft); }
.form-status.ok { color: var(--highlight); }
.form-status.err { color: var(--accent); }
.form-fineprint { font-size: 11px; color: var(--text-mute); margin: 0; letter-spacing: 0.05em; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--rule); padding: 70px 0 0; }
.footer-wrap { display: grid; gap: 48px; grid-template-columns: 1fr; padding-bottom: 50px; border-bottom: 1px solid var(--rule); }
.footer-name { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 8px; color: var(--text); }
.footer-tagline { color: var(--text-mute); font-size: 14px; margin: 0; max-width: 36ch; }
.footer-cols { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-h { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); font-weight: 600; margin: 0 0 8px; }
.footer-col a, .footer-col span { font-family: var(--serif); font-size: 1rem; color: var(--text-soft); }
.footer-fine { padding: 24px 0; }
.footer-fine p { margin: 0; font-size: 12px; color: var(--text-mute); }
@media (min-width: 800px) { .footer-wrap { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ---------- Make-it-Mine ---------- */
.make-it-mine {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 0;
  font-size: 14px; font-weight: 500; display: flex; flex-direction: column; line-height: 1.2;
  transition: background .25s ease, color .25s ease, transform .2s ease;
  max-width: 240px; border: 1px solid var(--text);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--bg) 60%, transparent);
}
.make-it-mine:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
.mim-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.mim-cta { font-family: var(--serif); font-size: 17px; font-style: italic; }
@media (max-width: 600px) { .make-it-mine { padding: 12px 18px; bottom: 16px; right: 16px; max-width: 200px; } }

/* ---------- Reveal ---------- */
/* JS adds .reveal (hidden), then .in when scrolled into view. A [data-stagger]
   container sets --reveal-delay per child so a group cascades in. Archetypes
   may add their own reveal flavors; this is the shared default. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); transition-delay: var(--reveal-delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* Parallax layers are moved by JS via translate3d; hint the compositor. */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}


/* ------------------------------------------------------------------
   editorial-stack/archetype.css
   Section layout for the cinematic editorial stack: full-bleed hero,
   stats band, work grid, sticky-head services list, towns row, about
   figure, review stack. All color via tokens; veils derived from --bg
   with color-mix so any (dark) palette recolors cleanly.
   ------------------------------------------------------------------ */

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; padding: 140px 0 60px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.5) saturate(1.05); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 65%, transparent) 0%,
      color-mix(in srgb, var(--bg) 30%, transparent) 35%,
      color-mix(in srgb, var(--bg) 90%, transparent) 100%),
    radial-gradient(800px 500px at 20% 60%, color-mix(in srgb, var(--bg) 30%, transparent), transparent 70%);
}
.hero-wrap { position: relative; z-index: 1; padding-bottom: 0; padding-top: 0; width: 100%; }
.hero-content { max-width: 760px; }
.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 48ch; margin: 0 0 36px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- Stats band ---------- */
.hero-stats { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hero-stats-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding-top: 32px; padding-bottom: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 12px 24px 12px 0; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; line-height: 1; color: var(--text); letter-spacing: -0.02em; }
.stat-num-text { font-size: 2rem; padding-top: 8px; }
.stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; line-height: 1.4; }
.stat-sub { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-mute); }
@media (min-width: 700px) {
  .hero-stats-wrap { grid-template-columns: repeat(4, 1fr); }
  .stat { border-right: 1px solid var(--rule); }
  .stat-last { border-right: 0; }
}

/* ---------- Work ---------- */
.work { padding: 110px 0; }
.work-grid { display: grid; gap: 16px; grid-template-columns: 1fr; grid-auto-flow: dense; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .5s ease; filter: brightness(0.85); }
.work-card:hover img { transform: scale(1.05); filter: brightness(1); }
.work-card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, transparent 100%); color: var(--text); }
.work-card-meta p { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.work-card-meta .work-loc { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; display: block; }
.work-card-big { grid-column: span 1; aspect-ratio: 4/3; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .work-card-big { grid-column: span 2; aspect-ratio: 16/7; } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } .work-card-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

/* ---------- Services (numbered-list default) ---------- */
.services { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.services-wrap { display: grid; gap: 64px; grid-template-columns: 1fr; }
.services-intro { color: var(--text-soft); font-size: 1.05rem; margin: 0; max-width: 40ch; }
.services-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.service-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); transition: background .25s ease, padding-left .25s ease; }
.service-item:hover { background: var(--surface-2); padding-left: 18px; padding-right: 18px; }
.service-num { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--accent); line-height: 1; padding-top: 4px; }
.service-content h3 { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; margin: 0 0 8px; line-height: 1.1; letter-spacing: -0.01em; }
.service-content p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; max-width: 56ch; }
@media (min-width: 900px) {
  .services-wrap { grid-template-columns: 0.7fr 1.3fr; gap: 96px; align-items: start; }
  .services-head { position: sticky; top: 40px; }
}

/* ---------- Area ---------- */
.area { padding: 110px 0; }
.towns-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.town { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--text); padding: 24px 28px; position: relative; transition: color .25s ease, background .25s ease; }
.town:not(:last-child)::after { content: '\00b7'; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-style: normal; font-size: 1.2rem; }
.town:hover { color: var(--accent); background: var(--surface); }

/* ---------- About ---------- */
.about { padding: 110px 0; background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-wrap { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
.about-text p { color: var(--text-soft); font-size: 1.05rem; margin: 0 0 18px; max-width: 56ch; line-height: 1.6; }
.about-text .sig { margin-top: 36px; font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--text); }
.sig-role { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-top: 6px; font-weight: 500; }
.about-figure { margin: 0; }
.about-figure img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .about-wrap { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } .about-text { order: 1; } .about-figure { order: 2; } }

/* ---------- Reviews ---------- */
.reviews { padding: 110px 0; }
.reviews-stack { display: grid; gap: 24px; grid-template-columns: 1fr; }
.review-card { border: 1px solid var(--rule); padding: 36px; display: flex; flex-direction: column; gap: 18px; transition: border-color .3s ease, background .3s ease; }
.review-card:hover { border-color: var(--accent); background: var(--surface); }
.review-card .stars { color: var(--accent); font-size: 14px; letter-spacing: 3px; }
.review-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.4; color: var(--text); font-style: italic; }
.review-card cite { font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
@media (min-width: 800px) { .reviews-stack { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reviews-stack { grid-template-columns: repeat(3, 1fr); } }


/* ------------------------------------------------------------------
   editorial-stack/components.css
   Styles for OPTIONAL component variants only. The default variants are
   styled in archetype.css; this file covers the alternates a brand kit
   can select (validComponentVariants in the manifest).
   ------------------------------------------------------------------ */

/* services: card-grid variant (alternate to numbered-list) */
.services-cards .services-head-center { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.services-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--rule); border: 1px solid var(--rule); }
.service-card { background: var(--surface); padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; transition: background .25s ease; }
.service-card:hover { background: var(--surface-2); }
.service-card .service-num { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--accent); line-height: 1; }
.service-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.service-card p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
