/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---------- SPLASH ---------- */
#splash{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner{ text-align: center; }
.brand-wordmark,
.splash-line .char{
  font-family: 'Fraunces', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.06em !important;
  font-style: normal !important;
}

.splash-line{
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  white-space: nowrap;
  line-height: 0.96;
}

.logo .brand-word{
  font-size: 1.38rem;
  display: inline-block;
  line-height: 1;
  font-family: 'Fraunces', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.06em !important;
}

.splash-line .hi{ color: var(--amber); font-style: italic; }
.splash-line .char{
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: charIn 0.5s ease forwards;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
@keyframes charIn{ to{ opacity: 1; transform: translateY(0); } }
.splash-caption{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.1s;
}
@keyframes fadeIn{ to{ opacity: 1; } }
.splash-rule{ width: 46px; height: 8px; margin: 20px auto 0; }
.splash-rule svg{ width: 100%; height: 100%; overflow: visible; }
.splash-rule path{
  fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: drawRule 0.7s ease forwards; animation-delay: 0.9s;
}
@keyframes drawRule{ to{ stroke-dashoffset: 0; } }
.splash-skip{
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  background: none; border: none; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.6s;
}
@media (prefers-reduced-motion: reduce){ #splash{ display: none; } }

/* ---------- NAV ---------- */
header.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 27, 31, 0.08);
  box-shadow: 0 8px 20px rgba(23, 27, 31, 0.02);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1180px; margin: 0 auto;
}
.logo{
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; line-height: 1; gap: 4px;
}
.logo .brand-word{
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink);
}
.logo .tag{
  font-family: var(--font-mono); font-size: 0.56rem; color: var(--slate);
  display: block; letter-spacing: 0.12em; text-transform: uppercase;
}
nav.links{ display: flex; gap: 30px; align-items: center; }
nav.links a.nav-link{
  font-size: 0.9rem; text-decoration: none; color: var(--slate);
  position: relative; padding: 4px 2px; transition: color 0.2s ease;
}
nav.links a.nav-link::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--amber); transition: right 0.25s var(--ease);
}
nav.links a.nav-link:hover, nav.links a.nav-link.active{ color: var(--ink); }
nav.links a.nav-link.active::after{ right: 0; }

.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  text-decoration: none; padding: 12px 20px;
  border-radius: var(--radius-a);
  border: 1px solid var(--ink); background: var(--ink); color: var(--white);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 27, 31, 0.09);
}
.btn:hover{
  background: var(--amber-deep); border-color: var(--amber-deep);
  box-shadow: 0 14px 24px rgba(127, 69, 24, 0.12);
  transform: translateY(-1px);
}
.btn.ghost{ background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover{ border-color: var(--ink); background: rgba(23, 27, 31, 0.02); }

.nav-toggle{ display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

.mobile-menu{ display: none; flex-direction: column; gap: 4px; padding: 10px 20px 22px; border-top: 1px solid var(--line); background: rgba(246,241,232,0.96); }
.mobile-menu.open{ display: flex; }
.mobile-menu a{ padding: 12px 4px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 0.98rem; color: var(--ink); }

/* ---------- OUTCOME ACCORDION ---------- */
.outcome{
  border-bottom: 1px solid var(--line);
}
.outcome-head{
  display: grid;
  grid-template-columns: 60px 1fr 28px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 26px 0;
  background: none; border: none; text-align: left; cursor: pointer;
}
.outcome-num{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber); display: inline-block; }
.outcome:nth-child(odd) .outcome-num{ transform: rotate(-3deg); }
.outcome:nth-child(even) .outcome-num{ transform: rotate(2deg); }
.outcome-title{ font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; }
.outcome-plus{
  width: 22px; height: 22px; position: relative; flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.outcome-plus::before, .outcome-plus::after{
  content: ""; position: absolute; background: var(--ink);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.outcome-plus::before{ width: 14px; height: 1.6px; }
.outcome-plus::after{ width: 1.6px; height: 14px; transition: opacity 0.25s ease; }
.outcome[data-open="true"] .outcome-plus{ transform: rotate(180deg); }
.outcome[data-open="true"] .outcome-plus::after{ opacity: 0; }

.outcome-body{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.outcome[data-open="true"] .outcome-body{ grid-template-rows: 1fr; }
.outcome-body-inner{ overflow: hidden; }
.outcome-desc{
  color: var(--slate); font-size: 0.98rem; max-width: 60ch;
  padding: 0 0 26px 84px;
}

/* ---------- STEP TOGGLER (How We Work) ---------- */
.step-toggle{
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.step-btn{
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--dark-line); background: transparent; color: var(--dark-fg-muted);
  cursor: pointer; transition: all 0.2s ease;
}
.step-btn:hover{ color: var(--dark-fg); border-color: var(--dark-fg-muted); }
.step-btn[aria-selected="true"]{
  background: var(--amber); border-color: var(--amber); color: var(--dark);
}
.step-panel{ display: none; }
.step-panel[data-active="true"]{ display: block; }

/* ---------- CONTACT FORM ---------- */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-b);
  padding: 40px;
}
form.contact-form{ display: flex; flex-direction: column; gap: 20px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field-row{ display: flex; justify-content: space-between; align-items: baseline; }
.field label{
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.field .count{ font-family: var(--font-mono); font-size: 0.7rem; color: var(--line); }
.field .count.warn{ color: var(--amber); }
.field input, .field textarea{
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 2px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  resize: vertical; transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus{ outline: none; border-bottom-color: var(--amber); }
.field.error input, .field.error textarea{ border-bottom-color: #B0432E; }
.field-error{ font-family: var(--font-mono); font-size: 0.74rem; color: #B0432E; min-height: 1em; }
.field textarea{ min-height: 110px; }
.form-foot{ display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form-status{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate); }
.form-status.success{ color: var(--amber-deep); }
