:root {
  --bg: #ffffff;
  --ink: #0a0a0b;
  --muted: #62666d;
  --line: #e7e7ea;
  --soft: #f6f6f7;
  --accent: #00b071;
  --accent-ink: #067a4e;
  --stage: #0b0c0e;
  --glow: #3ddc97;
  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, p, ul { margin: 0; }

ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s ease-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2b30; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }

.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--rd, 0s);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  transition: height 0.3s var(--ease);
}

.is-scrolled .header-inner { height: 58px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }

.brand-mark { width: 24px; height: 24px; fill: var(--ink); flex: none; }

.brand-mark rect:first-child { fill: var(--accent); }

.brand-name { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav .nav-cta {
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transition: background 0.2s ease;
}

.site-nav .nav-cta:hover { background: #2a2b30; color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 10, 11, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 11, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 74% 38%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 80% at 74% 38%, #000 10%, transparent 72%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero-focus { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; }

.hero-focus a {
  position: relative;
  display: inline-block;
  font-size: clamp(0.98rem, 1.25vw, 1.05rem);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-focus a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-focus a.is-active { color: var(--ink); }
.hero-focus a.is-active::after { animation: grow-x 2.8s linear both; }
.hero-focus.is-held a.is-active::after { animation: none; transform: scaleX(1); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-visual { position: relative; width: 100%; max-width: 500px; justify-self: end; }

.stack { display: block; width: 100%; height: auto; overflow: visible; }

.stack-shadow { fill: rgba(10, 10, 11, 0.12); filter: blur(9px); }

.stack-float { animation: float 7s ease-in-out infinite; }

.tier polygon {
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
  transition: fill 0.45s ease, stroke 0.45s ease;
}

.tier .face-t { fill: #fff; }
.tier .face-l { fill: #f0f0f2; }
.tier .face-r { fill: #dfdfe3; }
.tier .inset { fill: none; stroke: rgba(10, 10, 11, 0.14); stroke-width: 1; }
.tier .slot { fill: rgba(10, 10, 11, 0.35); stroke: none; }

.tier-body { transition: transform 0.55s var(--ease); }

.tier.is-active .tier-body { transform: translateY(-8px); }
.tier.is-active .face-t { fill: #e2f8ee; }
.tier.is-active .face-l { fill: var(--accent); }
.tier.is-active .face-r { fill: #04935e; }
.tier.is-active .inset { stroke: var(--accent); }
.tier.is-active .slot { fill: #fff; }

.js .tier { animation: tier-in 0.9s var(--ease) both; animation-delay: calc(var(--n) * 110ms + 250ms); }

.hero-tag {
  position: absolute;
  left: min(66%, calc(100% - 180px));
  top: calc(23.08% + var(--i) * 15.385%);
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  min-width: 168px;
  padding: 10px 14px 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px -8px rgba(10, 10, 11, 0.18);
  transition: top 0.55s var(--ease);
}

.hero-tag::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}

.tag-num { grid-row: 1 / span 2; padding-top: 3px; font-family: var(--mono); font-size: 0.7rem; color: var(--accent-ink); }
.tag-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.tag-cat { font-size: 0.78rem; color: var(--muted); line-height: 1.3; white-space: nowrap; }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 120px); }

.products { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.045em;
  max-width: 17ch;
}

/* Product showcase */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.showcase-list { border-left: 1px solid var(--line); }

.pitem { position: relative; padding-left: clamp(18px, 2.4vw, 28px); }

.pitem + .pitem { border-top: 1px solid var(--line); }

.pitem h3 { font: inherit; letter-spacing: normal; }

.pitem-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 8px;
  width: 100%;
  padding: 22px 0;
}

.pnum { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

.pname {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #85888f;
  transition: color 0.3s ease;
}

.pitem-head:hover .pname, .pitem.is-active .pname { color: var(--ink); }

.pcat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  position: relative;
  top: -4px;
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}

.pitem-body { display: grid; grid-template-rows: 1fr; }

.pitem-inner { min-height: 0; overflow: hidden; padding-left: 42px; }

/* Equal-height descriptions keep the page from shifting when the switcher advances. */
.pitem-inner p { color: var(--muted); max-width: 42ch; min-height: 4.65em; }

.pitem-inner .link-arrow { margin: 16px 0 26px; }

.js .pitem-body { transition: grid-template-rows 0.5s var(--ease); }
.js .pitem-inner { transition: opacity 0.35s ease 0.12s, visibility 0s; }
.js .pitem:not(.is-active) .pitem-body { grid-template-rows: 0fr; }
.js .pitem:not(.is-active) .pitem-inner { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.5s; }

.pitem-progress { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; }

.pitem-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.pitem.is-active .pitem-progress i { transform: scaleY(1); }
.showcase.is-auto .pitem.is-active .pitem-progress i { animation: grow-y 7s linear both; }
.showcase.is-auto:not(.is-inview) .pitem-progress i,
.showcase.is-auto:hover .pitem-progress i { animation-play-state: paused; }

.stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 18px;
  background: var(--stage);
  color: #fff;
  box-shadow: 0 40px 80px -44px rgba(10, 10, 11, 0.6);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(60% 70% at 85% 0%, rgba(61, 220, 151, 0.16), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.slide { display: flex; flex-direction: column; }

.js .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.js .slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

html:not(.js) .stage { aspect-ratio: auto; }

.slide-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.slide-id { display: inline-flex; align-items: center; gap: 9px; color: #fff; }

.slide-id i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.viz { flex: 1; min-height: 0; width: 100%; padding: 3% 6% 5%; }

.js .showcase:not(.is-live) .viz { opacity: 0; }

.viz .ln { fill: none; stroke: rgba(255, 255, 255, 0.88); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.viz .faint { fill: none; stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; }
.viz .dash { stroke-dasharray: 3 4; stroke: rgba(255, 255, 255, 0.28); }
.viz .dot { fill: #fff; }
.viz .dot-ring { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.25; }
.viz .ac { fill: none; stroke: var(--glow); stroke-width: 2; stroke-linecap: round; }
.viz .ac-fill { fill: var(--glow); }
.viz .ac-ring { fill: none; stroke: var(--glow); stroke-opacity: 0.5; stroke-width: 1.5; }
.viz .stub { fill: rgba(255, 255, 255, 0.24); }
.viz .candle { stroke-width: 1.25; }
.viz .candle.up { stroke: var(--glow); fill: var(--glow); }
.viz .candle.down { stroke: rgba(255, 255, 255, 0.7); fill: var(--stage); }
.viz .trim { fill: #fff; fill-opacity: 0.05; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1; stroke-dasharray: 3 3; }
.viz .rowbox { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.25; }
.viz .rowbox.open { fill: none; stroke-dasharray: 4 3; stroke: rgba(255, 255, 255, 0.4); }

.viz .a-pop, .viz .a-pulse { transform-box: fill-box; transform-origin: center; }
.viz .a-grow { transform-box: fill-box; transform-origin: 50% 100%; }

.is-live .slide.is-active .a-fade { animation: fade 0.6s ease both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-draw { stroke-dasharray: 1; animation: draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-pop { animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-pulse { animation: pulse 2.2s ease-out infinite both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-rise { animation: rise 0.5s var(--ease) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-grow { animation: grow-up 0.8s var(--ease) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-grow .trim { animation: trim 0.9s ease both; animation-delay: calc(var(--d, 0s) + 1.1s); }
.is-live .slide.is-active .a-slide-l { animation: slide-l 0.55s var(--ease) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .a-slide-r { animation: slide-r 0.55s var(--ease) both; animation-delay: var(--d, 0s); }
.is-live .slide.is-active .rowbox.open { animation: blink 1.8s ease-in-out 1.8s infinite; }

/* Principles */
/* Product tour */
.tour { border-top: 1px solid var(--line); }

.tour-lead { max-width: 44ch; color: var(--muted); }

.tour-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--stage);
  box-shadow: 0 40px 80px -44px rgba(10, 10, 11, 0.6);
}

.principles { background: var(--soft); border-top: 1px solid var(--line); }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.principle { position: relative; padding: clamp(24px, 3vw, 36px); }

.principle + .principle { border-left: 1px solid var(--line); }

.principle::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.principle:hover::before { transform: scaleX(1); }

.principle .pnum { color: var(--accent-ink); }

.principle h3 { margin-top: clamp(28px, 4vw, 48px); font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.15; }

.principle p { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* Company page */
.hero-company .hero-inner { grid-template-columns: minmax(0, 1fr); }

.hero-company h1 { max-width: 15ch; }

.prose { margin-top: 32px; max-width: 60ch; font-size: 1.15rem; color: var(--muted); }

.prose p + p { margin-top: 16px; }

.prose strong { color: var(--ink); font-weight: 500; }

.prose .link-arrow { margin-top: 8px; }

.founder { border-top: 1px solid var(--line); }

.founder-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.founder-photo { width: 240px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }

.founder-text { max-width: 52ch; }

.founder-text h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.04em; }

.founder-role {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.founder-text p:not(.founder-role) { margin-top: 16px; color: var(--muted); }

.founder-text .link-arrow { margin-top: 4px; }

/* Contact and footer */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(72px, 9vw, 128px);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 90% 0%, rgba(0, 176, 113, 0.28), transparent 70%);
  pointer-events: none;
}

.grid-bg-dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 88% 10%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 88% 10%, #000 5%, transparent 70%);
}

.contact-inner { position: relative; }

.contact .kicker { color: var(--glow); }

.contact h2 { margin-top: 18px; font-size: clamp(2.4rem, 5.4vw, 4.25rem); letter-spacing: -0.05em; }

.contact-lead { margin-top: 18px; color: rgba(255, 255, 255, 0.7); max-width: 60ch; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  margin-top: 32px;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.contact-go {
  display: grid;
  place-items: center;
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-email:hover .contact-go { background: var(--glow); border-color: var(--glow); color: var(--ink); }
.contact-email:hover .arrow { transform: translateX(2px); }
.contact :focus-visible { outline-color: #fff; }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(56px, 8vw, 104px);
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bar nav { display: flex; gap: 24px; }
.footer-bar a { text-decoration: none; transition: color 0.2s ease; }
.footer-bar a:hover { color: #fff; }

/* Keyframes */
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 176, 113, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(0, 176, 113, 0); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes tier-in { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  6% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse {
  0% { opacity: 0; transform: scale(0.5); }
  15% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes trim {
  from { fill-opacity: 0.3; stroke-opacity: 0; }
  to { fill-opacity: 0.05; stroke-opacity: 1; }
}
@keyframes slide-l { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes slide-r { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Small screens */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: start; max-width: 460px; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase .stage { order: -1; }
  .principle-grid { grid-template-columns: minmax(0, 1fr); }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
  .principle h3 { margin-top: 20px; }
}

@media (max-width: 640px) {
  .header-inner { height: 62px; }
  .is-scrolled .header-inner { height: 54px; }
  .brand-name { font-size: 1.08rem; }
  .site-nav a { font-size: 0.86rem; }
  .site-nav .nav-cta { padding: 7px 11px; }
  .pitem-head { grid-template-columns: 30px minmax(0, 1fr); }
  .pcat { grid-column: 2; margin-top: 6px; }
  .pitem-inner { padding-left: 38px; }
  .pitem-inner p { min-height: 6.2em; }
  .btn { padding: 11px 14px; font-size: 0.9rem; }
  .slide-bar { padding: 12px 14px; font-size: 0.62rem; }
  .founder-card { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
