/* ---------- Design tokens ---------- */
:root {
  --bg-dark: #000;
  --bg-dark-soft: #0a0a0a;
  --cream: #e1e0cc;
  --cream-dim: rgba(225, 224, 204, 0.72);
  --cream-faint: rgba(225, 224, 204, 0.14);

  --bg-light: #fff;
  --bg-alt: #f6f5f0;
  --ink: #0a0a0a;
  --ink-dim: #5f5f5f;
  --ink-faint: #a8a8a8;
  --rule: #e4e3dc;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.36, 1);

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --hairline: 1px;
}
@supports (border: 0.5px solid) {
  :root { --hairline: 0.5px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em, i { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--cream); color: #111; }
::-moz-selection { background: var(--cream); color: #111; }

/* Two-layer focus ring — legible on either background */
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.6);
}
.about :focus-visible,
.work :focus-visible,
.clients :focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.7);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: #000;
  padding: 10px 14px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Inline link (subtle underline slide) ---------- */
.inline-link {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% var(--hairline);
  background-position: 0 100%;
  padding-bottom: 0.04em;
  transition: background-size 380ms var(--ease-ios), color 220ms var(--ease);
  box-shadow: inset 0 -1px 0 0 currentColor;
}
.inline-link {
  box-shadow: inset 0 calc(var(--hairline) * -1) 0 0 rgba(0,0,0,0.25);
}
.inline-link:hover,
.inline-link:focus-visible {
  background-size: 100% var(--hairline);
  box-shadow: inset 0 calc(var(--hairline) * -1) 0 0 transparent;
}
.contact .inline-link {
  box-shadow: inset 0 calc(var(--hairline) * -1) 0 0 var(--cream-faint);
}
.contact .inline-link:hover {
  box-shadow: inset 0 calc(var(--hairline) * -1) 0 0 transparent;
}

/* ---------- Section rhythm ---------- */
section { position: relative; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(10px, 1.5vw, 18px);
  background: var(--bg-dark);
}
.hero-frame {
  position: relative;
  height: calc(100vh - clamp(20px, 3vw, 36px));
  height: calc(100svh - clamp(20px, 3vw, 36px));
  min-height: 620px;
  border-radius: clamp(14px, 2vw, 28px);
  overflow: hidden;
  isolation: isolate;
  background: #0d0d0d;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 32%;
  filter: grayscale(0.25) contrast(1.06) brightness(0.45);
  transform: scale(1.12);
  animation: hero-img-in 1600ms var(--ease-ios) 120ms forwards;
}
@keyframes hero-img-in {
  to {
    transform: scale(1);
    filter: grayscale(0.25) contrast(1.06) brightness(0.68);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 20% 40%, rgba(0,0,0,0.6), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.89  0 0 0 0 0.82  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Nav (glass pill with scroll-tracking materials) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.96);
  z-index: 40;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border: var(--hairline) solid rgba(225,224,204,0.1);
  border-top: 0;
  box-shadow:
    inset 0 1px 0 rgba(225,224,204,0.08),
    0 6px 24px rgba(0,0,0,0.25);
  padding: 10px clamp(18px, 3vw, 34px);
  display: flex;
  gap: clamp(18px, 4vw, 44px);
  opacity: 0;
  transition:
    transform 520ms var(--ease-ios),
    background 380ms var(--ease),
    border-color 380ms var(--ease),
    padding 380ms var(--ease),
    border-radius 380ms var(--ease),
    top 380ms var(--ease),
    box-shadow 380ms var(--ease);
  animation: nav-in 720ms var(--ease-ios) 280ms forwards;
}
@keyframes nav-in {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Past hero fold: compact floating pill, light glass over cream sections */
.nav.is-compact {
  top: 16px;
  padding: 8px clamp(14px, 2.4vw, 22px);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: var(--hairline) solid rgba(0,0,0,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 8px 32px rgba(0,0,0,0.06);
}
.nav.is-compact .nav-link {
  color: rgba(10,10,10,0.72);
}
.nav.is-compact .nav-link:hover,
.nav.is-compact .nav-link:focus-visible,
.nav.is-compact .nav-link.is-active {
  color: var(--ink);
}
.nav.is-compact .nav-dot { background: var(--ink); }

/* Dark sections (contact): flip back to dark glass */
.nav.is-compact.is-dark {
  background: rgba(10,10,10,0.55);
  border: var(--hairline) solid rgba(225,224,204,0.12);
  box-shadow:
    inset 0 1px 0 rgba(225,224,204,0.08),
    0 8px 32px rgba(0,0,0,0.3);
}
.nav.is-compact.is-dark .nav-link { color: var(--cream-dim); }
.nav.is-compact.is-dark .nav-link:hover,
.nav.is-compact.is-dark .nav-link:focus-visible,
.nav.is-compact.is-dark .nav-link.is-active { color: var(--cream); }
.nav.is-compact.is-dark .nav-dot { background: var(--cream); }

.nav-link {
  color: var(--cream-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
  position: relative;
  transition: color 220ms var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--cream); }

.nav-dot {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--cream);
  opacity: 0;
  transform: translateX(-50%);
  transition:
    left 420ms var(--ease-ios),
    opacity 280ms var(--ease),
    background 260ms var(--ease);
  pointer-events: none;
}
.nav.has-active .nav-dot { opacity: 0.8; }

/* Hero content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-title {
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(68px, 15vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 3vw, 34px);
  text-wrap: balance;
  position: relative;
  will-change: opacity, filter;
}
.hero-title-row {
  display: block;
  overflow: hidden;
}
.word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: word-up 1100ms var(--ease-ios) forwards;
  animation-delay: calc(220ms + var(--i, 0) * 90ms);
  position: relative;
}
@keyframes word-up {
  to { transform: translateY(0); opacity: 1; }
}

/* Cursor-follow cream glow behind title (desktop only, driven by JS) */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(closest-side, rgba(225,224,204,0.16), rgba(225,224,204,0) 70%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.hero.is-hovering .hero-glow { opacity: 1; }

.asterisk {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.3em;
  vertical-align: top;
  margin-left: 0.02em;
  color: var(--cream);
  opacity: 0.9;
  text-decoration: none;
  transition: opacity 220ms var(--ease), transform 320ms var(--ease-ios);
  display: inline-block;
}
.asterisk:hover { opacity: 1; transform: rotate(18deg) scale(1.12); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px clamp(16px, 3vw, 36px);
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 820ms var(--ease-ios) 820ms forwards;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

.hero-tagline {
  color: var(--cream);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 58ch;
  padding-left: 18px;
  position: relative;
  text-wrap: pretty;
}
.hero-tagline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.9;
}
.eyebrow-dot {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cream);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    gap 280ms var(--ease-ios),
    transform 280ms var(--ease-ios),
    box-shadow 280ms var(--ease);
  white-space: nowrap;
  opacity: 0;
  animation: fade-up 820ms var(--ease-ios) 940ms forwards;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 1px 0 rgba(0,0,0,0.06);
  will-change: transform;
}
.hero-cta:hover {
  gap: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 6px 24px rgba(225,224,204,0.28);
}
.hero-cta:active { transform: scale(0.97); }
.hero-cta-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #000;
  color: var(--cream);
  transition: transform 360ms var(--ease-ios), filter 360ms var(--ease);
}
.hero-cta:hover .hero-cta-dot {
  transform: rotate(-45deg) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(225,224,204,0.5));
}

/* Scroll indicator ring */
.hero-scroll {
  position: absolute;
  bottom: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  z-index: 6;
  width: 40px;
  height: 40px;
  color: var(--cream);
  opacity: 0;
  transform: translateY(6px);
  animation: fade-up 900ms var(--ease-ios) 1300ms forwards;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.hero-scroll:hover { transform: translateY(0) scale(1.05); }
.scroll-ring {
  width: 40px;
  height: 40px;
}
.scroll-ring-progress {
  stroke-dasharray: 113.097;
  stroke-dashoffset: 113.097;
  transition: stroke-dashoffset 120ms linear;
}
.scroll-ring-arrow {
  animation: scroll-bob 1.8s ease-in-out infinite;
  transform-origin: 20px 20px;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.hero-scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg-light);
  color: var(--ink);
  padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: clamp(28px, 4vw, 44px);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: var(--hairline);
  background: currentColor;
  opacity: 0.5;
}
.eyebrow-dark { color: var(--cream-dim); }

.about-heading {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: clamp(60px, 8vw, 110px);
  text-wrap: balance;
}
.about-heading em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.015em;
  padding-right: 0.08em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: clamp(48px, 6vw, 96px);
  }
  .hero-media {
    left: auto;
    width: 54%;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 8%, #000 22%, #000 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 8%, #000 22%, #000 100%);
  }
  .hero-media img {
    object-position: 58% 30%;
  }
  .hero-overlay {
    background:
      linear-gradient(90deg, #000 0%, #000 38%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.1) 78%, rgba(0,0,0,0.4) 100%),
      linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.7) 100%);
  }
}

.about-figure {
  margin: 0;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 18px);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: contrast(1.02) saturate(0.95);
  animation: ken-burns 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.045) translate(-1%, -1%); }
}

.about-body p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 54ch;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.meta-list {
  border-top: var(--hairline) solid var(--rule);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.meta-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.meta-list dt {
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.meta-list dd {
  color: var(--ink);
  margin: 0;
}

/* ---------- WORK ---------- */
.work {
  background: var(--bg-alt);
  color: var(--ink);
  padding: clamp(80px, 10vw, 150px) 0 clamp(80px, 10vw, 150px);
}
.work-heading {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 26ch;
  color: var(--ink);
  margin-bottom: clamp(48px, 6vw, 80px);
  text-wrap: balance;
}
.work-heading em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.work-list {
  border-top: var(--hairline) solid var(--rule);
}
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: clamp(24px, 3.5vw, 38px) clamp(10px, 1.5vw, 18px) clamp(24px, 3.5vw, 38px) clamp(10px, 1.5vw, 18px);
  margin: 0 calc(-1 * clamp(10px, 1.5vw, 18px));
  border-bottom: var(--hairline) solid var(--rule);
  transition: background 400ms var(--ease);
  isolation: isolate;
}
.work-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 380ms var(--ease-ios);
}
.work-row::after {
  content: "→";
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  top: 50%;
  transform: translate(-8px, -50%);
  font-size: 18px;
  color: var(--ink);
  opacity: 0;
  transition: transform 380ms var(--ease-ios), opacity 280ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .work-row:hover { background: rgba(0,0,0,0.02); }
  .work-row:hover::before { transform: scaleY(1); }
  .work-row:hover::after { opacity: 0.6; transform: translate(0, -50%); }
}
@media (min-width: 800px) {
  .work-row {
    grid-template-columns: 260px 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: baseline;
  }
}
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-year {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.work-org {
  font-size: 13px;
  color: var(--ink-dim);
}
.work-org .inline-link { color: var(--ink-dim); }
.work-org .inline-link:hover { color: var(--ink); }
.work-detail h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}
.work-detail p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- CLIENTS ---------- */
.clients {
  background: var(--bg-alt);
  color: var(--ink);
  padding: 0 0 clamp(100px, 12vw, 160px);
}
.clients-heading {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 42ch;
  margin-bottom: clamp(36px, 4.5vw, 56px);
  text-wrap: balance;
}
.clients-heading em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
}
.clients-list {
  list-style: none;
  padding: clamp(28px, 3.5vw, 48px) 0 0;
  margin: 0;
  border-top: var(--hairline) solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.003em;
  line-height: 1.6;
}
.clients-list li {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 260ms var(--ease);
  cursor: default;
}
.clients-list li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
  margin: 0 clamp(14px, 1.3vw, 22px);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg-dark);
  color: var(--cream);
  padding: clamp(80px, 12vw, 170px) 0 clamp(40px, 6vw, 64px);
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-heading {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--cream);
  margin-bottom: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.contact-heading em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.contact-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 48ch;
  margin-bottom: clamp(36px, 5vw, 56px);
  text-wrap: pretty;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 4vw, 48px);
  color: var(--cream);
  padding-bottom: 6px;
  border-bottom: var(--hairline) solid var(--cream-faint);
  margin-bottom: clamp(60px, 8vw, 100px);
  transition: border-color 280ms var(--ease), gap 280ms var(--ease);
  position: relative;
}
.contact-email:hover {
  border-color: var(--cream);
  gap: 20px;
}
.contact-email.is-copied .contact-email-text { opacity: 0; }
.contact-email.is-copied .contact-email-icon { opacity: 0; }
.contact-email-text,
.contact-email-icon {
  transition: opacity 180ms var(--ease);
}
.contact-email-toast {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: inherit;
  color: var(--cream);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 220ms var(--ease-ios), transform 280ms var(--ease-ios);
  white-space: nowrap;
}
.contact-email.is-copied .contact-email-toast {
  opacity: 1;
  transform: translateY(0);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.socials li { margin: 0; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: var(--hairline) solid var(--cream-faint);
  color: var(--cream);
  transition: border-color 280ms var(--ease), transform 420ms var(--ease-ios), background 280ms var(--ease);
  position: relative;
}
.socials a:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
  background: rgba(225,224,204,0.08);
}
.socials a::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: var(--hairline) solid var(--cream);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .socials a:hover::before {
    animation: social-pulse 520ms var(--ease-pop);
  }
}
@keyframes social-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  60%  { opacity: 0.25; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.12); }
}

.site-footer {
  width: 100%;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: var(--hairline) solid var(--cream-faint);
  color: var(--cream-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.site-footer a { color: var(--cream-dim); transition: color 220ms var(--ease); }
.site-footer a:hover { color: var(--cream); }

/* ---------- Reveal on scroll (child stagger via --reveal-i) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 900ms var(--ease-ios),
    transform 900ms var(--ease-ios);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .word, .hero-meta, .nav, .hero-scroll, .hero-cta, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-media img { transform: none; filter: grayscale(0.25) contrast(1.06) brightness(0.68); }
  .about-figure img { animation: none; }
  .scroll-ring-arrow { animation: none; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 640px) {
  .nav { gap: 18px; padding: 9px 20px; }
  .nav.is-compact { top: 12px; }
  .nav-link { font-size: 11px; }
  .hero-scroll { display: none; }
  .hero-tagline { font-size: 13px; }
  .hero-cta { font-size: 13px; padding: 9px 9px 9px 16px; }
  .hero-cta-dot { width: 28px; height: 28px; }

  .about-heading em { display: inline; }
  .meta-list > div { grid-template-columns: 100px 1fr; }

  .contact-email { font-size: 32px; }
  .socials a { width: 44px; height: 44px; }
}
