@font-face {
  font-family: Satoshi;
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Satoshi;
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: JetBrains;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --shell: 1380px;
  --navy: #001330;
  --gold: #c6a15b;
  --paper: #fbfaf7;
  --neutral: #f3f0e9;
  --ink: #0c172a;
  --muted: #53657a;
  --line: #cbd6e4;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Satoshi, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #8cb4ff;
  outline-offset: 3px;
}

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

.skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 0 max(32px, calc((100vw - var(--shell)) / 2));
  border-bottom: 1px solid var(--line);
  grid-template-columns: 240px 1fr auto;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(16px);
}

.wordmark {
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.pick-state {
  min-width: 175px;
}

.pick-state span,
.eyebrow,
.direction-index,
.mock figcaption span,
.panel-mock small,
.editorial-web small,
.material-web small,
.editorial-x small,
.material-x small,
.proposal-mock small,
.proposal-code {
  font-family: JetBrains, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pick-state span {
  display: block;
  color: var(--muted);
}

.pick-state strong {
  color: var(--navy);
  font-size: 13px;
}

.intro {
  padding: 110px 0 96px;
  background: var(--paper);
}

.intro__grid {
  display: grid;
  align-items: end;
  gap: 80px;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  color: #7e5f1a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(66px, 8vw, 116px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.intro__brief > p {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 20px;
}

.intro__brief dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.intro__brief dl div {
  display: grid;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 140px 1fr;
}

.intro__brief dt {
  color: var(--muted);
}

.intro__brief dd {
  margin: 0;
  font-weight: 700;
}

.rules {
  padding: 78px 0;
  color: #fff;
  background: var(--navy);
}

.rules__grid {
  display: grid;
  gap: 52px;
  grid-template-columns: 170px 1fr 0.8fr;
}

.rules h2,
.decision-close h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #b8c7d9;
}

.direction {
  --foundation: #001330;
  --accent: #2d6bff;
  --accent-deep: #174db8;
  --canvas: #f7f9fc;
  --surface: #fff;
  --theme-ink: #0c172a;
  --theme-muted: #53657a;
  --theme-line: #cbd6e4;
  padding: 110px 0 120px;
  color: var(--theme-ink);
  background: var(--canvas);
}

.theme-mineral,
.theme-editorial {
  --foundation: #001330;
  --accent: #c6a15b;
  --accent-deep: #7e5f1a;
  --canvas: #fbfaf7;
  --surface: #fff;
  --theme-ink: #001330;
  --theme-muted: #53657a;
  --theme-line: #d6d4ce;
}

.theme-material {
  --foundation: #0e1f27;
  --accent: #b58863;
  --accent-deep: #875c3d;
  --canvas: #d3c3b9;
  --surface: #eee8e4;
  --theme-ink: #161616;
  --theme-muted: #3d4d55;
  --theme-line: #a79e9c;
}

.theme-expanded {
  --foundation: #161616;
  --accent: #c6a15b;
  --accent-deep: #7e5f1a;
  --cta: #9c5d3c;
  --support: #6e6b41;
  --canvas: #d1c7b5;
  --surface: #fbf7ef;
  --theme-ink: #161616;
  --theme-muted: #5f5147;
  --theme-line: #b8aa9d;
}

.direction + .direction {
  border-top: 10px solid var(--paper);
}

.direction-head {
  display: grid;
  align-items: start;
  gap: 28px;
  margin-bottom: 58px;
  grid-template-columns: 70px minmax(0, 1fr) 230px 190px;
}

.direction-index {
  color: var(--accent-deep);
  font-size: 12px;
}

.direction-head h2 {
  margin: 0 0 15px;
  color: var(--foundation);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.direction-head p {
  max-width: 680px;
  margin: 0;
  color: var(--theme-muted);
  font-size: 18px;
}

.palette {
  display: grid;
  border: 1px solid var(--theme-line);
  grid-template-columns: repeat(4, 1fr);
}

.palette i {
  min-height: 64px;
  background: var(--swatch);
}

.palette--five {
  grid-template-columns: repeat(5, 1fr);
}

.pick-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--foundation);
  color: var(--foundation);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pick-button:hover,
.pick-button.is-selected {
  color: #fff;
  background: var(--foundation);
}

.mock-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.25fr 0.75fr;
}

.mock {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  background: var(--surface);
}

.mock--website {
  grid-column: 1 / -1;
}

.mock > img {
  width: 100%;
  object-fit: cover;
}

.mock--website > img {
  aspect-ratio: 16 / 8.2;
  object-position: top;
}

.mock--x > img {
  aspect-ratio: 3 / 1;
}

.mock figcaption {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  border-top: 1px solid var(--theme-line);
}

.mock figcaption span {
  color: var(--accent-deep);
}

.mock figcaption strong {
  font-size: 13px;
}

.panel-mock {
  display: grid;
  min-height: 430px;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--canvas);
}

.panel-mock aside {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 24px 14px;
  color: #fff;
  background: var(--foundation);
}

.panel-mock aside img {
  width: 92px;
  margin: 0 8px 28px;
}

.panel-mock aside span {
  padding: 9px;
  color: #b8c7d9;
  font-size: 10px;
}

.panel-mock aside span:first-of-type {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.panel-mock aside b {
  float: right;
  color: #fff;
  background: #b4232f;
}

.panel-body {
  min-width: 0;
}

.panel-body > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--theme-line);
  background: var(--surface);
}

.panel-body button,
.editorial-web button,
.material-web button,
.editorial-side button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  color: #fff;
  background: var(--foundation);
  font-size: 10px;
  font-weight: 700;
}

.panel-title {
  padding: 24px 20px 20px;
}

.panel-title small {
  display: block;
  color: var(--accent-deep);
}

.panel-title strong {
  display: block;
  margin-top: 6px;
  color: var(--foundation);
  font-size: 24px;
}

.metrics {
  display: grid;
  margin: 0 20px 18px;
  border: 1px solid var(--theme-line);
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
}

.metrics div {
  padding: 16px;
  border-right: 1px solid var(--theme-line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics small,
.metrics b {
  display: block;
}

.metrics small {
  min-height: 30px;
  color: var(--theme-muted);
}

.metrics b {
  margin-top: 5px;
  color: var(--foundation);
  font-size: 27px;
}

.service-list {
  margin: 0 20px;
  border: 1px solid var(--theme-line);
  background: var(--surface);
}

.service-list div {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--theme-line);
  grid-template-columns: 1.4fr 1fr auto;
  font-size: 10px;
}

.service-list div:first-child {
  border-top: 0;
}

.service-list span {
  color: var(--theme-muted);
}

.service-list em {
  padding: 3px 6px;
  color: #147a45;
  background: rgba(43, 203, 120, 0.12);
  font-style: normal;
  font-weight: 700;
}

.service-list em.review {
  color: #a25a00;
  background: rgba(242, 181, 68, 0.14);
}

.proposal-mock {
  position: relative;
  min-height: 430px;
  padding: 34px;
  color: #fff;
  background: var(--foundation);
}

.proposal-mock::after {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 90px;
  height: 3px;
  content: "";
  background: var(--accent);
}

.proposal-mock img {
  width: 110px;
}

.proposal-mock > div {
  position: absolute;
  right: 34px;
  bottom: 70px;
  left: 34px;
}

.proposal-mock small {
  color: var(--accent);
}

.proposal-mock strong {
  display: block;
  max-width: 480px;
  margin: 14px 0;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.proposal-mock p {
  margin: 0;
  color: #b8c7d9;
  font-size: 12px;
}

.proposal-code {
  position: absolute;
  top: 36px;
  right: 34px;
  color: #b8c7d9;
}

.proposal-mock--light {
  color: var(--foundation);
  background: var(--paper);
}

.proposal-mock--light p,
.proposal-mock--light .proposal-code {
  color: var(--muted);
}

.editorial-web,
.material-web {
  min-height: 680px;
  background: var(--canvas);
}

.editorial-web > header,
.material-web > header {
  display: grid;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid var(--theme-line);
  grid-template-columns: 120px 1fr auto;
}

.editorial-web header img,
.material-web header img {
  width: 104px;
}

.editorial-web nav,
.material-web nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 600;
}

.editorial-hero {
  display: grid;
  align-items: start;
  gap: 50px;
  padding: 62px 34px 48px;
  grid-template-columns: 1.3fr 0.7fr;
}

.editorial-hero small,
.editorial-x small {
  color: var(--accent-deep);
}

.editorial-hero h3,
.material-hero h3 {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--foundation);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.editorial-side {
  padding-top: 28px;
}

.editorial-side p {
  color: var(--theme-muted);
  font-size: 16px;
}

.image-strip {
  display: grid;
  align-items: end;
  gap: 9%;
  padding: 0 34px 36px;
  grid-template-columns: 0.75fr 1fr 0.65fr;
}

.image-strip img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.image-strip img:nth-child(2) {
  height: 178px;
}

.editorial-x,
.material-x {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  align-items: center;
  gap: 30px;
  padding: 34px;
  grid-template-columns: 120px 1fr 0.75fr;
  background: var(--canvas);
}

.editorial-x > img {
  width: 105px;
}

.editorial-x strong,
.material-x strong {
  display: block;
  margin: 11px 0;
  color: var(--foundation);
  font-size: 31px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.editorial-x p,
.material-x p {
  margin: 0;
  color: var(--theme-muted);
  font:
    600 8px JetBrains,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-images {
  display: grid;
  gap: 10px;
  grid-template-columns: 0.75fr 1.25fr;
}

.x-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: grayscale(0.4);
}

.x-images img:last-child {
  height: 170px;
}

.material-web {
  color: #fff;
  background: var(--foundation);
}

.material-web > header {
  border-color: rgba(255, 255, 255, 0.16);
}

.material-web nav {
  color: #d3c3b9;
}

.material-web button {
  color: var(--foundation);
  background: var(--accent);
}

.material-hero {
  display: grid;
  min-height: 604px;
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
}

.material-hero > div {
  padding: 48px 34px;
}

.material-hero small {
  color: #d3c3b9;
}

.material-hero h3 {
  color: #fff;
}

.material-hero p {
  color: #a79e9c;
}

.material-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) sepia(0.18) contrast(1.12) brightness(0.7);
}

.material-x {
  color: #fff;
  background: var(--foundation);
}

.material-x__logo {
  width: 106px;
}

.material-x strong {
  color: #d3c3b9;
}

.material-x p,
.material-x small {
  color: #a79e9c;
}

.material-x__image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: grayscale(0.65) sepia(0.18) contrast(1.1) brightness(0.62);
}

.expanded-web {
  min-height: 680px;
  color: var(--theme-ink);
  background: var(--surface);
}

.expanded-web > header {
  display: grid;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid var(--theme-line);
  grid-template-columns: 120px 1fr auto;
}

.expanded-web header img {
  width: 104px;
}

.expanded-web nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 600;
}

.expanded-web button,
.theme-expanded .panel-body button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  color: #fff;
  background: var(--cta);
  font-size: 10px;
  font-weight: 700;
}

.expanded-hero {
  display: grid;
  min-height: 530px;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
}

.expanded-hero > div {
  padding: 50px 34px;
}

.expanded-hero small,
.expanded-x small {
  color: var(--accent-deep);
  font:
    600 10px JetBrains,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.expanded-hero h3 {
  margin: 14px 0 22px;
  color: var(--foundation);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.expanded-hero p {
  color: var(--theme-muted);
}

.expanded-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) sepia(0.22) contrast(1.08);
}

.expanded-band {
  display: grid;
  min-height: 74px;
  align-items: center;
  padding: 0 34px;
  color: #fff;
  grid-template-columns: repeat(3, 1fr);
  background: var(--support);
  font:
    600 9px JetBrains,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expanded-x {
  display: grid;
  min-height: 300px;
  overflow: hidden;
  align-items: center;
  gap: 32px;
  padding: 34px;
  color: #fff;
  grid-template-columns: 120px 1fr 0.72fr;
  background: var(--foundation);
}

.expanded-x > img:first-child {
  width: 106px;
}

.expanded-x small {
  color: var(--accent);
}

.expanded-x strong {
  display: block;
  margin: 11px 0;
  color: #fff;
  font-size: 31px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.expanded-x p {
  margin: 0;
  color: #d1c7b5;
  font:
    600 8px JetBrains,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expanded-x__image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: grayscale(0.45) sepia(0.28) contrast(1.1) brightness(0.76);
}

.theme-expanded .panel-title small,
.theme-expanded .mock figcaption span {
  color: var(--cta);
}

.theme-expanded .proposal-mock::after {
  background: var(--cta);
}

.theme-expanded .proposal-mock small {
  color: var(--accent);
}

.theme-editorial .panel-mock {
  --accent: #2d6bff;
  --accent-deep: #174db8;
}

.theme-editorial .panel-body button {
  background: #174db8;
}

.decision-close {
  padding: 100px 0;
  color: #fff;
  background: var(--navy);
}

.decision-close__grid {
  display: grid;
  align-items: start;
  gap: 50px;
  grid-template-columns: 160px 1fr 0.65fr;
}

.decision-close p {
  color: #b8c7d9;
}

.decision-close [data-current-pick] {
  display: block;
  margin-top: 26px;
  color: var(--gold);
  font-size: 24px;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  padding: 13px 16px;
  border: 1px solid var(--gold);
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 45px rgba(0, 19, 48, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .intro__grid,
  .rules__grid,
  .decision-close__grid {
    grid-template-columns: 1fr;
  }

  .direction-head {
    grid-template-columns: 60px 1fr 210px;
  }

  .pick-button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

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

  .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .pick-state {
    min-width: 0;
    text-align: right;
  }

  .intro,
  .direction,
  .decision-close {
    padding: 72px 0;
  }

  .intro__grid {
    gap: 40px;
  }

  h1 {
    font-size: 60px;
  }

  .intro__brief > p {
    font-size: 17px;
  }

  .rules {
    padding: 60px 0;
  }

  .direction-head {
    grid-template-columns: 1fr;
  }

  .pick-button {
    width: 100%;
    grid-column: auto;
  }

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

  .mock--website {
    grid-column: auto;
  }

  .mock figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-mock {
    overflow-x: auto;
  }

  .panel-mock > * {
    min-width: 0;
  }

  .panel-mock {
    grid-template-columns: 110px minmax(520px, 1fr);
  }

  .panel-mock aside img {
    width: 72px;
  }

  .proposal-mock {
    min-height: 360px;
  }

  .editorial-web > header,
  .material-web > header,
  .expanded-web > header {
    grid-template-columns: 1fr auto;
  }

  .editorial-web nav,
  .material-web nav,
  .expanded-web nav {
    display: none;
  }

  .editorial-hero,
  .material-hero,
  .expanded-hero {
    grid-template-columns: 1fr;
  }

  .editorial-hero h3,
  .material-hero h3,
  .expanded-hero h3 {
    font-size: 54px;
  }

  .editorial-side {
    padding-top: 0;
  }

  .image-strip {
    gap: 8px;
  }

  .editorial-x,
  .material-x,
  .expanded-x {
    grid-template-columns: 1fr;
  }

  .x-images {
    display: none;
  }

  .material-x__image {
    height: 150px;
  }

  .expanded-x__image {
    height: 150px;
  }

  .expanded-band {
    gap: 12px;
    padding: 18px;
    grid-template-columns: 1fr;
  }
}

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