:root {
  --dog-mark: url("assets/scrawny-dog.webp");
  --carbon: #0e1116;
  --graphite: #191d25;
  --paper: #fcfbf8;
  --bone: #f3f1ec;
  --white: #ffffff;
  --violet: #6b52d9;
  --periwinkle: #9588e6;
  --cobalt: #4778b5;
  --ochre: #b8843a;
  --coral: #c1685b;
  --slate: #6c7584;
  --sage: #778f5a;
  --stop-brick: #b64f4f;
  --line-light: rgba(14, 17, 22, 0.13);
  --line-dark: rgba(243, 241, 236, 0.14);
  --muted-light: #666d78;
  --muted-dark: #aaa7a0;
  --shell: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--carbon);
}

body {
  margin: 0;
  color: var(--carbon);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--carbon);
  background: var(--paper);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--bone);
  border-bottom: 1px solid var(--line-dark);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 11px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-dog,
.footer-dog,
.dog-art {
  display: block;
  background-image: var(--dog-mark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.brand-dog {
  width: 38px;
  aspect-ratio: 368 / 433;
}

.footer-dog {
  width: 28px;
  aspect-ratio: 368 / 433;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: rgba(243, 241, 236, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.primary-nav a,
.text-link,
.header-cta {
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--paper);
}

.header-cta {
  justify-self: end;
  padding: 10px 15px;
  border: 1px solid rgba(149, 136, 230, 0.62);
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 750;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--violet);
  border-color: var(--violet);
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: var(--bone);
  background: var(--carbon);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  right: -12vw;
  top: 110px;
  border: 1px solid rgba(149, 136, 230, 0.17);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 54%;
  left: calc(50% + 2rem);
  top: 24%;
  background: rgba(243, 241, 236, 0.08);
}

.hero-grid {
  min-height: 820px;
  padding-top: 126px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
}

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

.eyebrow,
.section-label {
  margin: 0;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--periwinkle);
}

.hero h1 {
  max-width: 860px;
  margin: 24px 0 28px;
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero h1 span {
  color: var(--periwinkle);
}

.hero-lede {
  max-width: 670px;
  margin: 0;
  color: rgba(243, 241, 236, 0.72);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.018em;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 780;
  letter-spacing: -0.01em;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--paper);
  background: var(--violet);
  border: 1px solid var(--violet);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #7861df;
  border-color: #7861df;
}

.button-light {
  color: var(--carbon);
  background: var(--bone);
  border: 1px solid var(--bone);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
}

.text-link {
  color: var(--bone);
  font-weight: 720;
}

.text-link span {
  display: inline-block;
  margin-left: 5px;
  color: var(--periwinkle);
  transition: transform 180ms var(--ease);
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.hero-note {
  margin: 34px 0 0;
  color: rgba(243, 241, 236, 0.46);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.hero-mark {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 440px);
}

.mark-frame {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.mark-frame::before,
.mark-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(243, 241, 236, 0.1);
  border-radius: 50%;
}

.mark-frame::before {
  width: 92%;
  aspect-ratio: 1;
}

.mark-frame::after {
  width: 66%;
  aspect-ratio: 1;
  border-color: rgba(71, 120, 181, 0.18);
}

.dog-art {
  position: relative;
  z-index: 1;
  width: min(82%, 350px);
  aspect-ratio: 368 / 433;
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.26));
}

.hero-mark figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  color: rgba(243, 241, 236, 0.55);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.signal-periwinkle {
  background: var(--periwinkle);
}

.hero-spectrum {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr 0.8fr;
}

.hero-spectrum span {
  display: block;
}

.spectrum-periwinkle { background: var(--periwinkle); }
.spectrum-cobalt { background: var(--cobalt); }
.spectrum-ochre { background: var(--ochre); }
.spectrum-coral { background: var(--coral); }

.section-light {
  background: var(--paper);
}

.intro {
  padding: clamp(100px, 12vw, 168px) 0 86px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.editorial-grid h2,
.section-heading h2,
.loop-heading h2,
.principle h2,
.closing h2 {
  margin: 0;
  font-size: clamp(42px, 5.7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 870;
}

.editorial-grid > div > p {
  max-width: 760px;
  margin: 32px 0 0;
  color: var(--muted-light);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.platform {
  padding: 80px 0 126px;
}

.section-heading {
  padding-top: 38px;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: end;
}

.section-heading h2 {
  margin-top: 16px;
}

.section-summary {
  max-width: 430px;
  margin: 0 0 4px auto;
  color: var(--muted-light);
  font-size: 18px;
}

.product-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 34px 32px 30px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 17, 22, 0.24);
  box-shadow: 0 22px 44px rgba(14, 17, 22, 0.08);
}

.product-topline {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
}

.product-flow .product-topline,
.product-flow .product-signal span { background: var(--periwinkle); }
.product-works .product-topline,
.product-works .product-signal span { background: var(--cobalt); }
.product-field .product-topline,
.product-field .product-signal span { background: var(--coral); }

.product-index,
.loop-number {
  margin: 0;
  color: var(--slate);
  font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.product-card h3 {
  margin: 68px 0 12px;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.product-tagline {
  margin: 0;
  color: var(--carbon);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.product-body {
  max-width: 320px;
  margin: 22px 0 0;
  color: var(--muted-light);
}

.product-signal {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  gap: 7px;
}

.product-signal span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.22;
}

.product-signal span:nth-child(2) { opacity: 0.42; }
.product-signal span:nth-child(3) { opacity: 0.68; }
.product-signal span:nth-child(4) { opacity: 1; }

.development-note {
  margin: 26px 0 0;
  color: var(--muted-light);
  font-size: 13px;
}

.loop-section {
  position: relative;
  overflow: hidden;
  padding: 126px 0 118px;
  color: var(--bone);
  background: var(--graphite);
}

.loop-section::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -240px;
  width: 480px;
  aspect-ratio: 1;
  border: 1px solid rgba(193, 104, 91, 0.17);
  border-radius: 50%;
}

.section-label-dark {
  color: var(--periwinkle);
}

.loop-heading {
  max-width: 960px;
}

.loop-heading h2 {
  margin-top: 18px;
}

.loop-heading > p:last-child {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted-dark);
  font-size: 19px;
}

.loop-track {
  position: relative;
  z-index: 1;
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}

.loop-step {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(14, 17, 22, 0.24);
}

.loop-step::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 48px;
  border-radius: 999px;
}

.loop-field::before { background: var(--coral); }
.loop-flow::before { background: var(--periwinkle); }
.loop-works::before { background: var(--cobalt); }

.loop-step h3 {
  margin: 14px 0 18px;
  color: var(--paper);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.loop-step > p:last-child {
  margin: 0;
  color: var(--muted-dark);
}

.loop-arrow {
  display: grid;
  place-items: center;
  color: rgba(243, 241, 236, 0.34);
  font-size: 28px;
}

.return-line {
  width: fit-content;
  margin: 34px 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.return-line span {
  color: var(--ochre);
  font-size: 24px;
}

.principle {
  padding: 132px 0 142px;
}

.principle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: start;
}

.principle h2 {
  margin-top: 18px;
  max-width: 720px;
}

.principle-list {
  border-top: 1px solid var(--line-light);
}

.principle-list article {
  position: relative;
  padding: 28px 0 30px 26px;
  border-bottom: 1px solid var(--line-light);
}

.principle-rule {
  position: absolute;
  top: 34px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.rule-periwinkle { background: var(--periwinkle); }
.rule-cobalt { background: var(--cobalt); }
.rule-ochre { background: var(--ochre); }

.principle-list h3 {
  margin: 0 0 9px;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.principle-list p {
  margin: 0;
  color: var(--muted-light);
}

.closing {
  padding: 118px 0;
  color: var(--bone);
  background: var(--carbon);
  border-bottom: 1px solid var(--line-dark);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.closing h2 {
  margin-top: 18px;
}

.closing h2 span {
  color: var(--periwinkle);
}

.closing-copy {
  padding-bottom: 8px;
}

.closing-copy p {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted-dark);
  font-size: 18px;
}

.site-footer {
  color: var(--bone);
  background: var(--carbon);
}

.footer-inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  color: rgba(243, 241, 236, 0.48);
  font-size: 12px;
}

.footer-brand {
  color: var(--bone);
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:nth-child(2) {
  text-align: center;
}

.footer-inner p:last-child {
  text-align: right;
}

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

@media (max-width: 980px) {
  .hero::after {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 150px;
    gap: 30px;
  }

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

  .hero-mark {
    width: min(72vw, 390px);
  }

  .mark-frame {
    min-height: 430px;
  }

  .editorial-grid,
  .section-heading,
  .principle-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .section-summary {
    max-width: 620px;
    margin: 0;
  }

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

  .product-card {
    min-height: 360px;
  }

  .loop-track {
    grid-template-columns: 1fr;
  }

  .loop-arrow {
    transform: rotate(90deg);
    min-height: 18px;
  }

  .loop-step {
    min-height: 230px;
  }

  .principle-list {
    margin-top: 8px;
  }
}

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

  .header-inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .brand {
    font-size: 21px;
  }

  .brand-dog {
    width: 31px;
  }

  .header-cta {
    padding: 8px 13px;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 122px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 74px);
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-mark {
    width: min(78vw, 330px);
  }

  .mark-frame {
    min-height: 370px;
  }

  .hero-mark figcaption {
    font-size: 11px;
  }

  .intro {
    padding-top: 86px;
  }

  .editorial-grid {
    gap: 28px;
  }

  .editorial-grid h2,
  .section-heading h2,
  .loop-heading h2,
  .principle h2,
  .closing h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .platform,
  .loop-section,
  .principle,
  .closing {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .section-heading {
    padding-top: 28px;
  }

  .product-grid {
    margin-top: 38px;
  }

  .product-card {
    min-height: 390px;
    padding: 30px 26px;
  }

  .product-card h3 {
    margin-top: 52px;
  }

  .product-signal {
    left: 26px;
    bottom: 26px;
  }

  .loop-track {
    margin-top: 48px;
  }

  .loop-step {
    min-height: 220px;
  }

  .return-line {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p:nth-child(2) {
    display: none;
  }

  .footer-inner p:last-child {
    text-align: right;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mark-frame {
    min-height: 330px;
  }

  .hero-mark figcaption {
    text-align: center;
  }

  .product-card {
    min-height: 410px;
  }

  .footer-inner {
    min-height: 92px;
  }
}

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

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