/* =========================================================================
   Riley Stoves & Sweeps — premium rebuild
   Design system: see design/final-art-direction.md
   Hand-written CSS. No build step. Two font families.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Material palette */
  --ink:        #14120F;
  --ink-2:      #1E1B17;
  --char:       #2A2621;
  --paper:      #F4F1EA;
  --paper-2:    #EAE5DA;
  --stone:      #6E675C;
  --ash:        #A8A198;

  /* Ember — three verified tones (see art direction §3) */
  --ember:      #C4632A;   /* rules, borders, decorative */
  --ember-deep: #A84A18;   /* text on light + solid button fill */
  --ember-lift: #E07B3C;   /* text/links on dark */

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --t-display: clamp(2.75rem, 7vw, 5.5rem);
  --t-h2:      clamp(2rem, 4.2vw, 3.25rem);
  --t-h3:      clamp(1.35rem, 2vw, 1.75rem);
  --t-lead:    clamp(1.0625rem, 1.5vw, 1.3rem);
  --t-body:    1.0625rem;
  --t-small:   0.875rem;
  --t-label:   0.6875rem;

  /* Space — 8pt */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px; --s-9: 160px;

  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 160px);
  --radius: 2px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 200ms;

  --bar-h: 60px; /* mobile action bar */
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.022em; }
h2 { font-size: var(--t-h2);      line-height: 1.06; }
h3 { font-size: var(--t-h3);      line-height: 1.18; font-weight: 500; }
p  { text-wrap: pretty; }

::selection { background: var(--ember); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px; font-size: var(--t-small); font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.dark { background: var(--ink); color: var(--paper); }
.dark h1, .dark h2, .dark h3 { color: var(--paper); }
.stone-bg { background: var(--paper-2); }

.prose { max-width: 68ch; }
.lead {
  font-size: var(--t-lead); line-height: 1.55; color: var(--stone);
  max-width: 46ch;
}
.dark .lead { color: var(--ash); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: var(--s-3);
}
.dark .eyebrow { color: var(--ember-lift); }

.rule { height: 1px; background: var(--char); border: 0; }
.dark .rule { background: #332E28; }

/* Asymmetric editorial split */
.split {
  display: grid; gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip > :first-child { order: 2; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ember-deep); color: var(--paper); }
.btn--primary:hover { background: var(--ember); }

.btn--secondary { background: transparent; border-color: var(--stone); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ember-deep); color: var(--ember-deep); }
.dark .btn--secondary,
.btn--secondary.on-dark { border-color: #4A443C; color: var(--paper); }
.dark .btn--secondary:hover,
.btn--secondary.on-dark:hover { border-color: var(--ember-lift); color: var(--ember-lift); }

.btn--quiet {
  min-height: 0; padding: 0 0 4px; border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0; background: none;
}
.btn--quiet:hover { color: var(--ember-deep); border-color: var(--ember-deep); transform: none; }
.dark .btn--quiet:hover { color: var(--ember-lift); border-color: var(--ember-lift); }

.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ic { width: 17px; height: 17px; flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }

/* ---------- 5. Header ---------- */
.hdr {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  border-bottom: 1px solid rgba(196, 99, 42, .55);
  background: rgba(20,18,15,0);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20,18,15,.62), rgba(20,18,15,0));
  transition: opacity 260ms var(--ease);
}
.hdr.is-stuck { background: var(--ink); border-bottom-color: var(--char); }
.hdr.is-stuck::before { opacity: 0; }

.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  min-height: 88px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
@media (max-width: 480px) { .brand img { height: 44px; } }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
}
.nav a {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em;
  text-transform: uppercase; text-decoration: none;
  color: var(--paper);
  padding: 6px 0; position: relative;
  transition: color var(--dur) var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ember-lift);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.hdr__right { display: flex; align-items: center; gap: var(--s-2); }
.hdr__tel {
  display: none; text-decoration: none; color: var(--paper);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.hdr__tel:hover { color: var(--ember-lift); }
@media (min-width: 1024px) { .hdr__tel { display: inline-flex; align-items: center; gap: 8px; } }

.hdr .btn--primary { min-height: 44px; padding: 10px 20px; font-size: .875rem; }
@media (max-width: 1023px) { .hdr .btn--primary { display: none; } }

/* Mobile controls */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  color: var(--paper);
}
@media (min-width: 1024px) { .icon-btn { display: none; } }
.icon-btn .ic { width: 22px; height: 22px; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 320ms var(--ease);
  overflow-y: auto;
}
.menu[data-open="true"] { transform: translateY(0); }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 88px; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-5); }
.menu__nav a {
  font-family: var(--font-display); font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.25; text-decoration: none; color: var(--paper);
  padding: 8px 0;
  border-bottom: 1px solid #2A2621;
}
.menu__nav a:hover { color: var(--ember-lift); }
.menu__foot { margin-top: auto; padding-top: var(--s-5); display: grid; gap: 10px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 120px calc(var(--s-7) + var(--bar-h));
  overflow: hidden;
  background: var(--ink);
}
@media (min-width: 768px) {
  .hero { padding-block-end: var(--s-7); }
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* left column scrim — keeps overlaid type legible over busy brick */
    linear-gradient(to right, rgba(20,18,15,.90) 0%, rgba(20,18,15,.72) 34%, rgba(20,18,15,.20) 68%, rgba(20,18,15,.05) 100%),
    /* base vertical scrim — kept light enough that the firebox still glows */
    linear-gradient(to top, rgba(20,18,15,.72) 0%, rgba(20,18,15,.30) 46%, rgba(20,18,15,.28) 100%);
}
@media (max-width: 767px) {
  .hero__media::after {
    background:
      linear-gradient(to top, rgba(20,18,15,.93) 0%, rgba(20,18,15,.62) 48%, rgba(20,18,15,.40) 100%);
  }
}
.hero__in { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--paper);
}
.hero__sub {
  margin-top: var(--s-3);
  font-size: var(--t-lead); line-height: 1.5;
  color: #E4DFD5; max-width: 48ch;
}
.hero__eyebrow { color: var(--ember-lift); }
.hero .actions { margin-top: var(--s-5); }

/* Hero settle */
.hero__media img { transform: scale(1.05); }
.hero.is-ready .hero__media img {
  transform: scale(1);
  transition: transform 1100ms var(--ease);
}


/* ---- Mobile hero: stacked composition ----
   A 100svh full-bleed crop of a portrait photo buries the appliance and forces a
   heavy scrim over the type. On small screens the image gets its own block and the
   copy sits on solid ink: better photo, better legibility, no compromise either way. */
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    display: block;
    padding-block: 0 var(--s-6);
    background: var(--ink);
  }
  .hero__media {
    position: relative; inset: auto;
    width: 100%; aspect-ratio: 1 / 1; max-height: 58svh;
    margin-block-start: 88px;
  }
  .hero__media img { object-position: center center; }
  .hero__media::after {
    background: linear-gradient(to top, rgba(20,18,15,.96) 0%, rgba(20,18,15,.35) 34%, rgba(20,18,15,0) 62%);
  }
  .hero__in { padding-block-start: var(--s-4); }
  .hero .actions { margin-top: var(--s-4); }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* ---------- 7. Credibility line ---------- */
.cred { border-top: 1px solid var(--char); }
.cred__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) clamp(20px, 4vw, 52px);
  list-style: none; padding: 0;
  font-size: var(--t-small); color: var(--ash);
  padding-block: var(--s-4);
}
.cred__list li { display: flex; align-items: center; gap: 10px; }
.cred__list strong { color: var(--paper); font-weight: 600; }
.cred__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ember); flex: none; }

/* ---------- 8. Two paths ---------- */
.paths { display: grid; gap: var(--s-3); }
@media (min-width: 820px) { .paths { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }

.path {
  position: relative; display: block; overflow: hidden;
  text-decoration: none; color: var(--paper);
  background: var(--ink); border-radius: var(--radius);
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-4);
  isolation: isolate;
}
@media (min-width: 820px) { .path { min-height: 0; aspect-ratio: 4 / 5; padding: var(--s-5); } }
@media (min-width: 1200px) { .path { aspect-ratio: 1 / 1; } }
.path img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.path::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,18,15,.94) 8%, rgba(20,18,15,.6) 48%, rgba(20,18,15,.32) 100%);
}
.path:hover img { transform: scale(1.04); }
.path h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--paper); }
.path p { margin-top: 10px; color: #DDD7CC; font-size: 0.9375rem; max-width: 34ch; }
.path__go {
  margin-top: var(--s-3);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ember-lift);
}
.path__go .ic { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.path:hover .path__go .ic { transform: translateX(4px); }

/* ---------- 9. Work rail ---------- */
.work__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-5);
}
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78vw);
  gap: var(--s-2);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: var(--s-3);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px)  { .rail { grid-auto-columns: minmax(240px, 42vw); gap: var(--s-3); } }
@media (min-width: 1024px) { .rail { grid-auto-columns: minmax(240px, 27vw); } }
@media (min-width: 1440px) { .rail { grid-auto-columns: 320px; } }

.card { scroll-snap-align: start; }
.card figure { margin: 0; }
.card__img {
  position: relative; overflow: hidden;
  background: var(--ink-2); border-radius: var(--radius);
  aspect-ratio: 3 / 4;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card:hover .card__img img { transform: scale(1.035); }
.card figcaption {
  margin-top: 14px;
  font-size: var(--t-small); color: var(--ash); line-height: 1.45;
}
.card figcaption b {
  display: block; color: var(--paper);
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -.01em; margin-bottom: 3px;
}

.rail-progress {
  height: 2px; background: #2E2924; margin-top: var(--s-2);
  position: relative; overflow: hidden; border-radius: 2px;
}
.rail-progress span {
  position: absolute; inset-block: 0; left: 0;
  background: var(--ember); width: 20%;
  transition: transform 120ms linear;
}

/* ---------- 10. Feature blocks ---------- */
.feature__media { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.feature__media picture { display: block; width: 100%; height: 100%; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Feature rows: image column matches the text column height (portrait library) */
@media (min-width: 900px) {
  .split--feature { align-items: stretch; }
  .split--feature .feature__media { height: 100%; min-height: 460px; }
  .split--feature .feature__media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
}

.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 14px; }
.ticks li {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px;
  align-items: start; font-size: 0.9375rem; line-height: 1.55;
}
.ticks .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ember-deep); }
.dark .ticks .ic { color: var(--ember-lift); }
.ticks b { font-weight: 600; }

/* ---------- 11. Process ---------- */
.steps { display: grid; gap: var(--s-4); margin-top: var(--s-6); counter-reset: s; }
@media (min-width: 700px)  { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }
.step { padding-top: var(--s-3); border-top: 1px solid var(--char); counter-increment: s; }
.dark .step { border-color: #332E28; }
.step::before {
  content: "0" counter(s);
  display: block;
  font-family: var(--font-ui); font-size: var(--t-label);
  font-weight: 600; letter-spacing: .16em;
  color: var(--ember-deep); margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.dark .step::before { color: var(--ember-lift); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.9375rem; color: var(--stone); }
.dark .step p { color: var(--ash); }

/* ---------- 12. Statement (who we are) ---------- */
.statement { position: relative; overflow: hidden; }
.statement__in { position: relative; z-index: 1; }
.statement .eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: .16em; line-height: 1.4;
}
.statement__in > p:not(.eyebrow):not(.sub) {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.28; letter-spacing: -.015em;
  max-width: 22ch;
}
.statement__in > p + p { margin-top: var(--s-4); }
.statement .sub {
  font-family: var(--font-ui); font-size: var(--t-body);
  line-height: 1.65; color: var(--stone); max-width: 56ch;
  letter-spacing: 0;
}

/* ---------- 13. Areas ---------- */
.areas { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
@media (min-width: 860px) { .areas { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.areas h3 { font-size: 1.125rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: .02em; margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li {
  display: inline-flex; align-items: baseline; gap: 7px;
  border: 1px solid #332E28; border-radius: var(--radius);
  padding: 8px 13px; font-size: 0.875rem;
}
.chips span { color: var(--ash); font-size: .75rem; font-variant-numeric: tabular-nums; }

/* ---------- 14. FAQ ---------- */
.faq { margin-top: var(--s-5); border-top: 1px solid var(--char); max-width: 82ch; }
.faq details { border-bottom: 1px solid var(--char); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: var(--s-3) 44px var(--s-3) 0;
  position: relative;
  font-family: var(--font-display); font-size: clamp(1.0625rem, 1.8vw, 1.3rem);
  font-weight: 500; line-height: 1.35;
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ember-deep); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 13px; height: 13px; margin-top: -6px;
  background: currentColor;
  -webkit-mask: var(--plus) center/contain no-repeat;
  mask: var(--plus) center/contain no-repeat;
  transition: transform var(--dur) var(--ease);
  --plus: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" stroke="black" stroke-width="2.2" fill="none" stroke-linecap="round"/></svg>');
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: var(--s-3); max-width: 68ch; color: var(--stone); font-size: 0.9375rem; }

/* ---------- 15. Proof placeholder ---------- */
.proof-slot {
  border-left: 2px solid var(--ember);
  padding: 4px 0 4px clamp(20px, 3vw, 36px);
  max-width: 62ch;
}
.proof-slot .eyebrow { color: var(--stone); }

/* ---------- 16. Form ---------- */
.form { display: grid; gap: var(--s-3); }
@media (min-width: 620px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--t-small); font-weight: 600; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  background: rgba(255,255,255,.04);
  border: 1px solid #3A342C; border-radius: var(--radius);
  color: var(--paper); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7E776C; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4E463C; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ember); background: rgba(255,255,255,.06); outline: none;
}
.field select { appearance: none; background-image: var(--chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; padding-right: 40px; }
:root { --chev: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" stroke="%23A8A198" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>'); }
.field select option { background: var(--ink-2); color: var(--paper); }
.field--error input, .field--error select { border-color: #D9663F; }
.field__err { font-size: .8125rem; color: #F0A184; }
.form__note { font-size: .8125rem; color: var(--ash); }
.form__status { font-size: .9375rem; padding: 14px 16px; border-radius: var(--radius); }
.form__status[data-state="ok"]  { background: rgba(196,99,42,.14); border: 1px solid var(--ember); color: var(--paper); }
.form__status[data-state="err"] { background: rgba(217,102,63,.12); border: 1px solid #D9663F; color: #F3C8B6; }

/* ---------- 17. Contact list ---------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.contact-list a { text-decoration: none; display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 20px; height: 20px; margin-top: 3px; color: var(--ember-lift); flex: none; }
.contact-list b { display: block; font-size: 1.0625rem; font-weight: 600; }
.contact-list span { font-size: .875rem; color: var(--ash); }
.contact-list a:hover b { color: var(--ember-lift); }

/* ---------- 18. Footer ---------- */
.ftr { background: var(--ink); color: var(--ash); border-top: 1px solid var(--char); }
.ftr__grid { display: grid; gap: var(--s-5); padding-block: var(--s-6); }
@media (min-width: 860px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-6); } }
.ftr img { height: 58px; width: auto; }
.ftr .ftr-h { font-family: var(--font-ui); font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: var(--s-3); }
.ftr ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--ember-lift); }
.ftr__base {
  border-top: 1px solid var(--char); padding-block: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; font-size: .8125rem;
}

/* ---------- 19. Mobile action bar ---------- */
.actionbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 120;
  display: grid; grid-template-columns: 1fr 1fr 1.15fr;
  background: var(--ink-2);
  border-top: 1px solid var(--char);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 1024px) { .actionbar { display: none; } }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bar-h);
  text-decoration: none; color: var(--paper);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  border-left: 1px solid var(--char);
}
.actionbar a:first-child { border-left: 0; }
.actionbar a.is-primary { background: var(--ember-deep); border-left-color: var(--ember-deep); }
.actionbar .ic { width: 18px; height: 18px; }
body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ---------- 20. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img, .hero.is-ready .hero__media img { transform: none !important; transition: none !important; }
  .path img, .card__img img { transition: none !important; }
  .btn:hover { transform: none !important; }
  .menu { transition: none !important; }
}

/* ---------- 21. Work page ---------- */
.page-head { padding-block: calc(88px + var(--s-7)) var(--s-6); }
.grid-work { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 700px) { .grid-work { gap: var(--s-4); } }
.grid-work .card__img { aspect-ratio: 3 / 4; }
.grid-work .card:nth-child(9n+1) { grid-column: span 1; }
