/* ===========================================================
   DETOUR Lab — shared design system
   Base: Warm & Human (B) · Editorial touches from (A)
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --paper: #FBF8F1;
  --paper-2: #F2EEE2;
  --ink: #26241E;
  --ink-soft: #615F54;
  --sage: #B1BA8D;
  --sage-deep: #5A6244;
  --sage-mid: #97A171;
  --sage-soft: #E9EBDD;
  --clay: #C08A63;
  --clay-soft: #EBD9CB;
  --line: #E2DDCF;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --maxw: 1200px;
  --pad: 44px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
::selection { background: var(--sage); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Reusable type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sage-deep); }
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage-mid); margin-bottom: 16px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display {
  font-weight: var(--display-weight, 400); font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04; letter-spacing: -0.02em;
}
.display em, .serif-em { font-style: italic; color: var(--clay); }
.lede { font-size: 19px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .24s ease;
}
.btn .arrow { transition: transform .24s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--sage-deep); color: var(--paper); }
.btn.solid:hover { background: var(--ink); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--sage-deep); background: var(--sage-soft); }
.btn.clay { background: var(--clay); color: #fff; }
.btn.clay:hover { background: #a9744f; transform: translateY(-2px); }
.btn.small { font-size: 13.5px; padding: 10px 20px; }

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 11px, var(--sage-soft) 11px, var(--sage-soft) 22px);
  display: flex; align-items: center; justify-content: center;
}
.ph span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.05em; color: var(--sage-deep);
  background: var(--paper); padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line); text-align: center;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph img.face { object-position: center 22%; }
.r-sm { border-radius: 12px; }
.r-md { border-radius: 18px; }
.r-lg { border-radius: 24px; }
.r-circle { border-radius: 50%; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
}
.brand {
  font-family: var(--serif); font-weight: 500; font-size: 23px;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 11px;
  white-space: nowrap;
}
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sage-mid); flex: none; }
.brand b { font-weight: 600; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 999px; transition: all .2s;
}
.nav-links a:hover { background: var(--sage-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--sage-soft); }
.nav-links a.cta { background: var(--sage-deep); color: var(--paper); }
.nav-links a.cta:hover { background: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Page header (interior pages) ---------- */
.page-head { padding: 72px 0 30px; }
.page-head .display { max-width: 18ch; }
.page-head .lede { max-width: 56ch; margin-top: 24px; }

/* ---------- Generic section ---------- */
.band { padding: var(--band-pad, 84px) 0; }
.band.tight { padding: 56px 0; }
.band.line-top { border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin: 0 auto 48px; text-align: center; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 400; }

/* ---------- Footer ---------- */
footer { background: var(--sage-deep); color: var(--paper); padding: 76px 0 38px; margin-top: 40px; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(251,248,241,.2);
}
.foot-grid .brand { color: var(--paper); font-size: 26px; margin-bottom: 16px; }
.foot-grid p { font-size: 15px; color: rgba(251,248,241,.72); max-width: 38ch; }
.foot-col h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251,248,241,.6); margin-bottom: 18px; }
.foot-col a { display: block; font-size: 15px; color: rgba(251,248,241,.92); margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 13px; color: rgba(251,248,241,.55); flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal (transform-only, never hides content) ---------- */
/* Opacity stays 1 at all times so content is ALWAYS visible — even if an
   animation is captured at its first frame or scripting/anim is disabled.
   With JS we add a gentle one-time upward drift on load. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { animation: revealIn .7s cubic-bezier(.22,.61,.36,1) both; }
html.js .reveal:nth-child(2) { animation-delay: .07s; }
html.js .reveal:nth-child(3) { animation-delay: .14s; }
html.js .reveal:nth-child(4) { animation-delay: .21s; }
@keyframes revealIn {
  from { transform: translateY(20px); }
  to   { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 22px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--pad); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
