/* Standby — deep teal rain-study, baked grain, mono chrome. #nobuild */

:root {
  --bg: #10191c;
  --fg: #c3d2d0;
  /* Intense white is an accent — headline only, nothing else earns it */
  --fg-bright: #eaf2f0;
  --muted: #748986;
  --accent: #3d7a7e;
  --accent-mist: #5a9a9c;
  --fox: #d06e3e;
  --line: rgba(195, 210, 208, 0.06);
  --font-body: "Outfit", system-ui, sans-serif;
  --font-display: "Reenie Beanie", "Segoe Script", cursive;
  --font-hand: var(--font-display);
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 520ms;
  --maxw: 56rem;
  --page-inline: min(var(--maxw), 92vw);
  --cursor: url("./media/cursor.png") 14 5, auto;
  --cursor-hit: url("./media/cursor-pointer.png") 0 0, pointer;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

html:has(body.standby) {
  /* Kill native bar — OS trail cannot be restyled reliably */
  scrollbar-width: none;
  scroll-padding-top: 4.75rem;
}

html:has(body.standby)::-webkit-scrollbar,
body.standby::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

body.standby {
  scrollbar-width: none;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      ellipse 78% 56% at 50% 16%,
      color-mix(in srgb, var(--fox) 24%, transparent) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 130% 100% at 112% -12%,
      rgba(45, 110, 118, 0.16) 0%,
      rgba(28, 72, 78, 0.09) 28%,
      rgba(18, 42, 46, 0.04) 52%,
      var(--bg) 100%
    ),
    radial-gradient(
      ellipse 120% 95% at -8% 118%,
      rgba(6, 10, 12, 0.42) 0%,
      rgba(10, 16, 18, 0.2) 32%,
      rgba(12, 20, 22, 0.07) 58%,
      var(--bg) 100%
    );
  background-attachment: fixed;
  position: relative;
  overflow-x: clip;
}

@media (pointer: fine) {
  body.standby {
    cursor: var(--cursor);
  }

  body.standby :is(
    a,
    button:not(:disabled),
    summary,
    label[for],
    [role="button"],
    .hit,
    .submit,
    .foot-copy,
    .leave-pop-actions button
  ):is(:hover, :focus, :focus-visible, :active) {
    cursor: var(--cursor-hit);
  }
}

/* Custom rail — thumb only, no track fill */
.folio-rail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  z-index: 45;
  pointer-events: none;
}

.folio-rail[hidden] {
  display: none;
}

.folio-rail-thumb {
  position: absolute;
  top: 0;
  right: 4px;
  width: 2px;
  min-height: 40px;
  background-color: rgba(61, 122, 126, 0.5);
  border-radius: 0;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  transition-property: background-color, width, right;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
  will-change: transform;
}

/* Extend hit area without thickening visible thumb */
.folio-rail-thumb::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -18px;
  right: -10px;
}

.folio-rail-thumb:hover,
.folio-rail.is-dragging .folio-rail-thumb {
  background-color: rgba(90, 154, 156, 0.75);
  width: 3px;
  right: 3px;
}

.folio-rail.is-dragging .folio-rail-thumb {
  cursor: grabbing;
}

body.standby::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.72;
  mix-blend-mode: overlay;
  background-image: url("./grain.png");
  background-repeat: repeat;
  background-size: 220px 220px;
  background-position: 0 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@property --mast-fade {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

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

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  width: var(--page-inline);
  margin-inline: auto;
  padding: 0.75rem 0 0.5rem;
  /* Brand leads; nav + icons share one secondary band */
  --mast-mark: 2.05rem;
  --mast-name: 1.9rem;
  --mast-nav: 1.12rem;
  --mast-icon: 1.5rem;
  --mast-hit: 2.5rem;
  --scroll-fade-size: 3.5rem;
  --scroll-fade-reveal: 96px;
}

/* shadcn scroll-fade idea: dissolve under the bar as the page moves.
   Root timeline, not scroll(self) — the mast is not the scroller. */
.mast::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 0;
  width: 100vw;
  height: calc(100% + var(--scroll-fade-size));
  pointer-events: none;
  transform: translateX(-50%);
  opacity: var(--mast-fade, 0);
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--bg) 46%,
    color-mix(in srgb, var(--bg) 62%, transparent) 72%,
    transparent 100%
  );
}

@supports (animation-timeline: scroll(root)) {
  .mast::before {
    animation: mast-scroll-fade 1ms linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 96px;
  }
}

.mast.is-js-fade::before {
  animation: none;
}

.mast > * {
  position: relative;
  z-index: 1;
}

.mast-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--mast-hit);
  color: var(--fg);
  text-decoration: none;
  transition-property: color, opacity;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.mast-brand:hover {
  color: var(--fg-bright);
}

.mast-mark {
  display: block;
  width: auto;
  height: var(--mast-mark);
  flex: 0 0 auto;
}

.mast-name {
  font-family: var(--font-hand);
  font-size: var(--mast-name);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: translateY(0.06em);
}

.mast-links {
  position: relative;
  isolation: isolate;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mast-fluid-hover {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 0;
  background: color-mix(in srgb, var(--fg) 11%, transparent);
  opacity: 0;
  transition-property: left, width, top, height, opacity;
  transition-duration: 160ms, 160ms, 160ms, 160ms, 80ms;
  transition-timing-function: var(--ease-out);
}

.mast-links.is-hovering .mast-fluid-hover {
  opacity: 1;
}

.mast-links.is-hovering-current .mast-fluid-hover {
  opacity: 0;
}

.mast-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: var(--mast-hit);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-body);
  font-size: var(--mast-nav);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.mast-links a.is-near,
.mast-links a[aria-current="page"] {
  color: var(--fg-bright);
}

.mast-links a[aria-current="page"] {
  font-weight: 500;
}

.mast-links a:hover {
  color: var(--fg-bright);
}

.mast-links a[aria-current="page"]:hover {
  color: #fff;
}

.mast-links a:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 2px;
}

.mast-links a:active {
  transform: scale(0.96);
}

.mast-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.mast-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mast-hit);
  height: var(--mast-hit);
  color: var(--fg-bright);
  transition-property: color, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.mast-social a:hover {
  color: #fff;
}

.mast-social a[href^="mailto:"]:hover {
  color: #fff;
}

.mast-social a:active {
  transform: scale(0.96);
}

.mast-social svg {
  display: block;
  width: var(--mast-icon);
  height: var(--mast-icon);
  overflow: visible;
}

.mast-social .fh-accent {
  fill: var(--fox);
}

.mast-social a:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 4px;
}

.leave-pop {
  inset: unset;
  margin: 0;
  padding: 0.85rem 1rem 0.7rem;
  min-width: 11.5rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0.85rem 1.8rem rgba(0, 0, 0, 0.38);
}

.leave-pop::backdrop {
  background: transparent;
}

.leave-pop-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg-bright);
  text-wrap: pretty;
}

.leave-pop-host {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  word-break: break-all;
}

.leave-pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  margin-top: 0.7rem;
}

.leave-pop-actions button {
  appearance: none;
  margin: 0;
  padding: 0.45rem 0;
  min-height: 44px;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  transition-property: color, transform, opacity;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.leave-pop-actions button:hover {
  color: var(--fg);
}

.leave-pop-actions [data-leave-go] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fox);
}

.leave-pop-out {
  display: block;
  flex: none;
  transform: translateY(0.04em);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leave-pop-actions [data-leave-go]:hover {
  color: color-mix(in srgb, var(--fox) 72%, #f3e6d8);
}

.leave-pop-actions button:active {
  transform: scale(0.96);
}

.leave-pop-actions button:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .leave-pop:popover-open {
    animation: leave-pop-in 200ms var(--ease-out) both;
  }
}

@keyframes leave-pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage {
  position: relative;
  z-index: 1;
  width: var(--page-inline);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vh, 2.75rem) 0 0.75rem;
}

/* Mascot first, type under — Grace Wang layout, teal field, desk fox */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46rem;
  min-height: min(calc(100vh - 6.5rem), 46rem);
  justify-content: center;
  padding-top: clamp(1.75rem, 6vh, 3.5rem);
  padding-bottom: 2.15rem;
  border-bottom: 1px solid var(--line);
}

.hero-fox {
  position: relative;
  isolation: isolate;
  margin: 0 auto 1.5rem;
  width: min(32rem, 100%);
}

.hero-fox img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

.hero-think {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-think-bubble {
  position: absolute;
  left: var(--lx, 16%);
  top: var(--ly, 38%);
  display: flex;
  align-items: center;
  gap: 0.45ch;
  margin: 0;
  padding: 0;
  color: var(--fox);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition-property: opacity;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-out);
}

.hero-think-bubble.is-on {
  opacity: 1;
}

.hero-think-loader {
  display: inline-block;
  flex: none;
  width: 1ch;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.hero-think-words {
  display: block;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-think-words [data-ol-word] {
  display: block;
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fox) 50%, transparent) 0%,
    color-mix(in srgb, var(--fox) 50%, transparent) 35%,
    color-mix(in srgb, var(--fox) 92%, #f3e6d8) 50%,
    color-mix(in srgb, var(--fox) 50%, transparent) 65%,
    color-mix(in srgb, var(--fox) 50%, transparent) 100%
  );
  background-size: 300% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-think-words [data-ol-word] {
    animation: think-shimmer 1.5s ease-in-out infinite;
  }
}

@keyframes think-shimmer {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: 100% 0;
  }
}

.hero-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--muted);
}

.hero-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-hand);
  font-size: clamp(3.1rem, 8vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--fg-bright);
  text-decoration: none;
  text-wrap: balance;
  transition-property: color, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.hero-name:hover {
  color: var(--fg);
}

.hero-name:active {
  transform: scale(0.96);
}

.hero-role {
  margin: 0 0 1.35rem;
  max-width: 42ch;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--muted);
}

.hero-role a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.hero-role a:hover {
  color: var(--fox);
  text-decoration: underline;
}

.hero-role-bit {
  white-space: nowrap;
}

.about {
  max-width: 56rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 42ch) clamp(14.5rem, 34vw, 18.5rem);
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.75rem, 5vw, 3.25rem);
  row-gap: 1.1rem;
  align-items: start;
  justify-content: start;
}

.about-hero {
  grid-column: 1;
  padding-top: clamp(1.75rem, 6vh, 3.5rem);
  padding-bottom: 0;
}

.about-hero .hero-kicker {
  margin: 0;
}

.about-prose {
  grid-column: 1;
  max-width: 42ch;
  color: var(--fg);
  line-height: 1.55;
  text-wrap: pretty;
}

.about-process {
  grid-column: 1;
  max-width: 42ch;
  margin-top: 0.35rem;
}

.about-process .section-title {
  margin-bottom: 0.85rem;
}

.about-process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  display: grid;
  gap: 0.7rem;
  color: var(--fg);
  line-height: 1.45;
  text-wrap: pretty;
}

.about-process-list li {
  position: relative;
  padding-left: 1.65rem;
  counter-increment: process;
}

.about-process-list li::before {
  content: counter(process);
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-mist);
  line-height: 1.3;
}

.about-process-proof {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.45;
  text-wrap: pretty;
}

.about-process-proof a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

.about-process-proof a:hover {
  color: var(--fox);
}

.about-process-proof a:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 3px;
}

.about-mug {
  position: relative;
  grid-column: 2;
  grid-row: 2 / -1;
  align-self: center;
  width: 100%;
  margin: 0.4rem 0 0;
  overflow: visible;
}

.about-mug-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #16262a;
}

.about-mug-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.about-mug-fox {
  position: absolute;
  z-index: 2;
  left: 37%;
  top: -14%;
  width: 65%;
  height: auto;
  pointer-events: none;
  transform: rotate(10deg);
  transform-origin: 45% 58%;
  filter: saturate(1.06) contrast(1.04);
}

.about-mug-note {
  margin: 0.65rem 0.15rem 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--fg);
  text-wrap: pretty;
}

.about-prose p {
  margin: 0 0 1.15em;
}

.about-prose p:first-child {
  color: var(--fg-bright);
}

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

.about-prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
  text-underline-position: from-font;
  white-space: nowrap;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.about-prose a:hover {
  color: var(--fox);
}

.about-prose a:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 3px;
}

.about .cta {
  margin-top: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.25rem;
  min-height: 56px;
  text-decoration: none;
  color: var(--muted);
  transition-property: color, opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.logo:hover {
  color: var(--fg);
}

.logo:hover .logo-role {
  color: var(--accent-mist);
}

.logo:active {
  transform: scale(0.96);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.logo-word {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
  text-transform: none;
  font-variant: normal;
}

.logo-role {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--muted);
  text-transform: none;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.logo-mark {
  position: relative;
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: #244a4e;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 1.25rem rgba(61, 122, 126, 0.22);
}

/* Matte terrain — higher contrast so spin reads */
.logo-mark-surface {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
  background-color: #2f5a5e;
  background-image:
    radial-gradient(ellipse 16% 44% at 8% 48%, rgba(190, 230, 224, 0.72), transparent 72%),
    radial-gradient(ellipse 20% 58% at 24% 58%, rgba(4, 12, 14, 0.72), transparent 70%),
    radial-gradient(ellipse 14% 40% at 40% 38%, rgba(160, 210, 204, 0.55), transparent 70%),
    radial-gradient(ellipse 18% 50% at 56% 64%, rgba(8, 18, 20, 0.68), transparent 72%),
    radial-gradient(ellipse 15% 42% at 72% 42%, rgba(175, 220, 214, 0.58), transparent 70%),
    radial-gradient(ellipse 19% 54% at 88% 58%, rgba(2, 8, 10, 0.75), transparent 70%),
    radial-gradient(ellipse 16% 44% at 108% 48%, rgba(190, 230, 224, 0.72), transparent 72%),
    radial-gradient(ellipse 20% 58% at 124% 58%, rgba(4, 12, 14, 0.72), transparent 70%),
    radial-gradient(ellipse 14% 40% at 140% 38%, rgba(160, 210, 204, 0.55), transparent 70%),
    radial-gradient(ellipse 18% 50% at 156% 64%, rgba(8, 18, 20, 0.68), transparent 72%),
    radial-gradient(ellipse 15% 42% at 172% 42%, rgba(175, 220, 214, 0.58), transparent 70%),
    radial-gradient(ellipse 19% 54% at 188% 58%, rgba(2, 8, 10, 0.75), transparent 70%);
  pointer-events: none;
}

.logo-mark-lit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 36% 30%,
    rgba(220, 245, 240, 0.22) 0%,
    rgba(90, 150, 148, 0.12) 32%,
    rgba(12, 28, 30, 0.42) 62%,
    rgba(2, 6, 8, 0.88) 100%
  );
  mix-blend-mode: multiply;
}

.logo-mark-spec {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 34% 28%,
    rgba(235, 250, 246, 0.55) 0%,
    rgba(190, 225, 220, 0.16) 26%,
    transparent 50%
  );
  mix-blend-mode: soft-light;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .logo-mark-surface {
    will-change: transform;
    animation: globe-spin 12s linear infinite;
  }
}

@keyframes globe-spin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.title {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--fg);
  text-wrap: balance;
}

.work-category {
  margin-top: 2.75rem;
}

.work-category:first-of-type {
  margin-top: 0.55rem;
}

.work-category .work-group-label {
  margin: 0 0 1.1rem;
  max-width: none;
}

.work-category .work-strip {
  margin-bottom: 0;
}

.work-all {
  margin: 2.5rem 0 0;
}

.work-catalog {
  padding: 2.5rem 0 4.5rem;
  border-bottom: none;
}

.work-catalog-back {
  margin: 0 0 0.85rem;
}

.work-catalog-back .hit {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.work-catalog-back .hit:hover {
  color: var(--fg-bright);
}

.work-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 22rem);
  gap: 1rem 1.75rem;
  align-items: end;
  margin-bottom: 0.25rem;
}

.work-catalog-fox {
  margin: 0;
  width: 100%;
  grid-column: 2;
  grid-row: 1;
}

.work-catalog-fox img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

.work-catalog-head .section-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  align-self: end;
  padding-bottom: 0.15rem;
}

.work-catalog .work-category {
  margin-top: 2.5rem;
}

.work-catalog .work-category:first-of-type {
  margin-top: 1.1rem;
}

.work-card-link:not(a) {
  cursor: default;
}

.work-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 2.25rem;
}

.work-group {
  min-width: 0;
}

.work-group-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--accent-mist);
  text-transform: none;
  text-wrap: balance;
}

.work-catalog .work-group-label {
  max-width: none;
  margin-bottom: 0.85rem;
}

/* Left-rail hover TOC — Framer ScrollIndicator idea, standby tokens */
.page-toc {
  position: fixed;
  z-index: 44;
  top: 50%;
  left: 0.6rem;
  transform: translateY(-50%);
  display: none;
  /* Trap zone: keep :hover alive across marks + labels */
  padding: 1.5rem 15rem 1.5rem 0.75rem;
}

@media (pointer: fine) and (min-width: 1100px) {
  .page-toc {
    display: block;
  }
}

.page-toc-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.15rem;
  padding: 0.55rem 0;
  color: var(--muted);
  text-decoration: none;
  outline: none;
  isolation: isolate;
}

/* Per-row hit pad — covers tick + label column */
.page-toc-link::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: -0.55rem;
  width: 15rem;
}

.page-toc-mark {
  position: relative;
  z-index: 1;
  display: block;
  height: 2px;
  border-radius: 1px;
  transition-property: width, background-color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.page-toc-link--section .page-toc-mark {
  width: 1.35rem;
  background: color-mix(in srgb, var(--fox) 72%, transparent);
}

.page-toc-link--sub .page-toc-mark {
  width: 0.85rem;
  margin-left: 0.55rem;
  background: color-mix(in srgb, var(--accent-mist) 70%, transparent);
}

.page-toc-link--section.is-active .page-toc-mark,
.page-toc-link--section[aria-current="true"] .page-toc-mark {
  width: 2.35rem;
  background: var(--fox);
}

.page-toc-link--sub.is-active .page-toc-mark,
.page-toc-link--sub[aria-current="true"] .page-toc-mark {
  width: 1.85rem;
  background: var(--accent-mist);
}

.page-toc-label {
  position: absolute;
  z-index: 1;
  left: 2.7rem;
  top: 50%;
  transform: translateY(-50%) translateX(-0.35rem);
  max-width: 14rem;
  padding: 0.2rem 0.15rem;
  font-family: var(--font-hand);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: none;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

.page-toc-link--sub .page-toc-label {
  left: 3.15rem;
}

.page-toc-link--section .page-toc-label {
  font-size: 1.65rem;
  color: var(--fox);
}

.page-toc-link--sub .page-toc-label {
  font-size: 1.4rem;
  color: var(--accent-mist);
}

.page-toc:hover .page-toc-label,
.page-toc:focus-within .page-toc-label {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.page-toc-link--section:hover .page-toc-mark,
.page-toc-link--section:focus-visible .page-toc-mark {
  width: 1.85rem;
  background: var(--fox);
}

.page-toc-link--sub:hover .page-toc-mark,
.page-toc-link--sub:focus-visible .page-toc-mark {
  width: 1.35rem;
  background: var(--accent-mist);
}

.page-toc-link:focus-visible .page-toc-label {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .page-toc-mark,
  .page-toc-label {
    transition: none;
  }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}

.cta a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: color-mix(in srgb, var(--fg) 84%, var(--bg));
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition-property: color, border-color, opacity;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.cta a:hover {
  color: var(--fg-bright);
}

.cta a:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 3px;
}

.cta a[href="#contact"],
.cta a[href$="#contact"] {
  color: var(--fox);
}

.cta a[href="#contact"]:hover,
.cta a[href$="#contact"]:hover {
  color: color-mix(in srgb, var(--fox) 62%, #f3e6d8);
}

.cta a:active,
.submit:active,
.hero-name:active {
  transform: scale(0.96);
}

/* Fig leaves — bottom of the field. Asset is a top-right branch; 180° puts it on the ground. */
.leaf-wash {
  position: fixed;
  z-index: 0;
  top: auto;
  right: auto;
  left: -6%;
  bottom: -12%;
  width: min(56rem, 92vw);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  background-image: url("./media/fig-leaf-illustration.webp");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  transform: rotate(180deg);
  opacity: 0.36;
  filter: saturate(0.62) brightness(0.78) contrast(1.02);
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 78% 22%,
    #000 14%,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 78% 22%,
    #000 14%,
    transparent 70%
  );
}

/* Contact sheet: plates pinned side by side, bleeding past the text column */
.work {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 4.75rem;
}

.section-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-hand);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fox);
  text-wrap: balance;
}

.work-strip {
  /* Full-bleed sheet: track spans the viewport, plates still line up with the text column */
  --bleed: calc((100vw - var(--page-inline)) / 2);
  /* Drop-shadow on grove cards needs room inside the scrollport (overflow clips filters). */
  --shadow-pad: 1.5rem;
  position: relative;
  margin-inline: calc(-1 * var(--bleed));
}

.work-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  width: 100%;
  margin: 0;
  padding:
    var(--shadow-pad)
    max(var(--bleed), var(--shadow-pad))
    calc(var(--shadow-pad) + 0.75rem);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--bleed), var(--shadow-pad));
  scrollbar-width: none;
  cursor: grab;
}

.work-track::-webkit-scrollbar {
  display: none;
}

.work-track:focus-visible {
  outline: 1px solid var(--accent-mist);
  outline-offset: 0.75rem;
}

.work-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.work-card {
  position: relative;
  flex: 0 0 clamp(17rem, 30vw, 26rem);
  scroll-snap-align: start;
}

.work-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.work-card-link:focus-visible {
  outline: 1px solid var(--accent-mist);
  outline-offset: 0.5rem;
}

/* Plate shape presets — swap data-shape on .work. Bottom edge stays flat so
   the overlaid name always sits on a straight baseline. */
.work[data-shape="crest"] {
  --plate-radius: 64% 36% 0 0 / 34% 26% 0 0;
  --plate-ratio: 4 / 5;
}

.work[data-shape="arch"] {
  --plate-radius: 50% 50% 0 0 / 38% 38% 0 0;
  --plate-ratio: 4 / 5;
}

/* One arch family, alternating mirrored crowns. Adjacent cards lean toward
   each other; repetition keeps each plate reading as a solid container. */
.work[data-shape="arch-pair"] {
  --plate-ratio: 4 / 5;
}

.work[data-shape="arch-pair"] .work-card:nth-child(odd) .work-plate {
  --plate-radius: 62% 38% 0 0 / 36% 29% 0 0;
}

.work[data-shape="arch-pair"] .work-card:nth-child(even) .work-plate {
  --plate-radius: 38% 62% 0 0 / 29% 36% 0 0;
}

.work[data-shape="tab"] {
  --plate-radius: 2.75rem 2.75rem 0 0;
  --plate-ratio: 4 / 5;
}

.work[data-shape="lean"] {
  --plate-radius: 45% 12% 0 0 / 30% 12% 0 0;
  --plate-ratio: 3 / 4;
}

.work[data-shape="sheet"] {
  --plate-radius: 0;
  --plate-ratio: 2 / 3;
}

/* Cut corner — index card pulled from a drawer */
.work[data-shape="notch"] {
  --plate-ratio: 4 / 5;
  --plate-clip: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%);
}

/* Tapered plinth — sides lean in, architectural */
.work[data-shape="plinth"] {
  --plate-ratio: 4 / 5;
  --plate-clip: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}

/* Torn paper and organic silhouette need real alpha, so they ride on masks */
.work[data-shape="deckle"] {
  --plate-ratio: 4 / 5;
  --plate-mask: url("./media/work/mask-deckle.png");
}

.work[data-shape="blob"] {
  --plate-ratio: 4 / 5;
  --plate-mask: url("./media/work/mask-blob.png");
}

/* Grove — one arch family, crown set by phyllotaxis (golden-angle lean) and a
   name-seeded superellipse. Straight sides + flat bottom keep the container and
   the title baseline; only the dome differs per project. */
.work[data-shape="grove"] {
  --plate-ratio: 4 / 5;
}

.work[data-shape="grove"] .work-card:nth-child(3n + 1) .work-plate {
  --plate-mask: url("./media/work/mask-grove-01.png");
}

.work[data-shape="grove"] .work-card:nth-child(3n + 2) .work-plate {
  --plate-mask: url("./media/work/mask-grove-02.png");
}

.work[data-shape="grove"] .work-card:nth-child(3n + 3) .work-plate {
  --plate-mask: url("./media/work/mask-grove-03.png");
}

/* Slit from one sheet — each plate's right edge is the next plate's left edge,
   so neighbours interlock. Caps are shared, so the row reads as one strip. */
.work[data-shape="seam"] {
  --plate-ratio: 4 / 5;
}

/* The masks carry their own transparent margin, so the flex gap goes nearly to
   zero and the channel between plates stays the width of the shared seam. */
.work[data-shape="seam"] .work-track {
  gap: clamp(0.1rem, 0.5vw, 0.6rem);
}

.work[data-shape="seam"] .work-card {
  flex-basis: clamp(19rem, 34vw, 29rem);
}

.work[data-shape="seam"] .work-card:nth-child(3n + 1) .work-plate {
  --plate-mask: url("./media/work/mask-seam-01.png");
}

.work[data-shape="seam"] .work-card:nth-child(3n + 2) .work-plate {
  --plate-mask: url("./media/work/mask-seam-02.png");
}

.work[data-shape="seam"] .work-card:nth-child(3n + 3) .work-plate {
  --plate-mask: url("./media/work/mask-seam-03.png");
}

/* Clipped and masked plates: box-shadow gets cut, so depth moves to
   drop-shadow, which follows the alpha instead of the element box. */
.work[data-shape="notch"] .work-plate,
.work[data-shape="plinth"] .work-plate,
.work[data-shape="deckle"] .work-plate,
.work[data-shape="seam"] .work-plate,
.work[data-shape="grove"] .work-plate,
.work[data-shape="blob"] .work-plate {
  background: none;
  box-shadow: none;
}

/* Filter runs before the mask, so a drop-shadow on the plate itself would be
   masked away. It lives on the card, one level up. */
.work[data-shape="notch"] .work-card,
.work[data-shape="plinth"] .work-card,
.work[data-shape="deckle"] .work-card,
.work[data-shape="seam"] .work-card,
.work[data-shape="grove"] .work-card,
.work[data-shape="blob"] .work-card {
  filter: drop-shadow(0 0.4rem 0.8rem rgba(0, 0, 0, 0.22))
    drop-shadow(0 1.1rem 2.25rem rgba(0, 0, 0, 0.32));
  transition-property: filter;
  transition-duration: 420ms;
  transition-timing-function: var(--ease);
}

.work[data-shape="notch"] .work-card:hover,
.work[data-shape="plinth"] .work-card:hover,
.work[data-shape="deckle"] .work-card:hover,
.work[data-shape="seam"] .work-card:hover,
.work[data-shape="grove"] .work-card:hover,
.work[data-shape="blob"] .work-card:hover {
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.26))
    drop-shadow(0 1.4rem 2.75rem rgba(0, 0, 0, 0.4));
}

/* Ragged and round bottoms give the name nothing to sit on — drop it below */
.work[data-shape="deckle"] .work-card h3,
.work[data-shape="seam"] .work-card h3,
.work[data-shape="blob"] .work-card h3 {
  position: static;
  margin: 1.15rem 0 0;
  text-shadow: none;
}

/* Line the name up with the masked plate, not the transparent margin */
.work[data-shape="seam"] .work-card h3 {
  margin-inline: 12%;
}

.work[data-shape="deckle"] .work-plate::after,
.work[data-shape="seam"] .work-plate::after,
.work[data-shape="blob"] .work-plate::after {
  opacity: 0;
}

.work-plate {
  position: relative;
  display: block;
  aspect-ratio: var(--plate-ratio, 4 / 5);
  border-radius: var(--plate-radius, 0);
  clip-path: var(--plate-clip, none);
  -webkit-mask-image: var(--plate-mask, none);
  mask-image: var(--plate-mask, none);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  overflow: hidden;
  background: #16262a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0.5rem 1rem rgba(0, 0, 0, 0.18),
    0 1.25rem 2.5rem rgba(0, 0, 0, 0.28);
  transition-property: box-shadow;
  transition-duration: 420ms;
  transition-timing-function: var(--ease);
}

/* Scrim so the name stays legible over any plate */
.work-plate::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 12, 14, 0.82) 0%,
    rgba(6, 12, 14, 0.45) 42%,
    rgba(6, 12, 14, 0) 100%
  );
  transition-property: opacity;
  transition-duration: 480ms;
  transition-timing-function: var(--ease);
}

.work-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03) brightness(0.9);
  transition: opacity 480ms var(--ease), filter 480ms var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}

.work-thumb-loop {
  opacity: 0;
}

.work-card:hover .work-thumb-loop,
.work-card:focus-within .work-thumb-loop,
.work-card.is-live .work-thumb-loop {
  opacity: 1;
}

.work-card:hover .work-plate img,
.work-card:focus-within .work-plate img,
.work-card.is-live .work-plate img {
  filter: saturate(0.95) contrast(1.04) brightness(1);
}

.work-card:hover .work-plate {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0.6rem 1.25rem rgba(0, 0, 0, 0.22),
    0 1.5rem 3rem rgba(0, 0, 0, 0.36);
}

/* No hover to reveal the loop on touch, so it just runs. */
@media (hover: none) {
  .work-thumb-loop {
    opacity: 1;
  }
}

.work-card h3 {
  position: absolute;
  z-index: 1;
  right: 1.35rem;
  bottom: 1.15rem;
  left: 1.35rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-wrap: balance;
  transition-property: color;
  transition-duration: 420ms;
  transition-timing-function: var(--ease);
}

.work-card:hover h3,
.work-card:focus-within h3,
.work-card.is-live h3 {
  color: var(--fg-bright);
}

.work-names {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.work-names li {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.4;
  color: color-mix(in srgb, var(--fg) 88%, var(--bg));
}

.work-names a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--fg) 28%, transparent);
  transition-property: color, text-decoration-color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.work-names a:hover {
  color: var(--fox);
  text-decoration-color: color-mix(in srgb, var(--fox) 55%, transparent);
}

.work-aside {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.35rem;
}

/* Thin standby case — Winston fold: vision, news plate, body, contributions */
.case-stage {
  max-width: 42rem;
  padding-bottom: 3.5rem;
}

.case-back {
  margin: 0 0 1.75rem;
}

.case-back a,
.case-miss a,
.hit {
  color: color-mix(in srgb, var(--fg) 84%, var(--bg));
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition-property: color, border-color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.case-back a:hover,
.case-miss a:hover,
.hit:hover {
  color: var(--fg-bright);
  border-bottom-color: color-mix(in srgb, var(--fg) 28%, transparent);
}

.case-article {
  display: grid;
  gap: 1.75rem;
}

.case-loading,
.case-miss {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.case-header {
  max-width: 36rem;
}

.case-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--accent-mist);
  text-transform: lowercase;
}

.case-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg-bright);
  text-wrap: balance;
}

.case-line {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.case-plate {
  position: relative;
  margin: 0;
  width: min(22rem, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  overflow: hidden;
  background: #16262a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0.5rem 1rem rgba(0, 0, 0, 0.18),
    0 1.25rem 2.5rem rgba(0, 0, 0, 0.28);
}

.case-plate img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03) brightness(0.9);
}

.case-plate-loop {
  opacity: 1;
}

.case-body {
  max-width: 42ch;
  color: var(--fg);
  text-wrap: pretty;
}

.case-body p {
  margin: 0 0 1em;
  font-size: 1.12rem;
  line-height: 1.55;
}

.case-body p:last-child {
  margin-bottom: 0;
}

.case-contrib {
  margin-top: 0.25rem;
}

.case-pager {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.case-pager-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.case-pager-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.case-pager-link:hover {
  color: var(--fox);
}

.case-pager-link.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.case-pager-next {
  text-align: right;
  align-items: flex-end;
}

.case-pager-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
}

.case-pager-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  text-wrap: balance;
}

.case-pager-link:hover .case-pager-title {
  color: var(--fox);
}

.contact {
  padding: 3.5rem 0 1.25rem;
  max-width: 36rem;
  scroll-margin-top: 4.75rem;
}

.contact .section-title {
  margin-bottom: 1.45rem;
}

.inquiry {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(195, 210, 208, 0.1);
  border-radius: 0;
  background: rgba(8, 14, 16, 0.5);
  color: var(--fg);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  transition-property: border-color, background-color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.submit:focus-visible {
  outline: 2px solid rgba(61, 122, 126, 0.65);
  outline-offset: 2px;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(195, 210, 208, 0.16);
}

.field textarea::placeholder {
  color: rgba(122, 143, 140, 0.7);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.35rem;
  margin-top: 0.4rem;
}

.submit {
  appearance: none;
  margin: 0;
  padding: 1.05rem 1.4rem;
  min-height: 56px;
  max-width: 100%;
  border: 1px solid rgba(195, 210, 208, 0.18);
  border-radius: 0;
  background: color-mix(in srgb, var(--fg) 90%, var(--bg));
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform, opacity;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

.submit:hover {
  background: color-mix(in srgb, var(--fox) 14%, #eef6f5);
  border-color: color-mix(in srgb, var(--fox) 40%, transparent);
}

.submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-news {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
}

.contact-alt {
  margin: 2rem 0 0;
}

.contact-alt a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 3px;
}

.contact-alt a:hover {
  color: var(--fox);
  text-decoration: underline;
}

.site-credit {
  margin: 2.5rem 0 0;
  max-width: 42ch;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.site-credit a {
  color: inherit;
  text-underline-offset: 3px;
}

.site-credit a:hover {
  color: var(--fox);
}

.site-foot {
  position: relative;
  z-index: 1;
  width: var(--page-inline);
  margin: 0 auto;
  padding: 11.5rem 0 2.5rem;
}

.foot-close {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 0.75fr);
  align-items: center;
  column-gap: 1.5rem;
  padding-bottom: 4.25rem;
}

.foot-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-hand);
  font-size: 2.45rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fg-bright);
}

.foot-lede {
  margin: 0 0 1.05rem;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.foot-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  margin: 0;
}

.foot-mail a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  text-underline-offset: 3px;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.foot-mail a:hover {
  color: var(--fg-bright);
}

.foot-mail a:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 3px;
}

.foot-copy {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0.2rem 0.45rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition-property: color, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.foot-copy:hover {
  color: var(--fg-bright);
}

.foot-copy:active {
  transform: scale(0.96);
}

.foot-copy.is-copied {
  color: var(--accent-mist);
}

.foot-copy:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 3px;
}

.foot-fox {
  margin: 0.35rem 0 0;
  width: min(11rem, 28vw);
}

.foot-fox img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

.foot-nav {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.05rem 0.15rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition-property: color, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.foot-nav a:hover {
  color: var(--fg-bright);
}

.foot-nav a:active {
  transform: scale(0.96);
}

.foot-nav a:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 3px;
}

.foot-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
}

.foot-credit {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
}

.foot-credit a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.foot-credit a:hover {
  color: var(--fox);
  text-decoration: underline;
}

.foot-credit a:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 3px;
}

.foot-by {
  white-space: nowrap;
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.9rem;
}

.foot-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 3px;
  transition-property: color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}

.foot-social a:hover {
  color: var(--fg-bright);
}

.foot-social a:focus-visible {
  outline: 1.5px solid var(--fg-bright);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

@media (max-width: 800px) {
  body.standby {
    font-size: 20px;
  }

  .work-catalog-head {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: start;
  }

  .work-catalog-fox,
  .work-catalog-head .section-title {
    grid-column: 1;
    grid-row: auto;
  }

  .work-catalog-fox {
    width: min(22rem, 100%);
    order: -1;
  }

  .work-catalog-head .section-title {
    order: 0;
  }

  .mast {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .mast-sur {
    display: none;
  }

  .mast {
    --mast-mark: 1.85rem;
    --mast-name: 1.7rem;
    --mast-nav: 1.05rem;
    --mast-icon: 1.25rem;
    --mast-hit: 2.35rem;
  }

  .mast-links {
    gap: 0.2rem;
    min-width: 0;
  }

  .mast-links a {
    padding: 0.15rem 0.35rem;
  }

  .hero {
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-fox {
    width: min(26rem, 92vw);
    margin-bottom: 1.6rem;
  }

  .hero-name {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .about-hero {
    padding-top: 1.5rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 42ch);
    grid-template-areas:
      "hero"
      "mug"
      "prose";
    grid-template-rows: auto;
  }

  .about-hero {
    grid-area: hero;
  }

  .about-prose {
    grid-area: prose;
  }

  .about-mug {
    grid-area: mug;
    grid-column: auto;
    grid-row: auto;
    width: 12.5rem;
    margin-top: 2.4rem;
    margin-bottom: 0.35rem;
    justify-self: start;
  }

  .title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  .leaf-wash {
    left: -16%;
    bottom: -8%;
    width: min(38rem, 112vw);
    opacity: 0.24;
  }

  .work {
    padding: 4rem 0 3.5rem;
  }

  .section-title {
    margin-bottom: 0.7rem;
  }

  .work-category {
    margin-top: 2.25rem;
  }

  .work-category:first-of-type {
    margin-top: 0.45rem;
  }

  .work-card {
    flex-basis: min(78vw, 20rem);
  }

  .work[data-shape="seam"] .work-card {
    flex-basis: min(86vw, 23rem);
  }

  .work-card h3 {
    font-size: 1.25rem;
  }

  .work-names li {
    font-size: 0.98rem;
  }

  .work-index {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }

  .foot-close {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    row-gap: 1.75rem;
    padding-bottom: 2.4rem;
  }

  .foot-fox {
    width: min(12rem, 56vw);
    margin: 0.2rem 0;
    justify-self: center;
  }

  .foot-nav {
    justify-self: start;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .foot-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .foot-social {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html:has(body.standby) {
    scroll-padding-top: 6.25rem;
  }

  .mast {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand social"
      "links links";
    gap: 0 0.4rem;
    padding: 0.55rem 0 0.3rem;
  }

  .mast-brand {
    grid-area: brand;
  }

  .mast-links {
    grid-area: links;
    justify-self: start;
    gap: 0.15rem;
  }

  .mast-links a {
    padding: 0.15rem 0.45rem;
  }

  .mast-social {
    grid-area: social;
  }

  .work,
  .contact {
    scroll-margin-top: 6.25rem;
  }
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta a:active,
  .submit:active,
  .logo:active,
  .hero-name:active,
  .mast-social a:active,
  .foot-copy:active,
  .foot-nav a:active {
    transform: none;
  }

  .hero-think-words [data-ol-word] {
    color: var(--fox);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }

  .work-thumb-loop,
  .case-plate-loop {
    display: none;
  }
}
