/* =========================================================================
   Enso Dynamics — the homepage, built from the approved mockup
   (docs/prds/site-redesign/mockups/homepage-redesign-mockup.html).
   The mockup's container query units are viewport units here; the palette,
   header, footer, buttons and grounds come from site.css.
   ========================================================================= */

.home { background: var(--cream); }
.home main { color: var(--ink); line-height: 1.6; }
.nowrap { white-space: nowrap; }

/* Shared type for the homepage's headings and large statements. */
.hero-title, .offers-title, .offer-name, .offer-before, .offer-after, .assessment-title, .sample-stage,
.method-name, .method-title, .stage-name, .kiln-name, .kiln-title, .kiln-run-time, .kiln-num,
.figures-title, .figure dt, .founder-title, .contact-title {
  font-family: var(--serif);
  font-weight: 400;
}

/* A short gold rule before a section's lead line, as the mockup draws it. */
.band-label, .offer-tag { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; }
.band-label-line, .offer-tag-line { flex: none; width: 28px; height: 2px; background: var(--gold); }

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 860px;
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050608 0%, rgba(5, 6, 8, 0.9) 28%, rgba(5, 6, 8, 0) 64%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.7) 0%, rgba(5, 6, 8, 0) 20%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0) 22%);
}
.hero-inner { position: relative; flex: 1; display: flex; flex-direction: column; padding-top: clamp(28px, 3vw, 44px); padding-bottom: 28px; }
.hero-copy { max-width: 700px; }
.hero-assess {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(242, 237, 227, 0.3);
  border-radius: 2px;
  background: rgba(5, 6, 8, 0.35);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ivory);
  transition: border-color 0.2s var(--ease);
}
.hero-assess:hover { color: var(--ivory); border-color: rgba(242, 237, 227, 0.8); }
.hero-assess-question { font-weight: 600; }
.hero-assess-offer { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.hero-title {
  margin-top: 32px;
  max-width: 660px;
  font-size: clamp(54px, 8.6vw, 124px);
  line-height: 0.93;
  letter-spacing: -0.026em;
  color: var(--ivory);
}
.hero-title em { color: var(--gold); }
.hero-promise { margin-top: 32px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.35; letter-spacing: -0.012em; color: var(--ivory); }
.hero-lead { margin-top: 18px; max-width: 52ch; font-size: 17px; line-height: 1.65; color: var(--ivory-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero-caption { margin-top: auto; padding-top: 28px; text-align: right; font-size: 13.5px; line-height: 1.5; color: #D9D4CA; }

/* ---------- 2. Two ways to work together ---------- */

.offers { padding: clamp(72px, 7.4vw, 112px) 0; }
.offers-title { max-width: 1080px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); }
.offers-title span { display: block; color: #6F7276; text-wrap: balance; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; margin-top: clamp(36px, 4vw, 58px); }
.offer { display: flex; flex-direction: column; }
.offer-light { background: var(--white); color: var(--ink); }
.offer-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.offer-body { flex: 1; display: flex; flex-direction: column; padding: clamp(26px, 3.3vw, 48px) clamp(22px, 3.6vw, 52px) clamp(22px, 2.6vw, 36px); }
.offer-tag { color: var(--ink-body); }
.offer-light .offer-tag-line { background: var(--gold-line); }
.offer-name { margin-top: 16px; font-size: clamp(34px, 4vw, 58px); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); }
.offer-promise { margin-top: 22px; font-size: clamp(19px, 1.5vw, 21.5px); font-weight: 500; line-height: 1.35; letter-spacing: -0.012em; color: var(--ink); }
.offer-summary { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--ink-body); }
.offer-fits-heading { margin-top: 34px; font-size: 14px; font-weight: 600; color: var(--ink); }
.offer-fits { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: #2B2E34; }
.offer-fits li { display: flex; gap: 14px; }
.offer-fits li::before { content: ""; flex: none; width: 10px; height: 1px; margin-top: 0.76em; background: #B8730F; }
.offer-change { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(20, 23, 28, 0.16); }
.offer-change-label { font-size: 13.5px; color: var(--ink-soft); }
.offer-change-after { margin-top: 20px; color: var(--ink); }
.offer-before { margin-top: 4px; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink-soft); }
.offer-after { margin-top: 4px; font-style: italic; font-size: clamp(44px, 4.6vw, 66px); line-height: 0.98; letter-spacing: -0.02em; color: var(--navy); }
.offer-proof { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-body); }
.offer-action { margin-top: auto; padding-top: 28px; }

.offer-dark .offer-tag { color: #C5CBD6; }
.offer-dark .offer-name, .offer-dark .offer-promise, .offer-dark .offer-fits-heading, .offer-dark .offer-change-after { color: var(--ivory); }
.offer-dark .offer-summary, .offer-dark .offer-proof { color: var(--ivory-cool); }
.offer-dark .offer-fits { color: #D6DAE2; }
.offer-dark .offer-fits li::before { background: var(--gold); }
.offer-dark .offer-change { border-top-color: rgba(242, 237, 227, 0.22); }
.offer-dark .offer-change-label, .offer-dark .offer-before { color: #98A2B3; }
.offer-dark .offer-change-after { color: var(--ivory); }
.offer-dark .offer-after { color: var(--gold); }

/* ---------- 3. The assessment ---------- */

.assessment-band { padding: clamp(72px, 7vw, 104px) 0; }
.brush-assessment { left: clamp(-260px, -12vw, -120px); bottom: clamp(-300px, -14vw, -140px); width: clamp(360px, 46vw, 680px); opacity: 0.1; }
.assessment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }
.band-label { color: #C3CAD6; }
.assessment-title { margin-top: 18px; max-width: 17ch; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.022em; color: var(--ivory); }
.assessment-lead { margin-top: 26px; max-width: 50ch; font-size: 17px; line-height: 1.65; color: #C3CAD6; }
.assessment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.assessment-facts { font-size: 14.5px; color: #C3CAD6; }
.sample-card { background: rgba(8, 16, 30, 0.62); border: 1px solid rgba(242, 237, 227, 0.14); padding: clamp(22px, 2.6vw, 36px) clamp(18px, 2.8vw, 40px) clamp(14px, 1.6vw, 22px); }
.sample-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.sample-label { font-size: 14px; color: var(--ivory-cool); }
.sample-result { font-size: 14.5px; color: var(--ivory-cool); }
.sample-stage { font-size: 28px; line-height: 1; color: var(--ivory); }
.sample-score { margin-left: 8px; }
.sample-score strong { font-weight: 600; color: var(--ivory); }
.sample-radar { display: block; width: 100%; height: auto; margin-top: 10px; font-family: var(--font); }

/* ---------- 4. The Enso Method and Kiln ---------- */

.method { padding: clamp(72px, 7vw, 104px) 0 clamp(72px, 7.4vw, 112px); }
.method-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 28px clamp(40px, 6vw, 96px); align-items: end; }
.method-name { display: flex; align-items: center; gap: 14px; font-size: 30px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.method-name img { flex: none; width: 44px; height: 44px; }
.method-title { margin-top: 26px; max-width: 14ch; font-size: clamp(40px, 5.2vw, 78px); line-height: 0.98; letter-spacing: -0.026em; color: var(--ink); }
.method-lead { max-width: 54ch; font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; letter-spacing: -0.006em; color: var(--ink); }
.method-body { margin-top: 14px; max-width: 54ch; font-size: 17px; line-height: 1.65; color: var(--ink-body); }
.method-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; }

.method-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 5.4vw, 80px); }
.stage-who { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.stage-line { display: flex; align-items: center; margin: 14px 0 26px; }
.stage-dot { flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); }
.stage-rule { flex: 1; height: 2px; background: var(--ink); }
.stage-arrow { flex: none; margin-left: -1px; fill: var(--gold-line); }
.stage-gold .stage-who { color: var(--gold-text); }
.stage-gold .stage-dot, .stage-gold .stage-rule { background: var(--gold-line); }
.stage-name { padding-right: clamp(20px, 3vw, 44px); font-size: clamp(34px, 3.8vw, 54px); line-height: 1; letter-spacing: -0.022em; color: var(--ink); }
.stage-body { margin-top: 16px; max-width: 36ch; padding-right: clamp(20px, 3vw, 44px); font-size: 16.5px; line-height: 1.6; color: var(--ink-body); }

.kiln {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(36px, 5vw, 80px);
  align-content: start;
  margin-top: clamp(48px, 5.4vw, 80px);
  padding: clamp(28px, 3.8vw, 56px) clamp(20px, 3.8vw, 56px) clamp(20px, 2.6vw, 38px);
  background: linear-gradient(var(--gold), var(--gold)) no-repeat right top / 66.667% 3px, var(--kiln);
}
.kiln > * { grid-column: 1; }
.kiln > .kiln-run { grid-column: 2; grid-row: 1 / span 8; align-self: center; }
.kiln-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.kiln-name { font-size: 40px; line-height: 1; letter-spacing: -0.012em; color: var(--ivory); }
.kiln-badge { margin-left: 6px; padding: 5px 11px; border: 1px solid rgba(240, 180, 90, 0.6); border-radius: 2px; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--gold); }
.kiln-kicker { margin-top: clamp(22px, 2.4vw, 32px); font-size: 14.5px; font-weight: 500; color: var(--gold); }
.kiln-title { margin-top: 10px; font-size: clamp(36px, 4.2vw, 60px); line-height: 0.98; letter-spacing: -0.024em; color: var(--ivory); }
.kiln-lead { margin-top: 20px; max-width: 52ch; font-size: 16.5px; line-height: 1.6; color: #CFCAC0; }
.kiln-body { margin-top: 14px; max-width: 52ch; font-size: 15px; line-height: 1.6; color: #B5B0A6; }
.kiln-more { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; margin-top: clamp(18px, 2vw, 26px); font-size: 15px; color: #B5B0A6; }

/* The sample run (AC-HOME-07). The markup holds the mockup's still frame; main.js plays it. */
.kiln-run { padding: clamp(18px, 2.4vw, 32px); border: 1px solid rgba(242, 237, 227, 0.18); background: rgba(242, 237, 227, 0.03); }
.kiln-run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.kiln-run-plan { font-size: 14.5px; color: #CFCAC0; }
.kiln-run-plan span { display: block; font-weight: 500; color: var(--ivory); }
.kiln-run-time { display: flex; align-items: center; gap: 8px; font-size: 26px; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.kiln-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.7fr) minmax(0, 1.7fr); gap: 8px; margin-top: 16px; }
.kiln-step { display: flex; height: 72px; padding: 9px 11px; border: 1px dashed rgba(242, 237, 227, 0.3); font-size: 13.5px; line-height: 1.35; color: #B5B0A6; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.kiln-phase { flex-direction: column; justify-content: space-between; }
.kiln-num { font-size: 24px; line-height: 1; color: #A8A297; }
.kiln-check { display: none; color: var(--ivory); }
.kiln-ember { display: none; width: 8px; height: 8px; margin: 0 0 3px 3px; border-radius: 50%; background: var(--gold); }
.kiln-audits, .kiln-pr { align-items: flex-end; }
.kiln-pr { color: var(--ivory); }
.kiln-step[data-state="done"] { border-style: solid; border-color: rgba(242, 237, 227, 0.3); background: rgba(242, 237, 227, 0.06); color: var(--ivory); }
.kiln-step[data-state="done"] .kiln-num { color: var(--ivory); }
.kiln-step[data-state="done"] .kiln-check { display: block; }
.kiln-step[data-state="firing"] { border-style: solid; border-color: var(--gold); background: rgba(240, 180, 90, 0.16); color: var(--gold); }
.kiln-step[data-state="firing"] .kiln-num { color: var(--gold); }
.kiln-step[data-state="firing"] .kiln-ember { display: block; }
.kiln-run-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 28px; margin-top: 14px; }
.kiln-status { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gold); }
.kiln-status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.kiln-run-note { font-size: 13.5px; line-height: 1.5; color: #B5B0A6; }

/* ---------- 5. High leverage. Clear accountability. ---------- */

.figures { padding: clamp(72px, 7.4vw, 112px) 0; }
.brush-figures { right: clamp(-260px, -14vw, -110px); top: clamp(-330px, -19vw, -130px); width: clamp(340px, 46vw, 700px); opacity: 0.09; }
.figures-title { font-size: clamp(44px, 7vw, 104px); line-height: 0.96; letter-spacing: -0.026em; color: var(--ivory); }
.figure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 40px clamp(24px, 3vw, 44px); margin: clamp(36px, 3.6vw, 52px) 0 0; }
.figure { border-top: 1px solid rgba(242, 237, 227, 0.45); padding-top: 14px; }
.figure dt { display: flex; align-items: flex-end; height: clamp(76px, 8.4vw, 120px); font-size: clamp(76px, 8.4vw, 120px); line-height: 0.86; letter-spacing: -0.03em; color: var(--ivory); }
.figure-word dt { font-style: italic; font-size: clamp(50px, 4.5vw, 64px); line-height: 0.95; letter-spacing: -0.02em; color: var(--gold); }
.figure dd { margin: 22px 0 0; font-size: 15px; line-height: 1.55; color: var(--ivory-cool); }
.figure dd strong { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ivory); }
.figures-source { margin-top: clamp(28px, 2.8vw, 40px); font-size: 15.5px; color: var(--ivory-cool); }
.figures-source .text-link { margin-left: 6px; }

/* ---------- 6. Led by Doug Kerwin ---------- */

.founder { padding: clamp(72px, 7.4vw, 112px) 0; }
.founder-grid { display: flex; flex-wrap: wrap; gap: 44px clamp(40px, 7vw, 112px); align-items: flex-start; }
.founder-portrait { position: relative; flex: 0 1 440px; min-width: min(280px, 100%); }
.brush-founder { left: -24%; top: -17%; width: 148%; opacity: 0.13; }
.founder-photo { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.founder-copy { flex: 1 1 520px; min-width: 0; }
.founder-title { font-size: clamp(40px, 4.8vw, 70px); line-height: 1; letter-spacing: -0.024em; color: var(--ink); }
.founder-lead { margin-top: 28px; max-width: 62ch; font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; letter-spacing: -0.006em; color: var(--ink); }
.founder-body { margin-top: 16px; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--ink-body); }
.founder-record { margin-top: clamp(28px, 2.6vw, 36px); font-size: 16px; line-height: 1.45; color: var(--ink); }
.founder-record li { display: flex; align-items: center; min-height: 52px; padding: 10px 0; border-top: 1px solid rgba(20, 23, 28, 0.2); }
.founder-record li:last-child { border-bottom: 1px solid rgba(20, 23, 28, 0.2); }
.founder-record li:has(a) { padding: 0; }
.founder-record a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 0; color: var(--ink); }
.founder-record a:hover { color: var(--gold-text); }
.founder-areas-heading { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--ink); }
.founder-areas { margin-top: 8px; max-width: 62ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-body); }
.founder-areas span { color: #B8730F; }

/* ---------- 7. Let's talk ---------- */

.contact { padding: clamp(72px, 7.4vw, 112px) 0; }
.contact-ring { position: absolute; left: clamp(-120px, -4vw, -40px); top: clamp(32px, 5vw, 80px); width: clamp(200px, 24vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 64%); pointer-events: none; }
.brush-contact { right: clamp(-200px, -8vw, -60px); bottom: clamp(-260px, -12vw, -110px); width: clamp(320px, 44vw, 640px); opacity: 0.14; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.contact-title { font-size: clamp(64px, 10vw, 148px); line-height: 0.9; letter-spacing: -0.03em; color: var(--ivory); }
.contact-lead { margin-top: 30px; max-width: 40ch; font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; color: #C3CAD6; }
.contact-form { display: flex; flex-direction: column; gap: 24px; padding: clamp(22px, 2.8vw, 40px); background: rgba(8, 16, 30, 0.62); border: 1px solid rgba(242, 237, 227, 0.14); }
.contact-form[hidden] { display: none; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px 16px; }
.field-label { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ivory); }
.input { display: block; width: 100%; height: 50px; margin-top: 8px; padding: 0 14px; border: 1px solid rgba(242, 237, 227, 0.3); border-radius: 2px; background: rgba(5, 6, 8, 0.5); color: var(--ivory); font: inherit; font-size: 16px; }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.input:focus { outline: none; border-color: var(--gold); }
.contact-fit { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-fit legend { padding: 0; margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 1px solid rgba(242, 237, 227, 0.3); border-radius: 2px; font-size: 15.5px; line-height: 1.35; color: var(--ivory); cursor: pointer; }
.radio input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.contact .button-solid { padding: 0 28px; }
.contact .form-status { color: #C3CAD6; }
.form-success { background: rgba(8, 16, 30, 0.62); border: 1px solid rgba(242, 237, 227, 0.14); border-radius: 0; }
.form-success-title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--ivory); }
.form-success p { color: #C3CAD6; }

/* ---------- Phone and tablet ---------- */

@media (max-width: 900px) {
  .hero-scrim { background: linear-gradient(0deg, #050608 0%, rgba(5, 6, 8, 0.84) 44%, rgba(5, 6, 8, 0.34) 100%); }
  .hero-photo { object-position: 64% center; }
  .hero-caption { text-align: left; }
  .contact-ring { display: none; }
  .method-stages { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .kiln { grid-template-columns: minmax(0, 1fr); }
  .kiln > .kiln-run { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

@media (max-width: 560px) {
  .kiln-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kiln-audits { grid-column: span 2; }
  .kiln-pr { grid-column: span 3; }
  .sample-radar { overflow: visible; }
  .sample-labels { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .kiln-step { transition: none; }
}
