:root {
  --ink: #1c1a17;
  --ink-soft: #2d2924;
  --paper: #f4f1ea;
  --paper-deep: #dfd0b8;
  --clay: #c87a53;
  --teal: #8e8e93;
  --saffron: #c87a53;
  --berry: #6d5147;
  --white: #fffaf0;
  --line: rgba(21, 21, 21, 0.14);
  --shadow: 0 24px 80px rgba(21, 21, 21, 0.2);
  --header-height: 76px;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(242, 234, 219, 0.94), rgba(223, 208, 184, 0.86)),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px);
  background-size: 17px 19px, 23px 29px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  color: var(--white);
  transition:
    background 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(242, 234, 219, 0.88);
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
  backdrop-filter: blur(18px);
}

.test-page .site-header {
  color: var(--ink);
  background: rgba(242, 234, 219, 0.9);
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
  backdrop-filter: blur(18px);
}

.test-page .brand-mark {
  background-image: url("assets/logo-palettes/sade-mark.svg");
}

.test-page .site-nav .nav-cta {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-block;
  background: url("assets/logo-palettes/sade-mark-dark.svg") center / contain no-repeat;
}

.site-header.is-scrolled .brand-mark {
  background-image: url("assets/logo-palettes/sade-mark.svg");
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover {
  border-color: rgba(255, 250, 240, 0.36);
  transform: translateY(-1px);
}

.site-header.is-scrolled .site-nav a:hover {
  border-color: rgba(21, 21, 21, 0.18);
  background: rgba(255, 250, 240, 0.42);
}

.site-nav .nav-cta {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(255, 250, 240, 0.72);
}

.site-header.is-scrolled .site-nav .nav-cta {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px 36px 44px;
  color: var(--white);
  background: #171615;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(12, 13, 12, 0.92) 0%, rgba(12, 13, 12, 0.68) 34%, rgba(12, 13, 12, 0.14) 68%),
    linear-gradient(180deg, rgba(12, 13, 12, 0.16), rgba(12, 13, 12, 0.58)),
    url("assets/hero-atelier.jpg") center / cover no-repeat;
  transform: scale(1.04) translate3d(calc((50% - var(--mx)) / 38), calc((50% - var(--my)) / 44), 0);
  transition: transform 220ms ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: -2;
  background: linear-gradient(180deg, transparent, rgba(21, 21, 21, 0.84));
}

.hero-inner {
  width: min(760px, 100%);
  padding-bottom: 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: 6.8rem;
  line-height: 0.86;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 760;
  line-height: 1;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--saffron);
  border-color: var(--saffron);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 250, 240, 0.42);
}

.button.secondary:hover {
  background: rgba(255, 250, 240, 0.16);
}

.hero-dock {
  position: absolute;
  right: 36px;
  bottom: 38px;
  width: min(660px, calc(100% - 72px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255, 250, 240, 0.22);
  background: rgba(12, 13, 12, 0.26);
  backdrop-filter: blur(16px);
}

.hero-dock a {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.84rem;
  font-weight: 720;
  text-align: center;
  border-left: 1px solid rgba(255, 250, 240, 0.16);
  position: relative;
  overflow: hidden;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.hero-dock a::after {
  content: "↘";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--saffron);
  font-size: 0.78rem;
  opacity: 0;
  transform: translate(-6px, -4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-dock a:hover,
.hero-dock a:focus-visible {
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.hero-dock a:hover::after,
.hero-dock a:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.hero-dock a:first-child {
  border-left: 0;
}

.motion-strip {
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.marquee {
  overflow: hidden;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.88rem;
  font-weight: 780;
  text-transform: uppercase;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  min-width: 100vw;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: 42px;
  padding: 18px 0;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.marquee span::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--clay);
  transform: rotate(45deg);
}

.section {
  padding: 106px 36px;
  scroll-margin-top: var(--header-height);
}

.intro {
  background: var(--paper);
}

.split,
.section-heading,
.program-grid,
.flow-list,
.studio-content,
.contact-panel,
.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 72px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.6rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  overflow-wrap: anywhere;
}

.intro-copy {
  color: rgba(21, 21, 21, 0.72);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 18px;
}

.program-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.94), rgba(43, 42, 39, 0.98)),
    var(--ink);
}

.program-section h2,
.program-section h3 {
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 42px;
}

.section-heading h2 {
  width: min(720px, 100%);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  scroll-margin-top: calc(var(--header-height) + 24px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.03)),
    rgba(255, 250, 240, 0.02);
  position: relative;
  overflow: hidden;
}

.program-card:target {
  border-color: rgba(216, 161, 61, 0.74);
  box-shadow: 0 0 0 1px rgba(216, 161, 61, 0.2), 0 18px 70px rgba(216, 161, 61, 0.14);
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255, 250, 240, 0.12) 33% 34%, transparent 35%),
    linear-gradient(160deg, transparent 0 62%, rgba(36, 124, 117, 0.2) 63% 64%, transparent 65%);
  opacity: 0.82;
  transform: translateX(-18%);
  transition: transform 420ms ease;
}

.program-card:hover::before {
  transform: translateX(0);
}

.program-card.featured {
  background:
    linear-gradient(180deg, rgba(216, 161, 61, 0.22), rgba(185, 96, 76, 0.12)),
    rgba(255, 250, 240, 0.04);
}

.card-index {
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(255, 250, 240, 0.46);
  font-size: 0.82rem;
  font-weight: 820;
}

.program-card h3,
.program-card p {
  position: relative;
}

.program-card p {
  margin: 18px 0 0;
  color: rgba(255, 250, 240, 0.7);
}

.studio-band {
  min-height: 620px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.55)),
    url("assets/hero-atelier.jpg") center / cover fixed;
  position: relative;
  overflow: hidden;
}

.studio-band h2,
.studio-band p {
  color: var(--white);
}

.studio-content {
  width: min(720px, 100%);
  margin-left: max(36px, calc((100% - 1180px) / 2));
}

.studio-content p:not(.section-kicker) {
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 1.08rem;
}

.studio-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.studio-visual span {
  position: absolute;
  width: 360px;
  height: 1px;
  background: rgba(255, 250, 240, 0.24);
  transform-origin: left center;
  animation: drift 8s ease-in-out infinite;
}

.studio-visual span:nth-child(1) {
  top: 19%;
  left: 52%;
  transform: rotate(16deg);
}

.studio-visual span:nth-child(2) {
  top: 42%;
  right: 8%;
  background: rgba(216, 161, 61, 0.54);
  transform: rotate(-12deg);
  animation-delay: 1.4s;
}

.studio-visual span:nth-child(3) {
  bottom: 24%;
  left: 48%;
  background: rgba(185, 96, 76, 0.5);
  transform: rotate(4deg);
  animation-delay: 2.1s;
}

.studio-visual span:nth-child(4) {
  bottom: 15%;
  right: 20%;
  width: 220px;
  background: rgba(36, 124, 117, 0.48);
  transform: rotate(-24deg);
  animation-delay: 0.5s;
}

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

.flow-list {
  display: grid;
  gap: 1px;
  background: rgba(21, 21, 21, 0.12);
  border: 1px solid rgba(21, 21, 21, 0.12);
}

.flow-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
  background: rgba(255, 250, 240, 0.54);
}

.flow-item span {
  color: var(--teal);
  font-weight: 860;
}

.flow-item p {
  margin: 0;
  color: rgba(21, 21, 21, 0.72);
}

.color-test-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.64), rgba(223, 208, 184, 0.88)),
    var(--paper-deep);
}

.color-test-page {
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 46px);
}

.color-test-heading {
  align-items: start;
}

.test-page-title {
  width: min(780px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.color-test-lede {
  width: min(420px, 100%);
  margin: 0;
  color: rgba(21, 21, 21, 0.7);
  font-size: 1.02rem;
}

.color-test-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.7);
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 90px rgba(21, 21, 21, 0.12);
  overflow: hidden;
}

.test-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 28px;
  align-items: end;
  padding: 30px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
}

.test-mode {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0;
  text-transform: uppercase;
}

.test-topbar h3 {
  font-size: 2rem;
}

.test-topbar p:not(.test-mode) {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(21, 21, 21, 0.72);
}

.test-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.test-stats div,
.result-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
}

.test-stats span,
.result-grid span {
  color: var(--berry);
  font-size: 1.55rem;
  font-weight: 880;
  line-height: 1;
}

.test-stats small,
.result-grid small {
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.timer-bar {
  height: 8px;
  background: rgba(21, 21, 21, 0.12);
}

.timer-bar span {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--teal), var(--saffron), var(--clay));
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 120ms linear;
}

.test-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.96fr) minmax(320px, 0.82fr);
  min-height: 520px;
}

.palette-panel,
.target-panel {
  padding: 30px;
}

.target-panel {
  border-left: 1px solid rgba(21, 21, 21, 0.12);
  background:
    linear-gradient(135deg, rgba(36, 124, 117, 0.08), rgba(216, 161, 61, 0.06)),
    rgba(255, 255, 255, 0.24);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  color: rgba(21, 21, 21, 0.62);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--ink);
  font-size: 0.9rem;
  text-transform: none;
}

.wheel-wrap {
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 24px auto 26px;
  position: relative;
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(21, 21, 21, 0.14),
    0 18px 48px rgba(21, 21, 21, 0.12);
}

.color-wheel {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
}

.wheel-cursor {
  position: absolute;
  left: 80%;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(21, 21, 21, 0.6),
    0 8px 18px rgba(21, 21, 21, 0.22);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.brightness-control {
  display: grid;
  gap: 12px;
  color: rgba(21, 21, 21, 0.66);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.brightness-control input {
  width: 100%;
  accent-color: var(--teal);
}

.selected-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  font-weight: 820;
}

.selected-preview,
.answer-swatch {
  width: 64px;
  height: 64px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 8px;
  background: #bf6060;
}

.target-view {
  min-height: 360px;
  display: grid;
  place-items: stretch;
  margin-top: 24px;
}

.target-swatch {
  min-height: 360px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 21, 21, 0.08), rgba(255, 250, 240, 0.44)),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.mix-swatches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.mix-swatch {
  min-height: 300px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.mix-plus {
  align-self: center;
  color: var(--teal);
  font-size: 2rem;
  font-weight: 860;
}

.answer-reveal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  color: rgba(21, 21, 21, 0.76);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
  font-weight: 760;
}

.answer-reveal[hidden],
.mix-swatches[hidden],
.result-mail-form[hidden],
.result-panel[hidden] {
  display: none;
}

.test-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 30px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.color-test-shell .button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(21, 21, 21, 0.2);
}

.color-test-shell .button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 5px;
  min-height: 38px;
  padding: 0 30px 24px;
}

.score-strip span {
  height: 10px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.12);
}

.score-strip span.is-filled {
  background: linear-gradient(90deg, var(--teal), var(--saffron));
}

.result-panel {
  padding: 30px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.result-panel h3 {
  margin-bottom: 18px;
  font-size: 2rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.result-analysis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.result-analysis article {
  min-height: 180px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
}

.result-analysis h4 {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 860;
  text-transform: uppercase;
}

.result-analysis p,
.result-analysis ul {
  margin: 0;
  color: rgba(21, 21, 21, 0.72);
}

.result-analysis ul {
  padding-left: 18px;
}

.result-analysis li + li {
  margin-top: 8px;
}

.result-meta {
  margin: 18px 0 0;
  color: rgba(21, 21, 21, 0.72);
}

.result-mail-form {
  margin-top: 22px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.68);
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
}

.result-form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.result-form-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 860;
}

.result-form-heading p {
  width: min(430px, 100%);
  margin: 0;
  color: rgba(21, 21, 21, 0.68);
  font-size: 0.94rem;
}

.result-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-form-grid label {
  display: grid;
  gap: 7px;
  color: rgba(21, 21, 21, 0.7);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.result-form-grid input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  outline: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.result-form-grid input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(200, 122, 83, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 122, 83, 0.12);
}

.result-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

.result-form-status {
  flex: 1;
  min-height: 1.4em;
  margin: 0;
  color: rgba(21, 21, 21, 0.7);
  font-weight: 720;
}

.result-form-status[data-tone="success"] {
  color: #2f6f54;
}

.result-form-status[data-tone="error"] {
  color: #9b3d2d;
}

.next-tests {
  width: min(1180px, 100%);
  margin: 48px auto 0;
}

.compact-heading {
  align-items: start;
  margin-bottom: 24px;
}

.compact-heading h2 {
  font-size: 2.6rem;
}

.test-idea-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.test-idea-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 8px;
}

.test-idea-grid span {
  margin-bottom: auto;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 860;
}

.test-idea-grid h3 {
  font-size: 1.15rem;
}

.test-idea-grid p {
  margin: 12px 0 0;
  color: rgba(21, 21, 21, 0.7);
}

.contact-section {
  color: var(--white);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(216, 161, 61, 0.18), transparent 34%),
    linear-gradient(135deg, #1a1918, #332821 52%, #1f1d19);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.78fr);
  gap: 48px;
  align-items: start;
  padding: 0;
}

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

.contact-panel h2 {
  color: var(--white);
}

.contact-copy > p:not(.section-kicker) {
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 1.08rem;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  font-style: normal;
}

.contact-line {
  display: grid;
  gap: 7px;
  padding: 16px;
  color: var(--white);
  background: rgba(255, 250, 240, 0.07);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.contact-line:hover,
.contact-line:focus-visible {
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.contact-line span {
  color: var(--saffron);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-line strong {
  color: rgba(255, 250, 240, 0.88);
  font-size: 1rem;
  line-height: 1.35;
}

.contact-location {
  display: grid;
  gap: 12px;
}

.contact-photo,
.contact-map {
  width: 100%;
  display: block;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.contact-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.contact-map {
  min-height: 310px;
  background: rgba(255, 250, 240, 0.1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  color: rgba(255, 250, 240, 0.68);
  background: var(--ink);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
  max-width: 680px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.44;
  }
  50% {
    translate: 22px -12px;
    opacity: 0.82;
  }
}

@media (max-width: 1180px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid,
  .test-idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.4);
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 250, 240, 0.08);
    position: relative;
  }

  .site-header.is-scrolled .nav-toggle {
    border-color: rgba(21, 21, 21, 0.18);
    background: rgba(255, 250, 240, 0.5);
  }

  .nav-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 200ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:last-child {
    transform: translateY(4px);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 16px auto;
    display: grid;
    gap: 6px;
    padding: 14px;
    color: var(--ink);
    background: rgba(242, 234, 219, 0.96);
    border: 1px solid rgba(21, 21, 21, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav .nav-cta {
    justify-content: flex-start;
    color: var(--ink);
    background: transparent;
    border-color: rgba(21, 21, 21, 0.1);
  }

  .site-nav .nav-cta {
    color: var(--white);
    background: var(--ink);
  }

  .hero {
    min-height: 86svh;
    padding: 108px 22px 34px;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .hero-dock {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-dock a {
    min-height: 58px;
    border-top: 1px solid rgba(255, 250, 240, 0.16);
  }

  .hero-dock a:nth-child(1),
  .hero-dock a:nth-child(2) {
    border-top: 0;
  }

  .section {
    padding: 82px 22px;
  }

  .split,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading {
    display: grid;
    margin-bottom: 30px;
  }

  h2 {
    font-size: 2.7rem;
  }

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

  .program-card {
    min-height: 250px;
  }

  .studio-band {
    min-height: 540px;
    background-attachment: scroll;
  }

  .studio-content {
    margin: 0;
    padding: 0 22px;
  }

  .flow-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px;
  }

  .test-topbar,
  .test-stage,
  .result-grid,
  .result-analysis,
  .result-form-grid,
  .test-idea-grid {
    grid-template-columns: 1fr;
  }

  .test-page-title {
    font-size: 3rem;
  }

  .color-test-lede {
    width: min(620px, 100%);
  }

  .test-topbar {
    padding: 24px;
  }

  .palette-panel,
  .target-panel,
  .result-panel {
    padding: 24px;
  }

  .target-panel {
    border-left: 0;
    border-top: 1px solid rgba(21, 21, 21, 0.12);
  }

  .target-view,
  .target-swatch {
    min-height: 300px;
  }

  .result-analysis article,
  .test-idea-grid article {
    min-height: auto;
  }

  .result-form-heading,
  .result-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mix-swatch {
    min-height: 230px;
  }

  .test-actions {
    padding: 22px 24px;
  }

  .score-strip {
    padding: 0 24px 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }
}

@media (max-width: 560px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(12, 13, 12, 0.92), rgba(12, 13, 12, 0.5)),
      linear-gradient(180deg, rgba(12, 13, 12, 0.1), rgba(12, 13, 12, 0.7)),
      url("assets/hero-atelier.jpg") 60% center / cover no-repeat;
  }

  .hero h1 {
    font-size: 3.4rem;
    line-height: 0.94;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-dock {
    grid-template-columns: 1fr;
  }

  .hero-dock a {
    border-left: 0;
  }

  .hero-dock a:nth-child(2) {
    border-top: 1px solid rgba(255, 250, 240, 0.16);
  }

  h2 {
    font-size: 2.1rem;
    line-height: 1.04;
  }

  .test-page-title,
  .compact-heading h2 {
    font-size: 2.1rem;
    line-height: 1.04;
  }

  .color-test-page {
    padding-top: calc(var(--header-height) + 28px);
  }

  .section {
    padding: 68px 18px;
  }

  .test-topbar {
    gap: 20px;
    padding: 20px;
  }

  .test-topbar h3,
  .result-panel h3 {
    font-size: 1.45rem;
  }

  .test-stats {
    grid-template-columns: 1fr;
  }

  .palette-panel,
  .target-panel,
  .result-panel {
    padding: 20px;
  }

  .target-view,
  .target-swatch {
    min-height: 240px;
  }

  .mix-swatches {
    grid-template-columns: 1fr;
  }

  .mix-plus {
    min-height: 34px;
    display: grid;
    place-items: center;
  }

  .mix-swatch {
    min-height: 150px;
  }

  .answer-reveal,
  .selected-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .result-mail-form {
    padding: 18px;
  }

  .result-form-heading {
    gap: 8px;
  }

  .result-form-actions {
    gap: 10px;
  }

  .score-strip {
    gap: 4px;
    padding: 0 20px 20px;
  }

  .site-header {
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
