/* =========================================================
   TOKENS
========================================================= */
:root {
  --color-bg: #f4f6f8;
  --color-dark: #1a1a1a;
  --color-blue: #1b2ab0;
  --color-blue-light: #a9b5ff;
  --color-text: #1a1a1a;
  --color-text-muted: #343434;
  --color-border: rgba(26, 26, 26, 0.08);
  --color-white: #ffffff;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif-italic: 'Instrument Serif', serif;
  --font-mono: 'Geist Mono', monospace;
  --font-instrument-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --button-font-size: 16px;

  --corner-ring: url("../assets/icons/corner-icon.svg");

  --container: 1200px;

  /* spacing scale */
  --gutter-x: max(24px, calc((100vw - var(--container)) / 2));
  --space-sm: 12px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 56px;
  --space-3xl: 80px;

  /* section rhythm (normalized to two values) */
  --space-section: 96px;
  --space-section-sm: 72px;
  --space-head: 48px;
}

/* =========================================================
   RESET
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}
.about :where(a, button, [tabindex]):focus-visible,
.awpart :where(a, button, [tabindex]):focus-visible,
.footer :where(a, button, [tabindex]):focus-visible {
  outline-color: var(--color-blue-light);
}

.serif-italic {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
  -webkit-text-stroke: 1px currentColor;
  text-stroke: 1px currentColor;
  paint-order: stroke fill;
}

.text-weight-boost {
  font-family: var(--font-instrument-sans);
  -webkit-text-stroke: 0.75px currentColor;
  text-stroke: 0.75px currentColor;
  paint-order: stroke fill;
}

section {
  padding-left: var(--gutter-x);
  padding-right: var(--gutter-x);
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: var(--button-font-size);
  font-weight: 400;
  line-height: normal;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn img { width: 20px; height: 20px; color: #ffffff; }

.btn--primary,
.btn--dark,
.btn--outline {
  min-height: 50.8px;
  padding: 0 25px;
}
.btn--primary::before,
.btn--primary::after,
.btn--dark::before,
.btn--dark::after,
.btn--outline::before,
.btn--outline::after {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 7px;
  background: currentColor;
  -webkit-mask-image: var(--corner-ring), var(--corner-ring);
  mask-image: var(--corner-ring), var(--corner-ring);
  -webkit-mask-position: top left, bottom left;
  mask-position: top left, bottom left;
  -webkit-mask-size: 6.4px 6.4px;
  mask-size: 6.4px 6.4px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.btn--primary::before,
.btn--dark::before,
.btn--outline::before { left: 7px; }
.btn--primary::after,
.btn--dark::after,
.btn--outline::after { right: 7px; }

.btn--primary {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.btn--dark {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}
.btn--center {
  display: flex;
  width: fit-content;
  margin: 48px auto 0;
}

/* =========================================================
   NAV
========================================================= */
.nav-wrap {
  padding: 24px var(--gutter-x);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo img { height: 80px; width: auto; }

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 2;
}
.nav-label { display: none; }
.nav-menu-toggle { display: none; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 3;
}
.home-page .nav-right { gap: 8px; }
.nav-sound-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 50.8px;
  width: 50.8px;
  height: 50.8px;
  padding: 0;
  color: var(--color-blue);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 0;
}
.nav-sound-toggle .site-dock__equalizer { gap: 3px; height: 18px; }
.nav-sound-toggle .site-dock__equalizer i { width: 3px; }

.nav-links {
  display: flex;
  gap: 8px;
  background: #f4f6f8;
  border: 1.5px solid var(--color-border);
  padding: 8px;
}
.nav-links--single { padding: 8px; }

.nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.2s ease;
}
.nav-btn img {
  width: 24px;
  height: 24px;
  transform: none !important;
  filter: brightness(0) saturate(100%);
}
.nav-btn:hover { background: rgba(26, 26, 26, 0.06); }

.nav-links--single .nav-btn img {
  width: 28px;
  height: 28px;
}
.nav-btn--active { background: var(--color-dark); color: #fff; }
.nav-btn--active img { filter: brightness(0) saturate(100%) invert(1); }
.nav-right .nav-cta--active {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: #fff;
}

.site-dock {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 260px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.site-dock.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.site-dock__logo,
.site-dock__button {
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
  color: #fff;
  background: var(--color-blue);
  border: 1px solid transparent;
  border-radius: 0;
}
.site-dock__logo { flex: 0 0 40px; padding: 6px; border-color: var(--color-blue); }
.site-dock__logo img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.site-dock__button {
  position: relative;
  justify-content: space-between;
  flex: 1 1 0;
  gap: 12px;
  padding-inline: 8px;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}
.site-dock__button::before,
.site-dock__button::after {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: currentColor;
  -webkit-mask-image: var(--corner-ring), var(--corner-ring);
  mask-image: var(--corner-ring), var(--corner-ring);
  -webkit-mask-position: top left, bottom left;
  mask-position: top left, bottom left;
  -webkit-mask-size: 4px 4px;
  mask-size: 4px 4px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.site-dock__button::before { left: 2px; }
.site-dock__button::after { right: 2px; }
.site-dock__button > span:first-child {
  display: inline-block;
  transform-origin: left center;
}
.site-dock__button:hover > span:first-child,
.site-dock__button:focus-visible > span:first-child {
  animation: dock-text-flicker 520ms steps(1, end);
}
.site-dock__menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 14px;
}
.site-dock__menu-icon i {
  width: 16px;
  height: 0.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease;
}
.site-dock__directory[aria-expanded="true"] .site-dock__menu-icon i:first-child { transform: translateY(2px) rotate(45deg); }
.site-dock__directory[aria-expanded="true"] .site-dock__menu-icon i:last-child { transform: translateY(-2px) rotate(-45deg); }
.site-dock__equalizer { display: flex; align-items: center; gap: 2px; height: 14px; }
.site-dock__equalizer i { width: 2px; height: 4px; background: currentColor; }
.site-dock__equalizer { opacity: 0.6; }
.site-dock__sound.is-playing .site-dock__equalizer,
.nav-sound-toggle.is-playing .site-dock__equalizer { opacity: 1; }
.site-dock__equalizer i:nth-child(2) { height: 8px; }
.site-dock__equalizer i:nth-child(3) { height: 12px; }
.site-dock__equalizer i:nth-child(4) { height: 6px; }
.site-dock__sound.is-playing .site-dock__equalizer i,
.nav-sound-toggle.is-playing .site-dock__equalizer i { animation: dock-equalize 440ms ease-in-out infinite alternate; }
.site-dock__sound.is-playing .site-dock__equalizer i:nth-child(2),
.nav-sound-toggle.is-playing .site-dock__equalizer i:nth-child(2) { animation-delay: 130ms; }
.site-dock__sound.is-playing .site-dock__equalizer i:nth-child(3),
.nav-sound-toggle.is-playing .site-dock__equalizer i:nth-child(3) { animation-delay: 240ms; }
.site-dock__sound.is-playing .site-dock__equalizer i:nth-child(4),
.nav-sound-toggle.is-playing .site-dock__equalizer i:nth-child(4) { animation-delay: 70ms; }
.site-dock__audio,
.site-dock__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-dock__status { left: -10000px; }
@keyframes dock-equalize {
  0% { height: 3px; }
  50% { height: 13px; }
  100% { height: 5px; }
}
@keyframes dock-text-flicker {
  0%, 100% { opacity: 1; transform: translateX(0); }
  18% { opacity: 0.35; transform: translateX(1px); }
  30% { opacity: 1; transform: translateX(-0.5px); }
  46% { opacity: 0.55; }
  58% { opacity: 1; transform: translateX(0); }
}

.dock-directory {
  position: fixed;
  z-index: 109;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0 16px calc(78px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
  touch-action: none;
  background: rgba(244, 246, 248, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: directory-appear 180ms ease both;
}
.dock-directory__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.dock-directory__panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: min(100%, 300px);
}
.dock-directory__link {
  display: flex;
  align-items: flex-start;
  min-height: 88px;
  padding: 10px;
  color: #fff;
  background: var(--color-blue);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1.3;
  transition: background 160ms ease, color 160ms ease;
}
.dock-directory__link:hover {
  color: var(--color-blue);
  background: #fff;
}
.dock-directory__link--social { grid-column: 2; justify-content: center; align-items: center; }
@keyframes directory-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .site-dock,
  .site-dock__button,
  .site-dock__menu-icon i { transition-duration: 0.01ms; }
  .site-dock__sound.is-playing .site-dock__equalizer i,
  .nav-sound-toggle.is-playing .site-dock__equalizer i,
  .site-dock__button:hover > span:first-child,
  .site-dock__button:focus-visible > span:first-child {
    animation: none;
  }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  padding-top: 20px;
  padding-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  max-width: none;
  margin: 0;
}

.hero-copy {
  max-width: 424px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  line-height: 1.15;
}
.hero h1 .serif-italic {
  color: var(--color-text);
}
.hero-headline {
  color: var(--color-blue);
}

.hero-sub {
  max-width: 368px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.hero-watch-link {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--color-text-muted);
}

.hero-video-block { width: 100%; max-width: 950px; }

/* =========================================================
   SECTION HEADS
========================================================= */
.section-head {
  max-width: 700px;
  margin: 0 auto var(--space-head);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.section-head h2 {
  font-weight: 500;
  line-height: 1.15;
}
.section-head p {
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
}
.section-head--dark {
  max-width: 1200px;
  margin: 0 auto var(--space-head);
  text-align: center;
  align-items: center;
}
.section-head--dark p {
  max-width: 740px;
  color: rgba(244, 246, 248, 0.75);
  font-weight: 400;
  line-height: normal;
}

.eyebrow {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.66);
  font-weight: 600;
}

/* =========================================================
   404 PAGE
========================================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: var(--space-section) var(--gutter-x);
}
.error-page h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.error-page p {
  max-width: 52ch;
  color: rgba(0, 0, 0, 0.75);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* =========================================================
   WORK SECTION
========================================================= */
.work {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  max-width: none;
  margin: 0;
}

.work-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  background: var(--color-dark);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--button-font-size);
  line-height: normal;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.filter-btn img { width: 24px; height: 24px;}
.filter-btn--active { background: var(--color-blue); }

.work-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.work-card--reverse .work-card-body { order: 1; }
.work-card--reverse .work-card-image { order: 2; }

.work-card-image {
  position: relative;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  min-height: 370px;
  overflow: visible;
}
.work-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Compact project grid used on the dedicated overview page. */
.work--overview .work-filters { margin-bottom: 32px; }
.work--overview .work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.work--overview .work-card {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-content: start;
  border: 1px solid var(--color-border);
  background: #fff;
}
.work--overview .work-card--reverse .work-card-body,
.work--overview .work-card--reverse .work-card-image { order: 0; }
.work--overview .work-card .work-card-image {
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 12px 12px 0;
  overflow: visible;
  border: 0;
}
.work--overview .work-card .work-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.work--overview .work-card-body {
  min-width: 0;
  gap: 12px;
  justify-content: flex-start;
  padding: 12px;
}
.work--overview .work-card-meta { gap: 8px; }
.work--overview .work-card-logo { height: 32px; max-width: 80px; }
.work--overview .pill-row { gap: 5px; }
.work--overview .pill { padding: 5px 7px; font-size: 11px; }
.work--overview .work-card-body h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.04em; }
.work--overview .work-card-body > p { font-size: 13px; line-height: 1.45; }
.work--overview .work-stats { gap: 10px 18px; }
.work--overview .stat-num { font-size: 26px; }
.work--overview .stat-label { font-size: 10px; }
.work--overview .work-actions { gap: 8px; margin-top: auto; }
.work--overview .work-actions .btn { flex: 1 1 0; min-width: 0; padding: 11px 10px; font-size: var(--button-font-size); }
.work--overview .tag { top: 8px; left: 8px; }
.work--overview .tag--yellow { right: 8px; left: auto; }

.tag {
  position: absolute;
  top: -10px;
  left: -12px;
  transform: rotate(-6deg);
  transform-origin: top left;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-micro);
  line-height: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.tag--green { background: #39e673; }
.tag--yellow { background: #e6ac39; right: -12px; left: auto; transform: rotate(6deg); transform-origin: top right; }
.tag--red { background: #e63939; }

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.work-card-logo {
  height: 36px;
  max-width: 96px;
  flex: 0 1 auto;
  object-fit: contain;
  object-position: left center;
}
.work-card-logo[hidden] { display: none; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: #fff;
  border: 0.5px solid rgba(26, 26, 26, 0.15);
  padding: 8px 12px;
  line-height: normal;
  color: #423f39;
}

.work-card-body h2,
.work-card-body h3 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.work-card-body > p {
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 523px;
}

.work-stats { display: flex; gap: 46px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  display: block;
  line-height: 1.1;
}
.stat-label {
  display: block;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.work-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   ABOUT (dark)
========================================================= */
.wipe {
  position: relative;
  height: 150vh;
}
.wipe__sticky {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.wipe__circle {
  grid-area: 1 / 1;
  width: 24vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-dark);
  transform: scale(0.04);
  will-change: transform;
}
.wipe__scroll-cue {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.wipe__scroll-cue span {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wipe__scroll-cue svg {
  width: 20px;
  height: 28px;
  fill: var(--color-blue-light);
  animation: wipe-scroll 1.15s ease-in-out infinite;
}
@keyframes wipe-scroll {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .wipe__scroll-cue svg { animation: none; }
  .wipe { height: 0; overflow: hidden; }
}

.about {
  background: var(--color-dark);
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  color: #fff;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.section-head--dark h2 {
  display: flex;
  gap: 0.3em;
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #fff;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  max-width: 900px;
  align-items: center;
}
.section-head--dark h2 .serif-italic {
  font-family: var(--font-serif-italic);
  color: var(--color-blue-light);
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.about-content {
  display: flex;
  gap: var(--space-2xl);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-collage {
  position: relative;
  width: 480px;
  height: 415px;
  flex-shrink: 0;
}
.collage-img {
  position: absolute;
  width: 160px;
  height: 205px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 3px;
}
.collage-img--1 { top: 0;   left: 312px; transform: rotate(4deg); }
.collage-img--2 { top: 0;   left: 150px; transform: rotate(-2deg); }
.collage-img--3 { top: 200px; left: 320px; transform: rotate(-1deg); }
.collage-img--4 { left: -12px;   transform: rotate(-2deg); }
.collage-img--5 { top: 200px; left: 160px; transform: rotate(4deg); }
.collage-img--6 { top: 200px; left: 0;   transform: rotate(-2deg); }

.about-text { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.about-text h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: rgba(244, 246, 248, 0.75);
  line-height: 1.5;
}
.about-paragraphs strong { color: #fff; font-weight: 700; }

.about-text .btn { width: fit-content; margin-top: 8px; }
.about-text .btn-medium { width: fit-content; }
.writing__more .btn-medium { width: fit-content; max-width: 100%; }

/* =========================================================
   WRITINGS / MANUSCRIPT DESK
========================================================= */
.writings {
  padding-top: 100px;
  padding-bottom: 100px;
  max-width: 1440px;
  margin: 0 auto;
  background: #1A1A1A;
}

.writings .section-head h2,
.writings .section-head p,
.writings .section-head .serif-italic {
  color: #f4efe8;
}

.awpart {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: var(--space-section) var(--gutter-x);
  background: #1A1A1A;
  border-top: 0;
}
.awpart .section-head {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.awpart .eyebrow { color: #8F8B80; }
.awpart .dsk { margin-top: 0; }

.writing__more { margin-top: 1.6rem; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.btn-medium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 50.8px;
  padding: 0 25px;
  background: #fff;
  border: 1px solid #fff;
  color: #121212;
  font-weight: 500;
  font-size: var(--button-font-size);
  line-height: normal;
  white-space: nowrap;
  max-width: 100%;
  box-shadow: 0 16px 32px -14px rgba(255,255,255,0.45);
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-medium::before,
.btn-medium::after {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 7px;
  width: 7px;
  background: currentColor;
  -webkit-mask-image: var(--corner-ring), var(--corner-ring);
  mask-image: var(--corner-ring), var(--corner-ring);
  -webkit-mask-position: top left, bottom left;
  mask-position: top left, bottom left;
  -webkit-mask-size: 6.4px 6.4px;
  mask-size: 6.4px 6.4px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.btn-medium::before { left: 7px; }
.btn-medium::after { right: 7px; }
.btn-medium img { width: 22px; height: 22px; }
.btn-medium svg { width: 22px; height: 22px; fill: currentColor; }
.btn-medium:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 20px 40px -14px rgba(255,255,255,0.55); }
@media (min-width:900px){ .writing__more { justify-content: center; } }
.dsk{position:relative;margin-top:2.2rem}
.dsk__lamp{display:none}
@media (min-width:900px){
  .dsk{aspect-ratio:1150/920;overflow:hidden}
  .dsk__lamp{display:block;position:absolute;left:0;top:0;z-index:8;width:126px;height:68px;transform:translate3d(calc(var(--lx) - 112px),calc(var(--ly) - 34px),0);will-change:transform;opacity:0;pointer-events:none;filter:drop-shadow(0 6px 8px rgba(0,0,0,.45));transition:opacity .16s ease}
  .dsk__lamp.is-visible{opacity:1}
  .dsk,.dsk .dsk-ms{cursor:none}
}
.dsk__stage{position:absolute;top:0;left:50%;width:1150px;height:920px;transform:translateX(-50%);transform-origin:50% 0;--lx:768px;--ly:417px}
.dsk__glow,.dsk__shade{position:absolute;inset:0;pointer-events:none}
@media (hover:hover) and (pointer:fine){
.dsk,.dsk .dsk-ms{cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 40 40'><defs> <linearGradient id='gBody' x1='0' y1='0' x2='1' y2='0'> <stop offset='0' stop-color='%236a6e75'/><stop offset='.3' stop-color='%23484c52'/> <stop offset='.7' stop-color='%2334373c'/><stop offset='1' stop-color='%23232529'/> </linearGradient> <linearGradient id='gTail' x1='0' y1='0' x2='1' y2='0'> <stop offset='0' stop-color='%2353575d'/><stop offset='.6' stop-color='%23303338'/><stop offset='1' stop-color='%231f2124'/> </linearGradient> <radialGradient id='gRim' cx='.32' cy='.25' r='1'> <stop offset='0' stop-color='%2363676e'/><stop offset='.45' stop-color='%233d4045'/> <stop offset='.8' stop-color='%232b2d31'/><stop offset='1' stop-color='%23212327'/> </radialGradient> <radialGradient id='gGlass' cx='.4' cy='.32' r='.85'> <stop offset='0' stop-color='%23fffef7'/><stop offset='.45' stop-color='%23ffeec4'/> <stop offset='.8' stop-color='%23f4cd82'/><stop offset='1' stop-color='%23dfa952'/> </radialGradient> <radialGradient id='gBtn' cx='.38' cy='.3' r='.9'> <stop offset='0' stop-color='%23f2a659'/><stop offset='.6' stop-color='%23c87424'/><stop offset='1' stop-color='%2395511a'/> </radialGradient> <linearGradient id='gGlare' x1='0' y1='0' x2='0' y2='1'> <stop offset='0' stop-color='%232a231a' stop-opacity='.5'/><stop offset='.45' stop-color='%232a231a' stop-opacity='0'/> </linearGradient> <filter id='sh' x='-40%25' y='-40%25' width='180%25' height='180%25'> <feDropShadow dx='0.4' dy='1.1' stdDeviation='1' flood-color='%23000' flood-opacity='0.4'/> </filter> </defs> <g transform='rotate(90 20 20)' filter='url(%23sh)'> <g transform='translate(20 20) scale(1.12) translate(-20 -20)'> <rect x='17' y='3.6' width='6' height='4' rx='1.9' fill='url(%23gTail)'/> <ellipse cx='18.6' cy='4.6' rx='1.1' ry='.5' fill='%238a8f96' opacity='.4'/> <rect x='15.5' y='6' width='9' height='12.6' rx='4.4' fill='url(%23gBody)'/> <line x1='17.6' y1='8' x2='17.6' y2='16.6' stroke='%238e9299' stroke-width='1.2' opacity='.65'/> <line x1='19.6' y1='8' x2='19.6' y2='16.6' stroke='%236f7379' stroke-width='1.2' opacity='.5'/> <ellipse cx='20' cy='11' rx='4.6' ry='5.8' fill='url(%23gRim)'/> <ellipse cx='20' cy='11.2' rx='3.9' ry='5.1' fill='url(%23gGlass)'/> <ellipse cx='17.7' cy='9.3' rx='1.3' ry='1.5' fill='url(%23gGlare)' opacity='.8'/> <circle cx='20.7' cy='16.1' r='1.5' fill='url(%23gBtn)'/> <circle cx='16' cy='17.2' r='1.5' fill='url(%23gBtn)' opacity='.7'/> <circle cx='23.8' cy='17.2' r='1.5' fill='url(%23gBtn)' opacity='.7'/> <rect x='15.9' y='18.8' width='8.2' height='1.8' rx='.8' fill='%23404246' opacity='.45'/> </g> </g> </svg>");
}
}
.dsk__glow{z-index:0;background:radial-gradient(640px 500px at var(--lx) var(--ly),rgba(255,214,150,.21),rgba(255,214,150,.05) 55%,transparent 72%); -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent); -webkit-mask-composite:source-in; mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 7%,#000 93%,transparent); mask-composite:intersect}
.dsk__glow{background:none;-webkit-mask-image:none;mask-image:none}
.dsk__glow::before{content:"";position:absolute;left:0;top:0;width:640px;height:500px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,214,150,.21),rgba(255,214,150,.05) 55%,transparent 72%);transform:translate3d(calc(var(--lx) - 320px),calc(var(--ly) - 250px),0);opacity:0;transition:opacity .16s ease;will-change:transform}
.dsk.lamp-active .dsk__glow::before{opacity:1}
.dsk__shade{display:none}
.dsk-ms{position:absolute;width:196px;display:block;text-decoration:none;background:linear-gradient(180deg,#F8F5EF,#F3EFE6);color:var(--ink);border-radius:3px;padding:18px 18px 14px;box-shadow:0 18px 40px rgba(0,0,0,.5);z-index:1;transform:rotate(var(--r,0deg));opacity:1;filter:brightness(.55) saturate(.92);transition:opacity .5s var(--ease),filter .5s var(--ease),transform .5s var(--ease),box-shadow .5s var(--ease)}
.dsk-ms.on,.dsk-ms:focus-visible{z-index:3;opacity:1;filter:none;outline:none;transform:rotate(calc(var(--r,0deg)*.3)) scale(1.06);box-shadow:0 26px 60px rgba(0,0,0,.66),0 0 0 1px rgba(255,214,150,.25),0 0 90px rgba(255,214,150,.13)}
.dsk-ms__head{font-family:"American Typewriter","Courier New",Courier,monospace;font-size:9.5px;letter-spacing:.13em;color:#8a8478;text-transform:uppercase;display:flex;justify-content:space-between;border-bottom:1px solid #E0D9CB;padding-bottom:7px;margin-bottom:10px}
.dsk-ms__t{font-family:"American Typewriter","Courier New",Courier,monospace;font-weight:700;font-size:13.5px;line-height:1.35;letter-spacing:.01em;text-transform:uppercase;margin:0 0 9px}
.dsk-ms__body{font-family:"American Typewriter","Courier New",Courier,monospace;font-size:11.5px;line-height:1.65;color:#3d382f;margin:0 0 6px}
.dsk-ms__body s{text-decoration-color:#b4443a;text-decoration-thickness:1.6px}
.dsk-ms__body .dsk-circ{text-decoration:underline wavy #b4443a 1px;text-underline-offset:3px}
.dsk-ms__pg{font-family:"American Typewriter","Courier New",Courier,monospace;font-size:9px;color:#a29a8b;text-align:center;margin:8px 0 0}
.dsk-att{position:absolute;top:-26px;right:-20px;width:104px;height:78px;transform:rotate(6deg);z-index:4;background:linear-gradient(145deg,#fff7dc,#e6c98b 52%,#c58c4b);box-shadow:0 10px 22px rgba(0,0,0,.25)}
.dsk-att img{width:100%;height:78px;object-fit:cover;display:block;border:4px solid #fff;border-bottom-width:14px;box-shadow:0 10px 22px rgba(0,0,0,.45)}
.dsk-att--print img{border:3px solid #fbf9f4;border-radius:2px;height:70px;filter:saturate(.85)}
.dsk-att--l{right:auto;left:-22px;transform:rotate(-7deg)}
.dsk-clip{position:absolute;top:-13px;left:12px;width:15px;height:34px;z-index:5}
.dsk-clip path{fill:none;stroke:#9aa0a8;stroke-width:2;stroke-linecap:round}
.dsk-ms.on .dsk-att img{box-shadow:0 12px 26px rgba(0,0,0,.55),0 0 40px rgba(255,214,150,.15)}
.dsk-stamp{display:block;width:max-content;margin:14px 2px 0 auto;font-family:var(--font-display);font-size:9.5px;font-weight:700;letter-spacing:.14em;color:#16228F;border:2px solid #16228F;border-radius:4px;padding:5px 8px;opacity:0;transform:rotate(-6deg) scale(1.25);transition:opacity .28s var(--ease) .1s,transform .28s var(--ease) .1s;-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='40'><filter id='n'><feTurbulence baseFrequency='.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .82 0'/></filter><rect width='120' height='40' filter='url(%23n)'/></svg>");-webkit-mask-size:cover}
.dsk-ms.on .dsk-stamp,.dsk-ms:focus-visible .dsk-stamp{opacity:.92;transform:rotate(-6deg) scale(1)}
.dsk-ms.on:hover{transform:rotate(calc(var(--r,0deg)*.3)) scale(1.075)}
.dsk-ms.on:hover .dsk-ms__t{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:#16228F}
.dsk-ms.on:hover .dsk-stamp{opacity:1}
@media (hover:none) and (min-width:900px){.dsk-ms{filter:brightness(.9) saturate(.96)}}
@media (prefers-reduced-motion:reduce){.dsk-ms,.dsk-stamp{transition:none}}

@media (max-width:899.98px){
  .dsk{padding:26px 0 4px}
  .dsk::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(closest-side at 50% 42%,rgba(255,214,150,.13),rgba(255,214,150,.04) 55%,transparent 78%)}
  .dsk__lamp,.dsk__glow,.dsk__shade{display:none}
  .dsk__stage{position:relative;left:0;width:auto;transform:none!important;z-index:1;touch-action:pan-y}
  .dsk-ms{position:absolute!important;left:50%!important;top:0!important;width:min(88vw,340px)!important;margin-left:calc(min(88vw,340px)/-2);transition:transform .3s var(--ease),box-shadow .3s var(--ease);will-change:auto}
  .dsk-ms.on{filter:none;will-change:transform}
  .dsk-ms.dragging{transition:none;will-change:transform}
  .dsk-ms__t{padding-right:62px}
  .dsk-att{width:84px;height:62px;top:-20px;right:-8px}
  .dsk-att--l{left:auto;right:-8px;transform:rotate(6deg)}
  .dsk-att img{height:62px;border-width:3px;border-bottom-width:11px}
  .dsk-att--print img{height:58px}
  .dsk__deck{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;position:relative;z-index:1}
  .dsk__deck button{background:none;border:1px solid #3a362e;color:#a29a8b;width:34px;height:34px;border-radius:50%;font:inherit;font-size:16px;line-height:1;cursor:pointer;transition:background .2s;padding:0}
  .dsk__deck button:active{background:#2a2722}
  .dsk__count{font-family:"American Typewriter","Courier New",Courier,monospace;font-size:12px;color:#a29a8b;letter-spacing:.1em;min-width:44px;text-align:center}
  @keyframes dskNudge{0%,100%{transform:none}30%{transform:translateX(-16px) rotate(-1.6deg)}60%{transform:translateX(5px) rotate(.5deg)}}
  .dsk-ms.dsknudge{animation:dskNudge 1.1s var(--ease) .2s 1}
}
@media (min-width:900px){.dsk__deck{display:none}}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--color-dark);
  color: #fff;
}
.home-page .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.footer-inner {
  max-width: none;
  margin: 0;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-section-sm) var(--gutter-x);
  position: relative;
  overflow: visible;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: #fff;
  z-index: 1;
}
.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-label { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }
.footer-value { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.04em; }
.footer-divider { width: 8px; height: 8px; object-fit: contain; }

.footer-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.footer-mark img {
  width: 277px;
  height: 296px;
  max-width: 100%;
  height: auto;
}

.footer-copyright {
  max-width: none;
  margin: 0;
  text-align: center;
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0px;
  font-size: 16px;
  line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .work-card { grid-template-columns: 1fr; }
  .work-card--reverse .work-card-body,
  .work-card--reverse .work-card-image { order: unset; }
  .about-content { flex-direction: column; }
  .about-collage { width: 100%; max-width: 480px; margin: 0 auto; }
  .footer-inner { padding: 48px 24px; flex-direction: column; }
  .footer-mark {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 8px 0;
  }
  .footer-mark img { width: 160px; height: auto; }
}

@media (max-width: 640px) {
  .nav-links--single { display: none; }
  .work-filters { flex-direction: column; }
  .filter-btn { flex: 1 1 auto; }
}

/* =========================================================
   RESPONSIVE LAYER  (load AFTER styles.css and retro-tv.css)
   Desktop values are capped at your original sizes, so the
   desktop layout stays exactly as designed.
========================================================= */

/* ---------- tokens: fluid type scale + missing vars ---------- */
:root {
  /* these were referenced in styles.css but never defined */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ink: #1f1b16;
  --font-display: var(--font-sans);

  /* fluid type scale: min at ~360px, max = your original desktop size */
  --fs-h1:       clamp(26px, 4vw + 12px, 36px);
  --fs-h1-serif: clamp(28px, 4.4vw + 12px, 40px);
  --fs-h2:       clamp(28px, 4vw + 12px, 40px);
  --fs-h3:       clamp(22px, 2.5vw + 13px, 32px);
  --fs-stat:     clamp(30px, 4vw + 15px, 40px);
  --fs-body:     clamp(15px, 0.3vw + 14px, 16px);
  --fs-micro:    clamp(9.5px, 0.1vw + 9.2px, 10.5px);
  --fs-small:    clamp(11.5px, 0.2vw + 11px, 12.5px);

  --pad-x: 24px;
  --dock-h: 76px;
}

/* ---------- global safety ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video { max-width: 100%; }
.btn, .filter-btn, .nav-btn, .btn-medium, .dsk__deck button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* fluid type applied at every width (caps = original desktop values) */
.hero h1                       { font-size: var(--fs-h1); letter-spacing: normal; }
.hero h1 .serif-italic         { font-size: var(--fs-h1-serif); }
.hero-headline                 { letter-spacing: -0.04em; }
.section-head h1,
.section-head h2               { font-size: var(--fs-h2); }
.section-head--dark h2         { font-size: calc(var(--fs-h2) * 0.9); }
.section-head--dark h2 .serif-italic { font-size: var(--fs-h2); }
.work-card-body h2,
.work-card-body h3             { font-size: var(--fs-h3); }
.stat-num                      { font-size: var(--fs-stat); }
.hero-sub, .section-head p, .section-head--dark p,
.work-card-body > p, .about-paragraphs { font-size: var(--fs-body); }
.pill                          { font-size: var(--fs-small); }
.stat-label                    { font-size: var(--fs-small); }

/* =========================================================
   TABLET & BELOW  (<= 1024px)
========================================================= */
@media (max-width: 1024px) {
  section { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .about { width: 100%; margin-inline: 0; }

  .hero { gap: 48px; padding-bottom: 64px; }
  .work, .about { padding-top: var(--space-section-sm); padding-bottom: var(--space-section-sm); }
  .section-head { margin-bottom: 36px; }
  .section-head--dark { margin-bottom: 40px; }
  .section-head--dark h2 { justify-content: center; text-align: center; }

  /* work cards: single column, image always on top */
  .work-list { gap: 56px; }
  .work-card { gap: 24px; max-width: 760px; width: 100%; margin-inline: auto; }
  .work-card .work-card-image { order: -1; min-height: 0; aspect-ratio: 16 / 11; }
  .work-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .work-card-body > p { max-width: none; }
  .btn--center { margin-top: 40px; }

  .work--overview .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .work--overview .work-card { max-width: none; margin: 0; gap: 0; }
  .work--overview .work-card .work-card-image { order: -1; aspect-ratio: 3 / 2; }
  .work--overview .work-card .work-card-body { order: 0; }
  .work--overview .work-card-body { gap: 12px; }

  /* about: collage becomes a fluid, proportional scale-down */
  .about-content { gap: 40px; align-items: stretch; }
  .about-collage {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 480 / 415;
    margin-inline: auto;
  }
  .collage-img { width: 33.333%; height: 49.4%; }
  .collage-img--1 { top: 0;     left: 65%; }
  .collage-img--2 { top: 0;     left: 31.25%; }
  .collage-img--3 { top: 48.2%; left: 66.667%; }
  .collage-img--4 { top: 0;     left: -2.5%; }
  .collage-img--5 { top: 48.2%; left: 33.333%; }
  .collage-img--6 { top: 48.2%; left: 0; }
  .about-text h3 { font-size: 22px; }

  /* writings section: kill the double side-inset */
  .awpart { width: 100%; margin-inline: 0; padding: 64px var(--pad-x) 64px; }
  .awpart .section-head { width: 100%; margin-bottom: 32px; }
  .writing__more { justify-content: center; margin-top: 1.2rem; }

  .dsk-ms__t    { font-size: 15px; }
  .dsk-ms__body { font-size: 13px; }
  .dsk-ms__head { font-size: 10px; }
  .dsk__deck button { width: 44px; height: 44px; font-size: 20px; }

  /* footer */
  .footer-inner { gap: 28px; }
  .footer-value { font-size: clamp(20px, 3.4vw + 8px, 28px); overflow-wrap: anywhere; }
  .footer-label { font-size: clamp(14px, 1.2vw + 9px, 20px); }
}

/* =========================================================
  MOBILE HEADER  (<= 767px): logo only
========================================================= */
@media (max-width: 767.98px) {
  .home-page { padding-top: calc(63px + env(safe-area-inset-top, 0px)); }

  .about-collage,
  .work-card-image,
  .work-card-image img {
    display: block;
    max-width: 100%;
  }

  .about-collage .collage-img,
  .work-card-image img {
    visibility: visible;
    opacity: 1;
    object-position: center;
  }

  .home-page .nav-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
  }

  .home-page .nav,
  .nav { position: relative; display: flex; align-items: center; gap: 10px; }
  .home-page .nav-logo img,
  .nav-logo img { height: 60px; }
  .home-page .nav-right,
  .nav-right { display: none; }
  .home-page .nav-center,
  .nav-center { display: none; }

  #top, #work, #about, #writings, #contact { scroll-margin-top: 16px; }
}

@media (max-width: 420px) {
  .site-dock { width: min(230px, calc(100vw - 32px)); }
  .site-dock__button { gap: 4px; padding-inline: 8px; }
  .dock-directory { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .dock-directory__link { min-height: 78px; }
}

/* =========================================================
   PHONE  (<= 640px)
========================================================= */
@media (max-width: 640px) {
  :root { --pad-x: 20px; }

  body { font-size: 15px; }
  .serif-italic { -webkit-text-stroke: 0.6px currentColor; }

  /* buttons */
  .btn { font-size: var(--button-font-size); }
  .btn--primary, .btn--dark, .btn--outline { min-height: 46px; padding: 0 20px; }
  .btn-medium {
    font-size: clamp(13px, 4vw, var(--button-font-size));
    min-height: 46px;
    padding: 0 clamp(12px, 3.75vw, 20px);
  }
  .about-text .btn-medium,
  .writing__more .btn-medium {
    width: fit-content;
    max-width: 100%;
  }

  /* hero */
  .hero { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .hero-copy { max-width: 100%; gap: 10px; }
  .hero-sub { max-width: 34ch; line-height: 1.55; }
  .retro-tv-caption { font-size: 13px; text-align: center; padding-inline: 8px; }

  /* work */
  .work, .about { padding-top: 56px; padding-bottom: 56px; }
  .section-head { gap: 10px; margin-bottom: 28px; }
  .section-head--dark { margin-bottom: 32px; }

  .work-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 0 calc(var(--pad-x) * -1) 28px;
    padding: 0 var(--pad-x);
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--pad-x);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work-filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    font-size: var(--button-font-size);
    white-space: nowrap;
    scroll-snap-align: center;
  }
  .filter-btn img { width: 20px; height: 20px; }

  .work-list { gap: 48px; }
  .work-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .work-card .work-card-image { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .work-card-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .work-card-body { gap: 16px; }
  .work-card-meta { gap: 8px; flex-wrap: wrap; }
  .work-card-logo { height: 28px; max-width: 72px; }
  .pill { padding: 6px 10px; }
  .tag { width: max-content; max-width: none; white-space: nowrap; font-size: 9.5px; padding: 6px 11px; left: 8px; top: 8px; transform: rotate(-3deg); }
  .tag--yellow { right: 8px; left: auto; transform: rotate(3deg); }

  .work-stats { gap: 12px 28px; }
  .stat { min-width: 0; }
  .work-actions { gap: 10px; }
  .work-actions .btn { flex: 1 1 auto; }
  .btn--center { margin-top: 32px; width: 100%; }

  .work:not(.work--overview) .work-list { gap: 20px; }
  .work:not(.work--overview) .work-card {
    gap: 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  }
  .work:not(.work--overview) .work-card .work-card-image {
    margin: 0;
    aspect-ratio: 4 / 3;
  }
  .work:not(.work--overview) .work-card-body {
    gap: 16px;
    padding: 14px 0 4px;
  }

  .work--overview .work-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .work--overview .work-card {
    gap: 0;
    padding: 16px;
  }
  .work--overview .work-card .work-card-image {
    width: auto;
    margin: 0;
    aspect-ratio: 4 / 3;
    order: -1;
  }
  .work--overview .work-card-body {
    gap: 16px;
    padding: 14px 0 4px;
    order: 0;
  }
  .work--overview .work-card-body h2 { font-size: 22px; }
  .work--overview .work-card-body > p { font-size: 14px; }
  .work--overview .work-card .work-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
    font-size: clamp(12px, 3.8vw, var(--button-font-size));
  }

  /* about */
  .about-content { gap: 32px; }
  .about-text { gap: 14px; }
  .about-text h3 { font-size: 20px; }
  .about-paragraphs { gap: 14px; line-height: 1.55; }
  .about-text .btn-medium { align-self: center; }
  .collage-img { border-width: 1.5px; }

  /* writings */
  .awpart { padding: 56px var(--pad-x) 64px; }
  .dsk-ms { width: min(88vw, 340px) !important; margin-left: calc(min(88vw, 340px) / -2) !important; }
  .dsk-ms__t    { font-size: 14px; }
  .dsk-ms__body { font-size: 12.5px; }

  /* footer */
  .footer-inner { padding: 56px var(--pad-x) 24px; gap: 24px; }
  .footer-col { gap: 20px; width: 100%; }
  .footer-item { gap: 6px; }
  .footer-label { font-size: 14px; line-height: 1.35; letter-spacing: 0; opacity: 0.8; }
  .footer-value { font-size: 20px; line-height: 1.3; letter-spacing: 0; }
  .footer-mark img { width: 120px; }
  .footer-copyright { font-size: 13px; padding: 24px var(--pad-x) calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   SMALL PHONES  (<= 360px)
========================================================= */
@media (max-width: 360px) {
  :root { --pad-x: 16px; }
  .nav-btn { width: 42px; height: 42px; }
  .work-stats { gap: 12px 20px; }
  .footer-value { font-size: 18px; }
}

/* =========================================================
  LANDSCAPE PHONES: keep the menu compact
========================================================= */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 900px) {
  .nav-wrap { position: static; }
  body { padding-top: 0; }
  .nav-btn { width: 40px; height: 40px; }
}
