@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/figtree-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/figtree-latin-italic-variable.woff2") format("woff2");
}

:root {
  --ink: #10251d;
  --muted: #5f6f68;
  --paper: #f6f6f0;
  --paper-2: #edf1eb;
  --line: rgba(16, 37, 29, 0.16);
  --green: #a8d8b7;
  --green-dark: #164b3b;
  --coral: #f28c82;
  --blue: #8fb6ed;
  --blue-dark: #1d4f91;
  --apricot: #f4c27a;
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--paper);
  color-scheme: light;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(168, 216, 183, 0.28), transparent 27rem),
    var(--paper);
  font-family: "Figtree", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

::selection { color: var(--ink); background: var(--green); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(16, 37, 29, 0.06);
  background: rgba(246, 246, 240, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  pointer-events: none;
}

.site-header a { pointer-events: auto; }

.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  text-decoration: none;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.wordmark img {
  width: 0.64em;
  height: 0.64em;
  margin: 0 0 -0.02em;
  flex: 0 0 auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  font-size: 13px;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  transition: color 180ms ease;
}

nav a:hover, nav a:focus-visible { color: var(--ink); }

.nav-contact {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.story {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(42px, 7vw, 120px);
  padding: 0 clamp(22px, 4vw, 64px);
}

.visual-column { min-width: 0; }

.visual-frame {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}

#lineage {
  width: min(100%, 700px);
  height: min(88svh, 900px);
  overflow: visible;
}

.branch {
  fill: none;
  stroke: rgba(22, 75, 59, 0.42);
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.node-core { fill: var(--green-dark); }
.node-glow { fill: url(#dotGlow); filter: url(#softGlow); }
.root-logo {
  animation: rootPulse 3.2s ease-in-out infinite;
}

@keyframes rootPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

.person { transform-box: fill-box; transform-origin: center top; }
.person .body-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.person .person-head { fill: currentColor; }

.network-edge {
  fill: none;
  stroke: rgba(29, 79, 145, 0.32);
  stroke-width: 1.1;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}

.network-bridge {
  stroke: rgba(22, 75, 59, 0.28);
  stroke-dasharray: 2 5;
}

.network-node-square {
  fill: var(--paper);
  stroke: var(--blue-dark);
  stroke-width: 1.45;
  vector-effect: non-scaling-stroke;
}

.network-core-glow {
  fill: rgba(143, 182, 237, 0.24);
  filter: url(#softGlow);
}

.network-core-ring {
  fill: none;
  stroke: rgba(29, 79, 145, 0.72);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.network-core .network-node-square { fill: var(--blue-dark); }

.visual-caption {
  position: absolute;
  left: 0;
  top: clamp(82px, 9vh, 104px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-caption .visual-step {
  color: var(--green-dark);
  font-weight: 750;
}

#visual-count {
  max-width: 370px;
  line-height: 1.4;
}

.visual-caption b {
  width: 46px;
  height: 1px;
  background: var(--line);
}

@media (max-width: 820px) {
  #visual-count { max-width: min(68vw, 310px); }
}

.content-column {
  padding: 10vh 0 14vh;
}

.story-card {
  scroll-margin-top: 92px;
  min-height: 78vh;
  margin: 0 0 13vh;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(16, 37, 29, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 80px rgba(25, 48, 36, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0.72;
  transform: translateY(28px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease, border-color 420ms ease;
}

.story-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: rgba(36, 92, 59, 0.24);
}

.hero-card {
  min-height: 82vh;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(239,244,233,0.8));
}

.eyebrow, .card-number {
  margin: 0 0 26px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { max-width: 15ch; }
p { max-width: 62ch; }

h1, h2, h3 {
  margin: 0;
  font-weight: 520;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

h1 { font-size: clamp(46px, 5.4vw, 78px); }
h2 { font-size: clamp(40px, 4.3vw, 64px); }
h3 { font-size: clamp(32px, 3.2vw, 50px); }

h1 em {
  color: var(--blue-dark);
  font-family: inherit;
  font-weight: 400;
}

.lede, .story-card > p:not(.eyebrow):not(.card-number):not(.fine-print):not(.signal) {
  margin: 30px 0 0;
  color: #33483f;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
}

.lede { max-width: 58ch; }

.technology-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 38px;
}

.technology-strip div {
  min-height: 108px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background: var(--paper-2);
}

.technology-strip span { color: var(--muted); font-size: 11px; }
.technology-strip strong { font-size: 14px; line-height: 1.25; }

.text-link {
  min-height: 44px;
  align-self: flex-start;
  margin-top: 32px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration-color: transparent;
  transition: text-decoration-color 180ms ease;
}

.text-link:hover, .text-link:focus-visible { text-decoration-color: currentColor; }

.text-link span { padding-left: 8px; }

.fine-print {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.signal {
  margin: 34px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--coral);
  background: rgba(242, 140, 130, 0.1);
  font-family: inherit;
  font-size: 20px;
  font-style: italic;
  line-height: 1.4;
}

.loop {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loop span {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
}

.loop i { color: var(--muted); font-style: normal; }

.impact-card { background: var(--ink); color: #f6faef; }
.impact-card .card-number { color: var(--green); }
.impact-card > p:not(.card-number) { color: rgba(246, 250, 239, 0.72) !important; }
.impact-card .updates-list > div,
.impact-card .contact { border-color: rgba(255, 255, 255, 0.18); }
.impact-card .updates-list time,
.impact-card .updates-list span { color: rgba(246, 250, 239, 0.76); }
.impact-card .contact .eyebrow,
.impact-card .contact a { color: var(--green); }

blockquote {
  margin: 42px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-size: clamp(23px, 2.2vw, 34px);
  font-style: italic;
  line-height: 1.25;
}

.team-list { margin-top: 38px; }

.team-list > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: center;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.founder-photo {
  --ring: var(--green);
  width: 80px;
  height: 80px;
  display: block;
  border: 4px solid var(--ring);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform 260ms ease;
}

.founder-photo.max { --ring: var(--apricot); }
.founder-photo.jenhan { --ring: var(--blue); }
.founder-photo.ron { --ring: var(--green); }
.team-list > div:hover .founder-photo { transform: scale(1.035); }

.founder-link { display: block; border-radius: 50%; }
.founder-copy { min-width: 0; }
.team-list p { margin: 0; }
.team-list strong, .team-list small { display: block; }
.team-list strong { font-size: 17px; }
.team-list small { margin-top: 5px; color: var(--muted); font-size: 13px; }

.team-list .founder-bio {
  margin-top: 11px;
  color: #42564d;
  font-size: 14px;
  line-height: 1.5;
}

.linkedin-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.updates-list { margin-top: 38px; }

.updates-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.updates-list time {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.updates-list p { margin: 0; }
.updates-list strong, .updates-list span { display: block; }
.updates-list strong { font-size: 17px; }
.updates-list span { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.contact {
  margin-top: 60px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.contact .eyebrow { margin-bottom: 18px; }

.contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  color: var(--green-dark);
  font-size: clamp(20px, 2vw, 28px);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

footer {
  width: min(1380px, calc(100% - 44px));
  margin: 0 auto;
  padding: 32px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer .wordmark { color: var(--ink); }
footer p { margin: 0; }
footer p:last-child { text-align: right; }

@media (max-width: 900px) {
  :root {
    --mobile-visual-height: 36svh;
    --mobile-terminal-visual-height: 46svh;
    --mobile-copy-height: 64svh;
  }

  .site-header nav a:not(.nav-contact) { display: none; }

  .story {
    display: block;
    padding: 0 18px;
  }

  .visual-column {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    height: 40vh;
    height: var(--mobile-visual-height);
    margin: 0;
    background: linear-gradient(to bottom, rgba(246,246,240,0.88), var(--paper) 18%);
    pointer-events: none;
    transition: height 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .visual-column.is-terminal { height: var(--mobile-terminal-visual-height); }

  .visual-frame {
    min-height: 0;
    height: 100%;
    padding: 10px 18px 6px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    place-items: stretch;
  }

  #lineage {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .visual-caption {
    position: static;
    align-self: start;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  #visual-count { max-width: none; }
  .visual-caption b { display: none; }

  .content-column {
    position: relative;
    z-index: 2;
    padding: 82px 0 0;
  }

  .story-card {
    min-height: calc(var(--mobile-copy-height) - 82px);
    margin-bottom: var(--mobile-visual-height);
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    scroll-margin-top: 82px;
  }

  .story-card.hero-card {
    margin-top: 0;
  }

  .story-card.impact-card { background: var(--ink); }
  .story-card.updates-card { margin-bottom: var(--mobile-terminal-visual-height); }

  .eyebrow, .card-number { margin-bottom: 10px; }
  .lede, .story-card > p:not(.eyebrow):not(.card-number):not(.fine-print):not(.signal) {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.46;
  }

  .technology-strip { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
  .technology-strip div { min-height: 54px; padding: 9px 10px; }
  .technology-strip strong { font-size: 13px; }
  .text-link { margin-top: 10px; font-size: 13px; }
  .loop { margin-top: 12px; gap: 6px; }
  .loop span { padding: 8px 10px; font-size: 12px; }
  .team-list { margin-top: 14px; }
  .team-list > div { grid-template-columns: 50px 1fr; gap: 12px; padding: 6px 0; }
  .founder-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .founder-photo { width: 46px; height: 46px; border-width: 3px; }
  .team-list strong { font-size: 15.5px; }
  .team-list small { margin-top: 2px; font-size: 12px; line-height: 1.25; }
  .team-list .founder-bio { margin-top: 4px; font-size: 12.5px; line-height: 1.35; }
  .team-card .linkedin-link { display: none; }
  .updates-list { margin-top: 20px; }
  .updates-list > div { padding: 16px 0; }
  .contact { margin-top: 26px; padding-top: 24px; }
  .contact a { margin-top: 18px; }

  .updates-list > div { grid-template-columns: 1fr; gap: 8px; }

  footer {
    grid-template-columns: 1fr;
    margin-bottom: calc(var(--mobile-terminal-visual-height) + 2px);
    text-align: left;
  }
  footer p:last-child { text-align: left; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(34px, 9.4vw, 40px); }
  h2 { font-size: clamp(32px, 9vw, 38px); }
  h3 { font-size: clamp(29px, 8.4vw, 34px); }
  .site-header { min-height: 72px; padding: 12px 18px; }
  .nav-contact { padding: 8px 13px; }
}

@media (max-width: 900px) and (max-height: 720px) {
  :root {
    --mobile-visual-height: 28.5svh;
    --mobile-terminal-visual-height: 42svh;
    --mobile-copy-height: 71.5svh;
  }

  .story-card { padding: 14px; }
  h1 { font-size: 31px; }
  h2 { font-size: 29px; }
  h3 { font-size: 27px; }
  .hero-card .text-link, .loop { display: none; }
  .lede, .story-card > p:not(.eyebrow):not(.card-number):not(.fine-print):not(.signal) {
    font-size: 14px;
    line-height: 1.4;
  }
  .visual-caption { font-size: 10.5px; }
  .team-list { margin-top: 6px; }
  .team-list > div { grid-template-columns: 44px 1fr; gap: 9px; padding: 4px 0; }
  .founder-photo { width: 40px; height: 40px; }
  .team-list small { font-size: 11px; }
  .team-list .founder-bio { font-size: 12px; line-height: 1.3; }
  .updates-list { margin-top: 12px; }
  .updates-list > div { padding: 12px 0; }
  .contact { margin-top: 16px; padding-top: 16px; }
  .contact a { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-card, .founder-photo, .skip-link, nav a, .text-link, .visual-column { transition: none; }
  .root-logo { animation: none; }
}

@media (hover: none) {
  .team-list > div:hover .founder-photo { transform: none; }
}
