:root {
  --stone: #ede8dc;
  --paper: #f8f5ed;
  --charcoal: #171a17;
  --muted: #69695f;
  --olive: #394535;
  --forest: #1f2d25;
  --clay: #b9855e;
  --line: rgba(23, 26, 23, 0.16);
  --white: #fffdfa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header.scrolled,
.site-header.menu-open {
  color: var(--charcoal);
  background: rgba(248, 245, 237, 0.94);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}

.brand-mark {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 190px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  margin-top: 2px;
  font: 500 10px/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transition: right 0.2s ease;
}

.nav-links a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  width: 44px;
  height: 44px;
  place-items: center;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 84px) 56px;
  overflow: hidden;
  color: var(--white);
}

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

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15, 17, 14, 0.82) 0%, rgba(15, 17, 14, 0.48) 42%, rgba(15, 17, 14, 0.1) 100%),
    linear-gradient(0deg, rgba(15, 17, 14, 0.4), transparent 40%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  padding-top: 7vh;
}

.eyebrow,
.mono,
.annotation,
.note-card span,
.rental-grid span,
.build-card span,
.principle-grid span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--clay);
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(60px, 13vw, 174px);
  line-height: 0.82;
  font-weight: 800;
}

.tagline {
  margin: 24px 0 6px;
  color: var(--white);
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 700;
}

.descriptor {
  margin: 0 0 34px;
  color: rgba(255, 253, 250, 0.86);
  font-size: clamp(16px, 2vw, 22px);
}

.prelaunch-line {
  max-width: 420px;
  margin: -18px 0 32px;
  color: rgba(255, 253, 250, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-actions,
.form-wrap,
.card-grid,
.rental-grid,
.principle-grid,
.lab-notes,
.partner-strip {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.build-card:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--white);
  color: var(--charcoal);
}

.button.ghost {
  color: var(--white);
}

.button.dark {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 68px);
  bottom: 54px;
  width: min(330px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 23, 19, 0.35);
  backdrop-filter: blur(12px);
}

.hero-panel span,
.hero-panel small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 19px;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 84px);
}

.section-grid,
.feature,
.story,
.contact,
.partners {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 0.96;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 31px);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  margin-top: 0;
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1.35;
  color: var(--charcoal);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid currentColor;
  font: 700 12px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.feature {
  background: var(--stone);
}

.technical-frame {
  position: sticky;
  top: 102px;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--paper);
}

.technical-image {
  position: relative;
  overflow: hidden;
}

.technical-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.annotation {
  position: absolute;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(23, 26, 23, 0.72);
}

.a1 {
  top: 34px;
  right: 34px;
}

.a2 {
  left: 34px;
  bottom: 34px;
}

.feature-copy p {
  font-size: 18px;
}

.tick-list {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.tick-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding-left: 0;
}

.tick-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.44em;
  background: var(--olive);
}

.spec-panel {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.55);
}

.spec-panel h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

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

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.build-card,
.note-card,
.rental-grid article,
.principle-grid article,
.enquiry-form {
  border: 1px solid var(--line);
  background: var(--white);
}

.build-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.build-card:hover {
  border-color: var(--olive);
  background: #f2efe5;
}

.build-card span {
  color: var(--clay);
  margin-bottom: auto;
}

.build-card button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  font: 800 12px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.build-detail {
  display: none;
  margin-top: 20px;
  padding: 26px;
  color: var(--white);
  background: var(--forest);
}

.build-detail.active {
  display: block;
}

.build-detail p {
  max-width: 760px;
  color: rgba(255, 253, 250, 0.78);
}

.lab-band {
  background: var(--forest);
  color: var(--white);
}

.lab-band p {
  color: rgba(255, 253, 250, 0.74);
}

.lab-band .lead {
  color: var(--white);
}

.lab-notes {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.note-card {
  min-height: 260px;
  padding: 26px;
  background: rgba(255, 253, 250, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.note-card span {
  display: block;
  margin-bottom: 46px;
  color: var(--clay);
}

.adventure {
  position: relative;
  overflow: hidden;
  background: #e6dfd1;
}

.adventure-title {
  max-width: 820px;
}

.adventure-title h2 {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(38px, 7vw, 92px);
}

.rental-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 44px 0 28px;
}

.rental-grid article,
.principle-grid article {
  padding: 26px;
  min-height: 210px;
}

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

.about-lead {
  max-width: 980px;
  margin: 0 0 34px;
}

.principle-grid article {
  background: transparent;
}

.process {
  background: var(--charcoal);
  color: var(--white);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.process-line article {
  position: relative;
  min-height: 170px;
  padding: 24px 18px 0 0;
}

.process-line article::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--clay);
}

.process-line strong,
.process-line span {
  display: block;
}

.process-line strong {
  text-transform: uppercase;
}

.process-line span {
  margin-top: 12px;
  color: rgba(255, 253, 250, 0.7);
  line-height: 1.5;
}

.partners {
  align-items: center;
}

.partner-strip {
  grid-template-columns: repeat(2, 1fr);
}

.partner-strip span {
  padding: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.story {
  background: var(--stone);
  align-items: stretch;
}

.story-image {
  min-height: 460px;
  background:
    linear-gradient(rgba(23, 26, 23, 0.16), rgba(23, 26, 23, 0.2)),
    url("assets/jimny-lab-hero.png") center / cover;
}

blockquote {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 800;
}

.contact {
  background: var(--paper);
}

.contact-intro {
  position: sticky;
  top: 104px;
}

.form-wrap {
  grid-template-columns: repeat(2, 1fr);
}

.simple-form {
  grid-column: span 1;
}

.contact-meta a {
  border-bottom: 1px solid currentColor;
}

.contact-card {
  align-content: start;
}

.contact-card p {
  margin-bottom: 20px;
}

.enquiry-form {
  display: grid;
  gap: 15px;
  padding: 26px;
}

.enquiry-form h3 {
  margin-bottom: 8px;
}

label {
  display: grid;
  gap: 8px;
  font: 700 11px/1.4 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbf9f3;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--charcoal);
  font: 500 15px/1.4 Inter, sans-serif;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
  padding: 48px clamp(20px, 6vw, 84px);
  background: var(--charcoal);
  color: var(--white);
}

.site-footer h2 {
  font-size: 34px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 253, 250, 0.72);
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.socials {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    background: var(--paper);
    color: var(--charcoal);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: grid;
  }

  .hero {
    min-height: 94svh;
    align-items: end;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }

  .section-grid,
  .feature,
  .story,
  .contact,
  .partners,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .service-grid,
  .lab-notes,
  .rental-grid,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-line article {
    min-height: auto;
    padding: 22px 0 22px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }

  .process-line article::before {
    top: 28px;
    left: -5px;
  }

  .technical-frame,
  .contact-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 68px;
    padding-inline: 14px;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    top: 68px;
  }

  .hero {
    padding: 98px 18px 34px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .service-grid,
  .lab-notes,
  .rental-grid,
  .principle-grid,
  .partner-strip,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .build-card {
    min-height: 240px;
  }

  .story-image {
    min-height: 300px;
  }

  .site-footer {
    gap: 22px;
  }
}
