/* ================================================================
   Claw Ventures LLC — site styles
   Editorial, warm, distinctive. Cream paper + ink + clay accent,
   with a dark contrast band for products.
   ================================================================ */

:root {
  color-scheme: light;
  --bg: #f7f1e6;            /* warm cream paper */
  --bg-soft: #f1e9da;       /* slightly deeper cream */
  --card: #fffdf7;
  --ink: #1d1812;           /* warm near-black */
  --muted: #6c6256;
  --faint: #988c7c;
  --line: #e0d6c4;
  --clay: #b8431f;          /* primary accent */
  --clay-deep: #8e3115;
  --clay-soft: rgba(184, 67, 31, 0.08);
  --clay-border: rgba(184, 67, 31, 0.25);
  --gold: #c98b2d;

  --dark: #181310;          /* dark band */
  --dark-card: #221c17;
  --dark-line: #352c24;
  --cream-on-dark: #f3ecdd;
  --muted-on-dark: #b3a796;

  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 68rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Prevent WebView-based browsers (DuckDuckGo, Samsung Internet) from
     auto-inflating text, which overflowed the nav on Android. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Belt-and-braces: never allow horizontal pan even if something overflows. */
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft radial washes behind everything — gives the paper depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 42rem at 85% -10%, rgba(201, 139, 45, 0.10), transparent 60%),
    radial-gradient(36rem 36rem at -10% 30%, rgba(184, 67, 31, 0.07), transparent 60%),
    var(--bg);
}

::selection { background: var(--clay); color: var(--cream-on-dark); }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-deep); }

h1, h2, h3, .brand { font-family: var(--serif); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; column-gap: 1rem; row-gap: 0.125rem;
  min-height: 4.25rem; padding: 0.625rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--ink);
  white-space: nowrap; flex: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 1.5rem; height: 1.5rem; flex: none; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2rem; }
.nav-links a {
  position: relative; color: var(--muted); font-size: 0.9375rem; font-weight: 500;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--clay);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a { white-space: nowrap; }
@media (max-width: 36rem) {
  .wrap { padding: 0 1rem; }
  .btn.ghost { margin-left: 0; margin-top: 0.75rem; }
  nav { min-height: 3.5rem; padding: 0.5rem 0; }
  .brand { font-size: 1rem; gap: 0.4rem; }
  .brand .mark { width: 1.125rem; height: 1.125rem; }
  .nav-links { gap: 0.875rem; }
  .nav-links a { font-size: 0.84375rem; }
}
@media (max-width: 22.5rem) {
  .brand { font-size: 0.9375rem; }
  .nav-links { gap: 0.625rem; }
  .nav-links a { font-size: 0.8125rem; }
}

/* ---------- Hero ---------- */
.hero { padding: 7rem 0 5rem; text-align: left; position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1.75rem;
}
.hero .kicker::before {
  content: ""; width: 2.25rem; height: 2px; background: var(--clay); display: inline-block;
}
.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  margin-bottom: 1.75rem; max-width: 56rem;
}
.hero h1 em {
  font-style: italic; font-weight: 500; color: var(--clay);
  position: relative; white-space: nowrap;
}
.hero h1 em svg {
  position: absolute; left: 0; bottom: -0.18em; width: 100%; height: 0.32em;
  overflow: visible;
}
.hero h1 em svg path {
  fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.1s 0.5s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero p.sub {
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  color: var(--muted); max-width: 38rem; margin-bottom: 2.5rem;
}
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  background: var(--ink); color: var(--bg);
  padding: 0.875rem 1.75rem; border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: var(--clay); color: var(--cream-on-dark);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184, 67, 31, 0.28);
  text-decoration: none;
}
.btn.ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
  margin-left: 0.75rem;
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden; white-space: nowrap; padding: 0.8rem 0;
}
.ticker-track { display: inline-block; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 0 1.25rem;
}
.ticker span b { color: var(--clay); font-weight: 700; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  display: flex; align-items: baseline; gap: 0.875rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 1rem;
}
.eyebrow .num {
  font-family: var(--serif); font-size: 2.75rem; font-weight: 300; font-style: italic;
  color: var(--line); letter-spacing: 0; line-height: 1;
}
h2 { font-size: clamp(1.75rem, 4.5vw, 2.625rem); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 1.5rem; max-width: 42rem; }
.lead { color: var(--muted); max-width: 46rem; font-size: 1.0625rem; }
.lead + .lead { margin-top: 1rem; }

/* ---------- Dark band (products) ---------- */
.band {
  background: var(--dark); color: var(--cream-on-dark);
  border-top: 1px solid var(--dark-line) !important;
}
.band .eyebrow { color: var(--gold); }
.band .eyebrow .num { color: var(--dark-line); }
.band h2 { color: var(--cream-on-dark); }
.band .lead { color: var(--muted-on-dark); }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1.375rem; margin-top: 2.75rem; }
.card {
  position: relative;
  background: var(--dark-card); border: 1px solid var(--dark-line);
  border-radius: 1rem; padding: 1.875rem 1.625rem 1.5rem;
  display: flex; flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 139, 45, 0.45); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.card:hover::before { transform: scaleX(1); }
.card .index {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1rem; color: var(--gold); margin-bottom: 1rem; letter-spacing: 0.05em;
}
.card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.625rem; color: var(--cream-on-dark); }
.card p { color: var(--muted-on-dark); font-size: 0.9375rem; }
.card .card-link {
  margin-top: auto; padding-top: 1.375rem; font-size: 0.9375rem; font-weight: 600; color: var(--gold);
}
.card .card-link .arrow { display: inline-block; transition: transform 0.22s ease; }
.card:hover .card-link .arrow { transform: translateX(5px); }
.card .card-link:hover { color: var(--cream-on-dark); text-decoration: none; }

.badge {
  display: inline-block; font-size: 0.71875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--clay);
  background: var(--clay-soft); border: 1px solid var(--clay-border);
  padding: 0.3rem 0.75rem; border-radius: 999px; font-family: var(--sans);
}
.band .badge, .dark-badge {
  color: var(--gold); background: rgba(201, 139, 45, 0.1); border-color: rgba(201, 139, 45, 0.35);
}

/* ---------- Project (detail) pages ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 2rem; font-size: 0.9375rem; font-weight: 500; color: var(--muted);
}
.back-link:hover { color: var(--clay); text-decoration: none; }
.project-hero { padding: 5rem 0 3.5rem; }
.project-hero .project-num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1.25rem; color: var(--gold); display: block; margin-bottom: 0.75rem;
}
.project-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.25rem;
}
.project-hero .tagline { font-size: clamp(1.0625rem, 2.5vw, 1.3125rem); color: var(--muted); max-width: 44rem; }
.meta-row { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }
.meta-row .label { font-size: 0.875rem; color: var(--faint); font-weight: 500; }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.375rem; margin-top: 2.25rem; }
.feature-list li {
  background: var(--dark-card); border: 1px solid var(--dark-line);
  border-radius: 1rem; padding: 1.625rem;
  transition: transform 0.28s ease, border-color 0.28s ease;
}
.feature-list li:hover { transform: translateY(-4px); border-color: rgba(201, 139, 45, 0.45); }
.feature-list strong {
  font-family: var(--serif); display: block; font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.5rem; color: var(--cream-on-dark);
}
.feature-list span { color: var(--muted-on-dark); font-size: 0.9375rem; }

.source-list { list-style: none; margin-top: 2.25rem; display: grid; gap: 1.125rem; }
.source-list li {
  padding: 1.125rem 1.375rem; border-radius: 0.875rem;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--clay);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.source-list li:hover { transform: translateX(6px); box-shadow: 0 8px 22px rgba(29, 24, 18, 0.08); }
.source-list strong { font-family: var(--serif); font-size: 1.125rem; color: var(--ink); }
.source-list span { color: var(--muted); }

.note {
  margin-top: 2.5rem; padding: 1.125rem 1.375rem; border-radius: 0.875rem;
  background: var(--clay-soft); border: 1px solid var(--clay-border);
  color: var(--muted); font-size: 0.9375rem; max-width: 46rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.75rem; margin-top: 2rem; max-width: 40rem; }
.contact-grid h3 {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem;
}
.contact-grid p, address { font-style: normal; color: var(--ink); line-height: 1.7; }
.contact-grid a { font-weight: 600; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: var(--muted-on-dark); padding: 3.5rem 0 2.5rem; }
footer .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
footer .wordmark {
  font-family: var(--serif); font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 600;
  color: var(--cream-on-dark); letter-spacing: -0.015em; line-height: 1.1;
}
footer .wordmark em { font-style: italic; color: var(--gold); font-weight: 400; }
footer p { font-size: 0.875rem; }
footer a { color: var(--gold); }
footer a:hover { color: var(--cream-on-dark); }
footer .ver {
  margin-top: 1.25rem; font-size: 0.75rem; color: var(--muted-on-dark);
  opacity: 0.55; letter-spacing: 0.04em;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero h1 em svg path { animation: none; stroke-dashoffset: 0; }
  .card, .feature-list li, .source-list li, .btn { transition: none; }
}
