:root {
  color-scheme: only light;
  --canvas: #f7f1e7;
  --canvas-deep: #eee4d4;
  --paper: #fffdf8;
  --ink: #17232f;
  --muted: #66717a;
  --navy: #16344b;
  --navy-deep: #0f2638;
  --teal: #2c766d;
  --teal-soft: #cfe4dc;
  --gold: #e6a84c;
  --gold-soft: #f4dfb9;
  --coral: #d57258;
  --plum: #4f2245;
  --rose: #b76d78;
  --sage: #778a75;
  --line: rgba(23, 35, 47, 0.14);
  --shadow: 0 24px 70px rgba(27, 44, 56, 0.13);
  --shadow-soft: 0 16px 42px rgba(27, 44, 56, 0.09);
  --serif: Georgia, "Times New Roman", serif;
  --peri-serif: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 6%, rgba(230, 168, 76, 0.18), transparent 24rem),
    var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 35, 47, 0.1);
  background: rgba(247, 241, 231, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.labs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-deep);
  text-decoration: none;
}

.labs-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px 12px 12px 3px;
  color: #fff;
  background:
    linear-gradient(145deg, var(--teal), var(--navy));
  box-shadow: 0 9px 20px rgba(22, 52, 75, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.labs-wordmark {
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #40515d;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--navy-deep);
  background: rgba(22, 52, 75, 0.07);
}

.main-nav .nav-contact {
  margin-left: 4px;
  padding-inline: 18px;
  color: #fff;
  background: var(--navy-deep);
}

.main-nav .nav-contact:hover {
  color: #fff;
  background: var(--teal);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 clamp(88px, 12vw, 152px);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -220px;
  border: 82px solid rgba(44, 118, 109, 0.1);
  border-radius: 50%;
}

.hero-grid {
  width: min(calc(100% - 96px), 1680px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.82fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.eyebrow,
.product-type {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 880;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.principles-intro h2,
.contact-card h2,
.peri-hero h1,
.peri-boundaries h2,
.return-card h2,
.not-found h1 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.35rem, 6.35vw, 5.95rem);
  line-height: 1.04;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: #4c5a63;
  font-size: clamp(1.12rem, 1.8vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 820;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: #fff;
  background: var(--navy-deep);
  box-shadow: 0 14px 30px rgba(15, 38, 56, 0.2);
}

.button-dark:hover {
  background: var(--teal);
}

.button-light {
  color: var(--navy-deep);
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(15, 38, 56, 0.16);
}

.text-link,
.product-link {
  color: var(--navy);
  font-weight: 820;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.lab-board {
  position: relative;
  min-height: 620px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(23, 35, 47, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(22, 52, 75, 0.045) 31px 32px),
    #e9dfcf;
  box-shadow: var(--shadow);
  transform: none;
}

.board-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #66717a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #79a66f;
  box-shadow: 0 0 0 6px rgba(121, 166, 111, 0.12);
}

.board-botanical {
  position: absolute;
  z-index: 0;
  inset: 74px -70px -26px 42%;
  overflow: hidden;
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.board-botanical img {
  position: absolute;
  width: auto;
  max-width: none;
  height: 175%;
  right: -18px;
  bottom: -12px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.board-note {
  position: absolute;
  z-index: 2;
  width: clamp(250px, 46%, 320px);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-radius: 4px;
  color: var(--ink);
  box-shadow: 0 13px 26px rgba(42, 45, 44, 0.14);
  text-decoration: none;
  transition: transform 170ms ease;
}

a.board-note:hover {
  transform: translateY(-4px) rotate(0);
}

.board-note::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 16px;
  top: -8px;
  left: calc(50% - 29px);
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(-2deg);
}

.board-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(1.38rem, 1.8vw, 1.68rem);
  line-height: 1.1;
  text-wrap: balance;
}

.board-note > span:last-child {
  color: #5c666d;
  font-size: 0.94rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.note-label {
  margin-bottom: 12px;
  color: #537067;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-steady {
  top: 88px;
  left: 5%;
  background: #d8eceb;
  transform: rotate(-4deg);
}

.note-peri {
  top: 252px;
  right: 10%;
  background: #f4ddd9;
  transform: rotate(4deg);
}

.peri-note-lockup {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--peri-serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em;
}

.peri-note-lockup .peri-symbol {
  width: 29px;
  height: 29px;
}

.note-next {
  left: 12%;
  bottom: 24px;
  min-height: 148px;
  background: #f5e2b8;
  transform: rotate(2deg);
}

.products-section {
  padding: clamp(88px, 11vw, 144px) 0;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 64px;
}

.section-heading h2,
.principles-intro h2,
.contact-card h2,
.peri-boundaries h2,
.return-card h2 {
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 1;
}

.section-heading > p,
.principles-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-card {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px 32px 32px 9px;
  box-shadow: var(--shadow-soft);
}

.product-card + .product-card {
  margin-top: 42px;
}

.product-visual {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.steady-visual {
  display: grid;
  place-items: center;
  padding: 46px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.74), transparent 19rem),
    linear-gradient(145deg, #cae4df, #d9e8f1 54%, #f4dfc8);
}

.steady-screenshot {
  width: min(52%, 278px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(22, 52, 75, 0.22);
  transform: none;
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 78px);
  background: #fff;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.steady-icon {
  background: linear-gradient(145deg, var(--teal), var(--navy));
}

.peri-icon {
  background: #f3f6ef;
}

.peri-icon .peri-symbol {
  width: 34px;
  height: 34px;
}

.status-pill {
  padding: 7px 11px;
  border: 1px solid rgba(22, 52, 75, 0.12);
  border-radius: 999px;
  color: #52616b;
  background: #f5f7f4;
  font-size: 0.72rem;
  font-weight: 820;
}

.product-copy h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.product-copy h3.peri-wordmark {
  font-family: var(--peri-serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.product-tagline {
  margin: 16px 0 0;
  color: var(--teal);
  font-size: 1.16rem;
  font-weight: 780;
}

.product-copy > p:not(.product-type):not(.product-tagline) {
  margin: 22px 0 0;
  color: #59666f;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  color: #344752;
}

.feature-list li::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 0.54em;
  left: 0;
  border-radius: 50%;
  background: var(--gold);
}

.product-link {
  width: fit-content;
  font-size: 1.02rem;
}

.peri-card {
  grid-template-columns: minmax(390px, 0.95fr) minmax(0, 1.05fr);
}

.peri-card .product-copy {
  grid-column: 1;
  grid-row: 1;
}

.peri-card .product-visual {
  grid-column: 2;
  grid-row: 1;
}

.peri-visual {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 54px;
  background:
    radial-gradient(circle at 82% 15%, rgba(183, 109, 120, 0.28), transparent 19rem),
    linear-gradient(145deg, #f4ece4, #e7eee2);
}

.peri-visual img {
  width: min(100%, 760px);
  height: auto;
  max-width: none;
  aspect-ratio: 1200 / 750;
  object-fit: contain;
  border: 10px solid rgba(255, 253, 248, 0.86);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(79, 34, 69, 0.18);
  transform: none;
}

.peri-card .product-tagline,
.peribrief-page .eyebrow,
.peribrief-page .product-type {
  color: var(--rose);
}

.principles-section {
  padding: clamp(88px, 11vw, 150px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(44, 118, 109, 0.22), transparent 27rem),
    var(--navy-deep);
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr);
  gap: clamp(65px, 10vw, 140px);
}

.principles-intro h2 {
  color: #fff;
}

.principles-intro > p:last-child {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.67);
}

.principle-list {
  display: grid;
}

.principle-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.principle-list article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.principle-list article > span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
}

.principle-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.principle-list p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.contact-section {
  padding: clamp(78px, 10vw, 126px) 0;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.55fr);
  align-items: end;
  gap: 70px;
  padding: clamp(42px, 7vw, 82px);
  border-radius: 34px 34px 34px 8px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 168, 76, 0.2), transparent 22rem),
    var(--teal);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 720px;
  color: #fff;
}

.contact-card .eyebrow {
  color: var(--gold-soft);
}

.contact-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-inner nav {
  justify-content: flex-end;
}

.footer-brand .labs-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px 10px 10px 3px;
  font-size: 0.63rem;
}

/* PeriBrief product page */

.peribrief-page {
  background: #fffdf8;
}

.peribrief-page .site-header {
  background: rgba(255, 253, 248, 0.9);
}

.peri-hero {
  padding: clamp(70px, 9vw, 116px) 0;
  background:
    radial-gradient(circle at 9% 26%, rgba(183, 109, 120, 0.13), transparent 28rem),
    #fffdf8;
}

.peri-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(50px, 7vw, 95px);
}

.peri-hero h1 {
  max-width: 690px;
  color: #311a2e;
  font-size: clamp(4rem, 7vw, 7.2rem);
  line-height: 0.92;
}

.peri-lede {
  max-width: 630px;
  margin: 30px 0 0;
  color: #62575d;
  font-size: clamp(1.14rem, 1.8vw, 1.36rem);
}

.button-peri {
  color: #fff;
  background: var(--plum);
  box-shadow: 0 14px 32px rgba(79, 34, 69, 0.2);
}

.button-peri:hover {
  background: var(--rose);
}

.prototype-note {
  color: #776c72;
  font-size: 0.84rem;
  font-weight: 720;
}

.peri-hero-image {
  position: relative;
  margin: 0;
}

.peri-hero-image::before {
  content: "";
  position: absolute;
  inset: -28px 10% 34% -5%;
  z-index: -1;
  border-radius: 52% 15% 44% 28%;
  background: #e8eee3;
}

.peri-hero-image img {
  width: 100%;
  max-width: none;
  border: 10px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: 0 25px 66px rgba(67, 38, 54, 0.15);
  transform: none;
}

.peri-flow {
  padding: clamp(84px, 10vw, 140px) 0;
  background: #f3f6ef;
}

.peri-heading h2,
.peri-boundaries h2,
.return-card h2 {
  color: #311a2e;
}

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

.flow-grid article {
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(79, 34, 69, 0.11);
  border-radius: 24px 24px 24px 7px;
  background: #fffdf8;
  box-shadow: 0 14px 38px rgba(67, 38, 54, 0.07);
}

.flow-number {
  display: block;
  margin-bottom: 42px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 850;
}

.flow-grid h3 {
  margin: 0;
  color: #311a2e;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.flow-grid article > p:last-child {
  margin: 18px 0 0;
  color: #71676d;
}

.peri-boundaries {
  padding: clamp(84px, 10vw, 140px) 0;
}

.boundaries-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(60px, 9vw, 130px);
}

.boundaries-grid > div:last-child {
  padding-top: 34px;
  border-top: 1px solid #e2d5ce;
  color: #71676d;
}

.boundaries-grid > div:last-child p {
  margin: 0;
}

.boundaries-grid > div:last-child p + p {
  margin-top: 22px;
}

.product-return {
  padding: 0 0 clamp(84px, 10vw, 140px);
}

.return-card {
  padding: clamp(42px, 7vw, 78px);
  border-radius: 32px 32px 32px 8px;
  background:
    radial-gradient(circle at 85% 18%, rgba(183, 109, 120, 0.2), transparent 22rem),
    #f5ece3;
}

.return-card h2 {
  max-width: 770px;
}

.return-card .product-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--plum);
}

/* PeriBrief coming soon */

.peribrief-coming-soon {
  min-height: 100svh;
  background:
    radial-gradient(circle at 83% 18%, rgba(183, 109, 120, 0.18), transparent 25rem),
    radial-gradient(circle at 14% 84%, rgba(119, 138, 117, 0.17), transparent 24rem),
    #fffdf8;
}

.coming-soon-main {
  min-height: calc(100svh - 83px);
  display: grid;
  place-items: center;
  padding: clamp(54px, 8vw, 110px) 0;
}

.coming-soon-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 940px);
  overflow: hidden;
  padding: clamp(44px, 8vw, 92px);
  border: 1px solid rgba(79, 34, 69, 0.12);
  border-radius: 36px 36px 36px 10px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 26px 76px rgba(67, 38, 54, 0.13);
}

.coming-soon-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 500px;
  right: -180px;
  bottom: -260px;
  border: 66px solid rgba(119, 138, 117, 0.13);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.peri-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 62px;
  color: #311a2e;
  font-family: var(--peri-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.peri-symbol {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  flex: 0 0 auto;
}

.peri-symbol-outer,
.peri-symbol-inner,
.peri-symbol-dot {
  position: absolute;
  display: block;
}

.peri-symbol-outer,
.peri-symbol-inner {
  border-style: solid;
  border-radius: 50%;
}

.peri-symbol-outer {
  inset: 1px;
  border-width: 2.7px;
  border-color: #566b54;
  border-right-color: transparent;
  transform: rotate(19deg);
}

.peri-symbol-inner {
  width: 55%;
  height: 55%;
  top: 22.5%;
  left: 22.5%;
  border-width: 2.7px;
  border-color: #311a2e;
  border-left-color: transparent;
  transform: rotate(-12deg);
}

.peri-symbol-dot {
  width: 16%;
  height: 16%;
  top: 53%;
  right: 0;
  border-radius: 50%;
  background: var(--rose);
}

.coming-soon-card .eyebrow {
  color: var(--rose);
}

.coming-soon-card h1 {
  max-width: 760px;
  margin: 0;
  color: #311a2e;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.coming-soon-copy {
  max-width: 650px;
  margin: 28px 0 36px;
  color: #71676d;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.coming-soon-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Not found */

.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.not-found-card {
  width: min(100%, 670px);
  padding: clamp(36px, 8vw, 78px);
  border: 1px solid var(--line);
  border-radius: 32px 32px 32px 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.not-found-card .eyebrow {
  margin-top: 70px;
}

.not-found h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.not-found-card > p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero-grid {
    width: min(calc(100% - 48px), var(--max));
    grid-template-columns: 1fr;
  }

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

  .lab-board {
    width: min(100%, 620px);
    justify-self: center;
  }
}

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

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

  .hero-grid {
    width: min(calc(100% - 48px), var(--max));
  }

  .lab-board {
    width: min(100%, 620px);
    justify-self: center;
  }

  .section-heading,
  .principles-grid,
  .contact-card,
  .boundaries-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-card,
  .peri-card {
    grid-template-columns: 1fr;
  }

  .product-card .product-visual,
  .peri-card .product-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .product-card .product-copy,
  .peri-card .product-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .product-visual,
  .peri-visual {
    min-height: 540px;
  }

  .principles-intro {
    max-width: 720px;
  }

  .contact-copy {
    max-width: 620px;
  }

  .peri-hero-image {
    width: min(100%, 760px);
  }

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

  .flow-grid article {
    min-height: 0;
  }

  .flow-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    min-height: 72px;
  }

  .labs-wordmark {
    font-size: 0.94rem;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 66px;
  }

  .hero-grid {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero h1,
  .peri-hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
    line-height: 1.06;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-board {
    min-height: 650px;
    padding: 22px;
    border-radius: 26px;
    transform: none;
  }

  .board-botanical {
    inset: 92px -85px 34px 24%;
    opacity: 0.18;
  }

  .board-note {
    width: calc(100% - 60px);
    min-height: 142px;
  }

  .note-steady {
    top: 75px;
    left: 22px;
  }

  .note-peri {
    top: 260px;
    right: 20px;
  }

  .note-next {
    left: 31px;
    bottom: 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .product-card {
    border-radius: 24px 24px 24px 7px;
  }

  .product-visual,
  .peri-visual {
    min-height: 430px;
  }

  .steady-visual {
    padding: 32px;
  }

  .steady-screenshot {
    width: min(62%, 250px);
  }

  .peri-visual {
    padding: 32px;
  }

  .peri-visual img {
    width: 100%;
    max-width: 620px;
  }

  .product-copy {
    padding: 40px 26px 46px;
  }

  .contact-card {
    padding: 38px 28px;
    border-radius: 26px 26px 26px 7px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-inner > p {
    text-align: left;
  }

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

  .peri-hero-image img {
    width: 100%;
    transform: none;
  }

  .flow-grid article {
    padding: 28px;
  }

  .return-card {
    padding: 38px 28px;
  }

  .coming-soon-card {
    padding: 42px 28px 48px;
    border-radius: 28px 28px 28px 8px;
  }

  .peri-brand-lockup {
    margin-bottom: 46px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 15px;
  }

  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-grid {
    width: min(calc(100% - 24px), var(--max));
  }

  .labs-mark {
    width: 38px;
    height: 38px;
  }

  .labs-wordmark {
    max-width: 94px;
    line-height: 1.05;
  }

  .hero h1,
  .peri-hero h1 {
    font-size: 2.85rem;
  }

  .button {
    width: 100%;
  }

  .coming-soon-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .lab-board {
    min-height: 650px;
  }

  .board-note {
    width: calc(100% - 44px);
    padding: 20px;
  }

  .note-steady {
    left: 14px;
  }

  .note-peri {
    right: 14px;
  }

  .note-next {
    left: 22px;
  }

  .product-visual,
  .peri-visual {
    min-height: 370px;
  }

  .product-copy {
    padding-inline: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
