:root {
  --bg-page: #262626;
  --bg-hero: #262626;
  --bg-elevated: #1a1a1a;
  --bg-light: #262626;
  --text-primary: #f8f2e1;
  --text-on-dark: #f8f2e1;
  --text-muted: #f8f2e1;
  --text-on-light: #f8f2e1;
  --text-color: var(--text-primary);
  --border: color-mix(in srgb, #f8f2e1 18%, transparent);
  --line-color: #f8f2e1;
  --facts-card-1: #c2ba99;
  --facts-card-2: #a4a26d;
  --facts-card-3: #90a4b7;
  /* Color & Light page frame */
  --page-width: 90rem;
  --pad-x: clamp(1.5rem, 4vw, 3rem);
  --content-frame: min(100%, var(--page-width));
  --text-col-width: clamp(300px, 36vw, 420px);
  --text-box-width: min(560px, 100%);
  --sticky-top: 96px;
  --features-sticky-top: var(--sticky-top);
  --features-sticky-offset: 80px;
  --split-gap: clamp(24px, 4vw, 56px);
  /* Color & Light type system */
  --type-scale: max(2.5rem, min(7.5vw, 90px));
  --title-size: var(--type-scale);
  --primary-size: calc(var(--type-scale) * 0.5);
  --secondary-size: calc(var(--type-scale) * 0.25);
  --secondary-line-height: 1.45;
  --sub-size: calc(var(--type-scale) * 16 / 90);
  --body-bold-size: var(--secondary-size);
  --body-line-height: var(--secondary-line-height);
  --body-line-height-lead: var(--secondary-line-height);
  --body-line-height-base: var(--secondary-line-height);
  --hero-stack-gap: 1.77890625rem;
  --hero-title-gap: 3.5546875rem;
}

@media (min-width: 769px) {
  :root {
    --type-scale: 90px;
    --title-size: 130px;
    --primary-size: 45px;
    --secondary-size: 22.5px;
    --sub-size: 16px;
    --text-box-width: 700px;
    --pad-x: 48px;
  }
}

/* Max view (≥1440px) — C&L gold etalon locked */
@media (min-width: 1440px) {
  :root {
    --type-scale: 90px;
    --title-size: 130px;
    --primary-size: 45px;
    --secondary-size: 22.5px;
    --sub-size: 16px;
    --text-box-width: 700px;
    --pad-x: 48px;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: var(--body-line-height-base);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.type-bold {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.type-title {
  font-size: var(--title-size);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-color, var(--text-primary));
}

.type-primary {
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-color, var(--text-primary));
}

.type-secondary,
.type-secondary p {
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
  color: var(--text-color, var(--text-primary));
}

.type-sub {
  font-size: var(--sub-size);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-color, var(--text-primary));
}

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

/* Shared page gutters — match Color & Light --pad-x */
.page-inner,
.site-footer-inner,
.page-shell,
.features-pin,
.page-about-overlay {
  width: var(--content-frame);
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  box-sizing: border-box;
}

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--text-col-width);
  align-items: center;
  gap: var(--split-gap);
}

.page-copy-col {
  max-width: var(--text-col-width);
}

/* Header over intro: same grid cell so the full photo starts at the viewport top */
.site-hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, auto);
  background: transparent;
  overflow: visible;
}

.site-hero-stack > .site-header,
.site-hero-stack > .page-intro {
  grid-column: 1;
  grid-row: 1;
}

.site-hero-stack .page-intro {
  margin-top: 0;
  padding-top: 0;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem var(--pad-x);
  background: transparent;
  backdrop-filter: none;
  box-sizing: border-box;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  height: clamp(40px, 4.5vw, 52px);
  width: auto;
  /* Match text color #f8f2e1 */
  filter: brightness(0) saturate(100%) invert(95%) sepia(8%) saturate(348%) hue-rotate(358deg) brightness(103%) contrast(94%);
  opacity: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex-shrink: 0;
  font-weight: 700;
}

.site-nav a {
  font-size: var(--body-bold-size);
  font-weight: 700;
  line-height: var(--body-line-height);
  text-decoration: none;
  color: var(--text-primary);
}

.site-nav a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.site-menu-toggle {
  display: none;
  margin: 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.site-menu-toggle-bar {
  display: block;
  width: 22px;
  height: 4px;
  margin: 2.5px 0;
  background: currentColor;
  border-radius: 2px;
}

body.site-menu-open {
  overflow: hidden;
}

/* Second page — devices / download (was main) */
.page-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(45px, 7vw, 84px);
  background: var(--bg-hero);
}

.page-hero .page-inner {
  transform: translate3d(0, -95px, 0);
}

.page-hero .page-split {
  grid-template-columns: var(--text-col-width) minmax(0, 1fr);
}

.page-hero-visual {
  justify-self: end;
  transform: translate3d(30px, 30px, 0);
}

.page-hero-visual img {
  width: min(100%, 744px); /* 620px + 20% */
  margin: 0;
}

.page-hero-copy {
  justify-self: start;
  margin-top: 20px; /* text block +30px lower; App Store compensated below */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.page-hero-heading {
  margin: 0 0 20px;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.page-hero-lead {
  margin: 0;
  font-size: var(--body-bold-size);
  line-height: var(--body-line-height-lead);
  color: var(--text-on-dark);
}

.app-store-link {
  display: inline-block;
  flex: 0 0 auto;
  align-self: flex-end;
  margin-top: 48px; /* keep App Store position while text drops 30px */
}

.app-store-link img {
  display: block;
  width: var(--hero-app-store-width, min(180px, 52vw));
  height: auto;
  filter: invert(1);
}

/* Page — Facts (3 columns, no colored cards) */
.page-facts {
  background: var(--bg-hero);
  padding: clamp(56px, 8vw, 96px) 0;
}

.page-facts-inner {
  display: flex;
  justify-content: center;
}

.facts-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 40px);
  width: 100%;
  align-items: start;
}

.facts-card {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.facts-card-title {
  margin: 20px 0 55px;
  position: relative;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* 2pt rule — 20px closer to titles (was centered at 37.5px) */
.facts-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 17.5px - 1pt);
  height: 2pt;
  background: var(--line-color);
}

.facts-card-text {
  margin: 0 0 75px;
  font-size: var(--body-bold-size);
  line-height: var(--body-line-height);
  color: var(--text-primary);
}

/* Dotted divider: 2pt dot, 4pt gap (6pt pitch) */
.page-divider {
  width: min(100% - 2 * var(--pad-x), var(--page-width));
  height: 2pt;
  margin: calc(max(12px, calc(clamp(24px, 4vw, 48px) - 50px)) - 75px) auto max(12px, calc(clamp(24px, 4vw, 48px) - 50px));
  background-image: radial-gradient(
    circle closest-side,
    var(--line-color) 100%,
    transparent 100%
  );
  background-size: 6pt 2pt;
  background-repeat: repeat-x;
  background-position: center;
}

/* Desktop — download → divider → demo */
@media (min-width: 901px) {
  .page-hero {
    padding-bottom: clamp(12px, 1.4vw, 20px);
  }
}

/* Main intro — full-bleed photo at native 3200×1800, uncropped */
.page-intro {
  position: relative;
  width: 100%;
  aspect-ratio: 3200 / 1800;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--bg-hero);
}

.page-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: scaleX(-1);
}

.page-intro-bg img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  will-change: transform;
}

.page-intro-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: var(--content-frame);
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(72px, 12vh, 140px) var(--pad-x);
  box-sizing: border-box;
}

.page-intro-copy {
  justify-self: start;
  width: var(--text-box-width);
  max-width: 100%;
  will-change: transform;
}

.page-intro-heading {
  margin: 0 0 10px;
  margin-left: -8px;
  color: var(--text-primary);
}

.page-intro-heading span {
  display: block;
}

@media (min-width: 769px) {
  .page-intro-heading span {
    white-space: nowrap;
  }
}

.page-intro-copy p {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: var(--body-bold-size);
  line-height: var(--body-line-height);
  color: var(--text-primary);
}

/* Pages 4–7 — Features sticky scroll */
.page-features {
  background: var(--bg-hero);
  padding: clamp(48px, 7vw, 88px) 0 0;
  overflow: visible;
}

.features-pin {
  position: relative;
  overflow: visible;
}

.features-layout {
  position: sticky;
  top: var(--features-sticky-top);
  display: grid;
  grid-template-columns: var(--text-col-width) minmax(0, 1fr);
  grid-template-areas: "feat-text feat-visual";
  align-items: center;
  gap: var(--split-gap);
  overflow: visible;
}

.features-ipad-col {
  grid-area: feat-visual;
  display: flex;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.features-ipad {
  position: relative;
  width: min(100%, 700px); /* 560px + 25% */
  flex: 0 1 auto;
  transform: translateX(-50px);
}

.features-ipad-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1058 / 1035;
}

.ipad-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  will-change: opacity;
}

.features-text-viewport {
  grid-area: feat-text;
  overflow: visible;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  max-width: var(--text-col-width);
  min-width: 0;
}

.features-text-inner {
  will-change: transform;
  --feat-sep-gap: clamp(48px, 8vh, 96px);
}

.feature-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(380px, 52vh, 620px);
  padding: var(--feat-sep-gap) 0;
  position: relative;
}

/* Thin rule centered in the equal gap between text blocks */
.feature-block + .feature-block::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 2pt;
  background: var(--line-color);
  pointer-events: none;
}

/* Blur block may get a desktop margin pull — keep the rule midway in the visual gap */
#feature-blur.feature-block::before {
  top: calc(var(--features-desktop-blur-pull, 0px) / -2);
}

#feature-bw {
  margin-top: -20px;
}

/*
  Sticky scroll centers each feature-block box — margin shifts are invisible.
  Uneven padding moves the flex-centered copy inside the box instead.
*/
#feature-tones {
  padding-top: calc(var(--feat-sep-gap) - 20px);
  padding-bottom: calc(var(--feat-sep-gap) + 20px);
}

#feature-blur {
  padding-top: calc(var(--feat-sep-gap) + 30px);
  padding-bottom: calc(var(--feat-sep-gap) - 30px);
}

.feature-block-last {
  min-height: clamp(420px, 56vh, 680px);
  /* Extra runway below last copy only — top gap stays equal for the rule above */
  padding-bottom: calc(var(--feat-sep-gap) + clamp(72px, 10vh, 124px));
}

.feature-block h2 {
  margin: 0 0 20px;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-on-dark);
}

.feature-block p {
  margin: 0;
  max-width: 42ch;
  font-size: var(--body-bold-size);
  line-height: var(--body-line-height);
  color: var(--text-on-dark);
}

/* Page 8 — About full-bleed (not inverted — keep original light-on-photo look) */
.page-about {
  position: relative;
  min-height: clamp(520px, 72vh, 820px);
  overflow: hidden;
  background: #d9d9d9;
  --text-primary: rgba(0, 0, 0, 0.8);
  --text-on-dark: rgba(0, 0, 0, 0.8);
  --text-muted: rgba(0, 0, 0, 0.8);
  --text-on-light: rgba(0, 0, 0, 0.8);
  --text-color: rgba(0, 0, 0, 0.8);
}

.page-about-bg {
  position: absolute;
  inset: -10% 0 -6% 0;
  z-index: 0;
  overflow: hidden;
}

.page-about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 52%;
  will-change: transform;
}

.page-about-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--text-col-width);
  align-items: center;
  min-height: clamp(520px, 72vh, 820px);
  gap: var(--split-gap);
}

.page-about-copy {
  grid-column: 2;
  justify-self: start;
  max-width: var(--text-col-width);
  will-change: transform;
}

.page-about-copy h2 {
  margin: 0 0 20px;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.8);
}

.page-about-copy p {
  margin: 0;
  max-width: 42ch;
  font-size: var(--body-bold-size);
  line-height: var(--body-line-height);
  color: rgba(0, 0, 0, 0.8);
}

/* Contact / Waiting List — C&L form look, Squint content */
.page-contact {
  padding: clamp(56px, 8vw, 96px) 0;
  scroll-margin-top: var(--sticky-top);
  font-weight: 700;
  background: var(--bg-page);
  --text-color: var(--text-on-dark);
}

.page-contact h2,
.page-contact .type-title,
.page-contact .type-primary {
  margin: 0 0 28px;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-on-dark);
}

.page-contact-intro {
  margin: 0 0 var(--hero-stack-gap);
  max-width: var(--text-box-width);
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  color: var(--text-on-dark);
}

.contact-form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: var(--text-box-width);
  max-width: 100%;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  max-width: none;
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  gap: 1.25rem;
}

.page-contact .contact-field {
  width: 100%;
  height: auto;
  border: 4px solid var(--text-on-dark);
  border-radius: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  color: var(--text-on-dark);
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
}

.page-contact .contact-field::placeholder {
  color: var(--text-on-dark);
  opacity: 1;
  font: inherit;
}

.page-contact .contact-field:focus::placeholder {
  opacity: 0;
}

.page-contact .contact-field:focus {
  outline: none;
  border-color: var(--text-on-dark);
}

.page-contact .contact-field:-webkit-autofill,
.page-contact .contact-field:-webkit-autofill:hover,
.page-contact .contact-field:-webkit-autofill:focus,
.page-contact .contact-field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-on-dark);
  caret-color: var(--text-on-dark);
  box-shadow: 0 0 0 1000px var(--bg-page) inset;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-page) inset;
}

.page-contact .contact-button {
  justify-self: end;
  width: auto;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  text-decoration: none;
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
}

.page-contact .contact-button:hover {
  opacity: 0.65;
}

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  margin: 0 0 var(--hero-stack-gap);
  max-width: var(--text-box-width);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--secondary-size);
  font-weight: 700;
  line-height: var(--secondary-line-height);
  color: var(--text-primary);
  text-align: left;
}

.form-success[hidden] {
  display: none;
}

.page-contact-intro[hidden],
.contact-form[hidden],
.page-contact.waiting-list-sent .page-contact-intro,
.page-contact.waiting-list-sent .contact-form {
  display: none !important;
}

.page-contact.waiting-list-sent .form-success {
  display: block !important;
}

/* Footer — Sub style + Color & Light rights / gutters */
.site-footer {
  background: var(--bg-hero);
  border-top: 1px solid var(--border);
  padding: 1rem 0 clamp(2.25rem, 5vw, 3.5rem);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.site-footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--sub-size);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer-tagline:hover {
  color: var(--text-on-dark);
}

.site-footer-bottom {
  width: 100%;
}

.site-footer-line,
.site-footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--sub-size);
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.site-footer-line a,
.site-footer-copy a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-line a:hover,
.site-footer-copy a:hover {
  opacity: 0.65;
}

/* Legal pages — same Squint color tokens as the rest of the site */
.legal-page {
  --legal-section-line-gap: clamp(1.5rem, 3vh, 2.5rem);
  --legal-rule: var(--line-color);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 8vw, 96px) var(--pad-x) 72px;
  box-sizing: border-box;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--text-primary);
}

.legal-page h1,
.legal-page .type-title.page-legal-title {
  position: relative;
  margin: var(--legal-section-line-gap) 0 clamp(0.5rem, 0.2em, 1.875rem);
  margin-left: -8px;
  padding-top: calc(var(--legal-section-line-gap) + 5pt);
  font-size: var(--title-size);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--text-primary);
}

/* C&L structure: 5pt rule above page title, full bleed to gutters */
.legal-page .page-legal-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: calc(100vw - 2 * var(--pad-x));
  border-top: 5pt solid var(--legal-rule);
}

.legal-page h2,
.legal-page .type-primary {
  margin: 0 0 0.75rem;
  font-size: var(--primary-size);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-page p,
.legal-page li,
.legal-page .type-secondary,
.legal-page .type-secondary p {
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
  color: var(--text-primary);
}

.legal-page p {
  margin: 0 0 1em;
  max-width: calc(var(--text-box-width) + 150px);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
  max-width: calc(var(--text-box-width) + 150px);
}

.legal-page li + li {
  margin-top: 0.45em;
}

.legal-page a {
  color: inherit;
}

.legal-meta,
.legal-page .type-sub.legal-meta,
.page-legal-meta {
  margin: 0;
  max-width: calc(var(--text-box-width) + 150px);
  font-size: var(--sub-size);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-muted);
}

.legal-page .legal-meta a {
  color: inherit;
}

.page-legal-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: var(--legal-section-line-gap) 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--legal-rule);
}

.page-legal-body {
  max-width: calc(var(--text-box-width) + 150px);
}

.page-legal-body > p {
  margin-bottom: var(--hero-stack-gap);
}

.page-legal-section {
  position: relative;
  margin-top: var(--legal-section-line-gap);
  padding-top: var(--legal-section-line-gap);
}

/* C&L structure: thin full-bleed rule above each section */
.page-legal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100vw - 2 * var(--pad-x));
  border-top: 1px solid var(--legal-rule);
}

.page-legal-section-title {
  margin: 0 0 0.75rem;
}

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

  .ipad-layer,
  .page-intro-bg img,
  .page-intro-copy,
  .page-about-bg img,
  .page-about-copy,
  .features-text-inner {
    will-change: auto;
  }
}

/* Desktop (901px+) LOCKED v20260774 — do not edit rules above mobile block.
   Mobile (≤900px) LOCKED v20260774 — see LOCKED-LAYOUT.md */

/* Type system matches C&L: mobile sizes only ≤768px */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
  :root {
    --type-scale: 50px;
    --title-size: 50px;
    --primary-size: 34px;
    --secondary-size: 17px;
    --sub-size: 10px;
    --body-bold-size: var(--secondary-size);
    --text-box-width: 100%;
  }
}

@media (max-width: 900px) {
  :root {
    --split-gap: clamp(16px, 4.267vw, 32px);
    --sticky-top: clamp(48px, 12vw, 96px);
  }

  .page-hero-visual {
    justify-self: center;
    width: min(100%, clamp(280px, 88vw, 744px));
    margin-bottom: 0;
    transform: none;
  }

  .page-hero .page-split {
    grid-template-columns: 1fr;
    gap: clamp(6px, 2.133vw, 12px);
  }

  .page-hero-copy {
    max-width: min(42ch, 92vw);
    width: 100%;
    margin-inline: auto;
    margin-top: 20px;
    transform: none;
  }

  .facts-columns {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: min(42ch, 92vw);
    margin-inline: auto;
  }

  .facts-card {
    text-align: center;
  }

  .page-features {
    padding-top: clamp(32px, 8.533vw, 48px);
  }

  .features-pin {
    width: var(--content-frame);
  }

  .features-layout {
    gap: 0;
    grid-template-areas: none;
  }

  .page-split,
  .features-layout,
  .page-about-overlay {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  /* Reset locked desktop hero offset — fixed px caused vertical jumps on narrow viewports */
  .page-hero .page-inner {
    transform: none;
  }

  .page-hero {
    padding: clamp(24px, 6.4vw, 48px) 0 clamp(28px, 7.467vw, 45px);
  }

  .page-hero-copy,
  .page-hero-heading,
  .page-intro-copy,
  .page-about-copy,
  .features-text-viewport,
  .feature-block,
  .page-contact .page-inner {
    text-align: center;
    justify-self: center;
    align-items: center;
  }

  .page-intro-copy,
  .page-about-copy,
  .features-text-viewport,
  .feature-block,
  .page-contact .page-inner {
    margin-inline: auto;
  }

  .page-hero h1,
  .page-hero-heading,
  .feature-block h2,
  .page-about-copy h2,
  .page-contact h2,
  .facts-card-title {
    font-size: var(--primary-size);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .page-intro-copy p,
  .page-about-copy p,
  .page-contact-intro,
  .feature-block p {
    max-width: min(42ch, 92vw);
    margin-inline: auto;
  }

  .page-hero-lead {
    max-width: min(42ch, 92vw);
    margin-inline: auto;
  }

  .app-store-link {
    display: flex;
    justify-content: center;
    width: auto;
  }

  .app-store-link img {
    margin-inline: 0;
  }

  .page-intro-copy,
  .page-about-copy {
    grid-column: 1;
    max-width: min(42ch, 92vw);
  }

  .page-intro-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: clamp(48px, 10.667vw, 96px) var(--pad-x);
  }

  .page-intro {
    aspect-ratio: 3200 / 1800;
    min-height: 0;
  }

  .features-ipad-col {
    grid-area: auto;
    order: 1;
    justify-self: center;
    width: min(100%, clamp(280px, 78vw, 420px));
    transform: translateY(calc(-10px - var(--features-mobile-ipad-push, 0px)));
  }

  .features-ipad {
    width: min(100%, 700px);
    transform: none;
  }

  .features-text-viewport {
    grid-area: auto;
    order: 2;
    max-width: min(42ch, 92vw);
    width: 100%;
    overflow: hidden;
    align-self: center;
    box-sizing: border-box;
  }

  .features-text-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--features-mobile-text-gap, clamp(96px, 26vh, 130px));
    width: 100%;
  }

  .feature-block,
  .feature-block-last {
    min-height: auto;
    padding: 0;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
  }

  .feature-block + .feature-block::before,
  #feature-blur.feature-block::before {
    top: calc(var(--features-mobile-text-gap, clamp(96px, 26vh, 130px)) / -2);
  }

  .feature-block-last {
    padding-bottom: clamp(120px, 18vh, 220px);
  }

  /* Desktop blur pull must never apply on mobile (JS clears --features-desktop-blur-pull). */
  #feature-blur {
    margin-top: 0 !important;
  }

  .page-about-bg img {
    object-position: center 52%;
  }

  .page-about-overlay {
    align-items: center;
    justify-items: center;
    padding: clamp(48px, 10.667vw, 96px) 0;
    min-height: clamp(420px, 72vh, 820px);
  }

  .page-contact {
    padding: clamp(40px, 10.667vw, 56px) 0;
  }

  .contact-form {
    margin-inline: auto;
    width: min(100%, 560px);
  }

  .site-nav {
    gap: 8px clamp(14px, 4vw, 18px);
  }

  .site-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 201;
  }

  .site-header-inner .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 32px);
    margin: 0;
    background: var(--bg-page);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .site-header-inner .site-nav a {
    font-size: var(--body-bold-size);
    line-height: var(--body-line-height);
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header.is-menu-open .site-nav a {
    color: var(--text-primary);
  }
}

/* Desktop-only: pull Blur up to match Page 3→4 text gap (set in parallax-scroll.js). */
@media (min-width: 901px) {
  #feature-blur {
    margin-top: var(--features-desktop-blur-pull, 0px);
  }
}
