/* The Growing Analyst
   ------------------------------------------------------------------
   The idea: warm paper, navy ink, big soft-cornered panels and a few
   hand-drawn marks. Cobalt for things you can act on, marker orange for
   small headings. Section labels are dark pills. Bricolage Grotesque
   for display, Inter for reading, JetBrains Mono only inside the
   dashboard mock, the layout tool and code.

   Light by default. Dark mode only when the reader asks for it with the
   masthead toggle (data-theme="dark" on <html>).

   Motion: the hero rises in and its wave draws on load, sections rise in
   as they scroll into view and the dashboard teaser rearranges itself.
   All of it is switched off under prefers-reduced-motion. */

/* ---------------------------------------------------------------- tokens */

:root {
  --paper:       #fbfaf6;
  --paper-2:     #f2efe6;
  --surface:     #ffffff;
  --ink:         #14213a;
  --ink-soft:    #5b6577;
  --line:        #e6e2d8;
  --line-strong: #d2ccbe;
  --grid:        rgba(20, 33, 58, 0.055);

  --accent:      #2546d1;
  --accent-deep: #1b35a6;
  --accent-soft: rgba(37, 70, 209, 0.08);
  --accent-tint: #e4e9fb;
  --accent-wave: #d5dcf8;
  --on-accent:   #ffffff;

  --marker:      #ff6a2b;
  --marker-soft: rgba(255, 106, 43, 0.22);

  --night:       #0f1830;

  --shadow:      0 1px 2px rgba(20, 33, 58, 0.05), 0 12px 32px -14px rgba(20, 33, 58, 0.22);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --t-xs:  0.8rem;
  --t-sm:  0.9rem;
  --t-md:  1.0625rem;
  --t-lg:  1.2rem;
  --t-xl:  clamp(1.55rem, 1.25rem + 1.1vw, 2.05rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
  --t-3xl: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);

  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3.5rem;
  --s-6: 6rem;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 24px;

  --ease:    cubic-bezier(0.2, 0.75, 0.2, 1);
  --measure: 40rem;
  --shell:   74rem;
  --gutter:  clamp(1rem, 4vw, 2.5rem);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper:       #17171a;
  --paper-2:     #1e1e22;
  --surface:     #222226;
  --ink:         #ecebe7;
  --ink-soft:    #a4a39e;
  --line:        #313137;
  --line-strong: #45454d;
  --grid:        rgba(236, 235, 231, 0.045);
  --accent:      #8fa5ff;
  --accent-deep: #b3c2ff;
  --accent-soft: rgba(143, 165, 255, 0.12);
  --accent-tint: #23263a;
  --accent-wave: #262b45;
  --on-accent:   #17171a;
  --marker:      #ff8a5c;
  --marker-soft: rgba(255, 138, 92, 0.28);
  --night:       #0c1226;
  --shadow:      0 0 0 1px rgba(236, 235, 231, 0.04);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 var(--s-3); }

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent); }

::selection { background: var(--marker-soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  z-index: 50;
}

.skip:focus { left: var(--s-2); top: var(--s-2); }

/* A small mono label. Used inside the layout tool. */
.kicker {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--marker);
  margin: 0 0 var(--s-2);
  letter-spacing: 0.01em;
}

/* The dark pill that names a section, above its heading. */
.label,
.pagehead__kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: var(--t-sm);
  line-height: 1.6;
  margin: 0 0 var(--s-3);
}

.label--light { background: #fff; color: #14213a; }

.textlink { font-weight: 500; text-underline-offset: 0.25em; }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--accent);
}

.button:active { transform: translateY(0); }

.button--lg { padding: 1rem 1.4rem; font-size: var(--t-md); }

.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }

.button--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: none; }

/* White, for use on the dark panel. */
.button--invert { background: #fff; color: #14213a; border-color: #fff; box-shadow: none; }

.button--invert:hover { background: #e4e9fb; border-color: #e4e9fb; color: #14213a; box-shadow: none; }

.button--sm { padding: 0.6rem 0.95rem; font-size: var(--t-xs); border-radius: 10px; }

.button .icon { width: 1.05rem; height: 1.05rem; }

.button__arrow { display: inline-flex; transition: transform 0.25s var(--ease); }

.button:hover .button__arrow,
.link-arrow:hover .button__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  color: var(--accent);
}

.link-arrow .icon { width: 1rem; height: 1rem; }

/* ---------------------------------------------------------------- masthead */

.masthead-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  flex-wrap: wrap;
  padding-block: 1.1rem;
}

/* The wordmark, in two tones. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: inherit; }

.brand__name span { font-weight: 500; color: var(--ink-soft); }

/* The logo: a G holding a bar chart, with a sprout. It tips on hover. */
.brand__logo {
  width: 2.25rem;
  height: 2.25rem;
  margin-block: -0.3rem;
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav a { text-decoration: none; color: var(--ink-soft); }

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.masthead__end { display: flex; align-items: center; gap: 0.6rem; }

.pill-outline {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.pill-outline:hover { background: var(--ink); color: var(--paper); }

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.4s var(--ease);
}

.theme-toggle:hover { color: var(--ink); border-color: var(--ink); transform: rotate(-15deg); }

.theme-toggle .icon { width: 1.05rem; height: 1.05rem; }

.theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

/* On a phone the links become one soft bar under the wordmark, each
   link an equal third, and everything in the top row tightens up. */
@media (max-width: 46rem) {
  .masthead { padding-block: 0.75rem; gap: 0.65rem var(--s-2); }
  .brand { font-size: 1.05rem; gap: 0.45rem; }
  .brand__logo { width: 1.9rem; height: 1.9rem; }
  .masthead__end { gap: 0.45rem; }
  .theme-toggle { width: 2.1rem; height: 2.1rem; }
  .pill-outline { padding: 0.35rem 0.9rem; font-size: 0.9rem; }

  .nav {
    order: 3;
    width: 100%;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--paper-2);
    border: 1px solid var(--line);
  }

  .nav a {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 2px rgba(20, 33, 58, 0.08); }
}

/* Small phones: a little tighter still. */
@media (max-width: 25rem) {
  .brand { font-size: 0.95rem; gap: 0.4rem; }
  .brand__logo { width: 1.7rem; height: 1.7rem; }
  .theme-toggle { width: 1.9rem; height: 1.9rem; }
  .pill-outline { padding: 0.3rem 0.7rem; font-size: 0.85rem; }
}

/* ---------------------------------------------------------------- hero */

/* Words on the left, the photo on the right. The four tools I work in
   are drawn around the photo and drift slowly. */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* One fat, soft wave across the bottom of the hero, drawn on load. */
.hero__wave {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 40%;
  z-index: -1;
  pointer-events: none;
}

.hero__wave path {
  fill: none;
  stroke: var(--accent-wave);
  stroke-width: 34;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s 0.2s var(--ease) forwards;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s-5);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  animation: rise 0.9s var(--ease) both;
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--marker);
}

.hero__title {
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.5rem);
  max-width: 13ch;
  animation: rise 0.9s 0.05s var(--ease) both;
}

.hero__sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 35rem;
  margin: 1.5rem 0 2.25rem;
  animation: rise 0.9s 0.15s var(--ease) both;
}

.hero__actions {
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  animation: rise 0.9s 0.25s var(--ease) both;
}

/* The photo, with an offset outline in marker orange behind it. */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  animation: rise 1s 0.2s var(--ease) both;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--marker);
  border-radius: 28px;
  translate: 14px 14px;
  z-index: -1;
}

.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  left: -1.75rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: var(--t-xs);
  line-height: 1.3;
  color: var(--ink-soft);
}

.hero__badge strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* Each doodle drifts on a slow loop of its own; --t is the loop length and
   --o the head start, so no two move together. The tilt lives in transform
   and the drift in translate/rotate, so they add up. */
.doodle {
  position: absolute;
  z-index: 1;
  color: var(--marker);
  pointer-events: none;
  animation: drift-a var(--t, 12s) var(--o, 0s) ease-in-out infinite;
}

.doodle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle--excel   { width: 3.6rem; height: 3.6rem; top: -1.75rem; left: -2.75rem; transform: rotate(-8deg); --t: 13s; }
.doodle--powerbi { width: 3.6rem; height: 3.6rem; top: 1.25rem; right: -3.5rem; transform: rotate(8deg); --t: 11s; --o: -3s; animation-name: drift-b; }
.doodle--r       { width: 3.2rem; height: 3.2rem; top: 36%; left: -3.75rem; transform: rotate(-10deg); --t: 12s; --o: -5s; animation-name: drift-b; }
.doodle--trend   { width: 3rem;   height: 3rem;   top: 52%; right: -3.75rem; transform: rotate(-5deg); --t: 14s; --o: -2s; animation-name: drift-c; }
.doodle--sql     { width: 3.2rem; height: 3.2rem; bottom: -2.5rem; right: 1.75rem; transform: rotate(6deg); --t: 16s; --o: -8s; animation-name: drift-c; }

/* Stacked on a phone: words first, then the photo, smaller, with the
   doodles closer in and drifting a shorter distance. */
@media (max-width: 54rem) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__title { max-width: 14ch; }
  .hero__visual { width: min(16rem, 70%); }
  .hero__badge { left: -1.25rem; bottom: 1.25rem; padding: 0.6rem 0.9rem; }
  .hero__badge strong { font-size: 1.6rem; }
  .doodle { animation-name: drift-s; }
  .doodle--excel   { width: 2.4rem; height: 2.4rem; top: -1.2rem; left: -1.9rem; }
  .doodle--powerbi { width: 2.4rem; height: 2.4rem; top: 1rem; right: -2.3rem; }
  .doodle--r       { width: 2.2rem; height: 2.2rem; left: -2.4rem; }
  .doodle--trend   { width: 2.1rem; height: 2.1rem; right: -2.4rem; }
  .doodle--sql     { width: 2.2rem; height: 2.2rem; bottom: -1.9rem; }
}

/* ---------------------------------------------------------------- proof */

/* Four short facts under the hero, divided by hairlines. */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: var(--s-3) 0;
  border-block: 1px solid var(--line);
}

.proof li {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 0.25rem var(--s-3);
  border-left: 1px solid var(--line);
}

.proof li:first-child { border-left: 0; padding-left: 0; }

.proof strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }

.proof span { font-size: var(--t-sm); color: var(--ink-soft); }

.proof a { color: inherit; text-underline-offset: 0.2em; }

@media (max-width: 54rem) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-3); }
  .proof li:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 30rem) {
  .proof { grid-template-columns: 1fr; }
  .proof li { border-left: 0; padding-left: 0; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--s-6) 0; }

.section__head { margin-bottom: var(--s-4); max-width: 46rem; }

.section__title { font-size: var(--t-2xl); }

.section__lede { color: var(--ink-soft); font-size: var(--t-md); margin: var(--s-2) 0 0; max-width: 40rem; }

.work__cta { margin: var(--s-4) 0 0; }

/* Directly under the hero, which brings its own space. */
.section--tight { padding-top: var(--s-3); }

main > :last-child { padding-bottom: var(--s-6); }

/* ---------------------------------------------------------------- reveals */

/* Keyframes rather than transitions, so revealing never clobbers an
   element's own hover transitions. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-in { animation: reveal 0.9s calc(var(--i, 0) * 0.09s) var(--ease) both; }
}

/* ---------------------------------------------------------------- my book */

/* The dark rounded panel, lit from two corners. */
.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background: var(--night);
  color: #fff;
  padding: clamp(1.75rem, 5vw, 4.5rem);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(37, 70, 209, 0.85), rgba(37, 70, 209, 0) 70%);
  transform: rotate(-20deg);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -15%;
  width: 55%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.35), rgba(255, 106, 43, 0) 70%);
}

.panel__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-5);
  align-items: center;
}

.panel__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }

.panel__text { color: rgba(255, 255, 255, 0.78); margin: 1.1rem 0 0; max-width: 32rem; }

.facts { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: 2rem 0 2.25rem; padding: 0; list-style: none; }

.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.facts span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

.panel__actions { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; }

.panel .textlink { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); }

.panel .textlink:hover { color: #ffb08a; }

.panel__cover {
  justify-self: center;
  width: min(17rem, 100%);
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: rotate(3deg);
  transition: transform 0.6s var(--ease);
}

.panel__cover:hover { transform: rotate(0) translateY(-4px); }

/* Who it is for, what is inside, what you need. */
.panel__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.panel__details h3 {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #ffb08a;
  margin-bottom: 0.9rem;
}

.panel__details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.panel__details strong { color: #fff; font-weight: 600; }

.panel__details li span { color: rgba(255, 255, 255, 0.5); margin-right: 0.5rem; font-variant-numeric: tabular-nums; }

@media (max-width: 54rem) {
  .panel__top, .panel__details { grid-template-columns: 1fr; }
  .panel__cover { order: -1; width: min(13rem, 100%); }
}

/* ---------------------------------------------------------------- tool */

.tool {
  background: var(--accent-tint);
  border-radius: 32px;
  padding: clamp(1.75rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
}

.tool__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }

.tool__text { color: var(--ink-soft); margin: 1rem 0 1.75rem; max-width: 30rem; }

.tool + .tool { margin-top: var(--s-3); }

.tool--alt { background: var(--surface); border: 1px solid var(--line); }

@media (max-width: 54rem) {
  .tool { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* A still of the data quality checker's findings, on the homepage. */
.dq-mini {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

.dq-mini__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.dq-mini__head span:first-child { color: var(--ink); font-weight: 500; }

.dq-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.dq-mini li {
  position: relative;
  padding: 0.5rem 0.75rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.dq-mini li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #e9a23b; }

.dq-mini li.is-high::before { background: #e5532b; }

.dq-mini b {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c98417;
}

.dq-mini .is-high b { color: #e5532b; }

/* Stacked choice buttons. Used by the layout tool to pick a situation. */
.switcher { display: grid; gap: 0.5rem; margin-bottom: var(--s-4); }

.switcher button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.switcher button span { font-family: var(--mono); font-size: var(--t-xs); color: var(--marker); }

.switcher button:hover { color: var(--ink); border-color: var(--ink); transform: translateX(4px); }

.switcher button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow);
}

/* The dashboard mock. Zones are absolutely placed from four custom
   properties per layout, and top/left/width/height transition, so a
   layout change slides every zone to its new home. */
.mock {
  position: relative;
  aspect-ratio: 16 / 11;
  container-type: inline-size;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1.9cqw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mock__zone {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--h);
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  padding: 2.2cqw 2.4cqw;
  overflow: hidden;
  transition: top 0.8s var(--ease), left 0.8s var(--ease), width 0.8s var(--ease), height 0.8s var(--ease), background 0.4s ease;
}

.z-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px dashed var(--line-strong);
  border-radius: 0;
  color: var(--ink);
}

.mock__dots { display: flex; gap: 4px; }
.mock__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.mock__dots i:first-child { background: var(--marker); }

.z-n {
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--marker);
  color: var(--marker);
}

.mock__num {
  display: block;
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(1rem, 4.8cqw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
  transition: font-size 0.8s var(--ease);
}

.mock__num--accent { color: var(--accent); }

.mock[data-layout="board"] .z-a .mock__num { font-size: clamp(2rem, 12cqw, 5rem); }

.z-t svg { flex: 1; width: 100%; height: auto; min-height: 0; margin-top: 2cqw; overflow: visible; }

.mock__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mock__area { fill: var(--accent); opacity: 0.12; }

.mock__bars { display: grid; gap: 1.4cqw; margin-top: auto; }

.mock__bars i {
  display: block;
  height: 1.6cqw;
  min-height: 5px;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.7;
  width: calc(var(--v) * 100%);
}

.mock__bars i:first-child { background: var(--marker); opacity: 1; }

/* Draw the chart and grow the bars when the mock scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .mock__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .mock__area { opacity: 0; transition: opacity 1s 1s ease; }
  .js .mock__bars i { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
  .js .mock__bars i:nth-child(2) { transition-delay: 0.1s; }
  .js .mock__bars i:nth-child(3) { transition-delay: 0.2s; }
  .js .mock__bars i:nth-child(4) { transition-delay: 0.3s; }

  .js .is-in .mock__line { animation: draw 1.6s 0.4s var(--ease) forwards; }
  .js .is-in .mock__area { opacity: 0.12; }
  .js .is-in .mock__bars i { transform: scaleX(1); }
}

/* Layout: the manager's morning check. Answers first, trend, caveat. */
.mock[data-layout="morning"] .z-head { --x: 3%; --y: 3%;  --w: 94%; --h: 10%; }
.mock[data-layout="morning"] .z-a    { --x: 3%; --y: 16%; --w: 30%; --h: 24%; }
.mock[data-layout="morning"] .z-b    { --x: 35%; --y: 16%; --w: 30%; --h: 24%; }
.mock[data-layout="morning"] .z-c    { --x: 67%; --y: 16%; --w: 30%; --h: 24%; }
.mock[data-layout="morning"] .z-t    { --x: 3%; --y: 43%; --w: 62%; --h: 39%; }
.mock[data-layout="morning"] .z-p    { --x: 67%; --y: 43%; --w: 30%; --h: 39%; }
.mock[data-layout="morning"] .z-n    { --x: 3%; --y: 85%; --w: 94%; --h: 11%; }

/* Layout: the analyst's explore page. Breakdown as a sidebar, big trend. */
.mock[data-layout="explore"] .z-head { --x: 3%; --y: 3%;  --w: 94%; --h: 10%; }
.mock[data-layout="explore"] .z-p    { --x: 3%; --y: 16%; --w: 30%; --h: 66%; }
.mock[data-layout="explore"] .z-t    { --x: 35%; --y: 16%; --w: 62%; --h: 42%; }
.mock[data-layout="explore"] .z-a    { --x: 35%; --y: 61%; --w: 19.5%; --h: 21%; }
.mock[data-layout="explore"] .z-b    { --x: 56.25%; --y: 61%; --w: 19.5%; --h: 21%; }
.mock[data-layout="explore"] .z-c    { --x: 77.5%; --y: 61%; --w: 19.5%; --h: 21%; }
.mock[data-layout="explore"] .z-n    { --x: 3%; --y: 85%; --w: 94%; --h: 11%; }

/* Layout: the board summary. One big answer, everything else supports it. */
.mock[data-layout="board"] .z-head { --x: 3%; --y: 3%;  --w: 94%; --h: 10%; }
.mock[data-layout="board"] .z-a    { --x: 3%; --y: 16%; --w: 62%; --h: 43%; }
.mock[data-layout="board"] .z-b    { --x: 67%; --y: 16%; --w: 30%; --h: 20%; }
.mock[data-layout="board"] .z-c    { --x: 67%; --y: 39%; --w: 30%; --h: 20%; }
.mock[data-layout="board"] .z-t    { --x: 3%; --y: 62%; --w: 46%; --h: 20%; }
.mock[data-layout="board"] .z-p    { --x: 51%; --y: 62%; --w: 46%; --h: 20%; }
.mock[data-layout="board"] .z-n    { --x: 3%; --y: 85%; --w: 94%; --h: 11%; }

.mock[data-layout="board"] .z-a { background: var(--accent-soft); }

/* ---------------------------------------------------------------- subscribe */

.subscribe { text-align: center; }

.subscribe__title { font-size: var(--t-2xl); }

.subscribe .subscribe__title { max-width: 18ch; margin-inline: auto; }

.subscribe__text { color: var(--ink-soft); margin: 1rem auto 2rem; max-width: 30rem; }

.subscribe__form { max-width: 44rem; margin-inline: auto; }

/* ---------------------------------------------------------------- forms */

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 0.6rem;
}

@media (max-width: 36rem) {
  .form-row { grid-template-columns: 1fr; }
}

.form-row--stack { grid-template-columns: 1fr; }

/* Name and email side by side, with the robot check and the button below. */
.form-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 36rem) {
  .form-row--two { grid-template-columns: 1fr; }
}

/* Netlify puts Google's "I'm not a robot" box (304 x 78 px) in here. */
.captcha { min-height: 78px; margin: var(--s-2) 0 var(--s-3); }

.subscribe .captcha { display: flex; justify-content: center; }

.input {
  width: 100%;
  font: inherit;
  font-size: var(--t-md);
  padding: 0.9rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder { color: var(--ink-soft); opacity: 0.8; }

.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.form__note { font-size: var(--t-xs); color: var(--ink-soft); margin: 0.75rem 0 0; }

/* ---------------------------------------------------------------- inner pages */

.pagehead {
  position: relative;
  padding-block: var(--s-5) var(--s-4);
  max-width: 50rem;
}

.pagehead > * { animation: rise 0.9s var(--ease) both; }
.pagehead > :nth-child(2) { animation-delay: 0.08s; }
.pagehead > :nth-child(3) { animation-delay: 0.16s; }
.pagehead > :nth-child(4) { animation-delay: 0.24s; }

.pagehead__title { font-size: var(--t-2xl); margin-bottom: var(--s-3); }

.pagehead__lede { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.55; margin: 0; }

.pagehead__meta {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin-top: var(--s-3);
}

.pagehead__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.page__sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 54rem;
  animation: rise 1s 0.25s var(--ease) both;
}

.page__sheet--wide { max-width: none; }

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
}

.card__title { font-size: var(--t-lg); margin-bottom: var(--s-1); }

.card__text { color: var(--ink-soft); font-size: var(--t-sm); margin: 0; }

/* The three series on the homepage: bigger titles, and an example pinned
   to the bottom of each card. */
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cards--3 .card__title { font-size: 1.45rem; margin-bottom: var(--s-2); }

.cards--3 .card__text { font-size: 0.98rem; margin-bottom: var(--s-3); }

.card__eg {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.card__eg small { display: block; color: var(--ink-soft); font-size: var(--t-xs); margin-bottom: 0.2rem; }

@media (max-width: 54rem) {
  .cards--3 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- prose */

.prose { max-width: var(--measure); }

.page__sheet .prose { max-width: none; }

.prose > *:first-child { margin-top: 0; }

.prose h2 { font-size: var(--t-xl); margin: var(--s-5) 0 var(--s-2); }

.prose h3 { font-size: var(--t-lg); margin: var(--s-4) 0 var(--s-1); }

.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 var(--s-3); }

.prose li { margin-bottom: var(--s-1); }

.prose li::marker { color: var(--marker); }

.prose blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--marker);
  background: var(--marker-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.prose blockquote p:last-child { margin: 0; }

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--accent-soft);
  padding: 0.12em 0.4em;
  border-radius: 5px;
}

.prose pre {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: var(--s-3);
  border-radius: var(--r);
  overflow-x: auto;
  font-size: var(--t-sm);
}

.prose pre code { background: none; padding: 0; }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }

.prose .cards { margin: var(--s-3) 0 var(--s-4); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.prose .card__title { font-size: var(--t-md); margin-top: 0; }

/* ---------------------------------------------------------------- notice */

.notice {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-3);
  border-radius: var(--r);
  background: var(--accent-soft);
  margin: var(--s-4) 0;
}

.notice .icon { color: var(--accent); margin-top: 0.15rem; }

.notice p { margin: 0; font-size: var(--t-sm); }

.notice__title { font-weight: 600; margin-bottom: 0.2rem !important; }

/* ---------------------------------------------------------------- lists */

.ticks { list-style: none; padding: 0 !important; margin: 0 0 var(--s-3); display: grid; gap: var(--s-2); }

.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; }

.ticks .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; color: var(--accent); }

.ticks--no .icon { color: var(--ink-soft); }

/* ---------------------------------------------------------------- profile */

.profile {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  margin: var(--s-3) 0;
}

.profile img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex: none;
}

.profile p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }

.profile strong { display: block; color: var(--ink); font-size: var(--t-md); }

/* ---------------------------------------------------------------- split */

.split {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 54rem) {
  .split { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- book page */

.bookpage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: var(--s-5);
  align-items: start;
  padding-top: var(--s-5);
}

.bookpage__info > * { animation: rise 0.9s var(--ease) both; }

.bookpage__title { font-size: var(--t-2xl); max-width: 18ch; margin-bottom: var(--s-3); }

.bookpage__lede { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.55; margin: 0; max-width: 40rem; }

.bookpage__jump { display: none; margin-top: var(--s-3); }

.bookfacts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; padding: 0; margin: var(--s-4) 0 0; }

.bookfacts strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; }

.bookfacts span { font-size: var(--t-sm); color: var(--ink-soft); }

.bookpage__block { margin-top: var(--s-5); }

.bookpage__block h2 { font-size: var(--t-xl); margin-bottom: var(--s-3); }

.bookpage__chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.bookpage__chapters span { display: inline-block; width: 2.25rem; color: var(--marker); font-weight: 600; font-variant-numeric: tabular-nums; }


.bookform {
  position: sticky;
  top: 6rem;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise 1s 0.2s var(--ease) both;
  scroll-margin-top: 6rem;
}

.bookform__cover {
  width: 7rem;
  height: auto;
  margin-bottom: var(--s-3);
  border-radius: 8px;
  box-shadow: 0 12px 26px -12px rgba(20, 33, 58, 0.5);
  rotate: -3deg;
}

.bookform__title { font-size: var(--t-xl); }

.bookform__text { color: var(--ink-soft); font-size: var(--t-sm); margin: 0.5rem 0 var(--s-3); }

.bookform__submit { width: 100%; justify-content: center; margin-top: var(--s-1); }

.field { display: grid; gap: 0.35rem; margin-bottom: var(--s-2); }

.field__label { font-size: var(--t-sm); font-weight: 500; }

.field__label em { font-style: normal; font-weight: 400; color: var(--ink-soft); margin-left: 0.3rem; }

select.input { cursor: pointer; }

@media (max-width: 54rem) {
  .bookpage { grid-template-columns: 1fr; }
  .bookpage__jump { display: inline-flex; }
  .bookform { position: static; }
}

/* ---------------------------------------------------------------- thank-you pages */

.thanks {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  max-width: 60rem;
  padding-block: var(--s-5) var(--s-3);
}

.thanks--plain { grid-template-columns: minmax(0, 1fr); }

.thanks > * { animation: rise 0.9s var(--ease) both; }

.thanks__cover { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 36px -14px rgba(20, 33, 58, 0.5); rotate: -3deg; }

.thanks__title { font-size: var(--t-2xl); margin-bottom: var(--s-2); }

.thanks__lede { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.55; margin: 0 0 var(--s-4); max-width: 38rem; }

.thanks--plain .thanks__lede { margin-bottom: 0; }

.thanks__actions { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; }

.thanks__subtitle { font-size: var(--t-xl); margin-bottom: var(--s-3); }

.card--link { text-decoration: none; color: inherit; }

.card--link:hover { color: inherit; }

@media (max-width: 40rem) {
  .thanks { grid-template-columns: 1fr; gap: var(--s-4); }
  .thanks__cover { width: 8rem; }
}

.follow {
  margin-top: var(--s-6);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}

.follow__title { font-size: var(--t-lg); }

.follow__text { color: var(--ink-soft); font-size: var(--t-sm); margin: 0.4rem 0 var(--s-3); }

.follow__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }

.follow__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
}

.follow__list a:hover { border-color: var(--accent); color: var(--accent); }

.follow__list .icon { width: 1.1rem; height: 1.1rem; }

/* ---------------------------------------------------------------- about page */

.intro {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: var(--s-5);
  align-items: center;
  padding-block: var(--s-5) var(--s-4);
}

.intro > * { animation: rise 0.9s var(--ease) both; }

.intro__photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}

.intro__photo img { width: 100%; height: 100%; object-fit: cover; }

.intro__title { font-size: var(--t-2xl); margin-bottom: 0.6rem; }

.intro__role { font-size: var(--t-lg); font-weight: 500; margin: 0 0 var(--s-2); }

.intro__role a { text-underline-offset: 0.2em; }

.intro__lede { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.55; margin: 0 0 var(--s-4); max-width: 36rem; }

.intro__actions { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 54rem) {
  .intro { grid-template-columns: 1fr; gap: var(--s-4); }
  .intro__photo { width: min(15rem, 70%); }
}

.aboutgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--s-5);
  align-items: start;
  padding-top: var(--s-3);
}

.aboutgrid .prose { max-width: 42rem; }

.glance {
  position: sticky;
  top: 6rem;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.glance__title { font-size: var(--t-lg); margin-bottom: var(--s-3); }

.glance dl { display: grid; gap: var(--s-2); margin: 0; }

.glance dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marker);
}

.glance dd { margin: 0.15rem 0 0; font-size: var(--t-sm); }

@media (max-width: 60rem) {
  .aboutgrid { grid-template-columns: 1fr; }
  .glance { position: static; }
}

.principle__n { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--marker); margin: 0 0 var(--s-2); }

/* ---------------------------------------------------------------- contact page */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: var(--s-5);
  align-items: start;
}

.contact__sheet { max-width: none; }

.contact__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-2); }

.contact__message { min-height: 9rem; resize: vertical; line-height: 1.5; }

.contact__sheet .button { margin-top: var(--s-1); }

.contact__aside { padding-top: var(--s-2); }

.contact__title { font-size: var(--t-lg); margin-bottom: var(--s-3); }

.contact__aside .ticks { font-size: var(--t-sm); }

.contact__alt { margin: var(--s-4) 0 var(--s-2); color: var(--ink-soft); font-size: var(--t-sm); }

@media (max-width: 54rem) {
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 36rem) {
  .contact__pair { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- footer */

.footer-wrap {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}

.footer { padding-block: var(--s-5) var(--s-3); font-size: 0.92rem; }

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding-bottom: var(--s-4);
}

.footer__tag { color: var(--ink-soft); margin: var(--s-2) 0 0; max-width: 20rem; }

.footer__cols { display: flex; gap: var(--s-5); flex-wrap: wrap; }

.footer__cols h2 {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--marker);
  margin-bottom: var(--s-2);
}

.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }

.footer__cols a { text-decoration: none; color: var(--ink-soft); }

.footer__cols a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--t-xs);
}

.footer__bottom p { margin: 0; }

/* The name, set huge and cut off by the bottom of the page. */
.footer__word {
  margin: 0;
  padding-inline: var(--gutter);
  font-family: var(--display);
  font-weight: 800;
  font-size: min(10.4vw, 9.5rem);
  letter-spacing: -0.05em;
  line-height: 0.78;
  white-space: nowrap;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  translate: 0 0.12em;
  user-select: none;
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
}

.footer__word:hover { color: var(--accent-soft); -webkit-text-stroke-color: var(--accent); }

/* ---------------------------------------------------------------- keyframes */

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes reveal { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes drift-a {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25%      { translate: 16px -20px; rotate: 7deg; }
  50%      { translate: -8px -32px; rotate: -5deg; }
  75%      { translate: -18px -10px; rotate: 4deg; }
}
@keyframes drift-b {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25%      { translate: -18px -14px; rotate: -8deg; }
  50%      { translate: -6px 18px; rotate: 5deg; }
  75%      { translate: 16px 6px; rotate: -3deg; }
}
@keyframes drift-c {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  33%      { translate: 14px 16px; rotate: 9deg; }
  66%      { translate: -16px 8px; rotate: -7deg; }
}
@keyframes drift-s {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  33%      { translate: 5px -6px; rotate: 6deg; }
  66%      { translate: -5px 4px; rotate: -5deg; }
}
@keyframes rise   { from { opacity: 0; translate: 0 0.6em; } to { opacity: 1; translate: 0 0; } }

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