* { box-sizing: border-box; }

:root {
  --bg: #fff;
  --text: #111;
  --muted: #686868;
  --line: #e5e5e5;
  --panel: #f7f7f7;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-divider,
.brand-ucla { color: var(--muted); }

.brand-ucla {
  font-size: 1.12rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  transition: opacity 150ms ease;
}

.nav a:hover { opacity: 0.48; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 72px;
  align-items: center;
  padding: 68px 0 58px;
}

.hero-copy { max-width: 600px; }

.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
}

.hero-text {
  margin: 30px 0 0;
  max-width: 590px;
  font-size: 1.55rem;
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.hero-subtext {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

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

.canvas-wrap {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  min-height: 330px;
  max-height: 430px;
  background: var(--panel);
  border: 1px solid var(--line);
}

#growthCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.growth-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.blurbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blurb {
  min-height: 150px;
  padding: 20px 28px 24px 0;
}

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

.blurb-index {
  display: block;
  margin-bottom: 32px;
  color: #999;
  font-size: 0.68rem;
}

.blurb h2 {
  margin: 0 0 9px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.blurb p {
  margin: 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.footer {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer strong {
  color: var(--text);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover { border-bottom-color: currentColor; }

/* Mild compression for smaller laptops / higher browser zoom.
   Crucially: keep the two-column hero. */
@media (max-width: 1050px) {
  .site-shell {
    width: min(100% - 44px, 1120px);
  }

  .topbar { gap: 20px; }

  .nav { gap: 18px; }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
    gap: 40px;
    padding: 54px 0 48px;
  }

  h1 { font-size: 3.85rem; }

  .hero-text { font-size: 1.3rem; }

  .canvas-wrap { min-height: 300px; }
}

/* Only actually stack on tablet/mobile widths. */
@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 36px);
  }

  .topbar {
    padding: 20px 0 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 3px;
    font-size: 0.88rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 46px 0 42px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .canvas-wrap {
    aspect-ratio: 1.35 / 1;
    min-height: 260px;
  }

  .blurbs {
    grid-template-columns: 1fr;
  }

  .blurb,
  .blurb + .blurb {
    min-height: 0;
    padding: 20px 0 22px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .blurb:last-child { border-bottom: 0; }

  .blurb-index { margin-bottom: 20px; }

  .footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 430px) {
  h1 { font-size: 2.8rem; }

  .brand-name { font-size: 1.02rem; }
  .brand-ucla { font-size: 1rem; }

  .growth-caption {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav a { transition: none; }
}

@media print {
  .site-shell {
    width: 100%;
    margin: 0;
  }

  .hero {
    break-inside: avoid;
  }

  .canvas-wrap {
    min-height: 0;
    height: 310px;
  }
}
