:root {
  --canvas: #f4f1ea;
  --ink: #181817;
  --muted: #6d6a63;
  --accent: #e65f3d;
  --line: #d6d1c7;
  --paper: #ece8df;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.site-header,
.site-footer,
main { max-width: 1440px; margin: 0 auto; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px clamp(24px, 5vw, 76px);
  font-size: 0.78rem;
  letter-spacing: 0.025em;
}

.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.04em; font-size: 1.06rem; }
.monogram { width: 32px; height: 32px; object-fit: contain; }
.wordmark span { color: var(--accent); font-size: 0.48em; margin-left: 2px; vertical-align: top; }
.index-link, .text-link { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.index-link span, .text-link span { color: var(--accent); margin-left: 4px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(310px, 1.04fr);
  align-items: center;
  min-height: min(740px, calc(100vh - 86px));
  padding: clamp(52px, 9vw, 132px) clamp(24px, 5vw, 76px);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.eyebrow, .section-marker, .project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 750px;
  margin: clamp(22px, 3.6vw, 50px) 0 25px;
  font-size: clamp(4.1rem, 8.6vw, 9.45rem);
  font-weight: 600;
  letter-spacing: -0.088em;
  line-height: 0.82;
}

.hero-statement {
  max-width: 355px;
  margin-bottom: 32px;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.42;
}

.text-link { display: inline-block; font-size: 0.88rem; font-weight: 600; }

.path-stage { position: relative; min-height: 430px; }
.flow-map { display: block; width: 116%; max-width: none; margin-left: -12%; overflow: visible; }
.guide-path, .flow-path { fill: none; stroke-linecap: round; }
.guide-path { stroke: var(--ink); stroke-width: 2.5; }
.flow-path { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1300; stroke-dashoffset: 1300; animation: trace-path 2.2s cubic-bezier(.33, .02, .17, 1) 0.25s forwards; }
.origin-dot { fill: var(--accent); }
.destination-dot { fill: var(--ink); }

@media (max-width: 760px) { .hero { grid-template-columns: 1fr; min-height: auto; } .hero h1 { font-size: clamp(3.3rem, 14vw, 5.15rem); } .path-stage { min-height: 340px; margin-top: 38px; } .label-experiment { left: 46%; } .label-prototype { left: 53%; } .label-product { right: 0; } }


/* Manifesto hero and route labels */
.hero { grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr); min-height: 720px; }
.hero h1 { max-width: 700px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: clamp(3.7rem, 6.6vw, 7.25rem); font-weight: 400; letter-spacing: -0.065em; line-height: 0.93; }
.eyebrow { color: var(--ink); }
.hero-statement { max-width: 410px; font-size: 1.13rem; }
.text-link { background: var(--ink); border: 0; border-radius: 999px; color: var(--canvas); padding: 14px 22px; }
.text-link span { color: var(--canvas); }
.wordmark > span { color: var(--ink); font-size: 1em; margin: 0; vertical-align: baseline; }
.path-stage { min-height: 510px; }
.flow-map { width: 108%; margin: 0; }
.flow-path { stroke: var(--ink); stroke-width: 3.2; }
.origin-dot, .destination-dot, .stage-dot { fill: var(--ink); }
.route-label { fill: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; min-height: auto; } .hero h1 { font-size: clamp(3.3rem, 14vw, 5.15rem); } .path-stage { min-height: 340px; margin-top: 38px; } .route-label { font-size: 11px; letter-spacing: 1.4px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flow-path { animation: none; stroke-dashoffset: 0; } .project-card { transition: none; } }


/* Header logo and work index recovery */
.monogram { width: 86px; height: 52px; object-fit: contain; transform: scale(2.65); transform-origin: center left; }
.wordmark { gap: 16px; }
.work { padding: clamp(66px, 9vw, 142px) clamp(24px, 5vw, 76px); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 47px; }
h2 { margin: 0; font-size: clamp(2.45rem, 5vw, 5.8rem); font-weight: 600; letter-spacing: -0.075em; line-height: 0.9; }
.project-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { position: relative; min-height: 315px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: var(--paper); overflow: hidden; transition: transform 220ms ease, background-color 220ms ease; }
.project-card:hover { transform: translateY(-5px); background: #e7e2d7; }
.project-meta { display: flex; justify-content: space-between; }
.project-meta span:last-child { color: var(--accent); }
.project-content { position: relative; z-index: 1; max-width: 385px; }
h3 { margin-bottom: 12px; font-size: clamp(2.5rem, 4.6vw, 5.15rem); font-weight: 600; letter-spacing: -0.08em; line-height: 0.84; }
.project-content p { max-width: 285px; margin-bottom: 0; font-size: 0.97rem; line-height: 1.45; }
.card-symbol { position: absolute; right: -0.04em; bottom: -0.28em; color: var(--accent); font-family: Georgia, serif; font-size: clamp(10rem, 20vw, 18rem); line-height: 1; opacity: 0.9; }
.project-card-surfer .card-symbol { right: 0.03em; font-size: clamp(12rem, 24vw, 22rem); transform: rotate(-14deg); }
.site-footer { display: flex; justify-content: space-between; padding: 23px clamp(24px, 5vw, 76px) 31px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.site-footer p { margin: 0; } .site-footer a { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .monogram { width: 62px; transform: scale(1.35); } .section-heading { display: block; } .section-heading h2 { margin-top: 24px; } .project-list { grid-template-columns: 1fr; } .project-card { min-height: 285px; } }


/* Product identities */
.project-list { grid-template-columns: repeat(3, 1fr); }
.product-logo { position: absolute; right: 18px; top: 52px; width: 82px; height: 82px; object-fit: contain; }
.surfer-logo { width: 118px; height: 94px; right: 8px; top: 35px; }
.rubricly-logo { width: 116px; height: 116px; top: 32px; right: 12px; object-fit: contain; }
.project-card-rubricly { background: #e8e1d4; }
.product-link { display: inline-block; margin-top: 18px; border-bottom: 1px solid currentColor; font-size: 0.82rem; font-weight: 700; padding-bottom: 3px; }
.product-link span { color: var(--accent); }
@media (max-width: 1040px) { .project-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .project-list { grid-template-columns: 1fr; } }
