/* ==========================================================================
   NATEUX.COM — "Splatoon" design system (Carbon & Bold + dayglow ink)
   Extracted from the approved design-reference mockup. This is the source
   of truth for color, type, and spacing across the whole site — every page
   should import this file and reuse these classes/variables rather than
   redefining new ones.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;900&family=Archivo+Expanded:wght@700;900&family=Space+Mono:wght@400;700&display=swap');

/* --------------------------------------------------------------------------
   TOKENS — COLOR
   -------------------------------------------------------------------------- */
:root{
  --carbon:      #0E0E10;
  --carbon-2:    #19181C;
  --carbon-3:    #1F2024;
  --paper:       #F3F2EE;
  --paper-dim:   #D6D4CE;
  --paper-faint: #9A9A94;
  --paper-card:  #B8B7B1;
  --paper-prose: #E6E5E0;
  --ink-magenta: #FF2E93;
  --ink-cyan:    #21E6E6;
  --ink-lime:    #C6FF3D;
  --ink-orange:  #FF8A1E;
  --ink-violet:  #B14EFF;
  --max-width:   1080px;
  --gutter:      28px;
}

/* --------------------------------------------------------------------------
   BASE
   -------------------------------------------------------------------------- */
*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--carbon);
  color: var(--paper);
  font-family: 'Archivo', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

/* --------------------------------------------------------------------------
   SPLAT BLOBS
   -------------------------------------------------------------------------- */
.splat{
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   HEADER / NAV
   -------------------------------------------------------------------------- */
header.nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
}
header.nav::before{
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--carbon);
  z-index: -1;
}
.logo{
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.logo:hover{ color: var(--ink-magenta); }
.logo span{ color: var(--ink-lime); }
.logo:hover span{ color: var(--ink-cyan); }
.navlinks{ display: flex; gap: 26px; }
.navlinks a{
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.navlinks a:hover{ color: var(--ink-magenta); }
.navlinks a.active{ color: var(--ink-cyan); }
.navlinks a:focus-visible{ outline: 2px solid var(--ink-cyan); outline-offset: 4px; }

.nav-dropdown{ position: relative; display: flex; align-items: center; }
.nav-dropdown > a::after{ content: ' ▾'; font-size: 10px; opacity: 0.6; }
.nav-dropdown-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--carbon-2);
  border: 1px solid var(--ink-cyan);
  min-width: 180px;
  z-index: 300;
  padding: 12px 0 6px;
}
.nav-dropdown-menu a{
  display: block;
  padding: 10px 16px;
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover{ color: var(--ink-cyan); background: rgba(255,255,255,0.04); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{ display: block; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   HERO (homepage)
   -------------------------------------------------------------------------- */
.hero{ padding: 50px 0 60px; position: relative; z-index: 1; }

.hero-tag{
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--ink-lime);
  color: var(--carbon);
  padding: 7px 14px;
  margin-bottom: 30px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--ink-magenta);
}
.hero .hero-tag{
  font-size: 24px;
  letter-spacing: 0.5px;
  padding: 10px 20px;
}

.hero h1{
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  line-height: 1.04;
  margin: 0 0 30px;
  letter-spacing: -1px;
  max-width: 880px;
  position: relative;
  z-index: 2;
}
/* Split-ink highlight — cyan text + magenta offset shadow, the defining visual detail */
.hero h1 .accent{
  color: var(--ink-cyan);
  text-shadow: 3px 0 0 var(--ink-magenta);
}
.hero h1 .accent-2{
  color: var(--ink-magenta);
  text-shadow: 3px 0 0 var(--ink-cyan);
}
.hero h1 .accent-3{
  color: var(--ink-lime);
  text-shadow: 3px 0 0 var(--ink-magenta);
}

.hero p.lead{
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 600px;
  margin: 0 0 40px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   STAT INLINE
   -------------------------------------------------------------------------- */
.stat-inline{
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.stat-inline-item{
  padding: 0 32px 0 0;
}
.stat-inline-item:first-child{ padding-left: 0; }
.stat-inline-divider{
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  margin: 4px 32px 0 0;
  flex-shrink: 0;
}
.stat-inline-label{
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.stat-inline-label--magenta{ color: var(--ink-magenta); }
.stat-inline-label--cyan{ color: var(--ink-cyan); }
.stat-inline-label--lime{ color: var(--ink-lime); }
.stat-inline-value{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--paper);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SQUIGGLE DIVIDER
   -------------------------------------------------------------------------- */
.squiggle-divider{
  padding-top: 10px;
  position: relative;
  z-index: 1;
}
.squiggle-divider svg{ width: 100%; height: 20px; display: block; }

/* --------------------------------------------------------------------------
   SECTION LABEL
   -------------------------------------------------------------------------- */
.section-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-orange);
  margin-bottom: 24px;
}
.section-label::before{
  content: '';
  width: 12px; height: 12px;
  background: currentColor;
  border-radius: 60% 40% 55% 45%;
}
.section-label--cyan{ color: var(--ink-cyan); }
.section-label--magenta{ color: var(--ink-magenta); }
.section-label--violet{ color: var(--ink-violet); }
.section-label--lime{ color: var(--ink-lime); }
.section-label--orange{ color: var(--ink-orange); }

/* --------------------------------------------------------------------------
   WHO BLOCK / PROSE BLOCK
   -------------------------------------------------------------------------- */
.who-block{ padding: 80px 0; position: relative; z-index: 1; }
.who-block + .who-block{
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.who-block p{
  font-size: 20px;
  line-height: 1.6;
  max-width: 880px;
  color: var(--paper-prose);
  margin: 0;
  position: relative;
  z-index: 2;
}
.who-block strong{ color: var(--ink-cyan); font-weight: 700; }

/* --------------------------------------------------------------------------
   THESIS / SECTION HEADLINE BLOCK
   -------------------------------------------------------------------------- */
.thesis-block{ padding: 50px 0 90px; position: relative; z-index: 1; }
.thesis-block h2{
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  line-height: 1.2;
  margin: 0;
  max-width: 760px;
  position: relative;
  z-index: 2;
}
.thesis-block h2 em{ font-style: italic; color: var(--ink-violet); }

/* --------------------------------------------------------------------------
   CASE STUDY CARDS
   -------------------------------------------------------------------------- */
.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}
.case-card{
  background: var(--carbon-2);
  padding: 28px 24px;
  border-top: 6px solid var(--ink-cyan);
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.case-card::after{
  content: '';
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 62% 38% 51% 49%;
  bottom: -40px; right: -30px;
  opacity: 0.12;
}
.case-card:nth-child(1){ border-top-color: var(--ink-magenta); }
.case-card:nth-child(1)::after{ background: var(--ink-magenta); }
.case-card:nth-child(2){ border-top-color: var(--ink-cyan); }
.case-card:nth-child(2)::after{ background: var(--ink-cyan); }
.case-card:nth-child(3){ border-top-color: var(--ink-lime); }
.case-card:nth-child(3)::after{ background: var(--ink-lime); }

.case-org{
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--paper-faint);
  margin-bottom: 16px;
}
.case-title{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.case-desc{
  font-size: 14px;
  color: var(--paper-card);
  flex-grow: 1;
  margin-bottom: 18px;
}
.case-cta{
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.case-card:nth-child(1) .case-cta{ color: var(--ink-magenta); }
.case-card:nth-child(2) .case-cta{ color: var(--ink-cyan); }
.case-card:nth-child(3) .case-cta{ color: var(--ink-lime); }
.case-card:focus-visible{ outline: 2px solid var(--ink-cyan); outline-offset: 4px; }

/* Image slot for work.html listing cards */
.case-card--img{ padding-top: 0; }
.case-card--img .card-img{
  width: calc(100% + 48px);
  margin: 0 -24px 24px;
  height: 180px;
  overflow: hidden;
}
.case-card--img .card-img img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   EDUCATION
   -------------------------------------------------------------------------- */
.education-block{
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}
.education-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.education-tile{
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}
.education-tile--1{ border-top-color: var(--ink-cyan); }
.education-tile--2{ border-top-color: var(--ink-lime); }
.education-tile img{
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}
.education-tile--1 img{ background: #032A4B; }
.education-tile--2 img{ background: #022741; }
.education-tile-label{
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--paper-faint);
  padding: 10px 0 0;
}

/* --------------------------------------------------------------------------
   IN THEIR WORDS
   -------------------------------------------------------------------------- */
.in-their-words{
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}
.itw-stack{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.itw-card{
  background: var(--carbon-2);
  border-left: 5px solid var(--ink-violet);
  padding: 24px 32px;
}
.itw-card p{
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: var(--paper-prose);
  margin: 0 0 14px;
}
.itw-card cite{
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--paper-faint);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   RESUME / CALLOUT BLOCK
   -------------------------------------------------------------------------- */
.resume-block{
  background: var(--ink-lime);
  color: var(--carbon);
  padding: 60px 40px;
  margin-bottom: 90px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.resume-block .splat-deco{
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 58% 42% 46% 54%;
  background: var(--ink-magenta);
  opacity: 0.25;
  top: -60px; right: 8%;
}
.resume-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.resume-block h2{
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  margin: 0 0 8px;
}
.resume-block p{ margin: 0; font-size: 16px; max-width: 440px; }

.btn-dark{
  background: var(--carbon);
  color: var(--ink-lime);
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 40px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 2px solid var(--carbon);
  display: inline-block;
}
.btn-dark:hover{ background: transparent; color: var(--carbon); }
.btn-dark:focus-visible{ outline: 2px solid var(--carbon); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer{
  padding: 30px 0 50px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--paper-faint);
  position: relative;
  z-index: 1;
}
footer a{ color: var(--paper); text-decoration: none; margin-left: 16px; }
footer a:hover{ color: var(--ink-magenta); }

/* --------------------------------------------------------------------------
   INNER PAGE HERO
   -------------------------------------------------------------------------- */
.page-hero{
  padding: 50px 0 20px;
  position: relative;
  z-index: 1;
}
.page-hero h1{
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}
.page-hero h1 .accent{
  color: var(--ink-cyan);
  text-shadow: 3px 0 0 var(--ink-magenta);
}
.page-hero p{
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 880px;
  margin: 0 0 30px;
  position: relative;
  z-index: 2;
}
.page-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  margin-top: 10px;
}
.page-nav a{
  color: var(--paper-faint);
  text-decoration: none;
}
.page-nav a:hover{ color: var(--ink-magenta); }
.page-nav a.active{ color: var(--ink-cyan); }

/* --------------------------------------------------------------------------
   PROSE SECTION (numbered labeled content sections)
   -------------------------------------------------------------------------- */
.prose-section{
  padding: 50px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.prose-section:first-of-type{ border-top: none; }
.prose-section h2{
  font-family: 'Archivo Expanded', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 18px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}
.prose-section p{
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper-dim);
  max-width: 880px;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}
.prose-section p:last-child{ margin-bottom: 0; }
.prose-section ul{
  max-width: 880px;
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.75;
  position: relative;
  z-index: 2;
}
.prose-section li{ margin-bottom: 10px; }
.prose-section li:last-child{ margin-bottom: 0; }
.prose-section strong{ color: var(--paper); }
.prose-section em{ color: var(--ink-cyan); font-style: normal; }

/* --------------------------------------------------------------------------
   PULL QUOTE
   -------------------------------------------------------------------------- */
.pull-quote{
  border-left: 4px solid var(--ink-cyan);
  padding: 20px 24px;
  margin: 40px 0 0;
  background: var(--carbon-2);
  max-width: 880px;
  position: relative;
  z-index: 2;
}
.pull-quote p{
  font-size: 18px;
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 12px;
  font-style: italic;
}
.pull-quote cite{
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--paper-faint);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   CS-NEXT
   -------------------------------------------------------------------------- */
.cs-next{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 2px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: var(--paper);
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.cs-next-label{
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-cyan);
  margin-bottom: 8px;
}
.cs-next-title{
  font-size: 18px;
  font-weight: 700;
}
.cs-next:hover .cs-next-title{ color: var(--ink-magenta); }
.cs-next-arrow{ color: var(--ink-cyan); font-size: 24px; }

/* --------------------------------------------------------------------------
   INFO GRID (contact + case study stats)
   -------------------------------------------------------------------------- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}
.info-cell{
  background: var(--carbon-2);
  padding: 22px 20px;
}
.info-cell .label{
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.info-cell:nth-child(1) .label{ color: var(--ink-magenta); }
.info-cell:nth-child(2) .label{ color: var(--ink-cyan); }
.info-cell:nth-child(3) .label{ color: var(--ink-lime); }
.info-cell:nth-child(4) .label{ color: var(--ink-orange); }
.info-cell .value{
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
}
.info-cell .value a{
  color: var(--paper);
  text-decoration: none;
}
.info-cell .value a:hover{ color: var(--ink-cyan); }

/* --------------------------------------------------------------------------
   PRINCIPLE GRID (philosophy page — 2×3 icon cards)
   -------------------------------------------------------------------------- */
.principle-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}
.principle-card{
  background: var(--carbon-2);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid transparent;
}
.principle-card::after{
  content: '';
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 62% 38% 51% 49%;
  bottom: -40px; right: -30px;
  opacity: 0.08;
}
/* Nurturing — orange */
.principle-card:nth-child(1){ border-top-color: var(--ink-orange); }
.principle-card:nth-child(1)::after{ background: var(--ink-orange); }
/* Curiosity — neon green */
.principle-card:nth-child(2){ border-top-color: var(--ink-lime); }
.principle-card:nth-child(2)::after{ background: var(--ink-lime); }
.principle-card:nth-child(2) .section-label{ color: var(--ink-lime); }
/* Shared Reality — magenta */
.principle-card:nth-child(3){ border-top-color: var(--ink-magenta); }
.principle-card:nth-child(3)::after{ background: var(--ink-magenta); }
/* Transparency — violet */
.principle-card:nth-child(4){ border-top-color: var(--ink-violet); }
.principle-card:nth-child(4)::after{ background: var(--ink-violet); }
/* Coaching — dayglow yellow */
.principle-card:nth-child(5){ border-top-color: #FFE600; }
.principle-card:nth-child(5)::after{ background: #FFE600; }
.principle-card:nth-child(5) .section-label{ color: #FFE600; }
/* Authoritative — cyan */
.principle-card:nth-child(6){ border-top-color: var(--ink-cyan); }
.principle-card:nth-child(6)::after{ background: var(--ink-cyan); }
.principle-card h3{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 14px 0 12px;
  line-height: 1.3;
  color: var(--paper);
}
.principle-card p{
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper-card);
  margin: 0;
}

/* --------------------------------------------------------------------------
   HORIZONTAL CASE CARD (work.html listing)
   -------------------------------------------------------------------------- */
.case-card--horiz{
  flex-direction: row;
  align-items: stretch;
  min-height: 200px;
  padding: 0;
}
.case-card--horiz .card-img{
  width: 280px;
  flex-shrink: 0;
  height: auto;
  min-height: 200px;
  margin: 0;
  background: var(--carbon-3);
}
.case-card--horiz .card-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-card--horiz .card-content{
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --------------------------------------------------------------------------
   WHAT I'VE WORKED ON STRIP
   -------------------------------------------------------------------------- */
.worked-on-block{
  padding: 0 0 60px;
  position: relative;
  z-index: 1;
}
.worked-on-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.worked-on-tile{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--carbon-2);
  text-decoration: none;
  display: block;
}
.worked-on-tile:nth-child(1){ border-top: 4px solid var(--ink-magenta); }
.worked-on-tile:nth-child(2){ border-top: 4px solid var(--ink-cyan); }
.worked-on-tile:nth-child(3){ border-top: 4px solid var(--ink-lime); }
.worked-on-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.worked-on-tile:hover img{ opacity: 0.95; }
.worked-on-tile{ cursor: zoom-in; }
.worked-on-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(14,14,16,0.88));
}
.worked-on-org{
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.65);
}
.worked-on-name{
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.3;
}

@media (max-width: 760px){
  .worked-on-strip{ grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   INK DIVIDER
   -------------------------------------------------------------------------- */
.ink-divider{
  padding: 30px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.ink-divider::before, .ink-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.ink-divider span{
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--paper-faint);
}

/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ---------- SHARED GALLERY ---------- */
.gallery{ margin-top:32px; border:1px solid rgba(255,255,255,0.1); background:var(--carbon-2); }
.gallery-wrap{ position:relative; }
.gallery-stage{
  overflow-x:scroll;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  background:var(--carbon-3);
  line-height:0;
  display:flex;
}
.gallery-stage::-webkit-scrollbar{ display:none; }
.gallery-slides{ display:contents; }
.gallery-slide{ flex:0 0 100%; max-width:100%; scroll-snap-align:start; }
.gallery-slide img{ width:100%; display:block; max-height:540px; object-fit:contain; object-position:top center; cursor:zoom-in; }
.gallery-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.15);
  color:var(--paper);
  font-size:16px;
  width:38px;
  height:38px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
  transition:background 0.15s;
  line-height:1;
}
.gallery-btn:hover{ background:rgba(0,0,0,0.85); border-color:rgba(255,255,255,0.35); }
.gallery-prev{ left:12px; }
.gallery-next{ right:12px; }
.gallery-footer{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; gap:16px; }
.gallery-caption{ font-family:'Space Mono', monospace; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; color:#9A9A94; line-height:1.5; flex:1; }
.gallery-dots{ display:flex; gap:6px; flex-shrink:0; }
.gallery-dot{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.18); border:none; cursor:pointer; padding:0; transition:background 0.2s; }
.gallery--red .gallery-dot.active{ background:#FF4D5E; }
.gallery--blue .gallery-dot.active{ background:#3D7CFF; }
.gallery--acid .gallery-dot.active{ background:#D7FF3D; }
.gallery--magenta .gallery-dot.active{ background:#DC2B81; }
.gallery--violet .gallery-dot.active{ background:#9B6BFF; }
.gallery--cyan .gallery-dot.active{ background:#21E6E6; }

/* ---------- LIGHTBOX ---------- */
#lb-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.92);
  z-index:9999;
  align-items:center;
  justify-content:center;
  cursor:zoom-out;
}
#lb-overlay.open{ display:flex; }
#lb-overlay img{ max-width:92vw; max-height:90vh; object-fit:contain; cursor:default; }
.lb-close{ position:absolute; top:16px; right:20px; background:none; border:none; color:#F5F5F0; font-size:28px; cursor:pointer; line-height:1; padding:8px; }
.lb-close:hover{ opacity:0.7; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 760px){
  .hero h1{ font-size: 42px; }
  .page-hero h1{ font-size: 32px; }
  .hero p.lead{ font-size: 18px; }
  .stat-strip{ grid-template-columns: 1fr; }
  .case-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
  .education-grid{ grid-template-columns: 1fr; }
  .who-block p{ font-size: 18px; }
  .thesis-block h2{ font-size: 28px; }
  .resume-block h2{ font-size: 28px; }
  .resume-inner{ flex-direction: column; align-items: flex-start; }
  .worked-on-name{ font-size: 16px; }
  .worked-on-org{ font-size: 12px; }
  .section-label{ font-size: 13px; }
  .nav-toggle{ display: flex; }
  .navlinks{
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--carbon-2);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    z-index: 100;
    border-top: 2px solid var(--ink-cyan);
  }
  header.nav{ flex-wrap: wrap; }
  header.nav.nav-open .navlinks{ display: flex; }
  .nav-dropdown{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-dropdown-menu{
    display: none;
    position: static;
    transform: none;
    border: none;
    background: transparent;
    padding: 0 0 0 12px;
    min-width: unset;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu{ display: block; }
  .nav-dropdown-menu a{ padding: 6px 0; font-size: 12px; }
  .splat{ display: none; }
  .case-card--img .card-img{ height: 140px; }
  .principle-grid{ grid-template-columns: 1fr; }
  .case-card--horiz{ flex-direction: column; }
  .case-card--horiz .card-img{ width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
  /* gallery mobile */
  .gallery-slide img{ max-height:56vw; height:56vw; object-fit:contain; }
  /* body text mobile */
  .case-body p, .case-body li{ font-size:17px; color:#D8D8D2; }
}

/* Hide gallery arrows only on true touch devices (swipe navigation);
   keep them for mouse/pointer users at any window size. */
@media (hover: none) and (pointer: coarse){
  .gallery-btn{ display:none; }
}
