:root {
  --ink: #121213;
  --card: #1c1c1e;
  --paper: #f4f4f2;
  --lime: #c6e000;
  --mute: #c9c9c2;
  --line: rgba(244, 244, 242, 0.12);
  --header: 4.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Figtree, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

p {
  margin: 0;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--lime);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  font-weight: 700;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(18, 18, 19, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar,
.footer-grid,
.hero,
.page-hero,
.contact-grid,
.band,
.split {
  display: grid;
  gap: 1rem;
}

.header-bar {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.brand img {
  height: 38px;
  width: auto;
}

.nav-desk,
.nav-drop {
  display: none;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--mute);
  font-size: 1.06rem;
  max-width: 42rem;
}

.hero {
  padding: 1.4rem 0 0.4rem;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-actions,
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.hero-media,
.page-hero-media,
.figure {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.hero-media,
.page-hero-media {
  aspect-ratio: 5 / 4;
}

.hero-media img,
.page-hero-media img,
.figure img,
.tile img,
.mast img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: #d4ef33;
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(244, 244, 242, 0.22);
}

.btn-ghost:hover {
  border-color: var(--lime);
}

.section {
  padding: 2.4rem 0;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--mute);
  max-width: 40rem;
}

.bento,
.use-grid,
.model-grid,
.related,
.faq {
  display: grid;
  gap: 0.75rem;
}

.tile {
  position: relative;
  display: flex;
  min-height: 230px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
}

.tile img {
  position: absolute;
  inset: 0;
}

.tile-body {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(transparent, rgba(18, 18, 19, 0.94) 42%);
}

.tile h2,
.use-card h3,
.related-card h3 {
  font-size: 2rem;
}

.tile p,
.use-card p,
.related-card p,
.channel p {
  color: var(--mute);
  margin-top: 0.3rem;
}

.use-card,
.related-card,
.block,
.channel,
.model-card,
.faq-item,
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.use-card,
.related-card {
  display: block;
  padding: 1rem 1rem 1.05rem;
  text-decoration: none;
  min-height: 100%;
}

.use-card span,
.related-card span {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  padding: 1.3rem 0 0.2rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.crumbs a {
  color: var(--paper);
  text-decoration: none;
}

.anchors {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x proximity;
}

.anchor {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  border: 1px solid rgba(244, 244, 242, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--paper);
  font-size: 0.92rem;
}

.anchor:hover {
  background: var(--lime);
  color: var(--ink);
}

.block {
  padding: 1.15rem;
  margin: 0.8rem 0 1rem;
  scroll-margin-top: 5.4rem;
}

.prose {
  display: grid;
  gap: 0.8rem;
  max-width: 68ch;
}

.prose p {
  color: var(--paper);
}

.model-card {
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  scroll-margin-top: 5.4rem;
}

.model-photo {
  background: #1c1c1e;
  border-radius: 14px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.model-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.model-copy {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.model-params {
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.model-text {
  color: var(--mute);
}

.model-card .btn {
  width: 100%;
}

.faq {
  margin-top: 0.9rem;
}

.faq-item {
  padding: 0.9rem 1rem;
}

.faq-item h3 {
  font-family: Figtree, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.faq-item p {
  color: var(--mute);
  margin-top: 0.4rem;
}

.figure {
  margin: 0.4rem 0 1rem;
}

.figure figcaption {
  padding: 0.55rem 0.2rem 0;
  color: var(--mute);
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.spec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.spec-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.75rem 0.85rem 0.95rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-grid {
  padding: 1.3rem 0 2rem;
}

.channel {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.channel a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}

.form {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span {
  font-size: 0.86rem;
  color: var(--mute);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(244, 244, 242, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.stack {
  margin-top: 1rem;
}

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

.notice {
  padding: 0.8rem 1rem;
}

.notice-ok {
  border-color: var(--lime);
}

.notice-bad {
  border-color: #e7a18a;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.4rem;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.mast {
  max-width: 220px;
  background: transparent;
}

.mast img {
  height: auto;
  object-fit: contain;
  background: transparent;
}

.footer-grid {
  gap: 1.4rem;
}

.footer-col {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-col strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.footer-col a {
  color: var(--mute);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
}

.fine {
  margin-top: 1.4rem;
  color: var(--mute);
  font-size: 0.82rem;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock-btn {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}

.dock-btn + .dock-btn {
  border-left: 1px solid var(--line);
}

.dock-btn.is-active,
.nav-link.is-active {
  color: var(--lime);
}

.sheet[hidden] {
  display: none;
}

.sheet:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  padding: 0;
}

.sheet-panel {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
  max-height: min(70vh, 560px);
  overflow: auto;
}

.sheet-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.sheet-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.sheet-close {
  justify-self: start;
  margin-bottom: 0.2rem;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .nav-desk {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-link,
  .nav-drop summary {
    text-decoration: none;
    padding: 0.4rem 0.55rem;
    color: var(--paper);
    cursor: pointer;
    list-style: none;
  }

  .nav-drop summary::-webkit-details-marker {
    display: none;
  }

  .nav-drop {
    display: block;
    position: relative;
  }

  .nav-drop-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 200px;
    padding: 0.35rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
  }

  .nav-drop-panel a {
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
  }

  .nav-drop-panel a:hover {
    background: rgba(198, 224, 0, 0.12);
  }

  .hero,
  .page-hero,
  .contact-grid,
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 2rem;
  }

  .hero {
    padding-top: 2.2rem;
    min-height: calc(100vh - var(--header) - 2rem);
    align-items: center;
  }

  .bento,
  .model-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile-wide {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .use-grid,
  .related,
  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
  }

  .use-grid.cols-4,
  .related.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .model-card.is-wide {
    grid-column: 1 / -1;
    grid-template-columns: 280px 1fr;
  }

  .model-card .btn {
    width: auto;
    justify-self: start;
  }

  .dock,
  .sheet {
    display: none;
  }

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

  .form .span-2,
  .form .btn {
    grid-column: 1 / -1;
  }

  .form .btn {
    width: auto;
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.55s ease both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.05s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.1s;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 0.15s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
