/* ============================================================
   Rekindle Rebuild
   Restoration Hardware-inspired design system
   Warm plaster neutrals, hairline rules, light tracked
   uppercase sans (Jost) + editorial serif (EB Garamond).
   All text/background pairs verified WCAG AA.
   ============================================================ */

:root {
  /* Palette */
  --plaster: #f4f1ec;      /* primary background */
  --greige: #eae5dd;       /* alternate section background */
  --charcoal: #2e2a26;     /* primary text + dark band background */
  --text-soft: #57504a;    /* secondary body text (7.0:1 on plaster) */
  --taupe: #696158;        /* labels, muted small text (4.85:1 on greige) */
  --hairline: #d8d1c5;     /* 1px rules on light backgrounds */
  --hairline-dark: #4a443d;/* 1px rules on charcoal */
  --ember: #8a4b2a;        /* restrained accent: hovers, hairline details (5.4:1+) */
  --light: #e9e4db;        /* text on charcoal */
  --light-muted: #c9c1b4;  /* secondary text on charcoal */

  /* Type */
  --sans: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --serif: "EB Garamond", Garamond, Georgia, serif;

  /* Layout */
  --maxw: 1200px;
  --track: 0.16em;         /* base uppercase tracking */
  --track-wide: 0.42em;    /* wordmark tracking */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--plaster);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--greige); color: var(--charcoal); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--plaster);
  padding: 0.6rem 1.2rem;
  z-index: 100;
  font-size: 0.8rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
.serif {
  font-family: var(--serif);
  letter-spacing: 0;
  text-transform: none;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.display {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  letter-spacing: 0.14em;
  line-height: 1.35;
}

.section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  letter-spacing: var(--track);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 1.4rem;
}

.section-head { max-width: 780px; margin: 0 auto; }
.section-head.center { text-align: center; }

.section-intro {
  color: var(--text-soft);
  font-size: 1.16rem;
  line-height: 1.75;
  max-width: 62ch;
  margin: 1.4rem auto 0;
}

.section { padding: clamp(88px, 11vw, 160px) 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--charcoal);
  border-radius: 0;
  padding: 1rem 2.4rem 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible {
  background: var(--charcoal);
  color: var(--plaster);
}
.btn-light {
  color: var(--light);
  border-color: var(--light);
}
.btn-light:hover,
.btn-light:focus-visible {
  background: var(--light);
  color: var(--charcoal);
}
.btn-block { width: 100%; }

.text-link {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal);
  padding: 1rem 0.2rem 0.6rem;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--ember);
  border-color: var(--ember);
}

:focus-visible {
  outline: 1px solid var(--charcoal);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--plaster);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2.4rem;
  padding-bottom: 1.6rem;
  gap: 1.7rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.wordmark-primary {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.65rem;
  letter-spacing: var(--track-wide);
  margin-right: calc(-1 * var(--track-wide)); /* re-center tracked text */
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1;
}
.wordmark-rule {
  width: 34px;
  height: 1px;
  background: var(--ember); /* the one quiet ember detail */
}
.wordmark-secondary {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.58em;
  margin-right: -0.58em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 2.6rem;
}
.nav a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--ember);
  border-color: var(--ember);
}
.nav-cta { color: var(--charcoal); border-bottom: 1px solid var(--hairline); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  width: 26px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--plaster);
  border-bottom: 1px solid var(--hairline);
  padding: 0 24px;
}
.mobile-nav.open {
  max-height: 420px;
  padding: 8px 24px 28px;
}
.mobile-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0.95rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--plaster) 0%, #f1ede6 100%);
  padding: clamp(96px, 13vw, 190px) 0 0;
  text-align: center;
}
.hero-inner { max-width: 860px; }
.hero .eyebrow { margin-bottom: 2rem; }
.hero .display { margin: 0 0 2rem; }
.hero .lede {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 2.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 110px);
}

.hero-creds {
  list-style: none;
  padding: 2.2rem 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.hero-creds li {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 0 2.4rem;
}
.hero-creds li + li { border-left: 1px solid var(--hairline); }

/* ---------- Problem ---------- */
.problem { background: var(--plaster); text-align: center; }
.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
}
.col { padding: 0.6rem clamp(1.6rem, 3vw, 3.2rem); }
.col + .col { border-left: 1px solid var(--hairline); }
.col h3 {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.col p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Story ---------- */
.story { background: var(--greige); }
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.story-photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(165deg, #dcd5c9 0%, #cdc5b7 55%, #c2b9aa 100%);
  border: 1px solid var(--hairline);
  outline: 1px solid #b3a996;   /* thin keyline, inset from edge */
  outline-offset: -14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2.4rem;
}
.photo-note {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #665e53;
}
.story-copy .section-title { margin-bottom: 1.2rem; }
.story-lead {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--charcoal);
  margin: 0 0 1.6rem;
}
.story-copy p:not(.eyebrow):not(.story-lead) {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 1.2rem;
}
.story-copy .btn { margin-top: 1.4rem; }

/* ---------- Services ---------- */
.services { background: var(--plaster); }
.service-list {
  margin: clamp(56px, 7vw, 96px) auto 0;
  max-width: 860px;
  border-top: 1px solid var(--hairline);
}
.service {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2.2rem, 4vw, 3.2rem) 0.4rem;
  border-bottom: 1px solid var(--hairline);
}
.service-num {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--taupe);
  line-height: 1.5;
  transition: color 0.25s ease;
}
.service:hover .service-num { color: var(--ember); }
.service h3 {
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}
.service p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 60ch;
}

/* ---------- Process ---------- */
.process { background: var(--greige); text-align: center; }
.steps {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.step { padding: 0.5rem clamp(1.2rem, 2.4vw, 2.4rem); }
.step + .step { border-left: 1px solid var(--hairline); }
.step-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--taupe);
  line-height: 1;
  margin-bottom: 1.4rem;
}
.step h3 {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  margin-bottom: 0.9rem;
}
.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Who ---------- */
.who {
  background: var(--charcoal);
  color: var(--light);
  text-align: center;
}
.who-inner { max-width: 700px; margin: 0 auto; }
.who .section-title { color: var(--light); }
.who p {
  color: var(--light-muted);
  font-size: 1.18rem;
  line-height: 1.8;
  margin: 1.8rem auto 2.6rem;
  max-width: 58ch;
}

/* ---------- FAQ ---------- */
.faq { background: var(--plaster); }
.faq-container { max-width: 760px; }
.accordion {
  margin-top: clamp(44px, 5vw, 72px);
  border-top: 1px solid var(--hairline);
}
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 2.4rem 1.5rem 0.2rem;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  transition: color 0.25s ease;
}
.acc-item summary:hover { color: var(--ember); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::before,
.acc-item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--taupe);
  transition: transform 0.25s ease;
}
.acc-item summary::after { transform: rotate(90deg); }
.acc-item[open] summary::after { transform: rotate(0deg); }
.acc-item p {
  margin: 0;
  padding: 0.2rem 2.6rem 1.7rem 0.2rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* ---------- Contact ---------- */
.contact { background: var(--greige); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-copy .section-title { margin-bottom: 1.4rem; }
.contact-copy > p {
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0 0 2.6rem;
}
.contact-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.contact-points li {
  display: grid;
  gap: 0.3rem;
  padding: 1.3rem 0;
  border-top: 1px solid #d3ccbf;
}
.contact-points strong {
  font-size: 0.66rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--taupe);
}
.contact-points a,
.contact-points span {
  text-decoration: none;
  font-size: 1.15rem;
  color: var(--charcoal);
}
.contact-points a:hover { color: var(--ember); }

.contact-form { padding-top: 0.4rem; }
.field { display: grid; gap: 0.5rem; margin-bottom: 1.9rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.field label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
}
.field input,
.field select,
.field textarea {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--charcoal);
  padding: 0.55rem 0.1rem;
  border: 0;
  border-bottom: 1px solid var(--taupe);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a8177; opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ember);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23696158' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
}
.field textarea { resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }
.contact-form .btn { margin-top: 0.6rem; }
.form-note {
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  color: var(--taupe);
  margin: 1.4rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plaster);
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 8vw, 100px) 0 2.6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-tag {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.4rem;
  margin-top: 0.6rem;
}
.footer-nav a {
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--ember); }
.footer-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-top: 2.2rem;
  text-align: center;
}
.footer-base p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.footer-base .disclaimer {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  max-width: 64ch;
  color: var(--taupe);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .header-inner { position: relative; padding-top: 1.6rem; padding-bottom: 1.4rem; gap: 0; }
  .wordmark-primary { font-size: 1.3rem; }
  .mobile-nav { display: flex; }

  .columns { grid-template-columns: 1fr; gap: 0; }
  .col { padding: 2.2rem 0.4rem; }
  .col + .col { border-left: 0; border-top: 1px solid var(--hairline); }

  .story-grid { grid-template-columns: 1fr; }
  .story-media { order: 2; max-width: 460px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.6rem 0; }
  .step + .step { border-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--hairline); }

  .contact-grid { grid-template-columns: 1fr; }

  .hero-creds { flex-direction: column; align-items: center; gap: 1.1rem; }
  .hero-creds li { padding: 0; }
  .hero-creds li + li { border-left: 0; }
}

@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; gap: 0.7rem; }
  .service-num { font-size: 1.2rem; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { border-left: 0; }
  .step + .step { border-top: 1px solid var(--hairline); padding-top: 2.4rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions { flex-direction: column; gap: 1.6rem; }
}
