/* MOTION 11 — styles. No build step. */
:root {
  --paper: #f6f4f0;
  --stone: #ebe6de;
  --sand: #d9d1c4;
  --clay: #b9ad9b;
  --bronze: #7a6548;
  --charcoal: #1f1f1d;
  --graphite: #33332f;
  --muted: #5f5b53;
  --line: #d6cfc3;
  --white: #fff;
  --radius: 2px;
  --maxw: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--charcoal);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--charcoal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--charcoal); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; color: var(--white); }

.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-block; background: var(--charcoal); color: var(--white); border: 1px solid var(--charcoal);
  padding: .9rem 1.6rem; font: 600 .85rem/1.35 var(--sans); text-align: center; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--graphite); color: var(--white); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--white); }
.btn-light { background: var(--paper); color: var(--charcoal); border-color: var(--paper); }
.btn-light:hover { background: var(--white); color: var(--charcoal); }
.btn-small { padding: .7rem 1.1rem; font-size: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,240,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { display: block; width: 173px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .92rem; color: var(--graphite); }
.site-nav a:not(.btn):hover { color: var(--bronze); }
.site-nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--charcoal); content: ""; transition: transform .2s; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 1rem; text-align: center; display: block; }
  .no-js .site-nav { display: block; position: static; }
}

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem); background: linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { max-width: 16ch; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); color: var(--graphite); font-style: italic; }
.hero-copy > p:not(.eyebrow):not(.lede) { color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-art { margin: 0; width: 100%; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1163 / 647; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(31,31,29,.45); background: #e4e0da; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 1.5rem; overflow: hidden; }
.card h3, .card p { padding: 0 1.4rem; }
.card h3 { margin-top: 1.4rem; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.swatch { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #e4e0da; }
.swatch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.swatch-tile img { object-position: 50% 55%; }    /* keep the floor/wall junction */
.swatch-stone img { object-position: 50% 75%; }   /* keep the polished edge corner */
.swatch-joinery img { object-position: 50% 80%; } /* keep handles + walnut flutes */
.note { margin-top: 2rem; padding: 1rem 1.25rem; border-left: 3px solid var(--bronze); background: var(--stone); color: var(--graphite); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; }
.step { border-top: 1px solid var(--charcoal); padding-top: 1.25rem; }
.step-num { display: block; font: 400 2.2rem/1 var(--serif); color: var(--bronze); margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.why-grid .section-head { position: sticky; top: 110px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list h3 { font-size: 1.2rem; margin-bottom: .35em; }
.why-list p { color: var(--muted); margin: 0; }

/* Project management */
.section-dark { background: var(--charcoal); color: var(--paper); }
.section-dark .eyebrow { color: var(--clay); }
.section-dark h2 { color: var(--white); }
.pm-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lede-light { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--paper); }
.muted-light { color: #c9c3b8; margin-bottom: 1.75rem; }

/* Quote */
.quote-wrap { max-width: 860px; }
.quote-head { text-align: center; max-width: 620px; margin: 0 auto clamp(2rem, 4vw, 2.75rem); }
.quote-head p:not(.eyebrow) { color: var(--muted); margin: 0; }
.form-group { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.form-group + .form-group { border-top: 1px solid var(--line); padding-top: 2rem; }
.form-group-title { font: 400 1.45rem/1.2 var(--serif); color: var(--charcoal); padding: 0; margin-bottom: 1.25rem; display: flex; align-items: baseline; gap: .75rem; float: left; width: 100%; }
.form-group-title + * { clear: both; }
.form-group-num { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; color: var(--bronze); }
.form-submit { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.form-submit .form-status:empty { display: none; }
.quote-alt { text-align: center; margin: 1.75rem auto 0; font-size: .95rem; color: var(--muted); line-height: 1.8; }
.quote-alt a { color: var(--graphite); }
.quote-form { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3.5vw, 2.25rem); border-radius: var(--radius); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--graphite); }
.req { color: var(--bronze); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--paper);
  border: 1px solid #bdb4a6; border-radius: var(--radius); padding: .75rem .85rem;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze); outline-offset: 0; border-color: var(--bronze); background: var(--white); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a33a2a; }
.hint { font-size: .9rem; color: var(--muted); }
.hint.small { font-size: .82rem; margin: 1rem 0 0; }
.form-status { margin: 1rem 0 0; font-size: .95rem; }
.form-status.is-error { color: #a33a2a; }
.form-status.is-info { color: var(--graphite); background: var(--stone); padding: .75rem 1rem; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #151513; color: #c9c3b8; padding: 3rem 0; font-size: .92rem; }
.site-footer a { color: #e7e2d9; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner img { display: block; width: 150px; height: auto; margin-bottom: 1rem; }
.footer-inner p { margin: 0 0 .4rem; }
.footer-meta { text-align: right; }

/* Responsive */
@media (max-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .why-grid, .pm-grid { grid-template-columns: 1fr; }
  .hero-art img { box-shadow: 0 20px 40px -24px rgba(31,31,29,.45); }
  .why-grid .section-head { position: static; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cards, .steps { grid-template-columns: 1fr; }
  .swatch { aspect-ratio: 16 / 6; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .brand img { width: 144px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Quote checklist */
.checklist { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.checklist legend { font-size: .88rem; font-weight: 600; color: var(--graphite); padding: 0; margin-bottom: .25rem; }
.checklist .hint { margin: 0 0 .75rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem 1rem; }
.checks label { display: flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 400; color: var(--charcoal); padding: .45rem 0; cursor: pointer; margin: 0; }
.checks input { width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; flex: none; accent-color: var(--charcoal); }
.other-field { margin-top: .5rem; }
.checklist.is-invalid .checks { outline: 1px solid #a33a2a; outline-offset: 6px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.section-alt .note { background: var(--paper); }
.nowrap { white-space: nowrap; }

/* File upload */
.optional { font-weight: 400; color: var(--muted); }
.upload input[type="file"] { background: var(--paper); border: 1px dashed #a89e8f; padding: 1rem; cursor: pointer; font-size: .92rem; color: var(--muted); }
.upload input[type="file"]:hover { border-color: var(--charcoal); }
.upload input[type="file"]::file-selector-button {
  font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--charcoal); color: var(--white);
  border: 0; border-radius: var(--radius); padding: .7rem 1rem; margin-right: .9rem; cursor: pointer;
}
.upload .hint { margin: .5rem 0 0; }
.file-status:empty { display: none; }
.file-status { margin-top: .75rem; font-size: .9rem; border: 1px solid var(--line); background: var(--paper); padding: .75rem .9rem; }
.file-status ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.file-status li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.file-status li span:first-child { overflow-wrap: anywhere; }
.file-status li span:last-child { color: var(--muted); white-space: nowrap; }
.file-status .file-total { margin: 0; font-weight: 600; }
.file-status .file-warn { margin: .5rem 0 0; color: #a33a2a; }
.file-status.is-over { border-color: #a33a2a; }
.upload-title { font-size: .88rem; font-weight: 600; color: var(--graphite); margin: 0 0 .35rem; }
.upload .hint#f-files-hint { margin: 0 0 .9rem; }
.file-field { margin-bottom: .75rem; }
.file-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.file-field[hidden] { display: none; }
.add-file { margin-top: .25rem; }
.add-file[hidden] { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Simple pages (thank-you, 404) */
.simple-page { display: flex; flex-direction: column; min-height: 100vh; }
.simple-main { flex: 1; display: flex; align-items: center; padding: clamp(4rem, 12vw, 8rem) 0; background: linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%); }
.simple-inner { max-width: 760px; }
.simple-inner h1 { max-width: 18ch; }
.simple-inner p:not(.eyebrow):not(.lede) { color: var(--muted); max-width: 58ch; }
.simple-inner .btn { margin-top: 1rem; }
