@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* Heartwood and copper: timber heritage, rendered as circuitry. */
:root {
  --bg: #0d1411;
  --bg-2: #121c17;
  --panel: rgba(241, 235, 225, 0.035);
  --line: rgba(232, 220, 200, 0.11);
  --ink: #f1ebe1;
  --muted: #a9b3a7;
  --copper: #f0a466;
  --copper-deep: #c98a55;
  --moss: #8fd19e;
  --grad: linear-gradient(100deg, #f6c08f, #e0874a);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin: 0; }
p { margin: 0; }
a { color: var(--copper); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(13, 20, 17, 0.65);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--sans); letter-spacing: 0.06em; }
.brand-mark { width: 32px; height: 32px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }
.nav nav .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; background: var(--panel); }
.nav nav .nav-cta:hover { border-color: var(--copper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.btn-primary { background: var(--grad); color: #1a0f07; box-shadow: 0 10px 40px -12px rgba(240, 164, 102, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -10px rgba(240, 164, 102, 0.75); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--panel); }
.btn-ghost:hover { border-color: var(--copper); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 110px 0 60px;
  background:
    radial-gradient(700px 480px at 78% 45%, rgba(240, 164, 102, 0.14), transparent 62%),
    radial-gradient(600px 400px at 8% 90%, rgba(143, 209, 158, 0.1), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; background: rgba(13, 20, 17, 0.6); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 12px var(--moss); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); margin: 24px 0 24px; max-width: 11ch; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rings { width: 100%; height: auto; max-width: 560px; justify-self: end; filter: drop-shadow(0 0 40px rgba(240, 164, 102, 0.12)); }

/* Sections */
section:not(.hero) { padding: 110px 0; }
h2 { font-size: clamp(34px, 4.8vw, 56px); }
.sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 46ch; }

.story { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.timeline { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.era { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--panel); }
.era-tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-deep); font-weight: 600; }
.era h3 { font-size: 28px; margin: 14px 0 12px; }
.era p:last-child { color: var(--muted); }
.era-now { border-color: rgba(240, 164, 102, 0.4); background: linear-gradient(150deg, rgba(240, 164, 102, 0.1), rgba(143, 209, 158, 0.06)); }
.era-now .era-tag { color: var(--moss); }
.era-now p:last-child { color: var(--ink); }
.through-line { margin-top: 28px; font-size: 19px; color: var(--muted); }
.through-line strong { color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; }

.ventures { background: var(--bg-2); }
.venture { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 32px; border-radius: var(--radius); background: #0b1020; color: #eaf0ff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.venture:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -24px rgba(52, 231, 228, 0.45); }
.venture-mark { width: 88px; height: 88px; border-radius: 22px; background: #070b18; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.1); }
.venture-mark svg { width: 52px; height: 52px; }
.venture-tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #34e7e4; }
.venture h3 { font-weight: 700; letter-spacing: -0.03em; font-size: 34px; margin: 6px 0 8px; }
.venture-body p:not(.venture-tag) { color: #a3afd1; max-width: 60ch; }
.venture-link { display: inline-block; margin-top: 14px; font-weight: 600; color: #eaf0ff; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 600 20px/1.3 var(--sans); }

.contact { background: radial-gradient(700px 460px at 12% 50%, rgba(240, 164, 102, 0.1), transparent 60%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 12, 10, 0.7); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: rgba(241, 235, 225, 0.05); border: 1px solid rgba(241, 235, 225, 0.2); border-radius: 10px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(240, 164, 102, 0.2); }
.field input[aria-invalid='true'] { border-color: #ff8f7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: #ff8f7a; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.fineprint a { color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

.doc { max-width: 720px; margin: 0 auto; padding: 140px 24px 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 54px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p { color: var(--muted); }

/* Story: three chapters */
.timeline { grid-template-columns: repeat(3, 1fr); }
.era-idea { border-color: rgba(201, 138, 85, 0.35); }
.era-idea .era-tag { color: var(--copper); }

/* Provenance: board -> QR tag -> phone */
.provenance { background: radial-gradient(800px 520px at 85% 40%, rgba(143, 209, 158, 0.08), transparent 60%), var(--bg); }
.prov-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.prov-copy h2 { margin-top: 20px; }
.prov-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.prov-points li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.pt-num { font: 700 15px/1.6 var(--sans); color: var(--copper); }
.prov-points h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.prov-points p { color: var(--muted); }

.prov-demo { margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
.board {
  position: relative; padding: 26px 22px; border-radius: 10px;
  background:
    repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 23px),
    linear-gradient(160deg, #8a5a33, #6b4225 55%, #5a361d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.tag { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 12px 10px; border-radius: 8px; background: #f3e6d2; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6); }
.tag img { width: 100%; max-width: 150px; height: auto; display: block; }
.tag span { font: 700 11px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #13201a; text-align: center; }

.trace { width: 56px; height: 2px; background: linear-gradient(90deg, var(--copper), var(--moss)); position: relative; }
.trace::before, .trace::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%); background: var(--bg); border: 2px solid var(--copper); }
.trace::before { left: -4px; }
.trace::after { right: -4px; border-color: var(--moss); }
.trace span { position: absolute; top: -2px; left: 0; width: 14px; height: 6px; border-radius: 3px; background: #ffc48f; box-shadow: 0 0 10px #ffc48f; animation: zip 2.2s ease-in-out infinite; }
@keyframes zip { from { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { left: calc(100% - 14px); opacity: 0; } }

.phone { position: relative; border-radius: 30px; padding: 14px 12px 16px; background: #050806; border: 1px solid rgba(241, 235, 225, 0.16); box-shadow: 0 40px 80px -30px rgba(240, 164, 102, 0.35); max-width: 290px; justify-self: start; }
.phone-notch { width: 70px; height: 6px; border-radius: 3px; margin: 0 auto 12px; background: rgba(241, 235, 225, 0.14); }
.story-card { border-radius: 18px; padding: 18px 16px; background: linear-gradient(180deg, #17241d, #101a14); }
.sc-kicker, .sc-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); font-weight: 700; }
.sc-label { margin-top: 14px; }
.sc-title { font: 500 italic 30px/1.1 var(--serif); color: var(--ink); margin-top: 4px; }
.sc-meta { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.sc-map { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 10px; border: 1px solid rgba(240, 164, 102, 0.25); }
.sc-coords { margin-top: 8px; font: 600 12px/1.3 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--copper); letter-spacing: 0.02em; }
.sc-coords span { color: var(--muted); font-weight: 400; }
.sc-facts { margin: 12px 0 0; display: grid; gap: 8px; }
.sc-facts dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss); font-weight: 700; }
.sc-facts dd { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.sc-items { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sc-items li { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(240, 164, 102, 0.4); color: var(--ink); }
.sc-quote { margin: 6px 0 0; font: italic 400 15px/1.4 var(--serif); color: var(--ink); }
.sc-quote span { display: block; margin-top: 4px; font: 400 11px/1 var(--sans); color: var(--muted); }
.prov-demo figcaption { grid-column: 1 / -1; text-align: center; margin-top: 18px; }

/* Heritage mark and the ecoID name */
.era-logo { display: block; width: 64px; height: auto; margin-bottom: 18px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7); }
.eco-id { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; color: var(--copper); letter-spacing: 0.02em; }

/* Story card photo */
.sc-photo { display: block; width: calc(100% + 32px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -18px -16px 14px; border-radius: 18px 18px 0 0; }

/* The loop ecoID set out to close */
.sc-loop { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-top: 6px; padding: 10px; border-radius: 10px; border: 1.5px dashed rgba(240, 164, 102, 0.55); }
.sc-loop-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--sans); color: #1a0f07; background: var(--grad); }
.sc-loop p { font-size: 12px; line-height: 1.45; color: var(--ink); }

/* Reclaimed-wood examples */
.became { margin-top: 90px; }
.became-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.gallery { margin-top: 30px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; }
.gallery figure:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(240, 164, 102, 0.5); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 10px; background: #fff; }
.gallery figcaption { padding: 10px 12px 12px; font-size: 14px; font-weight: 600; color: var(--ink); background: #121c17; border-top: 1px solid var(--line); }

.venture + .venture { margin-top: 18px; }
.venture-prov { background: linear-gradient(140deg, #1a2a20, #121c17); border-color: rgba(240, 164, 102, 0.3); }
.venture-prov:hover { box-shadow: 0 24px 60px -24px rgba(240, 164, 102, 0.45); }
.venture-prov .venture-mark { background: #0d1411; }
.venture-prov .venture-tag { color: var(--copper); }
.venture-prov .venture-body p:not(.venture-tag) { color: var(--muted); }
.venture-prov .venture-link { color: var(--ink); }

@media (max-width: 900px) {
  .prov-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .rings { justify-self: center; max-width: 360px; order: -1; margin-top: 10px; }
  .timeline, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { gap: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .venture { grid-template-columns: 1fr; padding: 24px; }
  .prov-demo { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .board { width: 100%; max-width: 240px; }
  .trace { width: 2px; height: 40px; background: linear-gradient(180deg, var(--copper), var(--moss)); }
  .trace::before { left: 50%; top: -4px; transform: translateX(-50%); }
  .trace::after { left: 50%; right: auto; top: auto; bottom: -4px; transform: translateX(-50%); }
  .trace span { display: none; }
  .phone { justify-self: center; }
  .facts { grid-template-columns: 1fr; }
  .rings { max-width: 270px; }
  section:not(.hero) { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
