:root {
  /* color — OKLCH, matching the Claude Design redesign */
  --bg: oklch(97.3% 0.008 75);
  --bg-hero-top: oklch(94.5% 0.02 55);
  --card-bg: oklch(99% 0.004 70);
  --text: oklch(19% 0.014 40);
  --muted: oklch(46% 0.02 45);
  --accent: oklch(48% 0.165 35);
  --accent-dark: oklch(38% 0.15 33);
  --accent-2: oklch(46% 0.14 75); /* secondary warm tone, step numerals only */
  --rule: oklch(88% 0.012 60);

  /* spacing */
  --section-gap: clamp(64px, 8vw, 104px);
  --wrap: 1200px;
  --prose: 640px; /* readable-width cap for paragraphs, independent of --wrap */
  --pad: clamp(20px, 5vw, 64px);

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

::selection { background: oklch(48% 0.165 35 / 0.22); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.08; max-width: 19ch; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

p { margin: 0 0 1.1em; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }

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

.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--accent); }

.lede {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  color: var(--muted);
}

/* ---------- header ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card-bg);
  padding: 12px 16px;
  z-index: 30;
}
.skip-link:focus { left: 8px; top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 8px;
  transition: background 120ms ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-sm { padding: 11px 20px; font-size: 0.9375rem; }

.quiet-link {
  color: var(--muted);
  font-size: 1.0625rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.quiet-link:hover { color: var(--text); border-color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

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

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

section { padding: var(--section-gap) 0; }
section + section { border-top: 1px solid var(--rule); }

.hero {
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg) 62%);
  padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 8vw, 104px);
}

.brake { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--rule); }

.display {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 28px;
}

.display .accent { font-style: italic; }

.brake .muted { max-width: 30em; margin: 0 auto; }

/* ---------- brake list: a divided grid, not a stacked list ---------- */

.items {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.items li {
  background: var(--card-bg);
  padding: clamp(24px, 3vw, 32px);
}

.items p, .steps p { color: var(--muted); margin: 0; max-width: none; }

/* ---------- steps: a grid with large italic numerals ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 4vw, 40px);
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent-2);
  margin-bottom: 14px;
}

/* ---------- prototype cards ----------
   Each prototype's heading, description, and link used to be three plain
   paragraphs with identical spacing, so nothing tied the link to its own
   item over the next one. The border/background/radius here are the exact
   tokens already used by .price-card and .items, not a new visual language. */

.proto-card {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card-bg);
  padding: clamp(24px, 3vw, 32px);
  margin: 28px 0;
}

.proto-card h3 { margin-top: 0; }

.proto-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.proto-link:hover { color: var(--accent-dark); }

/* ---------- images ---------- */

figure { margin: 32px 0; }

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

/* The Job Checker frame. Holds either a still or a looping video, identically,
   so the asset can be swapped without touching the layout. Graceful if the file
   is missing: the box still reads as an intentional frame. */
.shot { max-width: 980px; }

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 16px 40px oklch(19% 0.014 40 / 0.1);
}

/* The video is click-to-play (native controls, no autoplay), so the poster is
   what most visitors see. Give it a touch more presence than a still. */
.shot video { cursor: pointer; }

.shot figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Video captions: white text with a thin black outline and no box. The demo ends on a
   light brand card where plain white text would vanish, so the outline earns its keep.
   text-shadow is the only cross-browser way to outline ::cue text; eight 1px offsets make
   the border, the last soft shadow adds safety over light frames. */
::cue {
  color: #fff;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  text-shadow:
    -1px -1px 0 #000,  1px -1px 0 #000,
    -1px  1px 0 #000,  1px  1px 0 #000,
     0   -1px 0 #000,  0    1px 0 #000,
    -1px  0   0 #000,  1px  0   0 #000,
     0 0 3px rgba(0, 0, 0, 0.55);
}

/* Square cutout whose background is flattened to match --bg, so it sits
   directly on the page with no frame. The mask dissolves the hard bottom
   crop of the torso into the background. */
.portrait { margin: 0; }

.portrait img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
}

/* ---------- two-column section grids: let the wider canvas do something,
   without ever stretching a paragraph past a readable width ---------- */

.about-grid, .book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: 40px;
}

.book-grid .calendly-inline-widget { margin: 0; min-width: 280px; }

/* ---------- pricing ---------- */

.price-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--card-bg);
  margin-top: 32px;
}

.price-card > :last-child {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 4vw, 48px);
}

/* the left column border only reads correctly with room on either side */
@media (max-width: 640px) {
  .price-card > :last-child { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}

.price {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 0.35em;
}

.price-secondary {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

/* ---------- calendly ---------- */

.calendly-inline-widget {
  margin: 32px 0 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 72px;
}
.site-footer .wordmark { display: block; margin: 0 0 8px; }
.site-footer p { font-size: 1rem; max-width: none; }

/* ---------- motion ---------- */

/* only hidden when JS is present to reveal them again */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }

  .wordmark { font-size: 1.2rem; }
  .btn { width: auto; }
  .actions { gap: 14px; flex-direction: column; align-items: flex-start; }
  .actions .btn { width: 100%; text-align: center; }
}
