/* ============================================
   BISMUTH PORTFOLIO
   Fonts: Rubik Puddles (display) + Montserrat (UI)
   Aesthetic: 375.studio layout, Bismuth personality
   ============================================ */

:root {
  --black:   #000;
  --white:   #fff;
  --gray:    #808080;
  --gray-2:  #141414;
  --magenta: #cc0597;
  --cyan:    #11baff;
  --display: 'Rubik Mono One', sans-serif;
  --sans:    'Montserrat', sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }


/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s;
}
.logo {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.logo span { color: var(--magenta); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .6;
  transition: opacity .3s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width .4s var(--ease);
}
.site-nav a:hover, .site-nav a.active { opacity: 1; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px;
  color: var(--white);
  overflow: hidden;
  position: relative;
  transition: border-color .3s;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--magenta);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
  z-index: -1;
}
.nav-cta:hover { border-color: var(--magenta); }
.nav-cta:hover::before { transform: scaleX(1); transform-origin: left; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 90;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 64px);
  opacity: .7;
  transition: opacity .3s, color .3s;
}
.mobile-nav a:hover { opacity: 1; color: var(--magenta); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + 80px) 40px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: -15%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: .15; }
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 100% 100%, rgba(204,5,151,.15) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 0% 0%, rgba(17,186,255,.08) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.7) 100%);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero-content { display: flex; flex-direction: column; justify-content: flex-end; }

.hero-heading {
  font-family: var(--display);
  font-size: clamp(48px, 8.5vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 48px;
}
.hero-heading .line { display: block; overflow: hidden; }
.hero-heading .line span { display: inline-block; }

.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 880px;
}
.hero-sub p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255,255,255,.6);
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 60px;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-footer-links { display: flex; gap: 24px; }
.hero-footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .3s;
}
.hero-footer-links a:hover { color: var(--white); }

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
}
.scroll-indicator::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gray);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 100% { width: 30px; opacity: 1; }
  50%       { width: 56px; opacity: .4; }
}

/* ── CHAR ANIMATION ── */
.char-split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: charIn .65s var(--ease) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── MARQUEE ── */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  white-space: nowrap;
  padding: 0 32px;
  color: rgba(255,255,255,.1);
  transition: color .3s;
}
.marquee-item.accent { color: var(--magenta); padding: 0 8px; font-family: var(--sans); font-size: 24px; }
.marquee-track:hover .marquee-item { color: rgba(255,255,255,.22); }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 48px;
}

/* ── PILL BUTTON ── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.pill-btn .btn-arrow { transition: transform .3s var(--ease); }
.pill-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--magenta);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
  z-index: -1;
}
.pill-btn:hover { border-color: var(--magenta); }
.pill-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.pill-btn:hover .btn-arrow { transform: translateX(4px); }
.pill-btn.cyan::before { background: var(--cyan); }
.pill-btn.cyan:hover { border-color: var(--cyan); color: var(--black); }

/* ── DEMO REEL ── */
.demo-reel-section { padding: 96px 40px; }
.demo-reel-header { margin-bottom: 40px; }
.demo-reel-heading {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 12px;
}
.demo-reel-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
}
.demo-reel-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-reel-player .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,.35);
  transition: background .3s;
}
.demo-reel-player .play-overlay:hover { background: rgba(0,0,0,.15); }
.demo-reel-player .play-overlay.hidden { display: none; }

/* ── PROJECTS SECTION ── */
.projects-section { padding: 96px 40px; }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.projects-heading {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
}

/* ── PROJECT CARD ── */
.project-list { padding: 0 40px; }
.project-list--last { padding: 0 40px 80px; }
.project-card {
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
  transition: background .25s;
}
.project-card:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }

.project-card-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: start;
  padding: 28px 0;
  gap: 0;
}
.project-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  padding-top: 6px;
  letter-spacing: .05em;
}
.project-info { min-width: 0; }
.project-title {
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
  transition: color .3s;
}
.project-card:hover .project-title { color: var(--magenta); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.project-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  color: var(--gray);
}

.project-meta {
  text-align: right;
  padding-top: 6px;
  padding-left: 20px;
}
.meta-school {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}
.meta-year {
  font-family: var(--display);
  font-size: 22px;
  color: rgba(255,255,255,.25);
}

/* Expand button */
.project-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color .3s;
}
.expand-icon {
  display: inline-block;
  font-size: 15px;
  transition: transform .35s var(--ease);
}
.project-expand-btn:hover { color: var(--white); }
.project-card.expanded .expand-icon { transform: rotate(45deg); }

/* Expandable media area */
.project-media-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.project-card.expanded .project-media-wrap { grid-template-rows: 1fr; }
.project-media-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom .4s var(--ease);
}
.project-card.expanded .project-media-inner { padding-bottom: 28px; }

/* Media display (thumbnail or video) */
.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-2);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.project-media img,
.project-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-media video { cursor: pointer; }

/* Play button overlay for video cards */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .3s, opacity .3s;
}
.play-overlay:hover { background: rgba(0,0,0,.2); }
.play-btn-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), border-color .3s;
}
.play-overlay:hover .play-btn-circle { transform: scale(1.1); border-color: var(--magenta); }
.play-icon { width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}
.play-overlay.hidden { display: none; }

/* ── CATEGORY SECTION ── */
.category-section { padding: 96px 40px 0; }
.category-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.category-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  color: var(--gray);
}
.category-count {
  font-size: 13px;
  color: rgba(255,255,255,.2);
  font-weight: 400;
}
.category-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  line-height: 1;
  padding: 12px 40px 32px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--header-h) + 80px) 40px 80px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 100% 50%, rgba(204,5,151,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 8.5vw, 112px);
  font-weight: 400;
  line-height: 1.05;
}
.page-hero-sub {
  margin-top: 40px;
  font-size: 14px;
  color: var(--gray);
  max-width: 480px;
  line-height: 1.85;
}

/* ── ABOUT PAGE ── */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 80px 40px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 100px;
  max-width: 480px;
  justify-self: end;
}
.about-profile-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 2px;
}
.about-contact-section {
  padding: 0 40px 80px;
}
.about-bio p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255,255,255,.72);
  margin-bottom: 26px;
}
.about-bio p:first-child {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--white);
  line-height: 1.3;
}

.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  transition: border-color .3s, background .3s;
}
.contact-card:hover {
  border-color: rgba(204,5,151,.4);
  background: rgba(204,5,151,.04);
}
.contact-card-icon { font-size: 18px; opacity: .45; flex-shrink: 0; }
.contact-card-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 3px;
}
.contact-card-value {
  font-size: 13px;
  color: var(--cyan);
  transition: color .3s;
  font-weight: 500;
}
.contact-card:hover .contact-card-value { color: var(--magenta); }

/* ── TOOLS SECTION ── */
.tools-section { padding: 80px 40px 100px; }
.tools-heading-block {
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 60px;
}
.tools-main-heading {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  margin-top: 14px;
}
.tools-accent { color: var(--magenta); }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tools-category-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: padding-left .3s var(--ease);
}
.tool-item:hover { padding-left: 10px; }
.tool-icon {
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .85;
}
.tool-icon--invert { filter: invert(1); }
.tool-name {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  transition: color .3s;
}
.tool-item:hover .tool-name { color: var(--cyan); }

/* ── MOTION PAGE ── */
.motion-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.motion-watermark {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(180px, 28vw, 360px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none;
  transform: rotate(-12deg);
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -.02em;
  line-height: 1;
}
.motion-page-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.motion-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.motion-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 11px 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  position: relative;
  z-index: 1;
}
.motion-desc {
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray);
  max-width: 420px;
  line-height: 1.85;
  text-align: center;
  position: relative;
  z-index: 1;
}
.motion-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.motion-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.3; transform:scale(1.4); }
}

/* ── ANIMATION PAGE STATS ── */
.animation-intro { padding: 60px 40px 80px; }
.animation-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.animation-intro-text p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.animation-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.stat-number {
  font-family: var(--display);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── FOOTER ── */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 80px 40px 48px; }
.footer-cta { margin-bottom: 80px; }
.footer-cta-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}
.footer-cta-heading {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 32px;
}
.footer-cta-heading em { font-style: normal; color: var(--magenta); }
.footer-email {
  font-family: var(--display);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--cyan);
  transition: color .3s;
}
.footer-email:hover { color: var(--magenta); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 14px;
}
.footer-bio { font-size: 13px; line-height: 1.85; color: var(--gray); max-width: 300px; }
.footer-col-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 22px;
}
.footer-nav-links, .footer-social-links { display: flex; flex-direction: column; gap: 11px; }
.footer-nav-links a, .footer-social-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: color .3s;
}
.footer-nav-links a:hover { color: var(--white); }
.footer-social-links a:hover { color: var(--cyan); }
.footer-social-links svg { vertical-align: middle; margin-right: 7px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 56px;
}
.footer-copyright { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .04em; }

/* ── PAGE-SPECIFIC UTILITY CLASSES ── */

/* Hero heading line fades */
.hero-heading .line:nth-child(2) { color: rgba(255,255,255,.35); }
.hero-heading .line:nth-child(3) { color: rgba(255,255,255,.18); }

/* Homepage: projects heading muted word */
.projects-heading .muted { color: rgba(255,255,255,.3); }

/* Homepage: about teaser section */
.about-teaser {
  padding: 96px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.about-teaser-heading {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 14px;
}
.about-teaser-heading .accent { color: var(--magenta); }
.about-teaser-body {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
  margin-bottom: 30px;
}

/* All-projects CTA bar */
.all-projects-cta { text-align: center; padding-top: 56px; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-sub { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { position: static; max-width: 360px; justify-self: center; }
  .about-contact-section { padding-left: 20px; padding-right: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .animation-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card-header { grid-template-columns: 48px 1fr; }
  .project-meta { display: none; }
  .projects-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 20px; }
  .hero, .page-hero { padding-left: 20px; padding-right: 20px; }
  .projects-section, .category-section, .tools-section,
  .about-layout, .animation-intro, .site-footer { padding-left: 20px; padding-right: 20px; }
  .category-title { padding-left: 20px; padding-right: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: .3;
}
