/* GENERATIVE ECOSYSTEMS — visual system.
   Architecture: full-bleed immersive field bands + editorial paper.
   Component mechanism cloned from a marketplace-grade system (Airbnb spec):
   ink-on-white, modest type weights, 4/8px spacing, hairline discipline,
   ONE shadow tier, soft radii on interactive components. Monochrome —
   the fields carry all color. */

/* NB International Pro — paragraphs, labels, UI. Titles stay Helvetica. */
@font-face {
  font-family: 'NB International Pro';
  src: url('fonts/NB-International-Pro-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'NB International Pro';
  src: url('fonts/NB-International-Pro-Regular.ttf') format('truetype');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'NB International Pro';
  src: url('fonts/NB-International-Pro-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --font-body: 'NB International Pro', 'Helvetica Neue', Helvetica, sans-serif;
  --font-title: 'Helvetica Neue', Helvetica, Inter, -apple-system, system-ui, sans-serif;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 6px 0, rgba(0,0,0,0.1) 0 4px 8px 0;
  --r-sm: 8px;
  --r-md: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
canvas { display: block; width: 100%; height: 100%; }
em { font-style: normal; font-weight: 600; }

/* ---- micro-label system — BOLD two-tier (the technical signature) ---- */
.t2 { color: rgba(34,34,34,0.36); }
.hd, .hero-chip, .kt, .card-meta .t2, .case .t2, .st, .foot-row {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
}
.hd .t2, .hero-chip .t2, .card-meta .t2, .case .t2 { color: rgba(34,34,34,0.36); }
.fine { font-size: 12px; color: var(--muted-soft); margin-top: 12px; }

/* ---- header ---- */
.hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  z-index: 40;
  mix-blend-mode: multiply;
}
.hd a { color: inherit; text-decoration: none; }
.hd-l { display: inline-flex; align-items: center; gap: 9px; }
.hd-l a { display: inline-flex; align-items: center; gap: 9px; }
.hd-mark { width: 22px; height: 22px; flex: 0 0 22px; }

/* ---- loading screen: the mark draws itself, then gets out of the way ---- */
.x-loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.x-loader.done { opacity: 0; pointer-events: none; }

/* ---- hero: full-bleed live field ---- */
.hero { height: 100svh; position: relative; overflow: hidden; }
.hero > canvas { position: absolute; inset: 0; }
.hero-chip {
  position: absolute; left: 24px; bottom: 22px;
  display: flex; flex-direction: column; gap: 3px;
}
.hero-chip span:first-child { color: var(--ink); }
.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 24px;
  pointer-events: none;
  z-index: 2;
}
.hero-copy::before {
  content: "";
  position: absolute;
  left: -12%; top: 18%;
  width: 74%; height: 64%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.94), rgba(255,255,255,0.6) 55%, rgba(255,255,255,0) 100%);
  z-index: -1;
}
h1, h2, h3, .art-title, .foot-mark, .card-t, .art-next a {
  font-family: var(--font-title);
}
h1 {
  font-weight: 700;
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-sub {
  margin-top: 20px;
  font-weight: 500;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 46ch;
}
.hero-cue { position: absolute; right: 24px; bottom: 22px; color: var(--muted-soft); }

/* hero type: plain fade-rise, no overflow masks */
.rise2 {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  animation: rise2 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rise2.d1 { animation-delay: 0.08s; }
.rise2.d2 { animation-delay: 0.2s; }
@keyframes rise2 { to { opacity: 1; transform: none; } }

/* ---- sections / column ---- */
.sec { padding: clamp(64px, 10vh, 112px) 24px; }
.col { max-width: 640px; margin: 0 auto; }
.col.wide { max-width: 1120px; }
h2 {
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.sec p { margin-bottom: 16px; color: var(--body); }
.sec p.strong { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.center { text-align: center; margin-top: 48px; }

/* kicker: label only — no leading rule */
.kick { margin-bottom: 40px; }

/* ---- reveal system ---- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.rv.on { opacity: 1; transform: none; }
.kick.rv { transform: none; }
.rv-msk { overflow: hidden; }
.rv-msk > span { display: block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.rv-msk.on > span { transform: translateY(0); }

/* ---- issue cards (photo-first marketplace card, field instead of photo) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.card-field {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: rgba(0,0,0,0.02) 0 0 0 1px;
  transition: box-shadow 0.3s ease;
  transform: translateZ(0);
}
.card:hover .card-field { box-shadow: var(--shadow); }
.card-field canvas { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card-field canvas { transform: scale(1.04); }
.card-meta { display: flex; flex-direction: column; gap: 5px; padding-top: 14px; }
.card-t { font-weight: 600; font-size: 16px; letter-spacing: 0; line-height: 1.25; }
.card-meta p { font-size: 14px; line-height: 1.43; margin: 0; color: var(--muted); }
.card-meta .st { margin-top: 6px; color: var(--ink); }
.card-meta .st.soon { color: var(--muted-soft); }

/* icon chips — icon + label lockup */
.chip, .st { display: inline-flex; align-items: center; gap: 6px; }
.chip svg, .st svg { flex: 0 0 auto; opacity: 0.75; }
.hero-cue { display: inline-flex; align-items: center; gap: 6px; }
.card:nth-child(3n+2) { transition-delay: 0.1s; }
.card:nth-child(3n+3) { transition-delay: 0.2s; }

/* ---- buttons (ink primary, one radius language) ---- */
.mem-btn {
  font: 500 16px/1.25 'NB International Pro', 'Helvetica Neue', sans-serif;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--r-sm);
  border: none;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mem-btn:hover { background: #000; }
.mem-btn:active { transform: scale(0.98); }

/* ---- subscribe: one joined pill (search-bar grammar) ---- */
.sub-pill {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px;
  height: 60px;
  padding: 4px 4px 4px 24px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.sub-pill input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: 400 16px/1.25 'NB International Pro', 'Helvetica Neue', sans-serif;
  color: var(--ink);
}
.sub-pill input::placeholder { color: var(--muted-soft); }
.pill-btn {
  height: 50px; padding: 0 24px;
  border: none; border-radius: 9999px;
  background: var(--ink); color: #fff;
  font: 500 15px/1 'NB International Pro', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex: 0 0 auto;
}
.pill-btn:hover { background: #000; }
.pill-btn:active { transform: scale(0.98); }
.sponsor-line { font-size: 14px; color: var(--muted); margin-top: 28px; }
.sponsor-line a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.sponsor-line a:hover { text-decoration-color: var(--ink); }

/* ---- provenance note (agentic disclosure) ---- */
.prov {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted-soft);
  text-transform: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  max-width: 58ch;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 56px;
  padding-top: 20px;
}
.prov svg { flex: 0 0 14px; margin-top: 2px; opacity: 0.8; }

.offer-tag { margin-bottom: 18px; }
.ft-line {
  display: block; margin-top: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.32px; text-transform: uppercase;
}

/* ---- footer — ONE full-width immersive band, content overlaid ---- */
.foot {
  position: relative;
  height: 52svh;
  overflow: hidden;
  border-top: 1px solid var(--hairline-soft);
}
.foot > canvas { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.foot-mark {
  position: absolute; left: 24px; bottom: 62px;
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 8rem);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
}
.foot-dot { opacity: 0.25; }
.foot-row {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.foot-row a { color: var(--ink); text-decoration: none; }
.foot-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-row .dim { color: rgba(34,34,34,0.36); }
.foot-note {
  position: absolute; left: 24px; top: 28px;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 40ch;
  font-size: 13px; line-height: 1.5;
  color: rgba(34,34,34,0.55);
}
.foot-note svg { flex: 0 0 14px; margin-top: 2px; opacity: 0.7; }

/* ---- article pages ---- */
.art-hero { height: 46svh; position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-soft); }
.art-hero canvas { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.art-hero .hero-chip { z-index: 2; }
.art-head { padding: clamp(56px, 8vh, 88px) 24px 0; }
.art-head .col { max-width: 720px; }
.art-kicker { margin-bottom: 20px; }
.art-title { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; }
.art-dek { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.4; color: var(--muted); max-width: 52ch; }
.art-body { padding: clamp(40px, 6vh, 72px) 24px clamp(64px, 10vh, 112px); }
.art-body .col { max-width: 640px; }
.art-body h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.018em; margin: 56px 0 16px; }
.art-body p { margin-bottom: 16px; color: var(--body); }
.art-body p.strong { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.art-body p a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); transition: text-decoration-color 0.2s ease; }
.art-body p a:hover { text-decoration-color: var(--ink); }
.art-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--surface-soft);
  border-radius: 4px;
  padding: 2px 6px;
}

/* case-study card */
.case {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 20px 0;
  transition: box-shadow 0.3s ease;
}
.case:hover { box-shadow: var(--shadow); }
.case .t2 { display: block; margin-bottom: 10px; }
.case-t { font-weight: 600; font-size: 16px; display: block; margin-bottom: 8px; }
.case p { font-size: 14px; line-height: 1.5; margin: 0 0 10px; color: var(--muted); }
.case a { color: var(--ink); font-weight: 500; text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--hairline); }
.case a:hover { border-color: var(--ink); }

/* references */
.refs { list-style: none; margin: 16px 0 0; }
.refs li { padding: 12px 0; border-top: 1px solid var(--hairline-soft); font-size: 14px; line-height: 1.43; color: var(--muted); }
.refs a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.refs a:hover { text-decoration-color: var(--ink); }

.art-sub { margin-top: 56px; border-top: 1px solid var(--hairline-soft); padding-top: 32px; }
.art-body .art-sub h3 { margin: 0 0 8px; }
.art-body .art-sub p { color: var(--muted); font-size: 14px; margin: 0; }
.art-next { margin-top: 40px; }
.art-next a { color: inherit; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.art-next a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-next a .dim { color: rgba(34,34,34,0.36); }

/* ---- responsive ---- */
@media (max-width: 860px){
  .cards { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .foot-cols { flex-direction: column; }
}
@media (max-width: 560px){
  .cards { grid-template-columns: 1fr; }
  .mail { flex-direction: column; }
}
@media (max-width: 760px){
  .hero-cue { display: none; }
}
