/* ============================================================
   Liang Chen — profile site
   Retro pop-art system ported from the Claude Design mockup.
   Tokens: cream / ink / olive / oxblood.
   Type: Anton shouts (name, section titles, big numbers) — IBM Plex
   Sans does the reading — IBM Plex Mono does the small labels.
   Loud frame, quiet content.
   ============================================================ */

:root {
  --cream: #EEE0CC;
  --ink: #23261F;
  --olive: #607456;
  --oxblood: #7B2525;
  --ink-soft: #3d4136;
  --cream-soft: #cdc8b8;
  --font-display: 'Anton', sans-serif;
  --font-label: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;
  --pad-x: clamp(24px, 6vw, 120px);
  --pad-y: clamp(70px, 10vw, 130px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--oxblood); text-decoration: none; }
a:hover { color: var(--olive); }
::selection { background: var(--olive); color: var(--cream); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- fixed textures ---------- */
.texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.texture--dots {
  opacity: 0.10;
  background-image: radial-gradient(var(--ink) 1px, transparent 1.3px);
  background-size: 20px 20px;
}
.texture--lines {
  opacity: 0.05;
  background-image: repeating-linear-gradient(115deg, var(--olive) 0 2px, transparent 2px 12px);
}

/* ---------- reveal-on-scroll ---------- */
/* every variant is the same gentle fade-and-rise; the names stay so the
   markup doesn't have to change */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-revealed  { opacity: 1; transform: none; }

/* content must never be trapped invisible */
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .scroll-cue { animation: none; }
  .slider-track { transition: none; }
  .heat-cell { opacity: 1; }
  .heat.is-drawn .heat-cell { animation: none; }
  .dmap-place { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- shared bits ---------- */
.diamond {
  width: 40px;
  height: 40px;
  transform: rotate(45deg);
  margin-bottom: 22px;
}
.diamond--oxblood { background: var(--oxblood); }
.diamond--olive   { background: var(--olive); }
.diamond--ink     { background: var(--ink); }
.diamond--cream   { background: var(--cream); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  padding: 14px 30px;
}
.btn--primary {
  background: var(--oxblood);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}
.btn--primary:hover { color: var(--cream); background: #8f2f2f; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 12px 30px;
}
.btn--ink {
  background: var(--ink);
  color: var(--cream);
  font-size: 18px;
  padding: 16px 38px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}
.btn--ink:hover { color: var(--cream); }
.btn--cream {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 18px;
  padding: 15px 38px;
}

.chip {
  font-family: var(--font-label);
  font-size: 13px;
  padding: 6px 14px;
}
.chip--oxblood { background: var(--oxblood); color: var(--cream); }
.chip--olive   { background: var(--olive); color: var(--cream); }
.chip--outline { border: 2px solid var(--ink); color: var(--ink); padding: 5px 16px; }

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--pad-y) var(--pad-x);
  max-width: 1500px;
  margin: 0 auto;
}
.section--wide { max-width: 1600px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}
.section-num,
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  text-transform: uppercase;
}
.section-num { color: var(--oxblood); }
.section-head h2 { letter-spacing: -1px; color: var(--ink); }
.section-rule {
  flex: 1;
  height: 4px;
  background: var(--ink);
  transform: skewX(-30deg);
}

.nowrap { white-space: nowrap; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px var(--pad-x);
}
.hero-panel {
  position: absolute;
  top: 0; right: 0;
  width: 58%;
  height: 100%;
  background: var(--olive);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 12% 100%);
  z-index: 0;
}
.hero-panel--lines {
  background: none;
  background-image: repeating-linear-gradient(-25deg, rgba(35,38,31,0.08) 0 3px, transparent 3px 30px);
}
.hero-frame {
  position: absolute;
  left: -5%; bottom: -8%;
  width: 300px; height: 300px;
  border: 5px solid var(--oxblood);
  transform: rotate(14deg);
  z-index: 0;
  opacity: 0.5;
}
#fall-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 6px 14px;
  margin-bottom: 22px;
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 12px;
}
.hero-badge .diamond {
  width: 11px;
  height: 11px;
  margin: 0;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 168px);
  line-height: 0.84;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--oxblood);
}
.hero-chips {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.chip-solid {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 22px);
  padding: 8px 18px;
}
.chip-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--oxblood);
}
.hero-tagline {
  margin-top: 28px;
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.feature { position: relative; }
.feature-mat {
  position: absolute;
  inset: -14px;
  background: var(--cream);
  transform: rotate(-3deg);
  border: 3px solid var(--ink);
}
.feature-box {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #2A2E24;
  border: 3px solid var(--oxblood);
  overflow: hidden;
}
.feature-tag {
  position: absolute;
  z-index: 1;
  top: 12px; left: 12px;
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 11px;
  color: #a7b39b;
}
.feature-caption {
  position: absolute;
  z-index: 1;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 12px;
  padding: 9px 14px;
}

/* ---------- hero slider ---------- */
.slider:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
.slider-track {
  position: absolute;
  inset: 0 0 38px 0;           /* leave room for the caption bar */
  display: flex;
  transition: transform .6s var(--ease-out);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  background: #2A2E24;
}
.slide video, .slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* data slides (map + chart): a quiet header, the picture, a legend */
.dslide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 42px 18px 14px;     /* top clears the FEATURED tag */
  color: var(--cream-soft);
}
.dslide-kicker {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 1px;
  color: #a7b39b;
}
.dslide-lede {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--cream);
}
.dslide-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 1px;
  color: #a7b39b;
}
.dslide-ramp { flex: 1; height: 8px; border-radius: 2px; }
.dslide-foot {
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 1.5;
  color: #a7b39b;
}

.dmap { position: relative; flex: 1; min-height: 0; }
.dmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dmap-place {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .5px;
  color: var(--ink);
  background: rgba(238, 224, 204, .88);
  padding: 1px 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.dmap.is-drawn .dmap-place { opacity: 1; }

.heat-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.heat {
  width: 100%;
  display: grid;
  grid-template-columns: 30px repeat(24, 1fr);
  gap: 2px;
}
.heat-day, .heat-hour {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: .5px;
  color: #a7b39b;
}
.heat-day { align-self: center; }
.heat-hour { margin-top: 4px; white-space: nowrap; }
.heat-cell {
  position: relative;
  aspect-ratio: 1 / 2.2;
  border-radius: 2px;
  opacity: 0;
}
.heat.is-drawn .heat-cell {
  animation: heat-in .5s var(--ease-out) forwards;
  animation-delay: calc(var(--c) * 28ms);
}
@keyframes heat-in { from { opacity: 0; transform: scaleY(.4); } to { opacity: 1; transform: none; } }
.heat-cell:hover { outline: 2px solid var(--cream); outline-offset: 1px; z-index: 1; }
.heat-cell.is-marked { box-shadow: 0 0 0 2px #2A2E24, 0 0 0 3.5px var(--cream); z-index: 1; }
.heat-cell.is-marked::after, .heat-notes li::before {
  content: attr(data-mark);
  font-family: var(--font-label);
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}
.heat-cell.is-marked::after { position: absolute; left: 50%; top: -19px; transform: translateX(-50%); }
.heat-notes {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.heat-notes li { display: flex; gap: 8px; align-items: flex-start; }
.heat-notes li::before { flex: none; margin-top: 1px; }
.heat-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 8px));
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 10px;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
}
.heat-tip[hidden] { display: none; }

.feature-caption { height: 38px; padding: 0 10px 0 14px; }
.slider-controls { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.slider-btn {
  background: transparent;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  width: 26px; height: 26px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.slider-btn:hover, .slider-btn:focus-visible { background: var(--cream); color: var(--olive); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bob 1.8s ease-in-out infinite;
  font-family: var(--font-label);
  letter-spacing: 2px;
  font-size: 11px;
}
.scroll-cue-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(var(--oxblood), transparent);
}

/* ---------- marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  background: var(--olive);
  color: var(--cream);
  overflow: hidden;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
  padding: 12px 0;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ---------- profile ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.bio-panel {
  border-left: 6px solid var(--olive);
  padding: 4px 0 4px clamp(20px, 2.5vw, 34px);
}
.bio-panel p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
}
.bio-panel p + p { margin-top: 18px; }

.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-tile { padding: 22px 26px; }
.stat-tile--oxblood {
  background: var(--oxblood);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 92% 100%, 0 100%);
}
.stat-tile--olive {
  background: var(--olive);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 84%);
}
.stat-tile--outline {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 0.9;
}
.stat-value--words {
  font-size: clamp(38px, 5vw, 60px);
  color: var(--oxblood);
}
.stat-label {
  margin-top: 8px;
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 12px;
}

/* ---------- featured projects ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px 36px;
}
@media (min-width: 1200px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
/* each screenshot is framed like the hero slideshow: a dark screen with an
   oxblood edge, laid on a tilted mat. Tilts run in a checkerboard. */
.feat-frame {
  position: relative;
  margin: 8px 6px 10px;
}
.feat-frame::before {
  content: '';
  position: absolute;
  inset: -9px;
  background: var(--olive);
  border: 3px solid var(--ink);
  transform: rotate(-2deg);
}
.feat-card:nth-child(4n+2) .feat-frame::before,
.feat-card:nth-child(4n+3) .feat-frame::before { transform: rotate(2deg); }
.feat-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid var(--oxblood);
  background: #2A2E24;
}
.feat-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
a.feat-shot:hover img { transform: scale(1.02); }
/* the MCP card has no screenshot — a quiet chat log stands in */
.feat-chat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(18px, 4%, 40px);
  font-family: var(--font-label);
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.5;
}
.chat-q { color: var(--cream); }
.chat-q::before { content: '> '; color: #c58b8b; }
.chat-tool { color: #9db08f; margin-bottom: 14px; padding-left: 16px; }
.chat-note { color: #7d846f; font-size: .85em; }

/* ---------- projects ---------- */
.proj-group {
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 16px;
}
.proj-grid + .proj-group { margin-top: 48px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.proj-meta {
  font-family: var(--font-label);
  font-size: 12px;
  color: #a7b39b;
}
.proj-card {
  background: var(--ink);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--oxblood);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-slot {
  aspect-ratio: 16 / 9;
  border: 2px dashed #4d5344;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(45deg, #262a20 0 12px, #23261F 12px 24px);
}
.demo-slot-tag {
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 11px;
  color: #a7b39b;
}
.demo-slot-hint {
  font-family: monospace;
  font-size: 12px;
  color: #7d846f;
}
.proj-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}
.proj-problem {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-soft);
}
.proj-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.proj-chips span {
  font-family: var(--font-label);
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--olive);
  color: #9db08f;
}
.proj-result {
  margin-top: auto;
  font-family: var(--font-label);
  font-size: 13px;
  color: #c58b8b;
}

/* ---------- featured project cards (front page only) ----------
   Cream sheet, thick ink edge, hard unblurred shadow. Placed after the
   shared .proj-card rules so these win; Side Streets keeps its dark cards. */
.feat-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px;
  gap: 16px;
}
.feat-card .proj-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
  color: var(--olive);
}
/* status stamp: solid olive with one slanted end when it's out in the
   world, an outline when it isn't yet */
.stamp {
  font-size: 11px;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.stamp--live {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
  padding-right: 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
/* title in an ink box, like the hero's "Transportation Planner" label */
.feat-card h3 {
  align-self: flex-start;
  background: var(--ink);
  color: var(--cream);
  padding: 6px 14px;
}
.feat-card .proj-problem { color: var(--ink-soft); }
.feat-card .proj-problem strong { color: var(--ink); font-weight: 600; }
.feat-card .proj-chips span,
.xp-job .proj-chips span {
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 2px 10px;
}
.feat-card .proj-result,
.feat-card .proj-result a { color: var(--oxblood); }
.feat-card .proj-result a:hover { color: var(--olive); }

/* ---------- experience ---------- */
.xp-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 40px 36px;
}
.xp-job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
}
/* the number sits on a solid tile with a clipped corner, the same as the
   Profile stat tiles; oxblood and olive run in a checkerboard */
.xp-job-num {
  background: var(--oxblood);
  color: var(--cream);
  padding: 18px 18px 22px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 88% 100%, 0 100%);
}
.xp-job:nth-child(4n+2) .xp-job-num,
.xp-job:nth-child(4n+3) .xp-job-num {
  background: var(--olive);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 84%);
}
.xp-job-num .stat-value {
  display: block;
  font-size: clamp(36px, 4vw, 48px);
}
.xp-job-num .stat-label { display: block; text-wrap: balance; }
.xp-job-body { padding-top: 4px; }
.xp-org {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--olive);
}
.xp-job-body h4 {
  margin: 6px 0 8px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}
.xp-job-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.xp-job .proj-chips { margin-top: 12px; }
.xp-job-link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 13px;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(80px, 12vw, 170px) var(--pad-x);
}
.contact-bg {
  position: absolute;
  inset: 0;
  background: var(--olive);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.contact-bg--dots {
  background: none;
  background-image: radial-gradient(rgba(35, 38, 31, 0.22) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.contact-panel {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--cream);
}
.contact-eyebrow {
  font-family: var(--font-label);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 14px;
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(46px, 9vw, 128px);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}
.contact-panel > p {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  color: #f0e8d9;
}
.contact-ctas {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-footer {
  margin-top: 56px;
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(238, 224, 204, 0.7);
}

/* ---------- tunnel portal (quiet doorway between the two sides) ---------- */
.portal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  opacity: 0.45;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.portal:hover,
.portal:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}
.portal-rings {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: radial-gradient(circle,
    var(--ink) 0 24%,
    var(--cream) 24% 34%,
    var(--ink) 34% 46%,
    var(--cream) 46% 56%,
    var(--ink) 56% 68%,
    var(--oxblood) 68% 100%);
}
.portal-label {
  font-family: var(--font-label);
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--ink);
}
.contact .portal-label { color: rgba(238, 224, 204, 0.85); }

/* ---------- fun page ---------- */
.hero--fun .hero-grid { grid-template-columns: 1fr; }
.hero--fun .hero-tagline { max-width: 640px; }
.fun-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px var(--pad-x) 60px;
}
.fun-footer .portal { margin-top: 0; }
.proj-result a {
  color: #c58b8b;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.proj-result a:hover { color: var(--cream); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 90px; padding-bottom: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature {
    max-width: 340px;
    margin: 26px auto 0;
    width: 100%;
  }
  .hero-panel { width: 100%; clip-path: polygon(0 78%, 100% 55%, 100% 100%, 0 100%); }
  .profile-grid { grid-template-columns: 1fr; }
  .xp-job { grid-template-columns: 1fr; gap: 14px; }
  .xp-job-num { justify-self: start; min-width: 180px; }
  /* one column: plain alternation instead of the checkerboard */
  .xp-job:nth-child(n) .xp-job-num {
    background: var(--oxblood);
    clip-path: polygon(0 0, 100% 0, 100% 84%, 88% 100%, 0 100%);
  }
  .xp-job:nth-child(even) .xp-job-num {
    background: var(--olive);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 84%);
  }
}

@media (max-width: 600px) {
  .btn--ink, .btn--cream { font-size: 15px; padding: 13px 20px; }
  .proj-grid { grid-template-columns: 1fr; }
  .feat-chat { aspect-ratio: auto; }
  .hero-badge { letter-spacing: 0; font-size: 11px; }
  .dslide { gap: 10px; }
  .dslide-lede { font-size: 14px; }
  .heat-cell { aspect-ratio: 1 / 1.4; }
}
