/* DP WEB3 INVEST
   Fonts · Tokens · Base · Components · Header · Hero · Sections · Footer · Legal · Motion */

/* Fonts ------------------------------------------------------------------ */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Fallbacks sized to Instrument Serif's metrics, so the swap to the web font does not reflow text. */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif");
  size-adjust: 82.78%;
  ascent-override: 119.59%;
  descent-override: 37.45%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic");
  size-adjust: 87.05%;
  ascent-override: 113.73%;
  descent-override: 35.61%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback Android";
  src: local("Noto Serif"), local("Noto Serif Regular"), local("NotoSerif-Regular");
  size-adjust: 70.53%;
  ascent-override: 140.36%;
  descent-override: 43.95%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback Android";
  font-style: italic;
  src: local("Noto Serif Italic"), local("NotoSerif-Italic");
  size-adjust: 75.47%;
  ascent-override: 131.17%;
  descent-override: 41.07%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */

:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: rgba(15, 26, 43, 0.12);
  --line-strong: rgba(15, 26, 43, 0.24);
  --text: #0f1a2b;
  --text-2: #3b4454;
  --muted: #666c77;
  --accent: #1f4596;
  --on-accent: #ffffff;
  --ink-rgb: 15, 26, 43;
  --accent-rgb: 31, 69, 150;

  --serif: "Instrument Serif", "Instrument Serif Fallback", "Instrument Serif Fallback Android", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --gap: clamp(16px, 2vw, 24px);
  --section: clamp(96px, 13vw, 176px);
  --header: 76px;
  --radius: 22px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  scrollbar-color: rgba(var(--ink-rgb), 0.22) var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

svg,
canvas {
  display: block;
}

p {
  text-wrap: pretty;
}

/* The brand name inside running text: capitals, set a touch smaller and tracked. */
.caps {
  font-size: 0.9em;
  letter-spacing: 0.04em;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.scheduler:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section);
}

/* Components ------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.4s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.label-index {
  margin-right: 0.4em;
  color: var(--accent);
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
  overflow: visible;
  color: var(--text);
  transition: transform 0.9s var(--ease-out);
}

.mark-orbit {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
}

.mark-back {
  stroke-opacity: 0.42;
}

.mark-core {
  fill: var(--accent);
}

.mark-body {
  fill: currentColor;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand:hover .mark {
  transform: rotate(-14deg);
}

.wordmark {
  padding-top: 1px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 10px 24px -16px rgba(var(--ink-rgb), 0.5);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s;
}

.btn .icon {
  font-size: 16px;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
  background: #1d2c47;
  box-shadow: 0 16px 32px -16px rgba(var(--ink-rgb), 0.55);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(var(--ink-rgb), 0.38);
  background: rgba(var(--ink-rgb), 0.05);
  box-shadow: none;
}

.btn-small {
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 18px;
  font-size: 0.875rem;
}

.btn-small .icon {
  font-size: 14px;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-strong), var(--line-strong));
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px, 100% 1px;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
}

.link:hover {
  background-size: 100% 1px, 100% 1px;
}

.link .icon {
  font-size: 14px;
  opacity: 0.7;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.link:hover .icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, -webkit-backdrop-filter 0.5s, backdrop-filter 0.5s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header);
}

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-back {
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header) + clamp(40px, 8vh, 112px));
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 26%;
  background: linear-gradient(180deg, rgba(247, 245, 240, 0), var(--paper));
  pointer-events: none;
}

.orrery {
  --orrery-line: var(--ink-rgb);
  --orrery-accent: var(--accent-rgb);
  --orrery-glow: 0.35;
  --orrery-line-alpha: 1.5;
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 24%, #000 58%);
}

/* Below 900px the orrery gets its own band above the headline. */
@media (max-width: 899px) {
  .hero {
    padding-top: calc(var(--header) + min(64vw, 300px));
  }

  .orrery {
    inset: var(--header) 0 auto;
    height: min(64vw, 300px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  }
}

.hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(40px, 7vh, 88px);
}

.hero-title {
  margin-top: clamp(20px, 3vh, 32px);
  font-family: var(--serif);
  font-size: clamp(3rem, 1rem + 6.9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title .line > span {
  display: inline-block;
  text-wrap: balance;
}

.hero-title em {
  padding-right: 0.04em;
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  margin-top: clamp(24px, 4vh, 36px);
  max-width: 34rem;
}

.hero-note {
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 5vh, 44px);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 48px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.proof-list li {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.proof-list a {
  transition: color 0.3s;
}

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

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.motion-toggle:hover {
  border-color: rgba(var(--ink-rgb), 0.4);
  color: var(--text);
}

.motion-toggle[hidden],
.motion-toggle .icon-play,
.motion-toggle.is-paused .icon-pause {
  display: none;
}

.motion-toggle.is-paused .icon-play {
  display: block;
}

.motion-toggle .icon {
  font-size: 13px;
}

.proof-list li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Section heads ---------------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-label {
  grid-column: 1 / span 3;
  padding-top: 0.7em;
}

.section-title {
  grid-column: 4 / -1;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.section-lede {
  grid-column: 4 / span 6;
}

/* Services --------------------------------------------------------------- */

.services {
  margin-top: clamp(56px, 8vw, 104px);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}

.service:hover::before {
  transform: scaleX(1);
}

.service-index {
  grid-column: 1 / span 3;
  padding-top: 0.9em;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service-head {
  grid-column: 4 / span 4;
}

.service-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

.service-promise {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--text-2);
}

.service-body {
  grid-column: 9 / -1;
  color: var(--text-2);
}

.deliverables {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.deliverables li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
}

.deliverables li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.inline-cta-text {
  max-width: 40rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.inline-cta-text em {
  font-style: italic;
  color: var(--accent);
}

/* Approach --------------------------------------------------------------- */

.steps {
  --progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: 44px;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
}

.steps::before {
  background: var(--line-strong);
}

.steps::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.25), var(--accent));
  transform: scaleX(var(--progress));
  transform-origin: left;
}

.step {
  position: relative;
  padding-right: 12px;
}

.step-node {
  position: absolute;
  top: -44px;
  left: 0;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(var(--ink-rgb), 0.3);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  transition: background-color 0.6s, border-color 0.6s, box-shadow 0.6s;
}

.step.is-lit .step-node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.12), 0 0 16px rgba(var(--accent-rgb), 0.3);
}

.step-index {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.step-text {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-2);
}

/* Experience: work rows, post cards, photos, founder ----------------------- */

.work {
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 32px;
  padding-block: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.work-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  grid-column: 1 / span 5;
}

.work-name {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 3vw, 4.25rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.work-name a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12em;
  transition: color 0.3s;
}

.work-name .icon {
  width: 0.34em;
  height: 0.34em;
  margin-top: 0.1em;
  color: var(--muted);
  transition: transform 0.5s var(--ease-out), color 0.3s;
}

.work-name a:hover,
.work-name a:hover .icon {
  color: var(--accent);
}

.work-name a:hover .icon {
  transform: translate(2px, -2px);
}

.work-text {
  max-width: 34rem;
  color: var(--text-2);
}

.work-media {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--gap);
}

.work-posts,
.work-photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-copy .post {
  max-width: 27rem;
  margin-top: 8px;
}

.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(var(--ink-rgb), 0.04);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
}

.post-who {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6px;
  line-height: 1.3;
}

.post-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.post-handle {
  font-size: 0.875rem;
  color: var(--muted);
}

.post-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.post-text p + p {
  margin-top: 10px;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.3s;
}

.post-link:hover {
  color: var(--accent);
}

.post-link .icon {
  font-size: 13px;
}

/* Paul's own article: a navy card among the posts. */
.post-article {
  border-color: var(--text);
  background: var(--text);
  color: var(--on-accent);
}

.post-article .post-kicker {
  color: rgba(255, 255, 255, 0.66);
}

.post-title {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.post-dek {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.86);
}

.post-byline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
}

.post-article .post-link {
  color: rgba(255, 255, 255, 0.78);
}

.post-article .post-link:hover {
  color: #ffffff;
}

.post-article :focus-visible {
  outline-color: #ffffff;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(var(--ink-rgb), 0.06);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.8s var(--ease-out);
}

.photo-wide img {
  aspect-ratio: 16 / 10;
  object-position: 50% 35%;
}

.photo figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (hover: hover) {
  .photo:hover img {
    filter: none;
  }
}

.founder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: center;
  margin-top: clamp(88px, 11vw, 150px);
}

.founder-photo {
  grid-column: 1 / span 5;
  margin: 0;
}

.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 76% 50%;
  border-radius: 18px;
  background: rgba(var(--ink-rgb), 0.06);
}

.founder-body {
  grid-column: 7 / -1;
}

.founder-line {
  margin-bottom: 36px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 3vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.founder-line em {
  display: block;
  color: var(--accent);
}

.founder-name {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.founder-bio {
  margin-top: 16px;
  color: var(--text-2);
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

/* Book a call ------------------------------------------------------------ */

.book {
  overflow: clip;
}

.book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 78% 100%, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0) 70%);
  pointer-events: none;
}

.book-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  align-items: start;
}

.book-copy {
  position: sticky;
  top: calc(var(--header) + 40px);
  grid-column: 1 / span 5;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.book-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 1.4rem + 5vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.book-title em {
  display: block;
  color: var(--accent);
}

.book-copy .lede {
  margin-top: 28px;
}

.book-email {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.book-email .link {
  margin-left: 4px;
  color: var(--text);
}

.scheduler {
  position: relative;
  isolation: isolate;
  grid-column: 7 / -1;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  scroll-margin-top: calc(var(--header) + 24px);
}

.scheduler::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(var(--ink-rgb), 0.12) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000, transparent 78%);
}

.scheduler::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 42% at 50% 112%, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0) 72%);
}

.scheduler-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 580px;
  padding: 48px 32px;
  text-align: center;
}

.scheduler-title {
  max-width: 13ch;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.scheduler-intro .btn {
  margin-top: 12px;
}

.scheduler-note {
  max-width: 25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.scheduler-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.scheduler-note a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.scheduler.is-loaded::before,
.scheduler.is-loaded::after,
.scheduler.is-loaded .scheduler-intro {
  display: none;
}

.scheduler-frame {
  display: block;
  width: 100%;
  height: 832px;
  border: 0;
  background: var(--surface);
}

.scheduler-status {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.scheduler-status a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
  margin-top: clamp(48px, 6vw, 80px);
  margin-left: calc((100% + var(--gap)) / 4);
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.6s var(--ease-out), background-color 0.4s, border-color 0.4s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--text);
  transition: background-color 0.4s;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  border-color: var(--accent);
  background: var(--accent);
  transform: rotate(45deg);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--on-accent);
}

.faq-answer {
  max-width: 44rem;
  padding: 0 64px 30px 0;
  color: var(--text-2);
}

.faq-item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.6s var(--ease-out), content-visibility 0.6s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: clip;
  padding-top: clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
}

.footer-brand {
  grid-column: 1 / span 5;
}

.footer-tagline {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-col {
  grid-column: span 2;
}

.footer-contact {
  grid-column: span 3;
}

.footer-head {
  margin-bottom: 14px;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-wordmark {
  margin-top: clamp(64px, 9vw, 128px);
  margin-bottom: -0.05em;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.14) 12%, rgba(var(--ink-rgb), 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 15.4vw, 14rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-base a {
  color: var(--text-2);
}

/* Legal notice and 404 --------------------------------------------------- */

.legal {
  padding-top: calc(var(--header) + clamp(56px, 9vw, 112px));
  padding-bottom: var(--section);
}

.legal-inner {
  max-width: 860px;
}

.legal-title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(3rem, 1.6rem + 4vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal-summary {
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--text-2);
}

.legal section {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal strong {
  font-weight: 600;
  color: var(--text);
}

.site-footer-compact {
  padding-top: 0;
}

.legal h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.legal section > p {
  margin-top: 16px;
  color: var(--text-2);
}

.legal section a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.legal section a:hover {
  text-decoration-color: currentColor;
}

.facts {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  padding-top: 0.25em;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  color: var(--text);
}

.notfound {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 120px var(--gutter);
  text-align: center;
}

.notfound .mark {
  width: 76px;
  height: 76px;
  margin-inline: auto;
}

.notfound .label {
  margin-top: 40px;
}

.notfound-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.notfound p {
  margin-top: 16px;
  color: var(--text-2);
}

.notfound .btn {
  margin-top: 36px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1099px) {
  .service-head {
    grid-column: 4 / -1;
  }

  .service-body {
    grid-column: 4 / span 7;
  }

  .book-copy {
    grid-column: 1 / span 6;
  }

  .scheduler {
    grid-column: 7 / -1;
  }
}

@media (max-width: 899px) {
  .section-label,
  .section-title,
  .section-lede,
  .service-index,
  .service-head,
  .service-body,
  .work-copy,
  .work-media,
  .founder-photo,
  .founder-body,
  .book-copy,
  .scheduler {
    grid-column: 1 / -1;
  }

  .service-index {
    padding-top: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding-top: 0;
    padding-left: 44px;
  }

  .steps::before,
  .steps::after {
    top: 6px;
    right: auto;
    bottom: 0;
    left: 5px;
    width: 1px;
    height: auto;
  }

  .steps::after {
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.25), var(--accent));
    transform: scaleY(var(--progress));
    transform-origin: top;
  }

  .step-node {
    top: 6px;
    left: -44px;
    transform: none;
  }

  .founder-photo img {
    aspect-ratio: 4 / 3;
    object-position: 72% 40%;
  }

  .book-copy {
    position: static;
  }

  .faq {
    margin-left: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-contact {
    grid-column: span 4;
  }
}

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

  .header-inner > .btn {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .proof {
    gap: 14px 24px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .footer-col {
    grid-column: span 6;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .work-posts,
  .work-photos {
    grid-template-columns: 1fr;
  }

  .btn {
    padding-block: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 16px;
  }

  .brand .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-height: 480px) {
  html {
    scroll-padding-top: 16px;
  }

  .site-header {
    position: absolute;
  }
}

@media (forced-colors: active) {
  .faq-icon::before,
  .faq-icon::after {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

@media (scripting: none) {
  .site-header {
    border-bottom-color: var(--line);
    background: rgba(247, 245, 240, 0.92);
  }
}

@media print {
  [data-reveal] {
    opacity: 1 !important;
    animation: none !important;
  }

  .site-header {
    position: static;
  }

  .orrery,
  .motion-toggle {
    display: none;
  }
}

/* Motion ----------------------------------------------------------------- */

@keyframes rise {
  from {
    transform: translate3d(0, 105%, 0);
  }
  to {
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes lede-rise {
  from {
    transform: translate3d(0, 16px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes reveal-safety {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: fade-in 1.4s var(--ease-out) 0.3s backwards;
  }

  .hero-eyebrow {
    animation: fade-up 1s var(--ease-out) 0.1s backwards;
  }

  .hero-title .line > span {
    animation: rise 1.4s var(--ease-out) 0.2s backwards;
  }

  .hero-title .line:nth-child(2) > span {
    animation-delay: 0.34s;
  }

  /* The lede is the largest paint: it rises into place but is never transparent. */
  .hero-lede {
    animation: lede-rise 1.2s var(--ease-out) 0.65s backwards;
  }

  .hero-actions {
    animation: fade-up 1.2s var(--ease-out) 0.8s backwards;
  }

  .hero-note {
    animation: fade-up 1.2s var(--ease-out) 0.9s backwards;
  }

  .proof {
    animation: fade-up 1.2s var(--ease-out) 1s backwards;
  }

  .notfound-mark {
    animation: drift 3.5s ease-in-out 2 alternate;
  }
}

@keyframes drift {
  to {
    transform: rotate(-18deg) translateY(-6px);
  }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.is-in) {
    opacity: 0;
  }

  [data-reveal].is-in {
    animation: reveal-in 1.2s var(--ease-out) var(--d, 0s) backwards;
  }

  [data-reveal].is-instant {
    animation: none;
  }

  /* If the script never runs, show everything after a moment anyway. */
  html:not(.ready) [data-reveal]:not(.is-in) {
    animation: reveal-safety 0.6s ease 3s forwards;
  }
}

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

  .motion-toggle {
    display: none;
  }

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