/* maximekahn.com — semiconductors, systems and software.
   A corporate, engineering-first look: white pages, near-black bands,
   one signal red. Shared by every page that loads it. */

:root {
  color-scheme: light;
  --ink: #0b0d12;
  --ink-2: #12151c;
  --ink-3: #1b1f29;
  --text: #14161c;
  --text-soft: #464b57;
  --muted: #6b7180;
  --line: #e2e4ea;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #ffffff;
  --bg-soft: #f4f5f8;
  --accent: #d7192d;
  --accent-hover: #b51425;
  --accent-soft: rgba(215, 25, 45, 0.1);
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-muted: rgba(255, 255, 255, 0.5);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.06), 0 10px 30px rgba(11, 13, 18, 0.08);
  --wrap: 1200px;
  --bar-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

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

/* ---------- The bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bar__inner {
  width: min(var(--wrap), 100% - 32px);
  height: var(--bar-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--on-dark);
}

.brand__mark {
  height: 22px;
  width: auto;
  filter: invert(1);
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__name span {
  font-weight: 300;
}

.bar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.bar__link,
.bar__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--on-dark-soft);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bar__link:hover,
.bar__drop-btn:hover,
.bar__drop.is-open .bar__drop-btn,
.bar__link[aria-current="page"] {
  color: var(--on-dark);
  border-bottom-color: var(--accent);
}

.bar__drop-btn svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.bar__drop.is-open .bar__drop-btn svg {
  transform: rotate(180deg);
}

.bar__drop {
  position: relative;
  height: 100%;
  display: flex;
}

.bar__panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 420px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 48px rgba(11, 13, 18, 0.22);
  display: none;
}

.bar__drop.is-open .bar__panel {
  display: grid;
  gap: 4px;
}

.bar__panel-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.bar__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.bar__item:hover,
.bar__item:focus-visible {
  background: var(--bg-soft);
}

.bar__item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
}

.bar__item-icon svg {
  width: 20px;
  height: 20px;
}

.bar__item strong {
  display: block;
  font-size: 0.98rem;
}

.bar__item small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.badge--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 0;
  background: none;
  cursor: pointer;
  place-content: center;
  gap: 5px;
}

.bar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bar__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bar__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bar__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.bar__mobile {
  display: none;
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  padding: 12px 16px 20px;
}

.bar__mobile.is-open {
  display: grid;
}

.bar__mobile a {
  color: var(--on-dark);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar__mobile .bar__mobile-sub {
  padding-left: 24px;
  color: var(--on-dark-soft);
}

.bar__mobile-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding: 16px 8px 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--red {
  background: var(--accent);
  color: #fff;
}

.btn--red:hover {
  background: var(--accent-hover);
}

.btn--line {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-3);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

.arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

a:hover .arrow::after,
.arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 70% 50%, #0f1a2e 0%, transparent 60%),
    linear-gradient(180deg, #05070d 0%, #0a0f1a 100%);
  isolation: isolate;
}

.hero--short {
  min-height: min(62vh, 560px);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Keeps the words readable over the moving chip. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.7) 38%, rgba(5, 7, 13, 0) 68%);
  pointer-events: none;
}

.hero__inner {
  padding-block: 96px 120px;
}

.hero__text {
  max-width: 620px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero .eyebrow {
  color: #ff4d5e;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero__lede {
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--on-dark-soft);
  max-width: 540px;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__tags {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tags li {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--on-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(5, 7, 13, 0.4);
}

.hero__tags {
  padding: 0;
}

/* Like a video player: motion can be paused. */
.hero__pause {
  position: absolute;
  right: max(24px, calc((100% - var(--wrap)) / 2));
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(5, 7, 13, 0.55);
  color: var(--on-dark-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hero__pause:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__pause svg {
  width: 12px;
  height: 12px;
}

.hero__pause[hidden] {
  display: none;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 112px;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.section--dark > .wrap {
  position: relative;
}

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section__head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
}

.section__head p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.section--dark .section__head p {
  color: var(--on-dark-soft);
}

.section--dark .eyebrow {
  color: #ff4d5e;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 36px 32px 8px 0;
}

.pillar + .pillar {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.pillar__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 28px;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--ink);
  margin-bottom: 22px;
}

.pillar h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.pillar p {
  margin-top: 14px;
  color: var(--text-soft);
}

/* ---------- Lab (silicon & systems) ---------- */

.lab {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
}

.lab__side {
  display: grid;
  gap: 20px;
}

.lab-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lab-card--feature {
  padding: 0;
  overflow: hidden;
}

.lab-card__art {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(215, 25, 45, 0.18) 0%, transparent 65%),
    #0a0d14;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  padding: 36px;
}

.lab-card__art svg {
  width: min(100%, 420px);
  height: auto;
}

.lab-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lab-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lab-card__tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

.lab-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
}

.lab-card p {
  color: var(--on-dark-soft);
}

.specs {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.specs li {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
  padding-left: 16px;
  position: relative;
}

.specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- Ventures ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #d3d6de;
}

.card__media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
}

.card__media img {
  width: 34%;
  max-width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  box-shadow: 0 18px 36px rgba(11, 13, 18, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.card__media--wecheers {
  background: linear-gradient(135deg, #ffe2e8 0%, #fbcfe8 100%);
}

.card__media--weave {
  background: linear-gradient(135deg, #f1f2f6 0%, #dfe2ea 100%);
}

.card__media--bienimmogest {
  background: linear-gradient(135deg, #fdecee 0%, #f6d2d8 100%);
}

.card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.card p {
  color: var(--text-soft);
  flex: 1;
}

.card__link {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  display: inline-flex;
  gap: 6px;
}

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}

.product::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
}

.product__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
}

.product__icon svg {
  width: 28px;
  height: 28px;
}

.product h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: auto;
}

.product p {
  color: var(--on-dark-soft);
  max-width: 420px;
  /* Two lines on both tiles, so their titles line up. */
  min-height: 3.1em;
}

.product .card__link {
  color: #ff4d5e;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__statement {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

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

.about__text p {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.about__text p + p {
  margin-top: 16px;
}

.facts {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}

.contact__direct {
  margin-top: 32px;
  display: grid;
  gap: 6px;
}

.contact__direct span {
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.contact__direct a {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.contact__direct a:hover {
  color: #ff4d5e;
}

.form {
  display: grid;
  gap: 18px;
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark-soft);
  margin-bottom: 8px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: #ff4d5e;
  background: rgba(255, 255, 255, 0.09);
}

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

.form__feedback {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.form__feedback.is-ok {
  background: rgba(48, 209, 88, 0.14);
  color: #4ade80;
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.form__feedback.is-error {
  background: rgba(255, 69, 58, 0.14);
  color: #ff6b61;
  border: 1px solid rgba(255, 69, 58, 0.3);
}

/* ---------- Coming soon (product pages) ---------- */

.soon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.soon__box {
  border: 1px dashed #cfd3dc;
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: var(--text-soft);
}

.soon__box strong {
  color: var(--text);
  font-size: 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  background: #07090d;
  color: var(--on-dark-muted);
  padding: 72px 0 32px;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
}

.footer__brand p {
  margin-top: 16px;
  max-width: 280px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: var(--on-dark-soft);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .bar__nav {
    display: none;
  }

  .bar__burger {
    display: grid;
  }

  .bar__actions .btn {
    display: none;
  }

  .lab {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--wrap), 100% - 40px);
  }

  .hero {
    min-height: auto;
    align-items: flex-end;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.15) 0%, rgba(5, 7, 13, 0.6) 42%, rgba(5, 7, 13, 0.94) 70%);
  }

  .hero__inner {
    padding-block: 310px 88px;
  }

  .hero--short .hero__inner {
    padding-block: 220px 72px;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .hero__pause {
    bottom: 20px;
    right: 16px;
  }

  .section {
    padding-block: 72px;
  }

  .section__head {
    margin-bottom: 36px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar,
  .pillar + .pillar {
    padding: 28px 0;
    border-left: 0;
  }

  .pillar + .pillar {
    border-top: 1px solid var(--line);
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .lab-card,
  .lab-card__body {
    padding: 24px;
  }

  .cards,
  .products,
  .about,
  .contact,
  .soon {
    grid-template-columns: 1fr;
  }

  .about,
  .contact {
    gap: 36px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .product {
    min-height: 240px;
    padding: 28px;
  }

  .form .btn {
    justify-self: stretch;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Products menu: two columns, with the products themselves ---------- */

.bar__panel {
  width: 680px;
  padding: 14px;
}

.bar__drop.is-open .bar__panel {
  grid-template-columns: 1.15fr 1fr;
  gap: 8px 14px;
}

.bar__group {
  display: grid;
  align-content: start;
  gap: 2px;
}

.bar__group + .bar__group {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.bar__panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bar__panel-title a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  text-decoration: none;
}

.bar__panel-title a:hover {
  text-decoration: underline;
}

/* Every product icon at the same size and radius, whatever its artwork. */
.bar__app,
.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.08);
}

.bar__mobile .bar__mobile-app {
  justify-content: flex-start;
  gap: 12px;
  padding-left: 40px;
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

.bar__mobile .bar__mobile-app img,
.bar__mobile .bar__mobile-app .bar__mobile-chip {
  width: 26px;
  height: 26px;
  border-radius: 22%;
  object-fit: cover;
  flex: none;
}

.bar__mobile-chip {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bar__mobile-chip svg {
  width: 16px;
  height: 16px;
}

/* The three apps on the Software tile. */
.product__apps {
  display: flex;
  gap: 10px;
}

.product__apps img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.product__chipname {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--on-dark-soft);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 11px;
}

/* A single silicon project: the card lies flat, art beside the words. */
.lab--single {
  grid-template-columns: 1fr;
}

.lab--single .lab-card--feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.lab--single .lab-card__art {
  border-bottom: 0;
  border-right: 1px solid var(--line-dark);
}

.lab-card .card__link {
  color: #ff4d5e;
  margin-top: 8px;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .lab--single .lab-card--feature {
    grid-template-columns: 1fr;
  }

  .lab--single .lab-card__art {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }
}
