/* ===========================================
   FALLING MAN RESUME
   Portfolio × Mad Men mashup
   Geoff Hamm — Sales & Marketing
   =========================================== */

/* ---------- Custom Properties ---------- */
:root {
  --paper: #f1ece0;
  --paper-2: #e8e2d3;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --mute: #8c8578;
  --red: #dc2b1f;
  --blue: #0b2b6d;
  --yellow: #f7c325;

  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--red);

  --display: 'Archivo', 'Archivo Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-mono: 0.72rem;
  --fs-body: 1.0625rem;
  --fs-h4: clamp(1.25rem, 1.8vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h2: clamp(2.5rem, 6vw, 5.5rem);
  --fs-h1: clamp(4rem, 18vw, 22rem);

  --gap: clamp(1rem, 1.5vw, 1.5rem);
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-y: clamp(5rem, 12vw, 10rem);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1600px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
/* Restore default cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
}

/* ---------- Utility Classes ---------- */
.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.label {
  display: block;
  color: var(--mute);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.25rem;
}
.dot--red    { background: var(--red); }
.dot--blue   { background: var(--blue); }
.dot--yellow { background: var(--yellow); }

/* ---------- Custom Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
}
.cursor__ring {
  width: 38px;
  height: 38px;
  border: 1px solid #fff;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, #fff 12%, transparent);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor { display: none; }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: var(--pad-x);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__shapes {
  position: relative;
  width: min(320px, 60vw);
  aspect-ratio: 3 / 1;
}
.loader__shape {
  position: absolute;
  top: 0;
  width: 33.3%;
  aspect-ratio: 1;
}
.loader__shape--circle {
  left: 0;
  background: var(--red);
  border-radius: 50%;
  animation: loaderPulse 1.8s var(--ease) infinite;
}
.loader__shape--square {
  left: 33.3%;
  background: var(--blue);
  animation: loaderPulse 1.8s var(--ease) infinite 0.25s;
}
.loader__shape--triangle {
  left: 66.6%;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: loaderPulse 1.8s var(--ease) infinite 0.5s;
}
@keyframes loaderPulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12%); }
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  width: min(320px, 60vw);
  margin-top: 2rem;
  color: var(--fg);
}
.loader__bar {
  width: min(320px, 60vw);
  height: 2px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
  margin-top: 0.75rem;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) var(--pad-x);
  mix-blend-mode: difference;
  color: var(--paper);
  transition: background-color 0.35s var(--ease),
              color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

/* Past the hero, the nav locks to the color of the section it sits
   over. We drop mix-blend-mode so bold titles behind it don't bleed
   through, and add a hairline under-rule to seat the bar visually. */
body.nav-solid .nav {
  mix-blend-mode: normal;
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
body[data-nav-theme="blue"]   .nav { background: var(--blue);   color: var(--paper); }
body[data-nav-theme="red"]    .nav { background: var(--red);    color: var(--paper); }
body[data-nav-theme="ink"]    .nav { background: var(--ink);    color: var(--paper); }
body[data-nav-theme="yellow"] .nav { background: var(--yellow); color: var(--ink);   }
body[data-nav-theme="paper"]  .nav { background: var(--paper);  color: var(--ink);   }

/* Brand mark: the default red-circle + blue-square clashes when the
   nav bg itself is red or blue — swap those tiles to yellow in that case. */
body[data-nav-theme="red"]  .nav__mark-svg circle { fill: var(--yellow); }
body[data-nav-theme="blue"] .nav__mark-svg rect   { fill: var(--yellow); }
.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__mark-svg {
  width: 28px;
  height: 28px;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
}
.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a i {
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-style: normal;
  font-size: 0.6rem;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after {
  transform: scaleX(1);
}

/* Hamburger toggle — hidden on desktop, revealed at ≤700px */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 1002;          /* always sits above the slide-in panel */
  background: none;
  border: 0;
  padding: 0.5rem;
  margin: -0.5rem;        /* keep optical alignment, expand hit target */
  color: inherit;
  cursor: pointer;
}
.nav__toggle-bars {
  display: block;
  width: 28px;
  height: 18px;
  position: relative;
}
.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease),
              opacity   0.2s var(--ease),
              top       0.3s var(--ease);
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 8px; }
.nav__toggle-bars span:nth-child(3) { top: 16px; }
.nav.is-open .nav__toggle-bars span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle-bars span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}
/* Open panel always uses paper bg, so the X must be ink no matter what
   theme the closed nav was wearing. */
.nav.is-open .nav__toggle { color: var(--ink); }

/* ---------- Noise Grain Overlay ---------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23f1ece0' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  z-index: 100;
}

/* ---------- Building Glass-Panel Grid ---------- */
.building-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(160,170,180,0.08) 0px,
      rgba(160,170,180,0.08) 1px,
      transparent 1px,
      transparent 220px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(160,170,180,0.05) 0px,
      rgba(160,170,180,0.05) 1px,
      transparent 1px,
      transparent 320px
    );
}

/* 12-col grid overlay — toggled with G key */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.grid-overlay > div {
  border-left: 1px dashed color-mix(in srgb, var(--red) 60%, transparent);
}
.grid-overlay > div:last-child {
  border-right: 1px dashed color-mix(in srgb, var(--red) 60%, transparent);
}
body.show-grid .grid-overlay {
  opacity: 0.55;
}

/* ---------- Falling Man ---------- */
#falling-man {
  position: fixed;
  right: 12%;
  top: 0;
  width: 180px;
  height: 210px;
  z-index: 10;
  mix-blend-mode: difference;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.3s ease;
}

#falling-man .man-pose {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: invert(1);
}


/* ---------- Whiskey Glass (scroll-driven) ---------- */
#old-fashioned-glass {
  position: fixed;
  top: 50%;
  right: 12%;                       /* same anchor as #falling-man */
  margin-right: -160px;             /* centre glass on the man: -(500-180)/2 */
  width: 500px;
  height: 500px;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
  /* 150% (not 100%) so the glass sits fully offscreen even on wide
     displays — the `right: 12%` + `margin-right: -160px` anchor means a
     plain 100% shift still peeks into the viewport above ~1333px wide. */
  transform: translateY(-50%) translateX(150%);
}

.whiskey-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whiskey-splash {
  opacity: 0;
}

#old-fashioned-glass.splash .whiskey-still {
  opacity: 0;
}

#old-fashioned-glass.splash .whiskey-splash {
  opacity: 1;
}

/* ---------- Living Room (scroll-driven, pairs with whiskey) ---------- */
#living-room {
  position: fixed;
  top: 50%;
  left: 0;
  width: clamp(380px, 48vw, 720px);
  height: auto;
  z-index: 4;                         /* behind whiskey (5), behind man */
  pointer-events: none;
  will-change: transform;
  transform: translateY(-50%) translateX(-110%);
  opacity: 0.95;
}

#living-room img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Scene tagline backdrop ---------- */
#scene-tagline {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 1;                         /* below .resume (2) so next section covers it on scroll */
  pointer-events: none;
  text-align: center;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 18%, transparent);
}

.scene-tagline__line {
  display: block;
}

.scene-tagline__line--stroke {
  -webkit-text-stroke: 2px color-mix(in srgb, var(--red) 55%, transparent);
  color: transparent;
}

/* ---------- Resume Content ----------
   Every child section uses `.section--wide` to break out to 100vw,
   so .resume is just a stacking-context wrapper. */
.resume {
  position: relative;
  z-index: 2;
}

/* Experience breaks out of the narrow .resume container */
.section--wide {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: clamp(2rem, 6vw, 5rem);
  padding-right: clamp(2rem, 6vw, 5rem);
  max-width: none;
  background: var(--blue);
  color: var(--paper);
}
.section--wide .section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Override colors inside the blue section */
.section--wide h2,
.section--wide h3,
.section--wide .timeline__year {
  color: var(--paper);
}
.section--wide .timeline__org {
  color: var(--yellow);
}
.section--wide .timeline__desc {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.section--wide .timeline__tags {
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.section--wide .timeline__item {
  border-color: color-mix(in srgb, var(--paper) 20%, transparent);
}
.section--wide .section-head__label {
  color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.section--wide .section-head__rule {
  color: var(--paper);
}

/* Red variant (Education) */
.section--red {
  background: var(--red);
}
.section--red .timeline__org,
.section--red .edu-degree {
  color: var(--yellow);
}
.section--red .underline-accent {
  background: linear-gradient(to top, var(--blue) 10%, transparent 10%);
}
.section--red .section-head__num,
.section--red .section-head__shape {
  color: var(--yellow);
}

/* Ink variant (Skills) */
.section--ink {
  background: var(--ink);
}
.section--ink .section-head__num,
.section--ink .section-head__shape,
.section--ink .skill-group h3 {
  color: var(--yellow);
}
.section--ink .underline-accent {
  background: linear-gradient(to top, var(--yellow) 10%, transparent 10%);
}

/* Yellow variant (Extracurriculars) — dark text on yellow */
.section--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.section--yellow .section-title,
.section--yellow .extra-item h3 {
  color: var(--ink);
}
.section--yellow .section-head__num,
.section--yellow .section-head__shape {
  color: var(--red);
}
.section--yellow .section-head__label,
.section--yellow .extra-item p {
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}
.section--yellow .section-head__rule {
  color: var(--ink);
}

/* Paper variant (Recommendations, Contact) — keep the tan background,
   but reuse the full-bleed layout of other wide sections. */
.section--wide.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper .section-title,
.section--wide.section--paper h2,
.section--wide.section--paper h3 {
  color: var(--ink);
}
.section--paper .section-head__num,
.section--paper .section-head__shape {
  color: var(--red);
}
.section--paper .section-head__label {
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.section--paper .section-head__rule {
  color: var(--ink);
}
.section--paper .underline-accent {
  background: linear-gradient(to top, var(--yellow) 10%, transparent 10%);
}
.section--yellow .underline-accent {
  background: linear-gradient(to top, var(--red) 10%, transparent 10%);
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 8rem 0 6rem;
}

/* Compact sections (Education, Skills) — no full-viewport stretch */
.section--tight {
  min-height: auto;
  padding: 4rem 0 3rem;
}

/* Wide + tight: override padding shorthand so left/right aren't zeroed */
.section--wide.section--tight {
  padding: clamp(4rem, 8vw, 7rem) clamp(2rem, 6vw, 5rem);
}

/* Empty runway before Extracurriculars for the whiskey glass sequence */
.whiskey-runway {
  height: 80vh;
}

.section-inner {
  width: 100%;
}

/* ============================================
   HERO — merged from portfolio
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0 !important;
  max-width: none !important;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--pad-y) * 0.4) var(--pad-x) var(--pad-x);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: clamp(1.25rem, 2vw, 2rem);
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 3rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}
.hero__meta > div {
  display: flex;
  flex-direction: column;
}

.hero__title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 0.82;
  letter-spacing: -0.055em;
  display: flex;
  flex-direction: column;
  align-self: end;
}
.hero__line {
  display: block;
}
.hero__line--accent {
  color: var(--red);
  margin-left: 0.4em;
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  flex-wrap: wrap;
}

.hero__tagline {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: color-mix(in srgb, var(--fg) 82%, transparent);
}
.hero__tagline em {
  font-style: italic;
  color: var(--fg);
}
.hero__tagline b {
  color: var(--red);
  font-weight: 700;
}

.hero__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--mute);
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: currentColor;
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ---------- Button (from portfolio) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.5rem 1rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}
.button:hover {
  background: var(--fg);
  color: var(--bg);
}
.button:hover svg {
  transform: translateX(4px);
}
.button--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.button--primary:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* ============================================
   RESUME SECTIONS — below the hero
   ============================================ */

/* ---------- Section Header (portfolio style) ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__num {
  color: var(--accent);
}
.section-head__label {
  color: var(--mute);
}
.section-head__rule {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Subtle Bauhaus shape accent — tiny echo of the loader trio. */
.section-head__shape {
  display: block;
  width: 10px;
  height: 10px;
  color: var(--accent);
  background: currentColor;
}
.section-head__shape--circle   { border-radius: 50%; }
.section-head__shape--square   { /* default square */ }
.section-head__shape--triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid currentColor;
}

/* ---------- Section Title (big statement heading) ---------- */
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  max-width: none;
}

.underline-accent {
  background: linear-gradient(to top, var(--red) 10%, transparent 10%);
  padding: 0 0.1em;
}

/* ---------- Section Headings ---------- */
h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
}

/* ---------- Experience Entries ---------- */
.entry {
  margin-bottom: 3rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entry-date {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-company {
  font-size: 0.95rem;
  color: var(--mute);
  margin: 0.25rem 0 0.75rem;
}

.entry ul {
  list-style: none;
  padding: 0;
}

.entry li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--fg) 80%, transparent);
  line-height: 1.55;
}

.entry li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--mute);
}

/* ---------- Timeline (Experience) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  transition: padding 0.4s var(--ease);
}

.timeline__item:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.timeline__item:hover {
  padding-left: 1rem;
}

.timeline__year {
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}

.timeline__body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.timeline__org {
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-weight: 400;
  font-size: 0.95rem;
}

.timeline__desc {
  max-width: 60ch;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
  margin-bottom: 0.5rem;
}

.timeline__quote {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--mute);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  margin-top: 0.75rem;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}

.timeline__tags li {
  position: relative;
  padding-left: 0.9rem;
}

.timeline__tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Tag dots use yellow inside blue section */
.section--wide .timeline__tags li::before {
  background: var(--yellow);
}

/* Expand / collapse: hide items beyond the 3rd */
.timeline__item.is-hidden {
  display: none;
}
.timeline.is-expanded .timeline__item.is-hidden {
  display: grid;
}

/* "Show more" toggle button */
.timeline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--paper);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline-toggle:hover {
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border-color: var(--paper);
}
.timeline-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s var(--ease);
}
.timeline.is-expanded + .timeline-toggle svg {
  transform: rotate(180deg);
}

@media (max-width: 700px) {
  .timeline__item,
  .timeline.is-expanded .timeline__item.is-hidden {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ---------- Logo Marquee ---------- */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: var(--paper-2);
}
.logo-marquee__track {
  display: flex;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: max-content;
  animation: marquee 80s linear infinite;
}
.logo-marquee__track img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.45);
  transition: filter 0.3s var(--ease);
}
.logo-marquee__track img:hover {
  filter: grayscale(0) opacity(1);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Skills Grid ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.skill-group h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skill-group h3::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}
.skill-group:nth-child(1) h3::before {
  background: var(--red);
  border-radius: 50%;
}
.skill-group:nth-child(2) h3::before {
  background: var(--blue);
}
.skill-group:nth-child(3) h3::before {
  background: var(--yellow);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.skill-group:nth-child(4) h3::before {
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.skill-group ul {
  list-style: none;
  padding: 0;
}

.skill-group li {
  font-size: 0.95rem;
  color: color-mix(in srgb, currentColor 80%, transparent);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* ---------- Extracurriculars ---------- */
.extracurriculars {
  position: relative;
}

/* Shuffle component */
.extras-shuffle {
  position: relative;
}

/* Legal-pad note — clean cream card */
.extras-shuffle__note {
  position: relative;
  display: inline-block;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ink) 15%, transparent);
  box-shadow: 2px 3px 0 0 color-mix(in srgb, var(--ink) 10%, transparent);
}

.extras-shuffle__prompt {
  display: flex;
  align-items: baseline;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  flex-wrap: wrap;
}
.extras-shuffle__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}

/* Variable-text box — bordered input feel */
.extras-shuffle__field {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease);
}
.extras-shuffle__field:hover {
  box-shadow: 2px 2px 0 0 var(--ink);
}
.extras-shuffle__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.extras-shuffle__caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--ink);
  margin-left: 2px;
  vertical-align: middle;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Stepper arrows — stacked up/down */
.extras-shuffle__steppers {
  display: flex;
  flex-direction: column;
  margin-left: clamp(0.5rem, 1vw, 0.85rem);
  gap: 1px;
}
.extras-shuffle__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  padding: 0;
  background: none;
  border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.extras-shuffle__step:first-child { border-radius: 2px 2px 0 0; }
.extras-shuffle__step:last-child  { border-radius: 0 0 2px 2px; }
.extras-shuffle__step:hover {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.extras-shuffle__step svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Description panels — on yellow below the paper */
.extras-shuffle__body {
  position: relative;
}
.extras-shuffle__panel {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.extras-shuffle__panel.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.extras-shuffle__panel p {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  max-width: 48ch;
}
.extras-shuffle__panel p + p {
  margin-top: 0.75rem;
}

/* ---------- Spotify playlists (vinyl tiles under Extracurriculars) ---------- */
.playlists {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.playlists__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  font-size: var(--fs-mono);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.playlists__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
  animation: statusPulse 2.2s ease-in-out infinite;
}
.playlists__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.playlist {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.playlist::after {
  /* subtle diagonal shine on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 35%,
    color-mix(in srgb, var(--paper) 40%, transparent) 50%,
    transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.playlist:hover,
.playlist:focus-visible {
  transform: translateY(-4px);
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 8px 10px 0 0 var(--ink);
  outline: none;
}
.playlist:hover::after,
.playlist:focus-visible::after {
  transform: translateX(120%);
}

/* Vinyl record — repeating radial gradient grooves + colored label */
.playlist__vinyl {
  position: relative;
  width: clamp(110px, 14vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      #060606 0 2px,
      #1c1c1c 2px 3.2px
    );
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.playlist:hover .playlist__vinyl,
.playlist:focus-visible .playlist__vinyl {
  animation: vinyl-spin 4.5s linear infinite;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

.playlist__label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.playlist__label--red  { background: var(--red); }
.playlist__label--blue { background: var(--blue); }
/* Spindle hole */
.playlist__label::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #050505;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--paper) 55%, transparent),
    0 0 0 3px rgba(0, 0, 0, 0.5);
}

.playlist__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.playlist__num {
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: var(--fs-mono);
}
.playlist__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.playlist__sub {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.5;
  margin: 0.2rem 0 0.7rem;
  max-width: 36ch;
}
.playlist__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-mono);
  color: var(--ink);
  margin-top: auto;
}
.playlist__spotify {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.playlist__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.playlist:hover .playlist__arrow,
.playlist:focus-visible .playlist__arrow {
  transform: translateX(4px);
}

/* ---------- Education ---------- */
#education .entry {
  margin-bottom: 2rem;
}

.edu-grid {
  display: flex;
  flex-direction: column;
}

.edu-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}
.edu-entry:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}
.section--wide .edu-entry {
  border-color: color-mix(in srgb, var(--paper) 20%, transparent);
}

.edu-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  object-fit: contain;
}

.edu-school {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.edu-degree {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--fg) 75%, transparent);
  margin-bottom: 0.15rem;
  line-height: 1.45;
}

.edu-meta {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* Light colors inside red/blue sections */
.section--wide .edu-school {
  color: var(--paper);
}
.section--wide .edu-degree {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.section--wide .edu-meta {
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.section--wide .edu-logo {
  opacity: 0.85;
}

/* ---------- Recommendations ---------- */
.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rec-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-top: 3px solid var(--accent);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.rec-card:hover,
.rec-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--fg) 12%, transparent);
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
  outline: none;
}

.rec-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.rec-blurb {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  flex: 1;
}

.rec-meta {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.rec-meta strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

.rec-meta span {
  display: block;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--fg) 60%, transparent);
}

.rec-button {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

.rec-card:hover .rec-button,
.rec-card:focus-visible .rec-button {
  color: var(--accent);
  transform: translateX(4px);
}

/* Expand / collapse: hide cards beyond the 3rd */
.rec-card.is-hidden {
  display: none;
}
.recs-grid.is-expanded .rec-card.is-hidden {
  display: flex;
}

.recs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.recs-toggle:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: var(--ink);
}
.recs-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s var(--ease);
}
.recs-grid.is-expanded + .recs-toggle svg {
  transform: rotate(180deg);
}

/* ---------- Recommendation modal ---------- */
.rec-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.rec-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.rec-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(4px);
}

.rec-modal__panel {
  position: relative;
  max-width: 640px;
  width: calc(100% - 2rem);
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--red);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.rec-modal.is-open .rec-modal__panel {
  transform: translateY(0);
}

.rec-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.rec-modal__close:hover {
  color: var(--red);
}

.rec-modal__body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.rec-modal__meta strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.rec-modal__meta span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  margin-top: 0.15rem;
}

/* ---------- Contact (portfolio-inspired, tan backdrop) ---------- */
#contact {
  min-height: auto;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  overflow: hidden;               /* contain floating shapes */
}

/* (Status pill removed — Contact section-head uses the default layout.) */
.section-head__status {
  display: none;
}
.section-head__status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 4px color-mix(in srgb, #3ecf8e 25%, transparent);
  animation: statusPulse 2.2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Hero block: title + lede + email pill, with floating shapes */
.contact-hero {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  min-height: clamp(420px, 50vw, 640px);
}

.contact-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
  color: var(--ink);
}
.contact-title .underline-accent {
  background: linear-gradient(to top, var(--yellow) 14%, transparent 14%);
}

/* "im"-prefix on "impossible" — a chunky red strike that leaves the
   rest of the word as the actual promise. The wrapper keeps the whole
   word on a single line so the strike stays visually tied to "possible". */
.impossible-word {
  display: inline-block;
  white-space: nowrap;
}
.im-strike {
  position: relative;
  display: inline-block;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.im-strike::after {
  content: '';
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 52%;
  height: 0.14em;
  background: var(--red);
  transform: rotate(-4deg);
  transform-origin: center;
  pointer-events: none;
}

/* Email pill button with offset yellow square behind */
.contact-email {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
  isolation: isolate;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}
.contact-email__square {
  position: absolute;
  left: -1.5rem;
  top: -1.25rem;
  width: clamp(110px, 13vw, 180px);
  height: clamp(110px, 13vw, 180px);
  background: var(--yellow);
  transform: rotate(-9deg);
  z-index: -1;
  transition: transform 0.35s var(--ease);
}
.contact-email:hover .contact-email__square {
  transform: rotate(-4deg) translate(6px, -4px);
}
.contact-email__inner {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 2rem 1.15rem 2.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-email:hover .contact-email__inner {
  background: var(--ink);
  color: var(--paper);
}
.contact-email__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.contact-email__addr {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
}
.contact-email__arrow {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.contact-email:hover .contact-email__arrow {
  transform: translateX(4px);
}

/* Secondary pills — Call / Connect. Lighter weight than the email pill
   so the hierarchy stays clear. */
.contact-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  position: relative;
  z-index: 2;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.4rem 0.8rem 1.6rem;
  border: 1.25px solid color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.contact-pill:hover,
.contact-pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  outline: none;
}
.contact-pill__label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.contact-pill__addr {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  letter-spacing: -0.01em;
}
.contact-pill__arrow {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.contact-pill:hover .contact-pill__arrow,
.contact-pill:focus-visible .contact-pill__arrow {
  transform: translateX(3px);
}

/* Floating Bauhaus shapes — scattered on the right half so they
   don't fight the standing-man silhouette. */
.contact-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.contact-shape {
  position: absolute;
  display: block;
}
.contact-shape--circle-lg {
  top: -4rem;
  right: -3rem;
  width: clamp(180px, 24vw, 360px);
  height: clamp(180px, 24vw, 360px);
  background: var(--red);
  border-radius: 50%;
}
.contact-shape--triangle-lg {
  bottom: 1rem;
  right: 6%;
  width: 0;
  height: 0;
  border-left: clamp(55px, 7vw, 110px) solid transparent;
  border-right: clamp(55px, 7vw, 110px) solid transparent;
  border-bottom: clamp(90px, 12vw, 180px) solid var(--blue);
  opacity: 0.92;
}
.contact-shape--square-sm {
  top: 44%;
  right: 34%;
  width: clamp(16px, 1.8vw, 28px);
  height: clamp(16px, 1.8vw, 28px);
  background: var(--ink);
}
.contact-shape--ring {
  top: 52%;
  right: 44%;
  width: clamp(36px, 3.8vw, 54px);
  height: clamp(36px, 3.8vw, 54px);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact-shape--ring::after {
  content: '';
  width: 22%;
  height: 22%;
  background: var(--ink);
  border-radius: 50%;
}

/* ---------- Footer (lifted from portfolio) ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--red);
  padding: 2.5rem var(--pad-x) 0;
  overflow: hidden;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.footer__row kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.65rem;
  margin: 0 0.15rem;
}

.footer__mark {
  padding: 1.5rem 0 0;
  color: var(--paper);
  line-height: 0;
  margin: 0 calc(var(--pad-x) * -1);   /* bleed past footer padding */
}

.footer__mark svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero__meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .section {
    padding: 5rem 0 4rem;
  }

  /* ---- Mobile nav: hamburger + slide-in panel ---- */
  .nav {
    /* Keep mix-blend-mode: difference from the base rule so the
       falling-man silhouette passes through the bar instead of being
       clipped behind it — same behaviour as desktop. */
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  /* When the slide-in panel is open, the whole nav subtree composites
     normally so the paper panel paints cleanly. */
  .nav.is-open {
    mix-blend-mode: normal;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  }
  .nav__toggle { display: inline-flex; }

  .nav__links {
    /* Slide-in panel — hidden by default, revealed on .nav.is-open */
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 5rem var(--pad-x) 3rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1001;
    overflow: hidden;              /* contain the Bauhaus accent */
  }
  /* Bauhaus accent — a red disc bleeding off the bottom-right corner,
     echoing the red circle in the nav wordmark so opening the menu
     creates a diagonal dialogue between the two. Full strength to
     match the rest of the site's shape language (none of the other
     primary-colour shapes use opacity). */
  .nav__links::before {
    content: '';
    position: absolute;
    bottom: -140px;
    right: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--red);
    pointer-events: none;
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
  }
  .nav__links a {
    font-size: 1.6rem;
    font-family: var(--display);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.01em;
    gap: 0.75rem;
  }
  .nav__links a i {
    font-size: 0.7rem;
    font-family: var(--mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mute);
  }
  /* Lock body scroll while the menu is open */
  body.nav-open { overflow: hidden; }

  .extras-shuffle__note {
    display: block;
  }

  .playlists__grid {
    grid-template-columns: 1fr;
  }
  .playlist {
    gap: 1rem;
  }
  .playlist__vinyl {
    width: 100px;
  }

  .contact-hero {
    min-height: 0;
  }
  .contact-secondary {
    flex-direction: column;      /* stack Call + Connect on narrow screens */
    align-items: flex-start;
  }
  .contact-shape--circle-lg {
    top: -3rem;
    right: -5rem;
    width: 180px;
    height: 180px;
    opacity: 0.85;
  }
  .contact-shape--triangle-lg,
  .contact-shape--square-sm,
  .contact-shape--ring {
    display: none;               /* avoid clutter on narrow viewports */
  }
  .contact-email__square {
    width: 90px;
    height: 90px;
  }
  .contact-email__inner {
    padding: 0.9rem 1.25rem;
    gap: 0.75rem;
  }
  .contact-email__addr {
    font-size: 1.05rem;
  }

  #falling-man {
    right: 4%;
    width: 140px;
    height: 165px;
  }

  #old-fashioned-glass {
    right: 4%;
    margin-right: -90px;            /* centre on mobile man: -(320-140)/2 */
    width: 320px;
    height: 320px;
  }

  #living-room {
    width: 60vw;
    /* opacity inherits from the base rule (0.95). Earlier we dropped it
       to 0.85 here, but on a small viewport that low-opacity couch lets
       the "Work hard, play harder" tagline bleed through the upholstery
       — a problem you don't see on desktop where the same opacity sits
       at 0.95. Keep parity with desktop. */
  }
}

@media (max-width: 480px) {
  #falling-man {
    right: 2%;
    width: 105px;
    height: 125px;
  }

  #old-fashioned-glass {
    right: 2%;
    margin-right: -107px;           /* centre on small man: -(320-105)/2 */
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
