/* ==================================================
   TIMMY AJAKAIYE — PORTFOLIO
   Swiss-technical, ink on warm bone, blueprint orange
   ================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-variation-settings: 'opsz' 14, 'wdth' 100;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bone); }

/* Hide the OS cursor only where the custom one exists */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor [role="button"] { cursor: none; }
}

/* --------------------------------------------------
   TOKENS
   (legacy names kept — case-study.css depends on them)
-------------------------------------------------- */
:root {
  --bg: #F3EFE7;
  --bone: #F3EFE7;
  --bg-dark: #16130D;
  --ink: #16130D;
  --text: #16130D;
  --text-secondary: #6E675A;
  --text-muted: #A39B8B;
  --border: rgba(22, 19, 13, 0.12);
  --border-strong: rgba(22, 19, 13, 0.24);
  --white: #FBF9F4;
  --accent: #E84B0F;
  --accent-soft: rgba(232, 75, 15, 0.10);

  --serif: 'Spectral', Georgia, serif;
  --sans: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --mono: 'Martian Mono', 'Courier New', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);

  --gutter: clamp(20px, 4.5vw, 72px);
}

/* --------------------------------------------------
   UTILITIES
-------------------------------------------------- */
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------
   GRAIN
-------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* --------------------------------------------------
   CUSTOM CURSOR
-------------------------------------------------- */
.cursor, .cursor-follower { display: none; }

@media (pointer: fine) {
  .cursor {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out);
    mix-blend-mode: difference;
  }
  .cursor.cursor--hover { width: 44px; height: 44px; }
  .cursor.cursor--label {
    width: 88px; height: 88px;
    mix-blend-mode: normal;
    background: var(--accent);
  }
  .cursor-label {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bone);
    opacity: 0;
    transition: opacity 0.25s var(--ease-out);
    white-space: nowrap;
  }
  .cursor.cursor--label .cursor-label { opacity: 1; }

  .cursor-follower {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 34px; height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: opacity 0.3s;
  }
}

/* --------------------------------------------------
   LOADER
-------------------------------------------------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--ink);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-name {
  font-family: var(--sans);
  font-weight: 700;
  font-variation-settings: 'wdth' 85;
  font-size: clamp(34px, 7vw, 96px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  overflow: hidden;
}
.loader-name span {
  display: inline-block;
  transform: translateY(110%);
}
.loader-count {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(243, 239, 231, 0.5);
}
.loader-tag {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.35);
}

/* --------------------------------------------------
   NAVIGATION  (shared with case pages)
-------------------------------------------------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter);
  transition: padding 0.45s var(--ease-out), background 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out), transform 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
#nav.nav--scrolled {
  padding: 14px var(--gutter);
  background: rgba(243, 239, 231, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
#nav.nav--hidden { transform: translateY(-110%); }

.nav-logo {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-logo sup { color: var(--accent); font-size: 8px; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--ink);
  padding: 11px 22px;
  border-radius: 100px;
  transition: background 0.35s var(--ease-out), color 0.35s;
}
.nav-cta:hover { background: var(--accent); color: var(--bone); }

/* Dark nav variant (case pages with dark heroes) */
#nav.nav--dark { color: var(--bone); }
#nav.nav--dark .nav-logo,
#nav.nav--dark .nav-links a:hover { color: var(--bone); }
#nav.nav--dark .nav-links a { color: rgba(243, 239, 231, 0.55); }
#nav.nav--dark .nav-cta { background: var(--bone); color: var(--ink); }
#nav.nav--dark .nav-cta:hover { background: var(--accent); color: var(--bone); }
#nav.nav--dark.nav--scrolled {
  background: rgba(22, 19, 13, 0.78);
  border-bottom-color: rgba(243, 239, 231, 0.08);
}

/* Burger (injected by JS, visible on small screens) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  z-index: 1002;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--ink);
    color: var(--bone);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 var(--gutter);
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out);
  }
  .nav-links a {
    font-family: var(--sans);
    font-weight: 700;
    font-variation-settings: 'wdth' 85;
    font-size: clamp(40px, 10vw, 64px);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(243, 239, 231, 0.85);
    transform: translateY(24px);
    transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.3s;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--accent); }
  body.menu-open .nav-links { opacity: 1; pointer-events: auto; }
  body.menu-open .nav-links a { transform: translateY(0); }
  body.menu-open #nav { color: var(--bone); }
  body.menu-open .nav-logo {
    color: var(--bone);
    position: relative;
    z-index: 1002;
  }
  body.menu-open { overflow: hidden; }
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) clamp(28px, 4vh, 56px);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(24px, 5vh, 64px);
  flex-wrap: wrap;
}
.hero-meta-row .mono-label { color: var(--text-secondary); }
.hero-meta-row .mono-label em {
  font-style: normal;
  color: var(--accent);
}

.hero-title {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-variation-settings: 'opsz' 96, 'wdth' 80;
  font-size: clamp(64px, 16.5vw, 270px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-title .word { display: inline-block; will-change: transform; }
.hero-title .line:nth-child(2) { text-align: right; }

.hero-sub-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 60px);
  flex-wrap: wrap;
}
.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  color: var(--text);
  max-width: 14em;
}
.hero-role strong { font-weight: 400; color: var(--accent); }
.hero-desc {
  max-width: 36ch;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 380;
  color: var(--text-secondary);
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: clamp(36px, 7vh, 88px);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.hero-scroll svg { animation: nudge 2.2s var(--ease-in-out) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* --------------------------------------------------
   MARQUEE
-------------------------------------------------- */
.marquee {
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-chunk {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
  font-weight: 700;
  font-variation-settings: 'wdth' 85;
  font-size: clamp(15px, 1.6vw, 21px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee-chunk .sep { font-family: var(--serif); font-style: italic; font-weight: 300; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------
   SECTION HEADER PATTERN
-------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 7vh, 88px);
}
.section-head h2 {
  font-weight: 750;
  font-variation-settings: 'opsz' 60, 'wdth' 82;
  font-size: clamp(40px, 7.5vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 250;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------
   WORK
-------------------------------------------------- */
#work { padding: clamp(80px, 14vh, 180px) 0 0; }

.work-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding: clamp(48px, 9vh, 120px) var(--gutter);
  border-top: 1px solid var(--border);
  align-items: end;
}
.work-item:first-of-type { border-top: none; }

.work-media {
  display: block;
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--accent-soft);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-in-out);
}
.work-media.is-revealed { clip-path: inset(0 0 0% 0); }
.work-media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
  transition: scale 0.8s var(--ease-out);
}
.work-media:hover img { scale: 1.04; }

.work-item--flip .work-media { grid-column: 5 / 13; }

.work-info {
  grid-column: 9 / 13;
  padding-left: clamp(0px, 2vw, 32px);
  align-self: start;
  padding-top: 8px;
}
.work-item--flip .work-info {
  grid-column: 1 / 5;
  grid-row: 1;
  padding-left: 0;
  padding-right: clamp(0px, 2vw, 32px);
}

.work-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.work-title {
  font-weight: 750;
  font-variation-settings: 'opsz' 60, 'wdth' 84;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.work-meta span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.work-desc {
  font-size: 15px;
  font-weight: 380;
  color: var(--text-secondary);
  max-width: 34ch;
  margin-bottom: 28px;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.3s, border-color 0.3s, gap 0.35s var(--ease-out);
}
.work-link:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

/* In-progress row (Kora) */
.work-item--wip {
  display: block;
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(36px, 6vh, 72px);
}
.work-wip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.work-wip-title {
  font-weight: 750;
  font-variation-settings: 'opsz' 60, 'wdth' 84;
  font-size: clamp(34px, 4.2vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.4s;
}
.work-item--wip:hover .work-wip-title { color: var(--text); }
.work-wip-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 6px 14px;
  margin-left: 16px;
  display: inline-block;
  transform: translateY(-0.5em);
}
.work-wip-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 44ch;
}
.work-wip-desc {
  font-size: 14px;
  font-weight: 380;
  color: var(--text-secondary);
  max-width: 44ch;
}

@media (max-width: 900px) {
  .work-item, .work-item--flip { display: block; }
  .work-media, .work-item--flip .work-media { aspect-ratio: 4 / 3.4; margin-bottom: 28px; }
  .work-info, .work-item--flip .work-info { padding: 0; }
  .work-desc { max-width: 60ch; }
}

/* --------------------------------------------------
   ABOUT
-------------------------------------------------- */
#about {
  padding: clamp(100px, 16vh, 200px) var(--gutter);
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
}
.about-label { grid-column: 1 / 3; }
.about-main { grid-column: 3 / 11; }
.about-statement {
  font-weight: 600;
  font-variation-settings: 'opsz' 40, 'wdth' 88;
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.about-statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 250;
  letter-spacing: 0;
  color: var(--accent);
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 72ch;
}
.about-cols p {
  font-size: 15px;
  font-weight: 380;
  color: var(--text-secondary);
}
.about-facts {
  grid-column: 3 / 13;
  margin-top: clamp(28px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.about-fact .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.about-fact p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  max-width: 30ch;
}
.about-tags {
  grid-column: 3 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(24px, 4vh, 44px);
}
.about-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 9px 18px;
  transition: border-color 0.3s, color 0.3s;
}
.about-tags span:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .about-grid { display: block; }
  .about-label { margin-bottom: 28px; display: block; }
  .about-cols { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .about-tags { margin-top: 36px; }
}

/* --------------------------------------------------
   EXPERIENCE
-------------------------------------------------- */
#resume {
  padding: clamp(100px, 16vh, 200px) 0;
  border-top: 1px solid var(--border);
}
.xp-list { border-top: 1px solid var(--border); }
.xp-row {
  display: grid;
  grid-template-columns: 140px 1.2fr 1fr 130px;
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(22px, 3.4vh, 34px) var(--gutter);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.4s var(--ease-out);
}
.xp-row:hover { background: rgba(22, 19, 13, 0.035); }
.xp-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.xp-row:hover .xp-year { color: var(--accent); }
.xp-role {
  font-weight: 600;
  font-variation-settings: 'wdth' 90;
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.xp-org {
  font-size: 14px;
  font-weight: 380;
  color: var(--text-secondary);
}
.xp-note {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
}
.xp-detail {
  grid-column: 2 / 4;
  font-size: 13.5px;
  font-weight: 380;
  color: var(--text-secondary);
  max-width: 58ch;
}

.xp-skills {
  padding: clamp(36px, 6vh, 64px) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}
.xp-skills .mono-label { margin-right: 12px; }
.xp-skills span:not(.mono-label) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 24px);
  color: var(--text-secondary);
  transition: color 0.3s;
}
.xp-skills span:not(.mono-label):hover { color: var(--accent); }

@media (max-width: 900px) {
  .xp-row { grid-template-columns: 1fr; gap: 4px; }
  .xp-note { text-align: left; }
  .xp-detail { grid-column: auto; margin-top: 6px; }
}

/* --------------------------------------------------
   CONTACT (ink drench)
-------------------------------------------------- */
#contact {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(110px, 18vh, 220px) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.5);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.contact-heading {
  font-weight: 750;
  font-variation-settings: 'opsz' 96, 'wdth' 80;
  font-size: clamp(52px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.contact-heading em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.contact-sub {
  max-width: 44ch;
  font-size: 15px;
  font-weight: 350;
  line-height: 1.75;
  color: rgba(243, 239, 231, 0.6);
  margin-top: clamp(28px, 5vh, 52px);
}
.contact-email {
  display: inline-block;
  margin-top: clamp(36px, 6vh, 64px);
  font-weight: 500;
  font-variation-settings: 'wdth' 90;
  font-size: clamp(20px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--bone);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(243, 239, 231, 0.3);
  transition: color 0.35s, border-color 0.35s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: clamp(48px, 8vh, 96px);
}
.contact-socials a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.contact-socials a:hover { color: var(--accent); }

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Dark footer (index — sits inside the ink drench) */
.footer--dark {
  border-top-color: rgba(243, 239, 231, 0.12);
  color: rgba(243, 239, 231, 0.4);
  margin-top: clamp(64px, 10vh, 140px);
  padding-left: 0;
  padding-right: 0;
}
.footer-top {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.footer-top:hover { color: var(--accent); }

/* --------------------------------------------------
   REDUCED MOTION
-------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .hero-scroll svg, .avail-dot, .footer-dot { animation: none; }
  .work-media { clip-path: inset(0); }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
