:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-bright: #fbf8f2;
  --ink: #11100e;
  --ink-soft: #625f58;
  --line: rgba(17, 16, 14, 0.18);
  --blue: #1557ff;
  --red: #f43b30;
  --yellow: #f5d20a;
  --pink: #f05f9f;
  --green: #27a56c;
  --radius: 1.5rem;
  --page: min(100% - 2rem, 1180px);
  --reading: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(17, 16, 14, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 8px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: 67% 33% 48% 52% / 36% 58% 42% 64%;
  background: var(--blue);
  opacity: 0.92;
  transform: rotate(-12deg);
}

.brand-mark::after {
  inset: 0.28rem -0.12rem -0.08rem 0.48rem;
  background: var(--red);
  mix-blend-mode: multiply;
  transform: rotate(20deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.display {
  margin: 0;
  font-size: clamp(4rem, 10.5vw, 9.2rem);
  font-weight: 760;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.display .line {
  display: block;
}

.display .loose {
  letter-spacing: -0.055em;
}

.lede {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.home-hero {
  position: relative;
  min-height: min(780px, calc(100vh - 84px));
  padding: clamp(5rem, 10vw, 9rem) 0 7rem;
  isolation: isolate;
}

.home-hero::after {
  position: absolute;
  right: 2%;
  bottom: 14%;
  width: min(38vw, 390px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.pigment {
  position: absolute;
  z-index: -1;
  filter: blur(1px);
  mix-blend-mode: multiply;
  opacity: 0.88;
  pointer-events: none;
}

.pigment-blue {
  top: 5%;
  right: -8%;
  width: min(51vw, 660px);
  aspect-ratio: 1.1;
  border-radius: 71% 29% 63% 37% / 39% 55% 45% 61%;
  background:
    radial-gradient(circle at 38% 39%, rgba(255,255,255,0.36), transparent 18%),
    radial-gradient(circle at 51% 45%, rgba(21,87,255,0.95), rgba(21,87,255,0.64) 47%, rgba(21,87,255,0.13) 68%, transparent 72%);
  transform: rotate(-9deg);
}

.pigment-red {
  right: 25%;
  bottom: 5%;
  width: min(30vw, 390px);
  aspect-ratio: 1.25;
  border-radius: 38% 62% 54% 46% / 67% 30% 70% 33%;
  background: radial-gradient(circle at 48% 48%, rgba(244,59,48,0.9), rgba(244,59,48,0.5) 52%, transparent 72%);
  transform: rotate(13deg);
}

.pigment-yellow {
  top: 13%;
  left: 43%;
  width: min(21vw, 260px);
  aspect-ratio: 0.95;
  border-radius: 45% 55% 69% 31% / 58% 36% 64% 42%;
  background: radial-gradient(circle, rgba(245,210,10,0.94), rgba(245,210,10,0.45) 52%, transparent 73%);
  transform: rotate(31deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.studio-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.studio-note h2,
.product-section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.studio-note p {
  max-width: 31rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.product-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 0 rgba(17,16,14,0.08);
}

.product-card + .product-card {
  margin-top: 1.5rem;
}

.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.product-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-name {
  max-width: 7ch;
  margin: 2rem 0 1.25rem;
  font-size: clamp(3.5rem, 7vw, 6.3rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.product-description {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
  font-weight: 720;
  text-decoration: none;
}

.text-link::after {
  content: "↗";
}

.product-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--blue);
}

.product-art::before {
  position: absolute;
  inset: -20% -32% 18% -10%;
  border-radius: 43% 57% 33% 67% / 56% 42% 58% 44%;
  background: var(--pink);
  content: "";
  mix-blend-mode: multiply;
  transform: rotate(14deg);
}

.product-art::after {
  position: absolute;
  right: -20%;
  bottom: -28%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  mix-blend-mode: multiply;
}

.barcode {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(72%, 300px);
  aspect-ratio: 1.45;
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0.7rem;
  background: rgba(251,248,242,0.9);
  box-shadow: 12px 12px 0 var(--ink);
  transform: translate(-50%, -50%) rotate(-7deg);
}

.barcode::before {
  display: block;
  width: 100%;
  height: 78%;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 3px, transparent 3px 7px,
    var(--ink) 7px 12px, transparent 12px 15px,
    var(--ink) 15px 17px, transparent 17px 23px);
  content: "";
}

.barcode::after {
  display: block;
  margin-top: 0.55rem;
  content: "0 12026 07126 4";
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.52rem, 1.1vw, 0.7rem);
  letter-spacing: 0.13em;
  text-align: center;
}

.beacen-card {
  background: #e8eddc;
}

.beacen-card .product-name {
  letter-spacing: -0.085em;
}

.beacen-art {
  background:
    linear-gradient(135deg, rgba(17,16,14,0.05) 25%, transparent 25%) 0 0 / 24px 24px,
    #c8ff32;
}

.beacen-art::before {
  inset: auto -28% -42% 10%;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.92;
  transform: none;
}

.beacen-art::after {
  top: -32%;
  right: -30%;
  bottom: auto;
  width: 80%;
  background: var(--yellow);
}

.contour {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(17,16,14,0.7);
  border-radius: 43% 57% 63% 37% / 61% 38% 62% 39%;
  transform: rotate(-19deg);
}

.contour-one {
  inset: 8% 8% 6% 5%;
}

.contour-two {
  inset: 18% 17% 17% 16%;
  border-radius: 62% 38% 46% 54% / 39% 63% 37% 61%;
}

.contour-three {
  inset: 30% 28% 29% 25%;
  border-radius: 38% 62% 58% 42% / 62% 44% 56% 38%;
}

.route-line {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: 24%;
  width: 47%;
  height: 68%;
  border: 7px solid var(--ink);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 48% 52% 43% 57% / 57% 32% 68% 43%;
  transform: rotate(20deg);
}

.route-point {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-bright);
}

.route-start {
  top: -0.25rem;
  right: 0.15rem;
}

.route-finish {
  bottom: -0.2rem;
  left: 0.15rem;
  background: var(--red);
}

.north-mark {
  position: absolute;
  z-index: 3;
  top: 1.4rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 2.15rem;
  text-align: center;
}

.future-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.future-line::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 0.25em;
}

/* Product */
.product-hero {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.product-hero h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(4.4rem, 9.5vw, 8.6rem);
  font-weight: 760;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

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

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.disabled {
  cursor: default;
  opacity: 0.5;
}

.button.disabled:hover {
  transform: none;
}

.scanner-stage {
  position: relative;
  min-height: 520px;
}

.wash {
  position: absolute;
  inset: 4% -10% 0;
  border-radius: 62% 38% 34% 66% / 38% 55% 45% 62%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.34), transparent 16%),
    radial-gradient(circle at 50% 50%, var(--blue), rgba(21,87,255,0.62) 56%, transparent 74%);
  transform: rotate(8deg);
}

.phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72%, 285px);
  aspect-ratio: 0.51;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2.8rem;
  background: #0f0f0f;
  box-shadow: 18px 20px 0 rgba(17,16,14,0.18);
  transform: translate(-50%, -50%) rotate(5deg);
}

.phone::before {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 50%;
  width: 34%;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.scanner-screen {
  position: absolute;
  inset: 0.45rem;
  overflow: hidden;
  border-radius: 2.3rem;
  background:
    linear-gradient(rgba(17,16,14,0.16), rgba(17,16,14,0.4)),
    linear-gradient(135deg, #c7d8cf, #7c8881);
}

.scanner-screen::before {
  position: absolute;
  inset: 31% 13%;
  border: 2px solid rgba(255,255,255,0.94);
  border-right-color: transparent;
  border-left-color: transparent;
  content: "";
}

.scanner-screen::after {
  position: absolute;
  top: 49%;
  right: 13%;
  left: 13%;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(244,59,48,0.75);
  content: "";
}

.scan-pill {
  position: absolute;
  right: 0;
  bottom: 12%;
  z-index: 3;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

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

.feature {
  min-height: 270px;
  padding: clamp(2rem, 5vw, 4rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-number {
  display: block;
  margin-bottom: 3.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.feature h2 {
  max-width: 9ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.feature p {
  max-width: 27rem;
  margin: 0;
  color: var(--ink-soft);
}

.product-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.product-bottom h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.product-bottom-copy {
  align-self: end;
}

.product-bottom-copy p {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
}

.inline-links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 0.3em;
}

/* Reading pages */
.reading-main {
  width: min(100% - 2rem, var(--reading));
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.reading-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink);
}

.reading-header h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 6.7rem);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.reading-header .lede {
  font-size: 1.1rem;
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 4rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.policy-summary div {
  padding: 1.1rem;
  background: var(--paper-bright);
}

.policy-summary strong,
.policy-summary span {
  display: block;
}

.policy-summary strong {
  margin-bottom: 0.25rem;
  font-size: 0.73rem;
}

.policy-summary span {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.reading-section {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.reading-section:first-of-type {
  border-top: 0;
}

.reading-index {
  padding-top: 0.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.reading-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.reading-section h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
}

.reading-section p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.reading-section a {
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 0.25em;
}

.contact-panel {
  margin: 0 0 3rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--blue);
  color: white;
}

.contact-panel .eyebrow {
  color: rgba(255,255,255,0.76);
}

.contact-panel h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.contact-panel a {
  display: inline-block;
  margin-top: 1.5rem;
  color: white;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  text-underline-offset: 0.3em;
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.4rem 2.5rem 1.4rem 0;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 1.35rem;
  right: 0;
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 39rem;
  margin: -0.25rem 0 1.6rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 70px;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .nav-links .optional {
    display: none;
  }

  .home-hero {
    min-height: 690px;
    padding-top: 5rem;
  }

  .home-hero::after {
    right: -20%;
    bottom: 12%;
    width: 64vw;
  }

  .pigment-blue {
    top: 28%;
    right: -35%;
    width: 92vw;
  }

  .pigment-yellow {
    top: 25%;
    left: 50%;
    width: 44vw;
  }

  .pigment-red {
    right: 21%;
    bottom: 7%;
    width: 56vw;
  }

  .studio-note,
  .product-bottom {
    grid-template-columns: 1fr;
  }

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

  .product-art {
    min-height: 330px;
  }

  .product-hero {
    gap: 1rem;
    padding-top: 4.5rem;
  }

  .scanner-stage {
    min-height: 500px;
  }

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

  .feature {
    min-height: 240px;
  }

  .feature-number {
    margin-bottom: 2.5rem;
  }

  .policy-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --page: min(100% - 1.25rem, 1180px);
  }

  .brand {
    font-size: 0.76rem;
  }

  .display {
    font-size: clamp(3.65rem, 19vw, 5rem);
  }

  .product-card {
    min-height: 0;
  }

  .product-name {
    font-size: 3.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .product-hero h1 {
    font-size: clamp(4rem, 20vw, 5.5rem);
  }
}

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

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