:root {
  color-scheme: light;
  --ink: #151b18;
  --muted: #52605a;
  --paper: #f5f1e8;
  --surface: #fffdf7;
  --line: #d9d2c4;
  --teal: #006a6e;
  --green: #8fb339;
  --coral: #cf5b3f;
  --blue: #2d5f8f;
  --gold: #c99b2e;
  --shadow: 0 18px 45px rgba(18, 25, 21, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

p {
  color: var(--muted);
  margin: 0;
}

code {
  background: rgba(0, 106, 110, 0.09);
  border: 1px solid rgba(0, 106, 110, 0.16);
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 232, 0.9);
  border-bottom: 1px solid rgba(21, 27, 24, 0.12);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 820;
  gap: 0.65rem;
}

.brand-symbol {
  background:
    linear-gradient(90deg, transparent 35%, var(--ink) 35% 65%, transparent 65%),
    linear-gradient(90deg, var(--teal) 0 43%, transparent 43% 57%, var(--coral) 57% 100%);
  border: 2px solid var(--ink);
  border-radius: 999px;
  height: 24px;
  width: 48px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  padding: 0.48rem 0.68rem;
}

.nav a:hover {
  background: rgba(0, 106, 110, 0.1);
  color: var(--ink);
}

.hero {
  align-items: center;
  background:
    linear-gradient(130deg, rgba(21, 27, 24, 0.98), rgba(0, 106, 110, 0.9) 58%, rgba(45, 95, 143, 0.84)),
    var(--ink);
  color: var(--surface);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  min-height: calc(100vh - 58px);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 4rem) 2rem;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 253, 247, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 247, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 100%);
  position: absolute;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.hero .kicker {
  color: #f0b56f;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 13vw, 10rem);
  line-height: 0.84;
  max-width: 100%;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  max-width: 870px;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.lede {
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-top: 1.2rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 820;
  min-height: 44px;
  padding: 0.82rem 1rem;
}

.button.primary {
  background: var(--green);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 253, 247, 0.26);
  color: var(--surface);
}

.hero-media {
  margin: 0;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.device-visual {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.14), rgba(255, 253, 247, 0.03)),
    rgba(255, 253, 247, 0.07);
  border: 1px solid rgba(255, 253, 247, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.glasses {
  height: 68%;
  left: 8%;
  position: absolute;
  top: 16%;
  width: 84%;
}

.lens {
  border: 12px solid rgba(255, 253, 247, 0.82);
  border-radius: 42% 42% 38% 38%;
  height: 56%;
  position: absolute;
  top: 24%;
  width: 37%;
}

.lens.left {
  left: 4%;
}

.lens.right {
  right: 4%;
}

.bridge {
  background: rgba(255, 253, 247, 0.82);
  border-radius: 8px;
  height: 14px;
  left: 42%;
  position: absolute;
  top: 47%;
  width: 16%;
}

.arm {
  background: var(--green);
  border-radius: 8px;
  height: 14px;
  position: absolute;
  top: 38%;
  width: 24%;
}

.left-arm {
  left: -3%;
  transform: rotate(-12deg);
}

.right-arm {
  right: -3%;
  transform: rotate(12deg);
}

.module {
  border: 3px solid var(--surface);
  border-radius: 50%;
  height: 22px;
  position: absolute;
  width: 22px;
}

.camera {
  background: var(--coral);
  right: 15%;
  top: 29%;
}

.button-dot {
  background: var(--green);
  right: 0;
  top: 35%;
}

.speaker {
  background: var(--gold);
  left: 3%;
  top: 56%;
}

figcaption {
  color: rgba(255, 253, 247, 0.68);
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

.overview-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-strip div {
  border-right: 1px solid var(--line);
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.overview-strip span {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.overview-strip strong {
  display: block;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.team-strip {
  background:
    linear-gradient(90deg, rgba(21, 27, 24, 0.98), rgba(0, 106, 110, 0.92) 58%, rgba(207, 91, 63, 0.78)),
    var(--ink);
  border-bottom: 1px solid rgba(255, 253, 247, 0.2);
  color: var(--surface);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr 0.8fr;
}

.team-strip div {
  border-right: 1px solid rgba(255, 253, 247, 0.2);
  min-width: 0;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.team-strip span {
  color: #f0b56f;
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.team-strip strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 0.2rem;
}

.team-strip-name strong {
  color: var(--surface);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 5vw, 4rem);
}

.section-heading,
.two-column,
.system-card,
.system-figure,
.reflection-grid,
.links-panel,
.metrics,
details,
.media-groups,
.media-grid,
.code-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading p:not(.kicker) {
  font-size: 1.04rem;
  margin-top: 0.95rem;
  max-width: 820px;
}

.video-section,
.media-section {
  background: var(--surface);
}

.video-frame {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: var(--max);
  overflow: hidden;
}

.video-frame iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}

.video-placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 106, 110, 0.62), transparent 58%),
    linear-gradient(45deg, rgba(207, 91, 63, 0.36), transparent 50%),
    #111815;
  color: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.video-placeholder strong {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-top: 1rem;
}

.video-placeholder p {
  color: rgba(255, 253, 247, 0.72);
  margin-top: 0.35rem;
}

.play-icon {
  border-bottom: 32px solid transparent;
  border-left: 50px solid var(--green);
  border-top: 32px solid transparent;
  height: 0;
  width: 0;
}

.two-column {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.two-column article,
.reflection-grid article,
.metrics div,
.code-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 27, 24, 0.06);
  padding: 1.2rem;
}

.two-column p + p {
  margin-top: 0.9rem;
}

.clean-list {
  color: var(--muted);
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list strong {
  color: var(--ink);
}

.system-card {
  background: #e8eee7;
  border: 1px solid rgba(21, 27, 24, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1.05fr 1fr;
  margin-top: 1.25rem;
  padding: 1rem;
}

.system-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 27, 24, 0.06);
  margin-top: 1.25rem;
  overflow: hidden;
  padding: 1rem;
}

.system-figure img {
  display: block;
  height: auto;
  width: 100%;
}

.system-figure figcaption {
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.stack {
  border-radius: 8px;
  padding: 1rem;
}

.stack span {
  background: rgba(21, 27, 24, 0.06);
  border-radius: 6px;
  display: block;
  font-weight: 720;
  margin-top: 0.45rem;
  padding: 0.5rem 0.6rem;
}

.stack.core {
  background: var(--ink);
  color: var(--surface);
}

.stack.core p {
  color: rgba(255, 253, 247, 0.74);
}

.reflection-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.links-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.links-panel a,
.links-panel span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 760;
  padding: 0.7rem 0.9rem;
}

.links-panel span {
  color: var(--muted);
}

.requirements-section {
  background: #eef0e4;
}

.metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.metrics span {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.08;
  margin: 0.45rem 0;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 27, 24, 0.06);
  margin-top: 1rem;
  overflow: hidden;
}

summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 820;
  padding: 1rem 1.1rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border-top: 1px solid var(--line);
  padding: 0.82rem 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #151b18;
  color: var(--surface);
  font-size: 0.8rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.status {
  border-radius: 6px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 0.28rem 0.46rem;
  white-space: nowrap;
}

.status.met {
  background: rgba(143, 179, 57, 0.22);
  color: #465d09;
}

.status.partial {
  background: rgba(207, 91, 63, 0.15);
  color: #8c331f;
}

.media-groups {
  display: grid;
  gap: 1.6rem;
}

.media-group h3 {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 0.8rem;
  padding-top: 1rem;
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-grid.featured {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.media-grid figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.media-grid figure.wide {
  grid-column: span 3;
}

.media-grid.featured figure:not(.wide) {
  grid-column: span 2;
}

.media-grid.flow-grid figure:not(.wide) {
  grid-column: span 3;
}

.media-grid img {
  aspect-ratio: 4 / 3;
  background: #f1eee6;
  display: block;
  height: auto;
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.media-grid figure.wide img {
  aspect-ratio: 16 / 10;
}

.slot {
  align-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(0, 106, 110, 0.14), rgba(207, 91, 63, 0.1)),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(21, 27, 24, 0.045) 14px 15px),
    #f1eee6;
  color: var(--ink);
  display: flex;
  font-weight: 820;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.media-grid figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  padding: 0.72rem;
}

.code-section {
  background: var(--paper);
}

.code-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.code-grid a {
  display: grid;
  min-height: 118px;
}

.code-grid a:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.code-grid span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.code-grid strong {
  align-self: end;
  font-size: 1.2rem;
}

.footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 253, 247, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 5vw, 4rem);
}

.footer p {
  color: rgba(255, 253, 247, 0.76);
}

.footer a {
  color: var(--surface);
  font-weight: 780;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .system-card {
    grid-template-columns: 1fr;
  }

  .overview-strip,
  .team-strip,
  .metrics,
  .reflection-grid,
  .code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid.featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid figure.wide {
    grid-column: span 2;
  }

  .media-grid.featured figure:not(.wide) {
    grid-column: span 1;
  }

  .media-grid.flow-grid figure:not(.wide) {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
  }

  .overview-strip,
  .team-strip,
  .metrics,
  .reflection-grid,
  .media-grid,
  .media-grid.featured,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .media-grid figure.wide {
    grid-column: span 1;
  }

  .video-placeholder {
    min-height: 320px;
  }
}
