*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

:root {
  --bg: #080807;
  --fg: #f0ece4;
  --accent: #c8ff00;
  --accent-rgb: 200, 255, 0;
  --pick-h: 74;
}

body {
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  font-family: 'Space Grotesk', sans-serif;
}

::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { display: none; }

/* ── Viewport & slides ── */
#viewport { height: 100vh; height: 100dvh; width: 100vw; overflow: hidden; position: relative; }

#slides-wrapper {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.slide {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* leave room for fixed nav */
  padding-top: 74px;
}

/* hero slide has its own layout, no padding-top override needed */
#slide-0 { padding-top: 0; }

.v-rule::before {
  content: '';
  position: absolute;
  left: 52px; top: 0; bottom: 0;
  width: 1px;
  background: rgba(var(--accent-rgb),0.08);
  pointer-events: none;
  z-index: 1;
}

/* ── Fixed nav ── */
nav#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  align-items: center;
  padding: 20px 52px 20px 80px;
  gap: 32px;
  z-index: 100;
  background: rgba(8,8,7,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--accent-rgb),0.06);
  height: 74px;
}

/* hide border on hero */
nav#main-nav.on-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.wordmark-text { display: inline-block; line-height: 1; transform: translateY(2px); }

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  vertical-align: middle;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links span {
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.nav-links span:hover { color: rgba(240,236,228,0.7); }
.nav-links span.active { color: rgba(240,236,228,0.65); }

.nav-linkedin {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(var(--accent-rgb),0.45);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  border: 1px solid rgba(var(--accent-rgb),0.18);
  padding: 4px 10px;
  display: none;
}

.nav-linkedin:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),0.5); }

/* hidden on desktop, activated in mobile media query */
.burger-btn  { display: none; }
.mobile-menu { display: none; }

/* ── Accent colour picker ── */
.accent-picker {
  position: relative;
  display: flex;
  align-items: center;
}

.accent-trigger {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,236,228,0.25);
  cursor: pointer;
  padding: 0;
  background: var(--accent);
  transition: border-color 0.2s, transform 0.15s;
  outline: none;
}

.accent-trigger:hover {
  border-color: rgba(240,236,228,0.6);
  transform: scale(1.15);
}

.accent-popover {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #111110;
  border: 1px solid rgba(240,236,228,0.1);
  padding: 12px;
  gap: 10px;
  flex-direction: column;
  z-index: 500;
  width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.accent-popover.open { display: flex; }

/* SV gradient area */
.cpick-sv {
  position: relative;
  width: 100%;
  height: 130px;
  border-radius: 3px;
  cursor: crosshair;
  background:
    linear-gradient(to bottom, transparent, #000),
    linear-gradient(to right, #fff, hsl(var(--pick-h), 100%, 50%));
  flex-shrink: 0;
}

.cpick-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.1);
  transform: translate(-50%, -50%);
  pointer-events: none;
  top: 0%;
  left: 100%;
}

/* Hue slider */
.cpick-hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right,
    #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  outline: none;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.cpick-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.3);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
}

.cpick-hue::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Hex input + preview */
.cpick-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpick-preview {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(240,236,228,0.2);
  background: var(--accent);
}

.cpick-hex {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(240,236,228,0.12);
  color: rgba(240,236,228,0.7);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 7px;
  outline: none;
  border-radius: 2px;
}

.cpick-hex:focus { border-color: rgba(240,236,228,0.3); color: var(--fg); }

/* Swatches */
.accent-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.swatch {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
}

.swatch:hover { transform: scale(1.18); }
.swatch.active { border-color: rgba(240,236,228,0.75); }

.cpick-toggle {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(240,236,228,0.07);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(240,236,228,0.35);
  letter-spacing: 0.12em;
  cursor: pointer;
  text-align: left;
  padding: 6px 0 2px;
  text-transform: uppercase;
  transition: color 0.2s;
  width: 100%;
}
.cpick-toggle:hover { color: rgba(240,236,228,0.6); }

.cpick-advanced { display: none; flex-direction: column; gap: 10px; }
.cpick-advanced.open { display: flex; }

.cpick-rainbow {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(240,236,228,0.07);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-align: left;
  padding: 6px 0 2px;
  text-transform: uppercase;
  width: 100%;
  background: linear-gradient(90deg,
    #ff0040, #ff6600, #ffd600, #00ff88, #00cfff, #bf5af2, #ff0040);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.cpick-rainbow:hover { opacity: 0.9; }
.cpick-rainbow.active {
  opacity: 1;
  animation: rainbow-label 1.5s linear infinite;
}

@keyframes rainbow-label {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* SVG accent classes — work when SVGs are inlined */
.serv-diagram .acc-fill   { fill: var(--accent); }
.serv-diagram .acc-stroke { stroke: var(--accent); }



.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  border: none;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  background: transparent;
}

.lang-btn.on { background: var(--accent); color: var(--bg); font-weight: 700; }
.lang-btn.off { color: rgba(240,236,228,0.35); outline: 1px solid rgba(var(--accent-rgb),0.15); }

/* ── Progress dots ── */
#progress {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(240,236,228,0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.pdot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb),0.6);
  height: 16px;
  border-radius: 3px;
}

/* ── Slide 0: Hero ── */
#slide-0 canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--accent-rgb),0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb),0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

#slide-0.motion-static .grid-bg {
  background-image:
    linear-gradient(rgba(var(--accent-rgb),0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb),0.055) 1px, transparent 1px),
    repeating-linear-gradient(135deg, transparent 0 96px, rgba(var(--accent-rgb),0.045) 96px 97px, transparent 97px 192px);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 52px 0 80px;
  position: relative;
  z-index: 2;
  /* account for fixed nav */
  padding-top: 74px;
}

.hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: rgba(var(--accent-rgb),0.7);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.hero-type {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(78px, 11vw, 165px);
  line-height: 0.9;
  letter-spacing: 1.9px;
  transform: scaleX(1.02);
  transform-origin: left center;
  font-weight: 400;
  margin: 0;
}

.ht1 { color: var(--fg); }

.ht2 {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 16px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240,236,228,0.18);
}

.ht2-comment {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(14px, 1.4vw, 22px);
  color: rgba(var(--accent-rgb),0.6);
  letter-spacing: 0.05em;
  -webkit-text-stroke: 0;
  transform: scaleX(0.87);
  transform-origin: left center;
  display: inline-block;
}

/* ENGI: solid fill matching AI */
.ht2 > span:first-child {
  color: var(--fg);
  -webkit-text-stroke: 0;
}

.ht3 {
  color: var(--bg);
  background: var(--accent);
  display: inline-block;
  padding-left: 4px;
  padding-right: 12px;
  line-height: 0.9;
}

.hero-bottom {
  position: absolute;
  bottom: 32px; left: 80px; right: 52px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(240,236,228,0.85);
  max-width: 520px;
  text-shadow: 0 1px 12px rgba(8,8,7,0.85), 0 0 4px rgba(8,8,7,0.6);
}

.cta-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cta-btn {
  background: var(--accent);
  color: var(--bg);
  padding: 13px 32px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cta-btn:hover { opacity: 0.85; }

/* ── Slide header ── */
.slide-hd {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 32px 52px 20px 80px;
  flex-shrink: 0;
}

.slide-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 58px;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.slide-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: rgba(var(--accent-rgb),0.5);
  letter-spacing: 0.15em;
}

/* ── Slide 1: Services ── */
.serv-band {
  border-top: 1px solid rgba(var(--accent-rgb),0.08);
  padding: 12px 52px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.serv-band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.serv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  margin: 0 52px 0 80px;
  border: 1px solid rgba(240,236,228,0.06);
  min-height: 0;
}

.serv-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(240,236,228,0.06);
  border-right: 1px solid rgba(240,236,228,0.06);
  background: transparent;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.serv-card:nth-child(2n) { border-right: none; }
.serv-card:nth-child(3), .serv-card:nth-child(4) { border-bottom: none; }
.serv-card:hover { background: rgba(var(--accent-rgb),0.03); }

.serv-bg-num {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 110px;
  line-height: 1;
  color: rgba(240,236,228,0.04);
  user-select: none;
  letter-spacing: -0.02em;
  transition: color 0.3s;
  pointer-events: none;
}

.serv-card:hover .serv-bg-num { color: rgba(var(--accent-rgb),0.07); }

.serv-diagram {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 160px;
  height: 120px;
  opacity: 0.14;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.serv-card:hover .serv-diagram { opacity: 0.32; }

.serv-top { display: flex; align-items: center; gap: 16px; position: relative; margin-top: auto; }

.serv-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: rgba(var(--accent-rgb),0.45);
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: color 0.2s;
}

.serv-card:hover .serv-id { color: var(--accent); }

.serv-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--fg);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.serv-card:hover .serv-name { color: var(--accent); }

.serv-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(240,236,228,0.6);
  position: relative;
  max-width: 85%;
}

.serv-foot { display: flex; align-items: center; gap: 8px; position: relative; margin-top: auto; }

.serv-line {
  width: 20px; height: 1px;
  background: rgba(var(--accent-rgb),0.25);
  transition: all 0.3s;
}

.serv-card:hover .serv-line { background: var(--accent); width: 28px; }

.serv-avail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(var(--accent-rgb),0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.serv-card:hover .serv-avail { color: rgba(var(--accent-rgb),0.8); }

/* ── Service card extras: when / deliverables ── */
.serv-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(var(--accent-rgb),0.55);
  letter-spacing: 0.04em;
  line-height: 1.6;
  position: relative;
  margin-top: -4px;
  max-width: 80%;
}

.serv-deliv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  max-width: 80%;
}

.serv-deliv li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(240,236,228,0.42);
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}

.serv-deliv li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: rgba(var(--accent-rgb),0.35);
}

.serv-card:hover .serv-deliv li { color: rgba(240,236,228,0.6); }
.serv-card:hover .serv-deliv li::before { color: rgba(var(--accent-rgb),0.6); }

/* Tighter body max-width to keep diagrams visible */
.serv-card .serv-body { max-width: 80%; font-size: 14px; line-height: 1.65; }

/* ── Slide 2: Projects ── */
.proj-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0 52px 32px 80px;
  border-top: 1px solid rgba(240,236,228,0.06);
  border-bottom: 1px solid rgba(240,236,228,0.06);
  min-height: 0;
}

.proj-row {
  flex: 1;
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  border-bottom: 1px solid rgba(240,236,228,0.06);
  transition: background 0.25s;
  min-height: 0;
}

.proj-row:last-child { border-bottom: none; }
.proj-row:hover { background: rgba(var(--accent-rgb),0.02); }

.proj-id-col {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(240,236,228,0.06);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.proj-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(var(--accent-rgb),0.45);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.proj-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.42);
  letter-spacing: 0.1em;
}

.proj-status {
  color: var(--accent);
}

.proj-main {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(240,236,228,0.06);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.proj-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--fg);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.proj-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.42);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proj-scope {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(var(--accent-rgb),0.4);
  letter-spacing: 0.1em;
}

.proj-desc {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.proj-body {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(240,236,228,0.6);
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.proj-details { display: flex; flex-direction: column; gap: 2px; }

.proj-detail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(240,236,228,0.42);
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
}

.proj-detail::before { content: '— '; color: rgba(var(--accent-rgb),0.35); }

.tech-band {
  border-top: 1px solid rgba(var(--accent-rgb),0.08);
  padding: 14px 52px 18px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.tech-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(var(--accent-rgb),0.35);
  letter-spacing: 0.15em;
  margin-right: 4px;
}

.tech-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.35);
  letter-spacing: 0.08em;
  border: 1px solid rgba(240,236,228,0.1);
  padding: 3px 10px;
  transition: all 0.2s;
  cursor: default;
}

.tech-tag:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb),0.45);
  background: rgba(var(--accent-rgb),0.04);
}

/* ── Slide 3: About ── */
.about-wrap {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 375px;
  gap: 48px;
  padding: 0 52px 28px 80px;
  align-items: stretch;
}

.about-left {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 0;
  border: 1px solid rgba(240,236,228,0.06);
}

.about-portrait-col {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(240,236,228,0.06);
  padding: 0;
}

.about-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  gap: 20px;
}

.about-content-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.about-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--fg);
  letter-spacing: 0.02em;
  line-height: 1.0;
}

.about-head-mobile { display: none; }

.about-bio { display: flex; flex-direction: column; gap: 12px; }

.about-bio p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240,236,228,0.70);
}

.about-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.3);
  border-top: 1px solid rgba(var(--accent-rgb),0.12);
  display: block;
  transition: opacity 0.2s;
  user-select: none;
  padding-top: 20px;
  margin-top: auto;
}

.about-cta:hover { opacity: 0.7; }

/* ── About: socials ── */
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.about-socials a {
  color: rgba(var(--accent-rgb), 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.about-socials a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── About: portrait ── */
.portrait-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(var(--accent-rgb),0.5);
  letter-spacing: 0.14em;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(var(--accent-rgb),0.1);
  background: rgba(var(--accent-rgb),0.03);
  flex-shrink: 0;
}

.portrait-frame {
  flex: 1;
  min-height: 0;
  border: none;
  position: relative;
  overflow: hidden;
  background: #080807;
}

/* corner accents */
.portrait-frame::before,
.portrait-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}

.portrait-frame::before {
  top: 0; left: 0;
  border-top: 2px solid rgba(var(--accent-rgb),0.7);
  border-left: 2px solid rgba(var(--accent-rgb),0.7);
}

.portrait-frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid rgba(var(--accent-rgb),0.7);
  border-right: 2px solid rgba(var(--accent-rgb),0.7);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.9);
  position: relative;
  z-index: 0;
}

.portrait-ph {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8,8,7,0.4) 0%, transparent 30%, transparent 60%, rgba(8,8,7,0.7) 100%),
    linear-gradient(to right, transparent 60%, rgba(8,8,7,0.3) 100%);
}

.about-right {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(240,236,228,0.06);
}

.profile-hd {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(var(--accent-rgb),0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: rgba(var(--accent-rgb),0.05);
  border-bottom: 1px solid rgba(var(--accent-rgb),0.08);
  flex-shrink: 0;
}

.stat-row {
  flex: 1;
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid rgba(240,236,228,0.06);
  padding: 0 20px;
  gap: 16px;
  align-items: center;
  min-height: 48px;
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.42);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-val {
  font-size: 16px;
  color: rgba(240,236,228,0.7);
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ── Intermediate desktops / tablets: avoid squeezed desktop layouts ── */
@media (min-width: 1200px) and (min-height: 850px) {
  .hero-type {
    font-size: clamp(88px, 12.3vw, 185px);
    transform: scaleX(1.035);
  }
}

@media (min-width: 1600px) and (min-height: 900px) {
  .hero-type {
    font-size: clamp(150px, 10.8vw, 260px);
    transform: scaleX(1);
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  nav#main-nav {
    padding-left: 48px;
    padding-right: 32px;
    gap: 22px;
  }

  .nav-links { gap: 18px; font-size: 12px; }

  .v-rule::before { left: 32px; }

  .hero-inner {
    padding-left: 48px;
    padding-right: 32px;
  }

  .hero-type {
    font-size: clamp(72px, 11vw, 130px);
    transform: scaleX(1.02);
  }

  .hero-bottom {
    left: 48px;
    right: 32px;
    bottom: 24px;
    gap: 24px;
  }

  .hero-sub { max-width: 460px; font-size: 15px; line-height: 1.75; }

  .slide-hd { padding: 26px 32px 16px 48px; }
  .slide-title { font-size: 48px; }
  .slide-tag { font-size: 12px; }

  .serv-band { padding: 10px 32px 12px 48px; }
  .serv-grid { margin: 0 32px 0 48px; }
  .serv-card { padding: 18px 20px; }
  .serv-name { font-size: 28px; }
  .serv-card .serv-body { max-width: 90%; font-size: 13px; line-height: 1.55; }
  .serv-when { max-width: 90%; font-size: 11px; line-height: 1.45; margin-top: 0; }
  .serv-deliv { display: none; }
  .serv-diagram { display: none; }

  .proj-list { margin: 0 32px 24px 48px; }
  .proj-list { overflow-y: auto; overscroll-behavior: contain; }
  .proj-row {
    flex: 0 0 auto;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
      "id main"
      "id desc";
    min-height: 190px;
  }
  .proj-id-col { grid-area: id; padding: 16px; }
  .proj-main {
    grid-area: main;
    padding: 16px 18px 8px;
    border-right: none;
    border-bottom: 1px solid rgba(240,236,228,0.06);
    gap: 8px;
  }
  .proj-desc { grid-area: desc; padding: 8px 18px 16px; gap: 8px; }
  .proj-title { font-size: 22px; }
  .proj-tag, .proj-scope, .proj-year, .proj-detail { font-size: 12px; }
  .proj-body { font-size: 14px; line-height: 1.55; margin-bottom: 0; }
  .proj-details { display: flex; }
  .tech-band { padding: 12px 32px 16px 48px; }

  .about-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 28px;
    padding: 0 32px 24px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .about-portrait-col { width: 150px; }
  .about-content-col { padding: 24px 26px; gap: 16px; }
  .about-content-main { gap: 16px; }
  .about-head { font-size: 42px; }
  .about-bio p { font-size: 15px; line-height: 1.65; }
  .stat-row { grid-template-columns: 96px minmax(0, 1fr); padding: 0 16px; gap: 12px; min-height: 44px; }
  .stat-label { font-size: 12px; }
  .stat-val { font-size: 14px; }
}

@media (min-width: 768px) and (max-width: 980px) {
  .hero-inner { padding-left: 40px; padding-right: 28px; }
  .hero-type { font-size: clamp(68px, 14vw, 112px); transform: scaleX(1); }
  .hero-bottom {
    left: 40px;
    right: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cta-area { align-items: flex-start; }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    grid-auto-rows: max-content;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .about-left { min-height: auto; }
  .about-content-main { justify-content: flex-start; }
  .about-cta { margin-top: 0; }
  .about-right { min-height: 260px; }
  .proj-row { min-height: 176px; }
  .proj-id-col { justify-content: flex-start; gap: 8px; }
  .proj-main > div:last-child { display: none; }
}

@media (min-width: 768px) and (max-height: 920px) {
  .proj-details { display: none; }
  .proj-body { font-size: 14px; line-height: 1.45; }
  .proj-desc { padding-top: 12px; padding-bottom: 12px; }
}

@media (min-width: 768px) and (max-height: 820px) {
  .hero-inner {
    justify-content: center;
    padding-top: 74px;
  }
  .hero-type {
    font-size: clamp(68px, 10.5vw, 130px);
    line-height: 0.86;
    transform: scaleX(1.02);
  }
  .hero-bottom { bottom: 22px; }
  .hero-sub { font-size: 14px; line-height: 1.6; max-width: 460px; }

  .slide-hd { padding-top: 22px; padding-bottom: 12px; }
  .serv-band { padding-top: 8px; padding-bottom: 10px; gap: 6px; }
  .serv-grid { margin-bottom: 8px; }
  .serv-card { padding: 14px 18px; justify-content: flex-start; gap: 10px; }
  .serv-top { gap: 12px; }
  .serv-id { font-size: 12px; }
  .serv-name { font-size: 24px; }
  .serv-card .serv-body { font-size: 12px; line-height: 1.45; max-width: 92%; }
  .serv-when { font-size: 10px; line-height: 1.35; max-width: 92%; }
  .serv-deliv { display: none; }
  .serv-foot { margin-top: auto; }
  .serv-avail { font-size: 11px; }
  .proj-list { margin-bottom: 18px; }
  .proj-list { overflow-y: auto; overscroll-behavior: contain; }
  .proj-row { flex: 0 0 auto; min-height: 160px; }
  .proj-id-col { justify-content: flex-start; gap: 8px; }
  .proj-main { padding-top: 12px; padding-bottom: 6px; }
  .proj-main > div:last-child { display: none; }
  .proj-desc { padding-top: 6px; padding-bottom: 12px; }
  .proj-body { line-height: 1.45; }
  .tech-band { padding-top: 10px; padding-bottom: 12px; }

  .about-wrap { padding-bottom: 18px; overflow-y: auto; overscroll-behavior: contain; }
  .about-content-col { padding-top: 20px; padding-bottom: 20px; gap: 14px; }
  .about-content-main { justify-content: flex-start; gap: 14px; }
  .about-head { font-size: 38px; }
  .about-bio p { font-size: 14px; line-height: 1.55; }
  .about-cta { padding-top: 14px; }
  .profile-hd { padding-top: 8px; padding-bottom: 8px; }
  .stat-row { min-height: 40px; }
}

@media (min-width: 768px) and (max-width: 1180px) and (min-height: 980px) {
  .serv-card { justify-content: space-between; }
  .serv-deliv { display: flex; max-width: 90%; }
  .serv-card .serv-body { max-width: 90%; }
  .serv-when { max-width: 90%; }

  .proj-row {
    flex: 1 1 0;
    min-height: 0;
  }
  .proj-list { overflow-y: hidden; }
  .proj-details { display: flex; }
}

/* ── Slide 4: Contact ── */
.contact-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 52px 0 80px;
  min-height: 0;
}

.contact-left {
  padding-right: 52px;
  border-right: 1px solid rgba(240,236,228,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.contact-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--fg);
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.contact-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240,236,228,0.5);
  max-width: 320px;
}

.contact-right {
  padding-left: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.f {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb),0.15);
  color: var(--fg);
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}

.f:focus { border-color: var(--accent); }
.f::placeholder { color: rgba(var(--accent-rgb),0.3); }

textarea.f {
  resize: vertical;
  min-height: 100px;
  padding: 12px;
}

textarea.f:focus { border-color: var(--accent); }

.form-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.form-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(240,236,228,0.35);
  letter-spacing: 0.07em;
  line-height: 1.7;
}

.submit-btn {
  background: var(--accent);
  color: var(--bg);
  padding: 12px 28px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', monospace;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.submit-btn:hover { opacity: 0.85; }

.sent-wrap {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.sent-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  color: var(--accent);
}

.sent-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.sent-sub {
  font-size: 13px;
  color: rgba(240,236,228,0.4);
}

/* ── Footer stripe ── */
.footer-stripe {
  border-top: 1px solid rgba(var(--accent-rgb),0.08);
  padding: 12px 52px 12px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--accent-rgb),0.02);
  flex-shrink: 0;
}

.footer-txt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(240,236,228,0.40);
  letter-spacing: 0.1em;
}

@media (min-width: 768px) and (max-height: 620px) {
  .hero-type {
    font-size: clamp(56px, 8vw, 96px);
    line-height: 0.84;
    transform: scaleX(1);
  }
  .hero-bottom { bottom: 16px; gap: 8px; }
  .hero-sub { font-size: 12px; line-height: 1.4; max-width: 420px; }
  .cta-btn { padding: 10px 24px; }

  .serv-card { padding: 10px 14px; gap: 6px; }
  .serv-top { gap: 10px; }
  .serv-name { font-size: 22px; }
  .serv-card .serv-body { font-size: 11px; line-height: 1.35; max-width: 96%; }
  .serv-when { display: none; }
  .serv-avail { font-size: 10px; }

  .contact-wrap {
    padding: 0 32px 0 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .contact-left {
    padding-right: 32px;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 6px;
  }
  .contact-head { font-size: 48px; }
  .contact-sub { font-size: 13px; line-height: 1.55; }
  .contact-right {
    padding-left: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    justify-content: flex-start;
  }
  .contact-form { gap: 10px; }
  .form-2col { gap: 12px; }
  .f { padding: 8px 10px; font-size: 12px; }
  textarea.f { min-height: 72px; padding: 10px; }
  .form-actions { gap: 10px; align-items: flex-start; }
  .form-note { font-size: 10px; line-height: 1.45; letter-spacing: 0.04em; }
  .submit-btn { padding: 10px 18px; font-size: 11px; }
  .footer-stripe { padding-top: 8px; padding-bottom: 8px; }
}

@media (min-width: 1181px) and (max-height: 620px) {
  .contact-wrap { padding: 0 52px 0 80px; }
  .contact-left { padding-right: 52px; }
  .contact-right { padding-left: 52px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {

  /* Switch to normal scroll */
  html  { overflow-x: hidden !important; overflow-y: auto !important; height: auto !important; -webkit-overflow-scrolling: touch; }
  body  { overflow: visible !important; height: auto !important; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
  #viewport { height: auto !important; overflow: visible !important; }
  #slides-wrapper { transform: none !important; transition: none !important; will-change: auto; display: block !important; }
  .slide { height: auto !important; min-height: 100svh; overflow: visible !important; scroll-margin-top: 60px; }

  /* Nav offset */
  .slide  { padding-top: 64px; }
  #slide-0 { padding-top: 52px; }

  /* Hide progress dots & v-rule */
  #progress       { display: none; }
  .v-rule::before { display: none; }

  /* ── Nav ── */
  nav#main-nav {
    height: 52px;
    padding: 0 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
    background: rgba(8,8,7,0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(var(--accent-rgb),0.07) !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  /* Always show nav background on mobile */
  nav#main-nav.on-hero {
    background: rgba(8,8,7,0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(var(--accent-rgb),0.07);
  }
  .wordmark      { font-size: 20px; }
  .nav-links     { display: none; }
  .nav-linkedin  { display: none; }
  .accent-picker { display: flex; align-items: center; margin-left: auto; align-self: center; }
  .lang-wrap     { display: flex; align-items: center; gap: 4px; margin-left: 0; }
  .lang-btn      { padding: 2px 6px; font-size: 10px; }

  /* ── Burger button ── */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }
  .burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.2s;
  }
  .burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Mobile menu overlay ── */
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 52px;
    left: 0; right: 0; bottom: 0;
    background: rgba(8,8,7,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    flex-direction: column;
    padding: 28px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu-links { display: flex; flex-direction: column; }
  .mobile-menu-links span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    letter-spacing: 0.05em;
    color: var(--fg);
    cursor: pointer;
    padding: 16px 0;
    border-bottom: 1px solid rgba(240,236,228,0.07);
    transition: color 0.2s;
    user-select: none;
  }
  .mobile-menu-links span:first-child { border-top: 1px solid rgba(240,236,228,0.07); }
  .mobile-menu-links span:active { color: var(--accent); }
  html.menu-open,
  body.menu-open { overflow: hidden; }

  /* ── Mobile menu footer (LinkedIn + swatches) ── */
  .mobile-menu-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(240,236,228,0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .mobile-menu-linkedin {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: rgba(var(--accent-rgb), 0.55);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .mobile-menu-linkedin:active { color: var(--accent); }
  .mobile-menu-swatches {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
  }

  /* ── Hero ── */
  .hero-inner {
    flex: 1;
    padding: 52px 20px 0 20px;
    justify-content: center;
    min-height: calc(100svh - 200px);
  }
  .hero-bottom {
    position: static;
    padding: 24px 20px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-sub  { max-width: 100%; font-size: 14px; line-height: 1.7; color: rgba(240,236,228,0.78); }
  .cta-area  { align-items: flex-start; }

  /* ── Slide header ── */
  .slide-hd   { padding: 22px 20px 12px 20px; gap: 10px; }
  .slide-title { font-size: 38px; }
  .slide-tag   { font-size: 11px; }

  /* ── Services ── */
  .serv-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
    border: none;
    border-top: 1px solid rgba(240,236,228,0.06);
    justify-content: space-between;
  }
  .serv-card {
    padding: 20px 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(240,236,228,0.06);
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .serv-card:last-child { border-bottom: none; }
  .serv-card:nth-child(3) { border-bottom: 1px solid rgba(240,236,228,0.06); }
  .serv-diagram  { display: none; }
  .serv-bg-num   { font-size: 72px; }
  .serv-name     { font-size: 24px; }
  .serv-body     { font-size: 13px; line-height: 1.7; max-width: 100%; }

  /* ── Projects ── */
  .proj-list { margin: 0; border-top: none; flex: none; }
  .proj-row  {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(240,236,228,0.06);
    gap: 6px;
    flex: none;
    min-height: 0;
  }
  .proj-row:last-child { border-bottom: none; }
  .proj-id-col {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    border-right: none;
    align-items: center;
  }
  .proj-main  { padding: 0; border-right: none; display: flex; flex-direction: column; gap: 4px; }
  .proj-desc  { padding: 0; }
  .proj-title { font-size: 20px; margin-bottom: 2px; }
  .proj-body  { font-size: 13px; line-height: 1.6; margin-bottom: 0; }
  .proj-details { display: none; }
  .tech-band  { padding: 16px 20px 20px; gap: 6px; margin-top: 12px; border-top: 1px solid rgba(var(--accent-rgb),0.08); }
  .tech-label { font-size: 11px; }
  .tech-tag   { font-size: 11px; padding: 2px 7px; }
  .serv-band  { padding: 10px 20px 14px; gap: 6px; }
  .serv-band-row { gap: 6px; }

  /* ── About ── */
  .about-wrap {
    grid-template-columns: 1fr;
    padding: 8px 20px 24px;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
    align-items: start;
  }
  .about-left {
    display: grid;
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    border: none;
  }
  .about-portrait-col { grid-column: 1; grid-row: 1; width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; border-right: none; border-bottom: none; padding: 0; }
  .about-head:not(.about-head-mobile) { display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .about-head-mobile {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 26px !important;
    line-height: 1.05 !important;
    letter-spacing: 0.02em;
    color: var(--fg);
    margin: 0;
  }
  .about-content-col {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 18px 0 0 !important;
    gap: 14px !important;
    border-top: 1px solid rgba(240,236,228,0.06);
    margin-top: 18px;
  }
  .about-bio p  { font-size: 13px; line-height: 1.7; }
  .stat-row     { min-height: 40px; padding: 0 12px; grid-template-columns: 90px 1fr; }
  .stat-label   { font-size: 11px; }
  .stat-val     { font-size: 13px; }

  /* ── Contact ── */
  .contact-wrap {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 0;
  }
  .contact-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(240,236,228,0.06);
    padding-bottom: 20px;
    padding-top: 8px;
    justify-content: flex-start;
    gap: 10px;
  }
  .contact-head { font-size: 40px; }
  .contact-sub  { font-size: 14px; max-width: 100%; }
  .contact-right { padding-left: 0; padding-top: 20px; padding-bottom: 20px; }
  .form-2col    { grid-template-columns: 1fr; gap: 12px; }
  .form-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-note    { font-size: 11px; }
  .submit-btn   { width: 100%; }
  .footer-stripe {
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .footer-txt { font-size: 11px; }

  /* ── Mobile fixes (hardened) ── */

  /* Wordmark: force flex row, kill desktop translateY nudge */
  .wordmark      { display: flex !important; align-items: center; gap: 8px; flex-shrink: 0; line-height: 1; }
  .wordmark-text { transform: none !important; line-height: 1; display: inline-block; }
  .nav-logo      { vertical-align: middle; display: block; flex-shrink: 0; }

  /* Services: force list reset + accent colours (in case of cache/specificity quirks) */
  .serv-deliv          { list-style: none !important; padding: 0 !important; margin: 0 !important; }
  .serv-deliv li       { padding-left: 12px !important; position: relative; list-style: none !important; }
  .serv-deliv li::before { content: '\2014' !important; position: absolute !important; left: 0 !important; color: rgba(var(--accent-rgb),0.55) !important; }
  .serv-when           { color: rgba(var(--accent-rgb),0.65) !important; }

  /* Project status accent */
  .proj-status         { color: var(--accent) !important; }

  /* About socials: kill default <a> blue */
  .about-socials       { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
  .about-socials a     { color: rgba(var(--accent-rgb), 0.75) !important; text-decoration: none !important; border-bottom: 1px solid rgba(var(--accent-rgb), 0.25) !important; padding-bottom: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; -webkit-tap-highlight-color: transparent; }
  .about-socials a:active { color: var(--accent) !important; }

  /* Portrait: nicer mobile sizing, less harsh grayscale */
  .about-portrait-col  { width: 100%; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; border-right: none; border-bottom: none; }
  .portrait-frame      { width: 100%; height: 130px; flex: none; }
  .portrait-frame img  { filter: grayscale(0.6) contrast(1.05); object-position: center 20%; }
  .portrait-label      { font-size: 10px; padding: 0 0 4px; background: none; border: none; color: rgba(var(--accent-rgb),0.55); letter-spacing: 0.14em; }

}

/* ── Rainbow mode: kill colour-property transitions to prevent lag ── */
/* Rainbow mutates --accent ~60×/s; element transitions on color/background/border
   would each animate over their duration, causing visible drift. We keep transform
   and opacity transitions so hover micro-interactions still feel alive. */
body.rainbow-on *,
body.rainbow-on *::before,
body.rainbow-on *::after {
  transition-property: transform, opacity !important;
}

