/* ============================================================
   Dark rebuild — tokens + base
   Near-black ground, heavy Inter display type, dark glass cards.
   Light mode is a real second theme, not an inversion.
   ============================================================ */

:root {
  /* --- Dark is the default theme --- */
  --bg:            #0a0a0a;
  --bg-deep:       #050505;
  --text:          #fafafa;
  --text-dim:      #a8a8a8;
  /* #767676 measured 4.36:1 on #0a0a0a — just under AA for the 11-13px text
     that uses it (project bullets, dates, fact labels, footer). This is 5.0:1. */
  --text-faint:    #808080;

  --glass-bg:      rgba(255, 255, 255, 0.032);
  --glass-bg-hi:   rgba(255, 255, 255, 0.055);
  --glass-border:  rgba(255, 255, 255, 0.09);
  --glass-border-hi: rgba(255, 255, 255, 0.16);
  --glass-inner:   inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-drop:    0 24px 60px -20px rgba(0, 0, 0, 0.9);

  --accent:        #9bff48;
  --accent-ink:    #0a0a0a;
  --accent-dim:    rgba(155, 255, 72, 0.5);

  --scrim-core:    rgba(10, 10, 10, 0.88);
  --scrim-mid:     rgba(10, 10, 10, 0.55);

  --hairline:      rgba(255, 255, 255, 0.07);

  /* --- Type --- */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* --- Motion --- */
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.22, 1.2, 0.36, 1);
  --dur-fast:      180ms;
  --dur-mid:       320ms;
  --dur-slow:      720ms;

  /* --- Layout --- */
  --page-max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(60px, 6vw, 96px);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:            #f2f2ef;
  --bg-deep:       #e8e8e4;
  --text:          #0b0b0b;
  --text-dim:      #4f4f54;
  --text-faint:    #63636a;

  --glass-bg:      rgba(255, 255, 255, 0.72);
  --glass-bg-hi:   rgba(255, 255, 255, 0.92);
  --glass-border:  rgba(10, 10, 10, 0.1);
  --glass-border-hi: rgba(10, 10, 10, 0.2);
  --glass-inner:   inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-drop:    0 24px 50px -24px rgba(0, 0, 0, 0.25);

  /* Lime fails contrast on a light ground. Same hue, darkened far enough to
     clear 4.5:1 not just against the page but against the lightest part of
     the 3D object that the headline crosses (measured, ~rgb(200,202,204)
     once the scrim below is applied). */
  --accent:        #2f5a08;
  --accent-ink:    #ffffff;
  --accent-dim:    rgba(47, 90, 8, 0.45);

  /* Light mode needs a heavier scrim than dark: the object renders pale here,
     so it sits much closer to the text luminance than it does on black. */
  --scrim-core:    rgba(242, 242, 239, 0.97);
  --scrim-mid:     rgba(242, 242, 239, 0.8);

  --hairline:      rgba(10, 10, 10, 0.1);

  color-scheme: light;
}

/* ============================================================
   Reset / base
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur-mid) var(--ease-out-soft),
              color var(--dur-mid) var(--ease-out-soft);
}

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

a { color: inherit; text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ============================================================
   Header
   ============================================================ */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-block: 18px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out-soft),
              background-color var(--dur-mid) var(--ease-out-soft);
}
.site-head.is-stuck { border-bottom-color: var(--hairline); }

.head-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-right: auto;
  white-space: nowrap;
}
.wordmark .dot { color: var(--accent); }

.head-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.head-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.head-links a {
  /* inline-flex + min-height gives these a 44px hit area without changing
     how they look; as bare inline text they were only 16px tall. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  transition: color var(--dur-fast) ease-out;
}
.head-links a:hover { color: var(--text); }

.head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon buttons — 44px hit area, ~19px glyph */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  transition: color var(--dur-fast) ease-out,
              background-color var(--dur-fast) ease-out,
              border-color var(--dur-fast) ease-out;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--glass-bg-hi);
  border-color: var(--glass-border);
}
.icon-btn svg { width: 19px; height: 19px; }

/* Theme toggle swaps which glyph is shown */
:root:not([data-theme="light"]) .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring),
              background-color var(--dur-fast) ease-out,
              border-color var(--dur-fast) ease-out,
              color var(--dur-fast) ease-out;
}
.btn:active { transform: scale(0.97); }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-solid:hover { transform: translateY(-2px); }

.btn-glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--glass-bg-hi);
  border-color: var(--glass-border-hi);
  transform: translateY(-2px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  /* Capped: the copy is vertically centred, so on a very tall window the
     leftover space below the meta row grows and reopens the gap the rest of
     the rhythm just closed. No effect at or below 960px tall. */
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  /* No bottom padding: the next section already owns its own top padding, so
     adding one here just stacks two gaps and opens a dead zone. The top pad
     exists only to clear the fixed header. */
  padding-block: 150px 0;
  isolation: isolate;
  overflow: hidden;
}

/* 3D object at z-index 0; scrim at 1; copy at 2. */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-stage canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-fallback { object-fit: cover; }

/* Canvas fades in once the first frame is painted, so there is no flash. */
#hero-canvas {
  opacity: 0;
  transition: opacity 900ms var(--ease-out-soft);
}
#hero-canvas.is-ready { opacity: 1; }

/* Contrast scrim — REQUIRED. Guarantees the headline never competes with the
   3D object behind it. Two layers: an elliptical core anchored under the copy
   column, plus a vertical wash that ties the section into the page ground. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      135% 95% at 20% 52%,
      var(--scrim-core) 0%,
      var(--scrim-mid) 46%,
      transparent 80%
    ),
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      transparent 20%,
      transparent 72%,
      var(--bg) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* No ch-based cap here: `ch` resolves against this element's 16px font, not
   the display size, which would strangle the headline into a narrow column.
   The headline is capped in `em` on itself; the lead has its own measure. */
.hero-copy { max-width: 1080px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  flex: none;
}

/* VERY large. Clamped so 375px stays readable and 1440px+ goes big. */
.hero-title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 7.25rem);
  /* em, so the cap tracks the display size rather than the root font */
  max-width: 9.4em;
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.hero-title .line-accent { color: var(--accent); }

.hero-lead {
  max-width: 46ch;
  margin: 36px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.hero-meta .sep { color: var(--glass-border-hi); }

/* ============================================================
   Sections
   ============================================================ */

/* One rhythm value drives every gap. Each section pads half of it top and
   bottom, so section-to-section spacing is always 2x this and nothing opens
   up a dead zone. */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-head { margin-bottom: clamp(36px, 4vw, 56px); }

.section-title {
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.section-title .accent { color: var(--accent); }

.section-note {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ============================================================
   Project cards — dark glass
   ============================================================ */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-inner), var(--glass-drop);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-spring),
              border-color var(--dur-mid) ease-out,
              background-color var(--dur-mid) ease-out;
}

/* Faint inner glow along the top edge — the "lit from above" glass read. */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    90% 55% at 50% 0%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  opacity: 0.85;
  transition: opacity var(--dur-mid) ease-out;
}
:root[data-theme="light"] .project-card::before {
  background: radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.95) 0%, transparent 60%);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hi);
}
.project-card:hover::before { opacity: 1; }

.shot-frame {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.project-shot {
  width: 100%;
  /* The width/height attributes on the tag reserve space against CLS, but
     they also land as a used height, which would override aspect-ratio.
     height:auto hands the box back to the ratio. */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.85) brightness(0.9);
  transition: filter var(--dur-slow) var(--ease-out-soft),
              transform var(--dur-slow) var(--ease-out-soft);
}
.project-card:hover .project-shot {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}
:root[data-theme="light"] .project-shot { filter: none; }

.project-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 2.6vw, 36px);
}

.project-name {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* The small-caps tech line */
.tech-line {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.7;
}
.tech-line .sep {
  color: var(--accent);
  opacity: 0.6;
  margin-inline: 6px;
}

.project-desc {
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.project-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.project-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-faint);
}
.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--dur-fast) ease-out,
              border-color var(--dur-fast) ease-out,
              background-color var(--dur-fast) ease-out,
              transform var(--dur-fast) var(--ease-spring);
}
.link-chip svg { width: 13px; height: 13px; flex: none; }
.link-chip:hover {
  color: var(--text);
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hi);
  transform: translateY(-2px);
}

/* --- Secondary projects --- */

.also {
  margin-top: clamp(20px, 2.4vw, 32px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.also-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-inner);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: transform var(--dur-mid) var(--ease-spring),
              border-color var(--dur-mid) ease-out,
              background-color var(--dur-mid) ease-out;
}
.also-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hi);
}
.also-card .project-name { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.also-card .project-desc { margin-top: 16px; font-size: 0.875rem; }

/* ============================================================
   Capabilities — three glass panels
   ============================================================ */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-inner);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: transform var(--dur-mid) var(--ease-spring),
              border-color var(--dur-mid) ease-out,
              background-color var(--dur-mid) ease-out;
}
.cap-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hi);
  background: var(--glass-bg-hi);
}

.cap-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  flex: none;
}
.cap-icon svg { width: 19px; height: 19px; }

.cap-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cap-card p {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ============================================================
   Experience
   ============================================================ */

.exp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(26px, 2.8vw, 38px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-inner);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.exp-meta h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.exp-role {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.exp-date {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.exp-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.exp-points li {
  position: relative;
  padding-left: 19px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dim);
  text-wrap: pretty;
}
.exp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.about-prose {
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.about-facts {
  display: grid;
  gap: 1px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-border);
  overflow: hidden;
}

.fact {
  padding: clamp(18px, 1.8vw, 24px);
  background: var(--bg);
}
.fact h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.fact p {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.fact p + p { margin-top: 4px; }
.fact .muted { color: var(--text-dim); font-size: 0.875rem; }

/* ============================================================
   Contact
   ============================================================ */

.contact-lead {
  max-width: 48ch;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-dim);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding-block: 32px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-inner p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.foot-social {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================================
   Scroll reveals + hover lifts
   Applied by JS only when motion is welcome, so the no-JS and
   reduced-motion paths render fully visible.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out-soft),
              transform var(--dur-slow) var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .project-card:hover,
  .also-card:hover,
  .cap-card:hover,
  .btn:hover,
  .link-chip:hover { transform: none; }
  .project-card:hover .project-shot { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .exp-row,
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 100%; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 5rem); max-width: none; }
  .head-links { display: none; }
  /* Scrim goes full-width once the copy spans the column */
  .hero-scrim {
    background:
      radial-gradient(150% 80% at 50% 50%, var(--scrim-core) 0%, var(--scrim-mid) 45%, transparent 80%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 72%, var(--bg) 100%);
  }
}

@media (max-width: 560px) {
  .also { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 120px 0; }

  /* The meta line stacks here, so the inline separators would dangle at the
     end of each row. Drop them and let the rows do the separating. */
  .hero-meta {
    margin-top: 44px;
    display: grid;
    gap: 7px;
    justify-items: start;
  }
  .hero-meta .sep { display: none; }

  .btn-resume-label { display: none; }
  .btn-resume { padding-inline: 0; width: 44px; }
}
