/* ==================================================
   1. COLORS
   Edit these variables to change the site's palette.
   ================================================== */

:root {
  --bg: #fafbfd;
  --panel: #edf2f7;
  --text: #172b46;
  --muted: #526174;
  --accent: #245b86;
  --line: #d3dce5;
  --image: #e3e9ef;
}


/* ==================================================
   2. BASE STYLES
   ================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

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

h1 {
  font-size: clamp(40px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -2.7px;
  margin-bottom: 28px;
  font-weight: 500;
}

h2 {
  font-size: clamp(34px, 3.4vw, 49px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

h3 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 0;
}

h1 span,
.contact h2 span {
  color: var(--accent);
}


/* ==================================================
   3. SHARED LAYOUT AND COMPONENTS
   ================================================== */

/* Centers content and limits its width. */
.wrap {
  width: min(1280px, 88%);
  margin-inline: auto;
}

/* Small uppercase labels above headings. */
.eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 24px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  background: var(--accent);
  color: #172010;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
}

.button:hover {
  background: #d3f7a7;
  color: #172010;
}

.text-link {
  font-size: 12px;
  border-bottom: 1px solid #67735f;
  padding-bottom: 6px;
  display: inline-block;
}

.text-link span {
  margin-left: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 36px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 13px;
}

.section-heading h2 {
  margin-bottom: 0;
}


/* ==================================================
   4. HEADER AND NAVIGATION
   ================================================== */

.header {
  min-height: 100px;
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 1.8px;
  line-height: 1.55;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 4px;
}

.logo {
  background: #353b36;
  color: #c4cbc5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.nav-contact {
  border: 1px solid #64715e;
  padding: 10px 18px;
}

.nav-contact span {
  margin-left: 16px;
}

nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
}


/* ==================================================
   5. HOMEPAGE HERO
   ================================================== */

.hero {
  padding-top: 84px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 6%;
  align-items: center;
}

.intro {
  max-width: 420px;
  font-size: 17px;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
}

.hero-image {
  aspect-ratio: 4 / 4.2;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}


/* ==================================================
   6. IMAGE PLACEHOLDERS
   ================================================== */

.placeholder {
  background: var(--image);
  color: #bac0bc;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  border: 1px solid #414842;
}

.placeholder > span {
  font-size: 11px;
  letter-spacing: 2px;
}

.placeholder small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: #a8b0aa;
}

.crosshair {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 24px !important;
  font-weight: 200;
}


/* ==================================================
   7. OUR MISSION
   ================================================== */

.mission {
  padding-block: 68px 88px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 7%;
}

.mission > div {
  max-width: 720px;
}

.mission p:not(.eyebrow) {
  color: var(--muted);
  max-width: 660px;
  font-size: 16px;
}


/* ==================================================
   8. OUR ROBOTS
   ================================================== */

.robots {
  padding-block: 40px 95px;
}

.robot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.robot-image {
  aspect-ratio: 16 / 10;
}

.robot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.tag {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--accent);
  border: 1px solid #576749;
  padding: 5px 8px;
  white-space: nowrap;
}

.tag.muted {
  color: #bcc4bd;
  border-color: #4d564f;
}

.robot-grid article > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 510px;
}


/* ==================================================
   9. RESEARCH AND DEVELOPMENT
   ================================================== */

.research {
  background: var(--panel);
  padding-block: 78px;
}

.research-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9%;
}

.research-layout > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  max-width: 330px;
}

.research-list article {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
}

.research-list article > span {
  color: var(--accent);
  font-size: 11px;
}

.research-list h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.research-list p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}


/* ==================================================
   10. CONTACT
   ================================================== */

.contact {
  padding-block: 95px;
  max-width: 1280px;
}

.contact h2 {
  font-size: clamp(42px, 5vw, 70px);
}

.contact > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
}

.contact-placeholder {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-top: 30px;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 1.5px;
}

.contact-placeholder p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 0;
}


/* ==================================================
   11. FOOTER
   ================================================== */

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--muted);
}

footer small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  margin-top: 4px;
}


/* ==================================================
   12. ACCESSIBILITY
   ================================================== */

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--accent);
  color: #141716;
  padding: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 10px;
}


/* ==================================================
   13. SUPPORT OUR WORK PAGE
   ================================================== */

.support-hero {
  padding-block: 90px 80px;
}

.support-hero h1 {
  max-width: 900px;
}

.support-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.support-hero .button {
  margin-top: 18px;
}

.support-purpose {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9%;
  padding-block: 65px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-purpose-copy p {
  color: var(--muted);
  font-size: 16px;
}

.support-purpose-copy p:last-child {
  margin-bottom: 0;
}

.support-ways {
  padding-block: 75px 90px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 55px;
  row-gap: 35px;
}

.support-option {
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.support-number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
}

.support-option h3 {
  margin-bottom: 18px;
}

.support-option p {
  max-width: 510px;
  color: var(--muted);
  font-size: 15px;
}

.support-connect {
  padding-block: 70px 80px;
  background: var(--panel);
}


/* ==================================================
   14. TABLET AND SMALLER DESKTOP SCREENS
   Applies at screen widths of 950px or less.
   ================================================== */

@media (max-width: 950px) {
  nav {
    gap: 18px;
  }

  .hero {
    gap: 5%;
    padding-top: 55px;
  }

  h1 {
    font-size: 46px;
  }

  .robot-title {
    align-items: start;
    flex-direction: column;
  }

  .research-layout {
    gap: 6%;
  }

  .actions {
    gap: 18px;
  }
}


/* ==================================================
   15. MOBILE SCREENS
   Applies at screen widths of 700px or less.
   ================================================== */

@media (max-width: 700px) {
  html {
    scroll-padding-top: 20px;
  }

  /* Header and navigation */

  .header {
    flex-wrap: wrap;
    padding-block: 18px;
    min-height: 85px;
    gap: 18px;
  }

  .menu-toggle:not([hidden]) {
    display: block;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
  }

  nav[data-collapsed="true"] {
    display: none;
  }

  /* Shared typography */

  h1 {
    font-size: clamp(38px, 9vw, 58px);
    letter-spacing: -1.8px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  /* Homepage hero */

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
    gap: 38px;
    padding-bottom: 45px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  /* Mission */

  .mission {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 45px;
  }

  .mission > .eyebrow {
    margin-bottom: 24px;
  }

  /* Section headings */

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading > p {
    margin: 0;
  }

  /* Robots */

  .robots {
    padding-block: 20px 55px;
  }

  .robot-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .robot-title {
    flex-direction: row;
    align-items: center;
  }

  /* Research */

  .research {
    padding-block: 48px;
  }

  .research-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Contact and footer */

  .contact {
    padding-block: 55px;
  }

  footer {
    flex-wrap: wrap;
  }

  footer > span:first-child {
    width: 100%;
  }

  /* Support page */

  .support-hero {
    padding-block: 50px;
  }

  .support-lead {
    font-size: 16px;
  }

  .support-purpose {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 45px;
  }

  .support-ways {
    padding-block: 50px;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .support-connect {
    padding-block: 50px;
  }
}


/* ==================================================
   16. REDUCED MOTION
   Respects the visitor's accessibility preference.
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}



/* Larger prehistoric-inspired header lettering */

.brand {
  flex-shrink: 0;
}

.brand-name {
  font-family: Copperplate, "Copperplate Gothic Light", fantasy;
  font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 2px;
  color: var(--text);
  white-space: nowrap;
}

/* Give the larger title room alongside the navigation. */
.header {
  flex-wrap: wrap;
}

.header nav {
  flex-wrap: wrap;
}

/* Keep the title comfortable on smaller screens. */
@media (max-width: 700px) {
  .brand {
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-name {
    font-size: clamp(18px, 4.5vw, 30px);
    letter-spacing: 1px;
  }

  .brand .logo {
    flex-shrink: 0;
  }
}


/* Animated raptor beside the project name */
.raptor-logo {
  display: block;
  width: 114px;
  height: 70px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 700px) {
  .raptor-logo {
    width: 72px;
    height: 44px;
  }
}




/* Vision section: concept image beside the project goal */

#mission {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 6%;
}

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

.vision-figure {
  margin: 0;
}

.vision-image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.vision-figure figcaption {
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  #mission {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Light research-themed color scheme */

.header {
  background: #ffffff;
}

.logo {
  background: var(--panel);
  color: var(--text);
}

.nav-contact {
  border-color: var(--accent);
}

.button {
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  background: #193f60;
  color: #ffffff;
}

.text-link {
  border-bottom-color: var(--accent);
}

.placeholder {
  background: var(--image);
  color: var(--muted);
  border-color: var(--line);
}

.placeholder small {
  color: var(--muted);
}

.tag {
  color: var(--accent);
  background: #eaf1f8;
  border-color: #a9bfd3;
}

.tag.muted {
  color: var(--muted);
  background: var(--panel);
  border-color: var(--line);
}

.skip-link {
  background: var(--accent);
  color: #ffffff;
}