/*
  Dremlo site styles.
  One stylesheet for every page. The "Find your next move" tool has its own
  file (find-your-next-move.css). Sections, top to bottom:
  tokens, base, type, buttons, header, layout, home, inner pages, footer, motion.
*/

/* ---------- Tokens ---------- */
:root {
  --cream: #f7f1e9;
  --cream-deep: #efe4d6;
  --paper: #fffaf4;
  --plum: #351b32;
  --plum-soft: #4a2945;
  --plum-deep: #2a1427;
  --coral: #f36c62;
  --coral-deep: #e65d4a;
  --coral-ink: #b8402f;   /* coral that passes AA as small text on cream */
  --peach: #f7c6b8;
  --lavender: #cbb7d9;
  --lavender-soft: #ebdee8;

  --text: var(--plum);
  --muted: rgba(53, 27, 50, .74);
  --line: rgba(53, 27, 50, .14);
  --line-strong: rgba(53, 27, 50, .3);
  --on-dark: #f7f1e9;
  --on-dark-muted: rgba(247, 241, 233, .74);
  --on-dark-line: rgba(247, 241, 233, .16);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --section: clamp(84px, 11vw, 156px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -32px rgba(53, 27, 50, .38);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--cream);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Paper grain over everything. Static, so it costs nothing after first paint. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; }
::selection { background: var(--coral); color: var(--plum); }
[hidden] { display: none !important; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--plum); color: var(--paper); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* The animated dot field background. site.js inserts the page canvas. */
.dotfield { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.dotfield--page {
  position: fixed;
  z-index: -1;
  /* Full strength at the edges, quieter behind the reading column. */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 28%, rgba(0, 0, 0, .38) 55%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 28%, rgba(0, 0, 0, .38) 55%, #000 100%);
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
:is(h1, h2, h3) em { font-style: italic; color: var(--coral-deep); }
.band--plum :is(h1, h2, h3) em,
.site-footer :is(h1, h2, h3) em { color: var(--coral); }

.display { font-size: clamp(3.2rem, 7.2vw, 7.4rem); line-height: .95; letter-spacing: -.04em; }
.h1 { font-size: clamp(3rem, 6.8vw, 6.6rem); line-height: .97; letter-spacing: -.035em; }
.h2 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.01; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.32rem, 1.75vw, 1.62rem); line-height: 1.18; letter-spacing: -.012em; }
.lead { font-size: clamp(1.13rem, 1.45vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.band--plum .lead { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font: 700 .75rem/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }
.band--plum .eyebrow, .site-footer .eyebrow { color: var(--coral); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: var(--lavender-soft);
  font: 700 .72rem/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plum);
  white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral-deep); }

/* Hand-drawn underline for the italic half of page titles. */
.scribble em {
  padding-bottom: .06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5c48-5.5 96-7 151-4.4 55 2.6 92 4.4 140 1.8 39-2.1 72-3.6 103-1.6' fill='none' stroke='%23f36c62' stroke-width='3.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 100% .2em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons and links ---------- */
.btn {
  --bg: var(--plum);
  --fg: var(--paper);
  --icon-bg: var(--coral);
  --icon-fg: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 700 1rem/1.1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:has(.btn__icon) { padding-right: 9px; }
.btn:hover { --bg: var(--plum-soft); }
.btn:active { transform: translateY(1px); }
.btn__icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
}
.btn__icon svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .btn__icon svg { transform: rotate(45deg); }
.btn--small { min-height: 46px; padding-left: 20px; font-size: .92rem; }
.btn--small .btn__icon { width: 32px; height: 32px; }
.btn--small .btn__icon svg { width: 16px; height: 16px; }
.btn--ghost { --bg: transparent; --fg: var(--plum); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--plum); --fg: var(--paper); border-color: var(--plum); }
.btn--coral { --bg: var(--coral); --fg: var(--plum); --icon-bg: var(--plum); --icon-fg: var(--coral); }
.btn--coral:hover { --bg: #f7887f; }
.btn--light { --bg: var(--cream); --fg: var(--plum); }
.btn--light:hover { --bg: var(--paper); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--plum);
  text-decoration: none;
  background: linear-gradient(var(--coral-deep), var(--coral-deep)) 0 calc(100% - 8px) / 100% 1.5px no-repeat;
  transition: background-size .35s var(--ease);
}
.link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position-x: 100%; }
.link:hover svg { transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled,
.site-header:has(.menu[open]) {
  background: rgba(247, 241, 233, .86);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand {
  font: 700 1.95rem/1 var(--serif);
  letter-spacing: -.055em;
  color: var(--plum);
  text-decoration: none;
  padding: 8px 0;
}
.brand span { color: var(--coral-deep); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: .95rem;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 9px;
  height: 1.5px;
  background: var(--coral-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:focus-visible { border-radius: 999px; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 14px; }

.menu { display: none; margin-left: auto; }
.menu__toggle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__icon { grid-area: 1 / 1; display: grid; }
.menu__icon svg { width: 22px; height: 22px; }
.menu__icon--close, .menu[open] .menu__icon--open { display: none; }
.menu[open] .menu__icon--close { display: grid; }
.menu__panel {
  position: fixed;
  left: 12px; right: 12px;
  top: calc(var(--header-h) + 4px);
  display: flex;
  flex-direction: column;
  padding: 10px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: menu-in .35s var(--ease);
}
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font: 1.55rem/1.1 var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
}
.menu__link[aria-current="page"] { color: var(--coral-ink); font-style: italic; }
.menu__cta { margin-top: 20px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--flush-top { padding-top: 0; }
.band { background: var(--cream-deep); }
.band--lavender { background: var(--lavender-soft); }
.band--plum { background: var(--plum); color: var(--on-dark); }
.band--paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 22px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 84px);
}
.section-head > .eyebrow { grid-column: 1 / -1; }
.section-head > h2 { grid-column: 1 / span 7; }
.section-head__aside { grid-column: 9 / -1; color: var(--muted); padding-bottom: .4em; }
@media (max-width: 860px) {
  .section-head > h2, .section-head__aside { grid-column: 1 / -1; }
}

/* ---------- Home: hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 100px)) 0 clamp(56px, 7vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.hero__title { margin: 26px 0 0; }
.hero__lead { max-width: 33rem; margin-top: clamp(24px, 3vw, 36px); }
.hero .actions { margin-top: clamp(28px, 3.4vw, 42px); }

.hero__art { position: relative; width: 100%; max-width: 500px; justify-self: end; aspect-ratio: 5 / 6.4; }
.hero__sun {
  position: absolute; right: -4%; top: 2%;
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: var(--coral);
}
.hero__moon {
  position: absolute; left: -6%; bottom: 14%;
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lavender);
}
.hero__arch {
  position: absolute; inset: 7% 9% 0 8%;
  overflow: hidden;
  border-radius: 999px 999px 26px 26px;
  background: var(--peach);
  box-shadow: var(--shadow);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero__rays { position: absolute; left: -9%; top: -1%; width: 26%; color: var(--coral-deep); animation: spin 60s linear infinite; }
.hero__loop { position: absolute; right: -7%; bottom: 20%; width: 21%; color: var(--coral-deep); }
.hero__note {
  position: absolute; left: -12%; bottom: 5%;
  padding: 16px 22px 18px;
  background: var(--paper);
  font: italic 1.4rem/1.12 var(--serif);
  color: var(--plum);
  transform: rotate(-5deg);
  box-shadow: 0 18px 34px -18px rgba(53, 27, 50, .45);
}
.hero__note::before {
  content: "";
  position: absolute; left: 50%; top: -11px;
  width: 64px; height: 22px;
  background: rgba(203, 183, 217, .72);
  transform: translateX(-50%) rotate(3deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 380px; margin: 12px auto 0; }
  .hero__note { left: -4%; font-size: 1.2rem; }
  .hero__rays { left: -2%; }
  .hero__loop { right: -2%; }
}

/* Ticker of disciplines under the hero */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(16px, 2vw, 24px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__group li {
  display: flex;
  align-items: center;
  font: italic clamp(1.45rem, 2.6vw, 2.35rem)/1.1 var(--serif);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ticker__group li::after {
  content: "";
  width: .26em; height: .26em;
  margin: .32em clamp(22px, 3vw, 44px) 0;
  border-radius: 50%;
  background: var(--coral-deep);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Home: statement ---------- */
.statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.statement > .eyebrow { grid-column: 1 / -1; margin-bottom: 30px; }
.statement__title {
  grid-column: 1 / span 11;
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.statement__body { grid-column: 6 / span 6; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 14px; }
.statement__body p:last-child { color: var(--muted); }
@media (max-width: 860px) {
  .statement__title, .statement__body { grid-column: 1 / -1; }
}

/* ---------- Home: challenges ---------- */
.challenges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}
.challenge {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 18px;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line-strong);
}
.challenge__no { grid-row: span 2; font: italic 1.05rem/1.9 var(--serif); color: var(--coral-ink); }
.challenge p { margin-top: 12px; color: var(--muted); max-width: 30rem; }
@media (max-width: 860px) {
  .challenges { grid-template-columns: 1fr; }
  .challenge { grid-template-columns: 42px 1fr; }
}

/* ---------- Home: next move teaser ---------- */
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.teaser__copy .h2 { margin: 22px 0 24px; }
.teaser__steps { margin-top: 34px; counter-reset: step; border-top: 1px solid var(--line-strong); }
.teaser__steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
  font: 1.2rem/1.3 var(--serif);
}
.teaser__steps li::before { content: "0" counter(step); font: italic .95rem/1 var(--serif); color: var(--coral-ink); width: 26px; }
.teaser__note { margin-top: 22px; font-size: .95rem; color: var(--muted); }

.q-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.q-card__top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.q-card__track { width: 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.q-card__track span { display: block; width: 33.3%; height: 100%; background: var(--coral-deep); border-radius: inherit; }
.q-card__title { margin: 22px 0 22px; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; }
.q-card__options { display: grid; gap: 8px; }
.q-option {
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  font-size: .97rem;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.q-option__no { font: italic .95rem/1 var(--serif); color: var(--coral-ink); }
.q-option svg { width: 18px; height: 18px; opacity: .35; transition: opacity .25s, transform .3s var(--ease); }
.q-option:hover { border-color: var(--plum); background: var(--paper); transform: translateX(4px); }
.q-option:hover svg { opacity: 1; transform: translateX(2px); }
.q-card__foot { margin-top: 18px; font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) {
  .teaser { grid-template-columns: 1fr; }
  .q-card { transform: none; }
}
@media (max-width: 480px) {
  .q-card__track { width: 64px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Process steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.steps::before, .steps::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 28px;
  height: 1px;
  background: var(--line-strong);
}
.steps::after { height: 2px; top: 27.5px; background: var(--coral-deep); transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform 1.6s var(--ease) .2s; }
.js .steps[data-reveal]:not(.is-in)::after { --progress: 0; }
.step { position: relative; }
.step__no {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  font: italic 1.15rem/1 var(--serif);
  color: var(--coral-ink);
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before, .steps::after { left: 28px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { width: 2px; left: 27.5px; transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; }
  .step__no { grid-row: span 2; margin: 0; }
  .step h3 { margin: 12px 0 8px; }
}

/* ---------- Home: human spark ---------- */
.spark {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.spark__media { position: relative; }
.spark__media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }
.spark__badge {
  position: absolute; right: -28px; bottom: -34px;
  width: clamp(120px, 13vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--plum);
  font: italic clamp(1.7rem, 2.3vw, 2.3rem)/1 var(--serif);
  letter-spacing: -.03em;
  transform: rotate(-10deg);
}
.spark__copy .h2 { margin: 22px 0 26px; }
.spark__copy > p:last-child { margin-top: 18px; color: var(--on-dark-muted); }
@media (max-width: 860px) {
  .spark { grid-template-columns: 1fr; }
  .spark__badge { right: 8px; bottom: -30px; }
}

/* ---------- Home: results ---------- */
.results {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.results__media { position: sticky; top: calc(var(--header-h) + 32px); }
.results__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.results__media figcaption { margin-top: 14px; font: italic 1rem/1.4 var(--serif); color: var(--muted); }
.results__copy .h2 { margin: 22px 0 24px; }
.result-list { margin-top: clamp(32px, 4vw, 52px); }
.result {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line-strong);
}
.result:last-child { border-bottom: 1px solid var(--line-strong); }
.result__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lavender-soft);
}
.result:nth-child(2) .result__icon { background: var(--peach); }
.result__icon svg { width: 22px; height: 22px; }
.result h3 { margin-bottom: 8px; }
.result p { color: var(--muted); }
@media (max-width: 860px) {
  .results { grid-template-columns: 1fr; }
  .results__media { position: static; }
  .results__media img { aspect-ratio: 3 / 2; }
}

/* ---------- Home: notebook and resource ---------- */
.notebook {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}
.notebook__media { grid-row: span 2; }
.notebook__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.note__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: auto; padding-bottom: 18px;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.note p:last-child { color: var(--muted); }
@media (max-width: 860px) {
  .notebook { grid-template-columns: 1fr; }
  .notebook__media { grid-row: auto; }
  .notebook__media img { aspect-ratio: 3 / 2; min-height: 0; }
}

.resource {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(32px, 6vw, 88px);
  border-radius: 34px;
  background: var(--cream-deep);
  overflow: hidden;
}
.resource .h2 { margin: 22px 0 24px; }
.resource__status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; font-size: .95rem; color: var(--muted); }

.sheet-stack { position: relative; width: min(100%, 380px); justify-self: center; aspect-ratio: 3 / 3.7; }
.sheet {
  position: absolute; inset: 0;
  padding: 34px 30px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.sheet--back { background: var(--lavender); transform: rotate(-5deg) translate(-12px, 10px); box-shadow: none; }
.sheet__title { font: 1.55rem/1.1 var(--serif); letter-spacing: -.02em; padding-bottom: 22px; border-bottom: 2px solid var(--plum); }
.sheet__rows { margin-top: 10px; }
.sheet__rows li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line-strong); }
.sheet__rows span {
  width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--plum); border-radius: 6px;
}
.sheet__rows .is-done span {
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23351b32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--coral);
}
.sheet__rows i { display: block; width: var(--w); height: 7px; border-radius: 4px; background: rgba(53, 27, 50, .13); }
@media (max-width: 860px) {
  .resource { grid-template-columns: 1fr; }
  .sheet-stack { width: min(86%, 340px); margin-top: 8px; }
}

/* ---------- Inner pages: hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 150px)) 0 clamp(64px, 8vw, 116px); }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.page-hero__grid > .eyebrow { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 36px); }
.page-hero__grid > h1 { grid-column: 1 / span 11; }
.page-hero__grid > .lead { grid-column: 7 / -1; margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 860px) {
  .page-hero__grid > h1, .page-hero__grid > .lead { grid-column: 1 / -1; }
}

/* Two-column intro + body, used on several inner pages */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
}
.split .h2 { margin-top: 22px; }
.split__body { display: grid; gap: 18px; }
.band--plum .split__body p { color: var(--on-dark-muted); }
.band--plum .split__body p:first-child { color: var(--on-dark); font-size: clamp(1.13rem, 1.45vw, 1.32rem); line-height: 1.55; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- What we do: bento of challenges ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  border: 1px solid var(--line);
}
.tile__no { margin-bottom: auto; padding-bottom: 28px; font: italic 1rem/1.2 var(--serif); color: var(--coral-ink); }
.tile h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.14; }
.tile p { color: var(--muted); max-width: 30rem; }
.tile--lavender { background: var(--lavender-soft); border-color: transparent; }
.tile--peach { background: var(--peach); border-color: transparent; }
.tile--plum { background: var(--plum); border-color: transparent; color: var(--on-dark); }
.tile--plum .tile__no { color: var(--coral); }
.tile--plum p { color: var(--on-dark-muted); }
.tile--photo { color: var(--on-dark); border: 0; background: var(--plum); }
.tile--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 20, 39, .62) 0%, rgba(42, 20, 39, .08) 34%, rgba(42, 20, 39, .2) 52%, rgba(42, 20, 39, .9) 100%); }
.t6 img { object-position: 40% 80%; }
.tile--photo .tile__no { color: var(--on-dark); }
.tile--photo p { color: rgba(247, 241, 233, .86); }
.t1 { grid-column: 1 / span 7; grid-row: span 2; min-height: 540px; }
.t1 h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); max-width: 22ch; }
.t2, .t3 { grid-column: 8 / -1; }
.t4, .t5 { grid-column: span 4; }
.t6 { grid-column: 9 / -1; grid-row: span 2; }
.t7 { grid-column: 1 / span 8; }
@media (max-width: 960px) {
  .bento { grid-auto-rows: auto; }
  .tile { min-height: 230px; }
  .t1, .t2, .t3, .t4, .t5, .t6, .t7 { grid-column: 1 / -1; grid-row: auto; }
  .t1 { min-height: 480px; }
  .t6 { min-height: 420px; }
}

.after-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.after-bento p { max-width: 40rem; font: 1.3rem/1.4 var(--serif); }
@media (max-width: 760px) { .after-bento { grid-template-columns: 1fr; } }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 28px;
  background: var(--plum);
  color: var(--on-dark);
}
.callout__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--plum); }
.callout__icon svg { width: 28px; height: 28px; }
.callout h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 8px; }
.callout p { color: var(--on-dark-muted); }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Three connected items (disciplines, outcomes) ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.trio__item { position: relative; padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 44px) 0; }
.trio__item:first-child { padding-left: 0; }
.trio__item + .trio__item { border-left: 1px solid var(--line-strong); }
.trio--connected .trio__item + .trio__item::before {
  content: "+";
  position: absolute; left: -17px; top: -17px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  font: 1.4rem/1 var(--sans);
  color: var(--plum);
}
.trio__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
}
.trio__icon svg { width: 28px; height: 28px; }
.trio__label { display: block; margin-bottom: 12px; font: italic 1rem/1.2 var(--serif); color: var(--coral-ink); }
.trio__big { display: block; margin-bottom: 26px; font: italic clamp(3rem, 5vw, 4.6rem)/.9 var(--serif); color: var(--coral-deep); letter-spacing: -.04em; }
.trio h3 { margin-bottom: 12px; }
.trio p { color: var(--muted); }
@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; border-top: 0; }
  .trio__item, .trio__item:first-child { padding: 32px 0; border-top: 1px solid var(--line-strong); }
  .trio__item + .trio__item { border-left: 0; }
  .trio--connected .trio__item + .trio__item::before { left: 0; }
}

/* ---------- Our work: proof note ---------- */
.proof {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(32px, 5vw, 72px);
  border: 1.5px dashed var(--line-strong);
  border-radius: 34px;
}
.proof .h2 { margin-top: 20px; }
.proof__body { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

/* ---------- About: image + text ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
.feature img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); }
.feature .h2 { margin: 22px 0 26px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature img { aspect-ratio: 1; }
}

/* ---------- Articles / Resources: in preparation ---------- */
.empty {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
}
.empty__copy { display: grid; gap: 20px; justify-items: start; align-content: start; }
.empty__copy .h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.empty__copy p { color: var(--muted); max-width: 36rem; }
.empty__topics { padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--line); }
.empty__topics .footer-label { color: var(--muted); }
.topic-list li { padding: 15px 0; border-bottom: 1px solid var(--line); font: 1.3rem/1.25 var(--serif); letter-spacing: -.01em; }
.topic-list li:first-child { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .empty { grid-template-columns: 1fr; }
  .empty__topics { padding-left: 0; border-left: 0; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact__intro .h2 { margin: 22px 0 24px; }
.contact-steps { margin-top: clamp(32px, 4vw, 52px); counter-reset: c; }
.contact-steps li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.contact-steps li::before { content: "0" counter(c); grid-row: span 2; font: italic 1rem/1.6 var(--serif); color: var(--coral-ink); }
.contact-steps strong { font: 1.25rem/1.3 var(--serif); font-weight: 400; }
.contact-steps span { color: var(--muted); margin-top: 4px; }

.form-card {
  position: relative;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-card__title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 18px 0 10px; }
.form-card__sub { color: var(--muted); margin-bottom: 30px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 190px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--plum); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); background: #fff; box-shadow: 0 0 0 4px rgba(243, 108, 98, .3); }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: .9rem; color: var(--muted); text-align: center; }
.dm-next-carry {
  display: grid;
  gap: 4px;
  margin-bottom: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--coral-deep);
  border-radius: 0 12px 12px 0;
  background: var(--lavender-soft);
  font-size: .95rem;
}
.dm-next-carry strong { font: 1.1rem/1.3 var(--serif); font-weight: 400; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Legal drafts ---------- */
.legal { max-width: 820px; }
.legal .h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin: 26px 0 30px; }
.legal__topics { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.legal__topics li { padding: 18px 0; border-bottom: 1px solid var(--line-strong); font: 1.25rem/1.35 var(--serif); }
.legal .tag { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--plum);
  color: var(--on-dark);
}
.site-footer .dotfield { z-index: -1; }
.site-footer__inner { padding-top: clamp(84px, 10vw, 144px); }
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(64px, 8vw, 112px);
  margin-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--on-dark-line);
}
.footer-cta__title { margin-top: 24px; font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: .97; letter-spacing: -.04em; }
.footer-cta__side { display: grid; gap: 26px; justify-items: start; }
.footer-cta__side p { color: var(--on-dark-muted); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-label { margin-bottom: 14px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 241, 233, .56); }
.footer-about p:not(.footer-label) { max-width: 22rem; color: var(--on-dark-muted); }
.footer-about .footer-small { margin-top: 14px; font: italic 1.05rem/1.4 var(--serif); color: var(--on-dark); }
.footer-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: fit-content;
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(var(--coral), var(--coral)) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.footer-link:hover { color: var(--coral); background-size: 100% 1px; }
.footer-wordmark {
  margin: clamp(48px, 7vw, 96px) 0 0 -.04em;
  font: 700 clamp(5.4rem, 24.5vw, 23rem)/.74 var(--serif);
  letter-spacing: -.07em;
  color: var(--plum-soft);
  white-space: nowrap;
  user-select: none;
}
.footer-wordmark span { color: var(--coral); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--on-dark-line);
  font-size: .88rem;
  color: rgba(247, 241, 233, .62);
}
@media (max-width: 960px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 340px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .empty, .resource, .proof { padding: 26px 22px; border-radius: 26px; }
  .footer-link { min-height: 44px; }
}

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Headlines rise out of a mask rather than fading. */
.js [data-reveal="rise"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: translateY(.35em);
  transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="rise"].is-in { clip-path: inset(-.2em -.2em -.35em -.2em); transform: none; }
.js .scribble em { background-size: 0 .2em; transition: background-size 1.1s var(--ease) .5s; }
.js .scribble.is-in em { background-size: 100% .2em; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .ticker__track { animation: none; }
  .q-option:hover { transform: none; }
}

@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .dotfield, .site-header, .ticker, body::after { display: none !important; }
}

/* ---------- Phones: stack everything ----------
   Below 600px nothing sits beside its number or icon: each item reads
   top to bottom at full width, and actions span the screen. */
@media (max-width: 600px) {
  :root { --section: 76px; }
  .eyebrow { letter-spacing: .14em; }
  .eyebrow::before { width: 16px; }

  /* Lists that put a number or icon in a side column */
  .challenge, .result, .contact-steps li { grid-template-columns: 1fr; }
  .challenge { padding: 26px 0 30px; }
  .challenge__no, .contact-steps li::before { grid-row: auto; margin-bottom: 10px; line-height: 1; }
  .challenge p { margin-top: 10px; }
  .result { gap: 16px; padding: 26px 0; }
  .result__icon { width: 46px; height: 46px; }
  .contact-steps li { padding: 20px 0; }

  .steps { gap: 0; }
  .steps::before, .steps::after { display: none; }
  .step { display: block; padding: 26px 0 30px; border-top: 1px solid var(--line-strong); }
  .step:last-child { border-bottom: 1px solid var(--line-strong); }
  .step__no { width: 48px; height: 48px; margin: 0 0 18px; }
  .step h3 { margin: 0 0 8px; }

  .teaser__steps li { gap: 14px; }

  /* Question card: label above a full-width progress bar, options at full width */
  .q-card { padding: 22px 18px; border-radius: 22px; }
  .q-card__top { flex-direction: column; align-items: stretch; gap: 12px; }
  .q-card__track { width: 100%; }
  .q-card__title { margin: 18px 0; }
  .q-option { grid-template-columns: 1fr 18px; padding: 14px 16px; }
  .q-option__no { display: none; }

  /* Meta rows */
  .note__meta, .resource__status { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Actions span the screen */
  main .btn, .footer-cta .btn { width: 100%; }
  .callout { text-align: left; }

  /* Footer: one column of links, generous targets */
  .footer-cta { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 34px; padding: 0 0 40px; }
  .footer-label { margin-bottom: 6px; }
  .footer-link { min-height: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Hero and resource illustrations stay inside the screen and their card */
  .hero__note { left: 0; }
  .sheet-stack { width: 84%; margin: 4px auto 18px; aspect-ratio: auto; }
  .sheet:not(.sheet--back) { position: relative; padding: 26px 22px 20px; }
  .sheet__title { font-size: 1.3rem; padding-bottom: 16px; }
  .sheet__rows li { padding: 12px 0; }
}

/* Smallest phones: keep full-width button labels on one line */
@media (max-width: 380px) {
  main .btn { gap: 10px; padding: 0 20px; font-size: .95rem; }
  main .btn .btn__icon { display: none; }
}
