:root {
  --ink: #181512;
  --muted: #6f635d;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: rgba(24, 21, 18, 0.14);
  --amber: #f3b34f;
  --coral: #ee6f5d;
  --teal: #2a9d8f;
  --blue: #234e70;
  --shadow: 0 18px 48px rgba(33, 28, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
  color: rgba(24, 21, 18, 0.74);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  z-index: -3;
  object-fit: cover;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.9) 38%, rgba(255, 250, 242, 0.28) 100%),
    linear-gradient(180deg, rgba(24, 21, 18, 0.06) 0%, rgba(24, 21, 18, 0.36) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(24px, 4vw, 70px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 82px;
}

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

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

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(58px, 12vw, 154px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.05;
}

.hero-lede {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: clamp(23px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.1;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 26px;
  color: #4e4741;
  font-size: 18px;
}

.hero-actions,
.robot-body details,
.about-copy .button {
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--amber);
}

.button.secondary {
  margin-left: 10px;
  background: #fff;
}

.hero-visual {
  justify-self: center;
  align-self: center;
  width: min(410px, 100%);
  transform: rotate(3deg);
}

.hero-visual img {
  filter: drop-shadow(0 28px 38px rgba(20, 18, 16, 0.32));
}

.robot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #1d1a16;
  color: #fffaf2;
}

.strip-item {
  display: grid;
  gap: 2px;
  min-height: 112px;
  padding: 22px clamp(18px, 4vw, 54px);
  border-right: 1px solid rgba(255, 250, 242, 0.24);
}

.strip-item:last-child {
  border-right: 0;
}

.strip-number {
  color: var(--amber);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  max-width: 620px;
}

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

.robot-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.52fr) minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.robot-card:nth-child(3) {
  grid-column: span 2;
}

.robot-card:nth-child(3) .robot-image {
  background: #d5eff0;
}

.robot-card:nth-child(4) .robot-image {
  background: #f6d2c9;
}

.robot-card:nth-child(5) .robot-image {
  background: #e7e0ff;
}

.robot-image {
  display: grid;
  place-items: end center;
  min-height: 100%;
  padding: 18px;
  background: #f7e4ab;
}

.robot-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.robot-body {
  padding: clamp(22px, 3vw, 32px);
}

.role {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.robot-body p {
  color: var(--muted);
}

summary {
  display: inline-flex;
  cursor: pointer;
  padding: 10px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

summary::marker {
  color: var(--coral);
}

.story {
  max-height: 300px;
  overflow: auto;
  padding: 4px 14px 0 0;
}

.story p {
  margin-bottom: 12px;
  color: #4d4540;
  font-size: 15px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.about-media {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f4e6d3;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.gallery-grid img {
  width: 100%;
  height: 260px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 6px 6px 0 rgba(24, 21, 18, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: #fffaf2;
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--amber);
}

.site-footer span {
  color: rgba(255, 250, 242, 0.72);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 74px;
  }

  .hero-visual {
    width: min(320px, 72vw);
    justify-self: start;
  }

  .robot-strip,
  .robot-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.24);
  }

  .strip-item:last-child {
    border-bottom: 0;
  }

  .robot-card,
  .robot-card:nth-child(3) {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .robot-image {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .nav-links a {
    padding: 6px 4px;
    font-size: 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-inner {
    width: min(100% - 28px, 1180px);
    padding-bottom: 48px;
  }

  h1 {
    font-size: 64px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .button.secondary {
    margin-left: 0;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .robot-body {
    padding: 20px;
  }

  .gallery-grid img {
    height: 220px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
