:root {
  --ink: #182026;
  --muted: #5c6975;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e5e0d8;
  --coral: #f46f61;
  --teal: #127d7b;
  --sky: #b8d9ff;
  --lemon: #ffd95a;
  --lilac: #c9b8ff;
  --green: #d8ead3;
  --shadow: 0 18px 48px rgba(24, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(229, 224, 216, 0.9);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.header-button,
.primary-button,
.secondary-button,
.chat-form button,
.quick-prompts button {
  min-height: 42px;
  border-radius: 8px;
  text-decoration: none;
  font: 800 14px "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: #ffffff;
}

.header-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.header-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(310px, 1.05fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(46px, 8vw, 86px) clamp(20px, 6vw, 82px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 12vw, 128px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  font-size: 19px;
  line-height: 1.2;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

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

.hero-photo {
  position: relative;
  margin: 0;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  min-height: 470px;
  object-fit: cover;
  object-position: center 42%;
}

.band {
  padding: clamp(58px, 8vw, 100px) clamp(20px, 6vw, 82px);
  border-top: 1px solid var(--line);
}

.section-label {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 6vw, 76px);
  align-items: start;
  margin-bottom: 34px;
}

.about {
  background: #ffffff;
}

.about-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.robotics-showcase {
  background: #f8fff6;
}

.speech-showcase {
  background: #f7f5ff;
}

.community-showcase {
  background: #fffaf2;
}

.robotics-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(420px, 0.64fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.robotics-copy {
  position: sticky;
  top: 112px;
}

.robotics-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7e8d2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 32, 38, 0.08);
}

.photo-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.photo-card.tall img {
  height: 390px;
}

.photo-card.speech-crop img {
  object-position: left center;
}

.photo-card.wide {
  grid-column: span 1;
}

.photo-card.full {
  grid-column: 1 / -1;
}

.photo-card.wide img {
  height: 230px;
}

.photo-card.full img {
  height: 360px;
}

.photo-card figcaption {
  min-height: 76px;
  padding: 15px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.about-grid article,
.feature-card,
.timeline article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.about-grid p,
.feature-card p,
.split p,
.timeline p,
.contact p,
.chat-note {
  color: var(--muted);
  line-height: 1.68;
}

.feature-card {
  min-height: 260px;
}

.card-number {
  display: block;
  margin-bottom: 54px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.highlights {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  background: #f5fbff;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-strip div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid #d5e5ef;
  border-radius: 8px;
  background: #ffffff;
}

.stat-strip strong {
  display: block;
  margin-bottom: 16px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
}

.stat-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d5e5ef;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 82px);
  background: #fff6f3;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ask-section {
  background: #f8f7ff;
}

.chat-shell {
  max-width: 820px;
  margin-left: auto;
  border: 1px solid #ddd7f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-messages {
  display: grid;
  gap: 12px;
  min-height: 250px;
  max-height: 390px;
  overflow-y: auto;
  padding: 22px;
}

.message {
  max-width: min(620px, 88%);
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.55;
}

.message.bot {
  justify-self: start;
  background: #f1eefc;
}

.message.user {
  justify-self: end;
  background: var(--ink);
  color: #ffffff;
}

.message.error {
  background: #fff2ef;
  color: #8d2b20;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 18px;
}

.quick-prompts button {
  border: 1px solid #ddd7f4;
  background: #ffffff;
  padding: 0 12px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 22px 8px;
  border-top: 1px solid #eee9ff;
}

.chat-form input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #ddd7f4;
  border-radius: 8px;
  color: var(--ink);
  font: 500 15px "DM Sans", Arial, sans-serif;
}

.chat-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 0 18px;
}

.chat-note {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 13px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(240px, 0.2fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: #ffffff;
}

.contact .eyebrow,
.contact p {
  color: #c9d9d8;
}

.contact .secondary-button {
  color: var(--ink);
}

.email-line {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: #c9d9d8;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split,
  .highlights,
  .contact,
  .section-label {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-photo {
    min-height: 360px;
    order: -1;
  }

  .hero-photo img {
    height: 520px;
    min-height: 360px;
  }

  .about-grid,
  .feature-grid,
  .robotics-layout,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .robotics-copy {
    position: static;
  }

  .photo-card.tall img,
  .photo-card.wide img,
  .photo-card.full img {
    height: 330px;
  }

  .feature-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .chat-shell {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-button {
    padding: 0 12px;
  }

  .hero,
  .band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-photo {
    min-height: 290px;
  }

  .hero-photo img {
    height: 430px;
    min-height: 290px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

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