/* Small additions to the established paper / ink design system. */
:root {
  --paper: #fcfcf8;
  --ink: #2b2925;
  --muted: #716e66;
  --line: #dcdad2;
  --sand: #e9e6dc;
  --cream: #f7ecdc;
  --accent: #b55d3e;
  --mono: 'Roboto Mono', monospace;
}
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
:where(a, button, input) { min-width: 44px; min-height: 44px; }
:where(a):not(.culture-card):not(.video):not(.pill) { display: inline-flex; align-items: center; }
:where(a, button, input, video, [tabindex]):focus-visible {
  outline: 3px solid var(--accent) !important;
  outline-offset: 4px !important;
}
.video-cover:focus-visible,
.reel-frame video:focus-visible { outline-offset: -5px !important; }
.notch .availability { color: inherit; text-decoration: none; }
.notch .availability:hover { text-decoration: underline; text-underline-offset: 5px; }
.notch > div { margin-top: -14px; margin-bottom: -14px; }
.intro-links { min-width: 0; row-gap: 4px; }
.intro-bottom { flex-wrap: wrap; }
.voice-player { background: var(--cream); }
.voice-top .play {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 3px 9px rgba(181, 93, 62, .16);
}
.voice-top .play:hover { filter: brightness(.92); }
.voice-player #voice-seek {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  margin: 0;
  background: transparent;
  accent-color: var(--accent);
}
.voice-player #voice-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--voice-progress, 0%), var(--sand) var(--voice-progress, 0%) 100%);
}
.voice-player #voice-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(43, 41, 37, .16);
}
.voice-player #voice-seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--sand);
}
.voice-player #voice-seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.voice-player #voice-seek::-moz-range-thumb {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(43, 41, 37, .16);
}
.close { width: 44px; height: 44px; }
.tile, .snapshot { min-height: 44px; }
.resume-link { gap: 8px; flex-wrap: wrap; }
.resume-link small { font: 9px/1.4 var(--mono); color: var(--muted); }
.resume-link[aria-disabled="true"] { cursor: help; color: var(--muted); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 68px;
  padding: 8px 0;
}
.stat { min-width: 0; padding: 0 25px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-number {
  display: flex;
  align-items: baseline;
  gap: .22em;
  white-space: nowrap;
  min-height: 1.3em;
  color: var(--ink);
  font: 450 clamp(27px, 3.5vw, 34px)/1.3 'DM Sans', sans-serif;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 9px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: .025em; }
.stat-count[data-format="year"] { min-width: 4ch; }
.stat-count[data-format="millions"] { min-width: 4.5ch; }
.video-work > h2 { margin-bottom: 12px; }
.full-cuts-subline { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.video-stage.is-previewing .video-cover { background: transparent; }
.video-stage.is-previewing .video-cover > img { opacity: 0; }
.video-stage.is-previewing .video-cover:after { background: transparent; }
.video-stage.is-previewing .video-cover-play { opacity: .82; }
.video-error a { margin-left: 5px; text-underline-offset: 4px; }

.testimonials { margin-top: 65px; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.quote-card {
  min-width: 0;
  margin: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 5px 22px rgba(43, 41, 37, .05);
}
.quote-mark { display: block; height: 35px; color: var(--accent); font: 500 55px/1 'DM Sans', sans-serif; }
.quote-card blockquote { margin: 15px 0 25px; color: var(--ink); font-size: 17px; line-height: 1.65; }
.quote-card figcaption { font: 10px/1.7 var(--mono); color: var(--muted); }
.quote-card figcaption span { display: block; }
.work-opportunities { margin-top: 90px; border-top: 1px solid var(--line); padding-top: 30px; scroll-margin-top: 30px; }
.work-opportunities h2 { margin: 20px 0; font-size: 30px; }
.opportunity-copy { max-width: 640px; color: var(--muted); }
.opportunity-copy p { margin: 0 0 9px; }
.opportunity-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.work-button {
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font: 12px/1.5 var(--mono);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .18s, background .18s;
}
.work-button:hover { border-color: var(--accent); background: var(--cream); }
.resume-status { color: var(--muted); font: 11px/1.6 var(--mono); margin-top: 16px; }
.contact-extra { text-align: center; margin-top: 30px; }

/* Only transform/opacity animate; the document keeps its reserved layout. */
.motion-word { display: inline-block; white-space: nowrap; }
.motion-char { display: inline-block; }
.motion-heading:not(.is-visible) .motion-char { opacity: 0; transform: translateY(14px); }
.motion-heading.is-visible .motion-char {
  animation: heading-rise 480ms ease-out both;
  animation-delay: var(--letter-delay, 0ms);
}
.motion-card:not(.is-visible) { opacity: 0; translate: 0 24px; scale: .97; }
.motion-card.is-visible { animation: card-rise 580ms ease-out both; animation-delay: var(--card-delay, 0ms); }
/* Individual translate/scale properties retain scrapbook rotations and card hover transforms. */
.motion-card:focus-within, .motion-card:focus-visible { opacity: 1; translate: none; scale: none; animation: none; }
.signature-motion-ready .signature-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: signature-draw 700ms ease-out 400ms forwards;
}
.signature-motion-ready .asterisk { animation: none; }
@keyframes heading-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-rise { from { opacity: 0; translate: 0 24px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes signature-draw { to { stroke-dashoffset: 0; } }


/* About keeps its existing typography and scrapbook composition. */
#scott-scrapbook nav { align-items: center; }
#scott-scrapbook nav div { align-items: center; }
#scott-scrapbook footer { align-items: center; }

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr; margin-bottom: 50px; padding: 0; }
  .stat, .stat:first-child { padding: 20px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat-number { font-size: 32px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card { padding: 22px; }
  .testimonials { margin-top: 50px; }
  .work-opportunities { margin-top: 65px; }
  .work-opportunities h2 { font-size: 27px; }
  .intro-links { gap: 4px 20px; }
  .intro-links a { max-width: 100%; }
  .video-work, .channel, .reel-showcase, .quote-grid, .work-opportunities { min-width: 0; }
  .opportunity-copy { overflow-wrap: break-word; }
  #scott-scrapbook nav { flex-wrap: wrap; row-gap: 4px; }
}
@media (max-width: 400px) {
  .notch { max-width: calc(100% - 48px); }
  .opportunity-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-heading .motion-char { opacity: 1 !important; transform: none !important; }
  .motion-card { opacity: 1 !important; translate: none !important; scale: none !important; }
  .signature-underline path { stroke-dashoffset: 0 !important; }
}
