/* demos/construction/site.css
   ⚠️ NEW (Portfolio Demos)

   Stonemill Construction — fictional general contractor, concept demo.

   WHY THIS FILE IS STANDALONE
   Shares no layout system with the other three demos. This is the structural
   one: zero border-radius anywhere on the page, heavy condensed display type
   set in uppercase, thick rules that run edge to edge, full-width numbered
   rows instead of cards, and an unequal mosaic instead of a gallery grid.
   The amber accent is load-bearing — it marks ground lines, section edges
   and the single primary action, and appears nowhere else.

   It deliberately does NOT use: rounded corners, soft shadows, a serif face,
   centred composition, or the light ground the dental demo is built on.

   Contrast note: --amber (#e0a028) is used as a BACKGROUND behind near-black
   text and as a rule colour, never as small text on the dark ground, where
   it would sit near the AA boundary. Body copy on dark uses --steel-light.

   No inline <style> anywhere (D-003) — /demos/(.*) is a hash-free route.
*/

:root {
  --char: #16181a;
  --char-deep: #0f1113;
  --char-soft: #1e2124;
  --paper: #f2f1ee;
  --paper-dim: #dedcd7;
  /* --steel is the body-copy grey on the WARM WHITE ground, so it is
     tuned for that pairing (5.5:1). #6b7280 measured 4.29:1 there --
     under AA, and invisible to every static check; the rendered-DOM
     scan caught it across 30 nodes. --steel-light is its counterpart
     on the charcoal grounds, and also carries the outline button's
     border, which needs 3:1 as a UI component. */
  --steel: #5b6169;
  --steel-light: #a8aeb5;
  --amber: #e0a028;
  --amber-deep: #b87c14;
  --amber-text: #8a5c0a;   /* amber dark enough for small text on --paper */
  --rule: rgba(242, 241, 238, 0.14);
  --rule-light: rgba(22, 24, 26, 0.16);

  --display: "Clash Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --apex-strip-bg: #0f1113;
  --apex-strip-ink: #f2f1ee;
  --apex-strip-ink-dim: #9aa0a6;
  --apex-strip-line: rgba(242, 241, 238, 0.14);
  --apex-strip-accent: #e0a028;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--char);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
p { margin: 0; }
a { color: inherit; }

/* A18 (docs/website-quality-standard.md) -- every displayed phone number
   and email address is a real tel:/mailto: link, so a visitor on a phone
   places the call or opens a message with one tap instead of copying
   digits by hand. Deliberately identical to the surrounding text: these
   contact blocks were designed as data and this makes them actionable,
   not different. The underline appears on hover/focus so pointer and
   keyboard users still get an affordance. */
.sm-contactlink { color: inherit; text-decoration: none; }
.sm-contactlink:hover,
.sm-contactlink:focus-visible { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(38px, 5.6vw, 74px); font-weight: 700; }
h2 { font-size: clamp(27px, 3.4vw, 44px); }
h3 { font-size: clamp(19px, 1.9vw, 23px); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--char-deep);
  padding: 12px 20px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.sm-wrap { width: min(1280px, 100% - clamp(28px, 7vw, 100px)); margin-inline: auto; }

.sm-eyebrow {
  font-family: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-text);
}
/* Every dark ground, including the hero -- which is .sm-hero rather than
   .sm-sec--dark, and was the one omission the rendered scan caught. */
.sm-hero .sm-eyebrow,
.sm-sec--dark .sm-eyebrow,
.sm-craft .sm-eyebrow,
.sm-quote .sm-eyebrow { color: var(--amber); }

.sm-head { max-width: 64ch; margin-bottom: clamp(36px, 4vw, 58px); }
.sm-head h2 { margin-top: 14px; }
.sm-head__lede { margin-top: 18px; color: var(--steel); font-size: 17px; max-width: 58ch; }
.sm-sec--dark .sm-head__lede { color: var(--steel-light); }
.sm-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--steel);
  border-left: 3px solid var(--paper-dim);
  padding-left: 13px;
}

/* ---------- buttons: square, heavy ---------- */

.sm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px;
  font-family: var(--text);
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sm-btn--amber { background: var(--amber); color: var(--char-deep); border-color: var(--amber); }
.sm-btn--amber:hover { background: transparent; color: var(--amber); }
.sm-btn--outline { border-color: var(--steel-light); color: var(--paper); }
.sm-btn--outline:hover { border-color: var(--paper); }

/* Hit box extended by pseudo-element, not padding -- see the same note in
   the real-estate demo: padding would detach the underline from the text. */
.sm-link {
  position: relative;
  display: inline-block; margin-top: 28px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 5px;
}
.sm-link::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -8px; }
.sm-link:hover { color: var(--amber); }

/* ---------- navigation ---------- */

.sm-nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--char-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.sm-nav__inner {
  width: min(1280px, 100% - clamp(28px, 7vw, 100px));
  margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  min-height: 82px;
}

.sm-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.sm-mark__block { width: 12px; height: 30px; background: var(--amber); flex: none; }
.sm-mark__name {
  display: block; font-family: var(--display); font-size: 21px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 1;
}
.sm-mark__sub {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--steel-light); margin-top: 4px;
}

.sm-nav__links { display: flex; gap: 26px; }
.sm-nav__links a {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--steel-light);
  padding: 6px 0;
}
.sm-nav__links a:hover { color: var(--paper); }
.sm-nav__cta { min-height: 46px; padding: 0 20px; font-size: 12px; }

.sm-burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 2px solid var(--rule); cursor: pointer;
  place-items: center; gap: 4px;
}
.sm-burger span { display: block; width: 18px; height: 2px; background: var(--paper); transition: transform .2s ease, opacity .2s ease; }
.sm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sm-mobile { background: var(--char-deep); color: var(--paper); border-top: 1px solid var(--rule); }
.sm-mobile nav { display: flex; flex-direction: column; padding-bottom: 16px; }
.sm-mobile a {
  padding: 16px clamp(16px, 6vw, 40px);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.sm-mobile__cta { color: var(--amber); border-bottom: 0 !important; }

/* ---------- hero: hard 58/42 split ---------- */

.sm-hero { display: grid; grid-template-columns: 58fr 42fr; background: var(--char); color: var(--paper); }
.sm-hero__slab {
  padding: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 76px) clamp(56px, 7vw, 110px)
           max(clamp(28px, 7vw, 100px), calc((100vw - 1280px) / 2));
  border-right: 4px solid var(--amber);
  display: flex; flex-direction: column; justify-content: center;
}
.sm-hero h1 { margin-top: 18px; max-width: 13ch; }
.sm-hero__lede { margin-top: 24px; max-width: 48ch; color: var(--steel-light); font-size: 17.5px; }
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.sm-hero__plate { overflow: hidden; }
.sm-hero__plate svg { width: 100%; height: 100%; min-height: 420px; }

/* ---------- fact bar ---------- */

.sm-bar { background: var(--char-deep); color: var(--paper); border-top: 1px solid var(--rule); }
.sm-bar__inner {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: space-between; gap: 14px 34px;
  padding: 18px 0;
  font-size: 14.5px;
}
.sm-bar__label {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 2px;
}

/* ---------- sections ---------- */

.sm-sec { padding: clamp(66px, 8vw, 118px) 0; }
.sm-sec--dark { background: var(--char); color: var(--paper); }

/* ---------- service rows ---------- */

.sm-rows { border-top: 2px solid var(--char); }
.sm-row {
  display: grid;
  grid-template-columns: 110px 1fr 230px;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 3vw, 42px) max(clamp(28px, 7vw, 100px), calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--rule-light);
  transition: background-color .22s ease;
}
.sm-row:hover { background: var(--paper-dim); }
.sm-row__num {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--amber-text);
  line-height: 1;
}
.sm-row__body h3 { margin-bottom: 10px; }
.sm-row__body p { color: var(--steel); max-width: 62ch; }
.sm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-tags li {
  border: 1px solid var(--rule-light);
  padding: 5px 11px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel);
}

/* ---------- projects ---------- */

.sm-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.sm-project__plate { border-bottom: 4px solid var(--amber); }
.sm-project__plate svg { width: 100%; height: auto; }
.sm-project h3 { margin: 22px 0 16px; }
.sm-meta { display: flex; flex-direction: column; }
.sm-meta > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.sm-meta dt { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; color: var(--steel-light); align-self: center; }
.sm-meta dd { text-align: right; color: var(--paper); }

/* ---------- craft ---------- */

.sm-craft { background: var(--char-deep); color: var(--paper); padding: clamp(66px, 8vw, 118px) 0; }
.sm-craft__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 84px); align-items: center; }
.sm-craft h2 { margin: 16px 0 24px; }
.sm-craft__copy p { color: var(--steel-light); margin-bottom: 18px; max-width: 52ch; }
.sm-craft__detail { border: 1px solid var(--rule); }
.sm-craft__detail svg { width: 100%; height: auto; }

/* ---------- process ---------- */

.sm-process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--char); }
.sm-process li { padding: 30px 26px 36px 0; border-right: 1px solid var(--rule-light); }
.sm-process li:last-child { border-right: 0; }
.sm-process li + li { padding-left: 26px; }
.sm-process__num {
  display: block;
  font-family: var(--display);
  font-size: 40px; font-weight: 700; line-height: 1;
  color: var(--amber-text);
  margin-bottom: 16px;
}
.sm-process h3 { margin-bottom: 10px; }
.sm-process p { color: var(--steel); font-size: 15.5px; }

/* ---------- mosaic ---------- */

.sm-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.sm-mosaic__item { border-bottom: 3px solid var(--amber); }
.sm-mosaic__item--wide { grid-column: span 2; }
.sm-mosaic__item svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- areas ---------- */

.sm-areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.sm-area-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--char); }
.sm-area-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.sm-area-list li:nth-child(odd) { padding-right: 20px; }
.sm-area-list li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule-light); }

/* ---------- standards ---------- */

.sm-standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sm-standards li { background: var(--char); padding: clamp(28px, 3vw, 42px); position: relative; }
.sm-standards h3 { margin-bottom: 12px; padding-left: 26px; }
.sm-standards h3::before {
  content: "";
  position: absolute;
  left: clamp(28px, 3vw, 42px);
  width: 12px; height: 12px;
  background: var(--amber);
  margin-top: 6px;
}
.sm-standards p { color: var(--steel-light); font-size: 15.5px; padding-left: 26px; }

/* ---------- quote ---------- */

.sm-quote { background: var(--char); color: var(--paper); padding: clamp(66px, 8vw, 118px) 0; border-top: 4px solid var(--amber); }
.sm-quote__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 84px); align-items: start; }
.sm-quote h2 { margin: 16px 0 20px; }
.sm-quote__copy > p { color: var(--steel-light); max-width: 46ch; }

.sm-contact { margin-top: 36px; }
.sm-contact > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--rule); }
.sm-contact dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); align-self: center; }
.sm-contact dd { font-size: 15.5px; text-align: right; }

.sm-form { display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--rule); padding: clamp(24px, 3vw, 36px); }
.sm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sm-field { display: flex; flex-direction: column; gap: 7px; }
.sm-field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel-light);
}
.sm-field input,
.sm-field select,
.sm-field textarea {
  font-family: var(--text);
  font-size: 16px;
  color: var(--paper);
  background: var(--char-deep);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 13px 14px;
  min-height: 50px;
  width: 100%;
}
.sm-field textarea { resize: vertical; min-height: 96px; }
.sm-field select { appearance: none; cursor: pointer; }
.sm-field input::placeholder, .sm-field textarea::placeholder { color: #7d838a; }
.sm-field input:focus, .sm-field select:focus, .sm-field textarea:focus { border-color: var(--amber); }

.sm-form__go { align-self: start; }
.sm-form__status { font-size: 13px; color: var(--steel-light); }
.sm-form__status.is-done { color: var(--amber); }

/* ---------- footer ---------- */

.sm-footer { background: var(--char-deep); color: var(--paper); padding: clamp(52px, 6vw, 82px) 0 40px; }
.sm-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.sm-footer__mark { font-size: 30px; }
.sm-footer__line { margin-top: 14px; color: var(--steel-light); font-size: 15px; max-width: 38ch; }
.sm-footer__head { font-family: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); }
.sm-footer__list { margin-top: 12px; display: flex; flex-direction: column; gap: 0; font-size: 15px; color: var(--steel-light); }
.sm-footer__list li { padding: 6px 0; }
.sm-footer__list a { text-decoration: none; display: inline-block; padding: 3px 0; }
.sm-footer__list a:hover { color: var(--paper); }

.sm-footer__legal {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  color: var(--steel-light);
  max-width: 94ch;
}
.sm-footer__legal strong { color: var(--paper); }
.sm-footer__legal a { color: var(--amber); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1160px) {
  .sm-nav__links { display: none; }
  .sm-burger { display: grid; }
  .sm-nav__cta { display: none; }

  .sm-projects { grid-template-columns: repeat(2, 1fr); }
  .sm-process { grid-template-columns: repeat(2, 1fr); }
  .sm-process li:nth-child(2n) { border-right: 0; }
  .sm-process li:nth-child(3), .sm-process li:nth-child(4) { border-top: 1px solid var(--rule-light); }
}

@media (max-width: 900px) {
  .sm-hero { grid-template-columns: 1fr; }
  .sm-hero__slab { border-right: 0; border-bottom: 4px solid var(--amber); padding: clamp(44px, 8vw, 72px) clamp(20px, 6vw, 40px); }
  .sm-hero h1 { max-width: 16ch; }
  .sm-hero__plate svg { min-height: 0; aspect-ratio: 4 / 3; }

  .sm-bar__inner { grid-template-columns: 1fr 1fr; justify-content: start; }

  .sm-row { grid-template-columns: 74px 1fr; padding-inline: clamp(20px, 6vw, 40px); }
  .sm-tags { grid-column: 2; }

  .sm-craft__inner { grid-template-columns: 1fr; }
  .sm-craft__detail { order: -1; }
  .sm-areas { grid-template-columns: 1fr; }
  .sm-standards { grid-template-columns: 1fr; }
  .sm-quote__inner { grid-template-columns: 1fr; }
  .sm-footer__grid { grid-template-columns: 1fr 1fr; }
  .sm-mosaic { grid-template-columns: repeat(2, 1fr); }
  .sm-mosaic__item--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .sm-projects { grid-template-columns: 1fr; }
  .sm-process { grid-template-columns: 1fr; }
  .sm-process li { border-right: 0; padding-inline: 0 !important; border-top: 1px solid var(--rule-light); }
  .sm-bar__inner { grid-template-columns: 1fr; }
  .sm-area-list { grid-template-columns: 1fr; }
  .sm-area-list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .sm-area-list li:nth-child(odd) { padding-right: 0; }
  .sm-field-row { grid-template-columns: 1fr; }
  .sm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sm-hero__actions .sm-btn { width: 100%; }
  .sm-mosaic { grid-template-columns: 1fr; }
  .sm-mosaic__item--wide { grid-column: auto; }
  .sm-meta > div { flex-direction: column; gap: 2px; }
  .sm-meta dd { text-align: left; }
  .sm-contact > div { flex-direction: column; gap: 2px; }
  .sm-contact dd { text-align: left; }
}

/* =========================================================
   MOTION
   ========================================================= */

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