/* =================================================================
   PORTFOLIO — Subinuer
   Design system: cream + black + electric blue · Fraunces / DM Sans / DM Mono
   Architecture: tall body → sticky stage → translated horizontal track
   ================================================================= */

:root {
  --color-bg:        #F5F2EC;
  --color-text:      #0D0D0D;
  --color-accent:    #1B4FFF;
  --color-secondary: #8A8A8A;
  --color-surface:   #EDEDEA;
  --color-surface-2: #E5E2DB;
  --color-border:    rgba(13, 13, 13, 0.12);
  --color-border-hover: rgba(13, 13, 13, 0.28);
  --color-inv-bg:    #0D0D0D;
  --color-inv-text:  #F5F2EC;
  --color-inv-surface: #1A1A1A;
  --color-inv-border:  rgba(245, 242, 236, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', Helvetica, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --size-hero:       clamp(64px, 7vw, 96px);
  --size-section:    clamp(36px, 4vw, 48px);
  --size-card-title: clamp(22px, 2vw, 28px);
  --size-body:       17px;
  --size-nav:        14px;
  --size-tag:        12px;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  --radius-btn:  0px;
  --radius-tag:  4px;
  --radius-card: 8px;
  --radius-img:  12px;
  --radius-video: 32px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.32, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.4s;
  --duration-slow: 0.6s;

  --nav-h: 64px;
}

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

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
body { overflow-x: hidden; overscroll-behavior-y: none; }

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

/* =================================================================
   SCROLL ARCHITECTURE
   ================================================================= */
.page { position: relative; width: 100%; }
.page__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.page__track {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  will-change: transform;
}

section.panel {
  flex: 0 0 auto;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
.panel--hero    { width: 100vw; }
.panel--work    { width: auto;  }
.panel--about   { width: 100vw; }
.panel--contact { width: 100vw; background: var(--color-inv-bg); color: var(--color-inv-text); }

/* =================================================================
   NAVIGATION
   ================================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--space-md);
  gap: var(--space-md);
  background: rgba(245, 242, 236, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-base) ease, color var(--duration-base) ease, border-color var(--duration-base) ease;
}
.topbar.inv {
  background: rgba(13, 13, 13, 0.72);
  color: var(--color-inv-text);
  border-bottom-color: var(--color-inv-border);
}
.topbar.inv .nav-link { color: rgba(245,242,236,0.55); }
.topbar.inv .nav-link:hover, .topbar.inv .nav-link.active { color: var(--color-inv-text); }
.topbar.inv .brand { color: var(--color-inv-text); }
.topbar.inv .minimap-dash { background: rgba(245,242,236,0.22); }
.topbar.inv .minimap-dash.on { background: var(--color-inv-text); }

.topbar__left {
  display: flex; align-items: center; gap: var(--space-sm);
  padding-left: var(--space-sm);
}
.brand {
  font-family: var(--font-body);
  font-size: var(--size-nav);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .dot {
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
}

/* Center — minimap dashes */
.topbar__center {
  display: flex; align-items: center; gap: 4px;
  justify-self: center;
}
.minimap-dash {
  width: 6px; height: 12px;
  background: rgba(13,13,13,0.18);
  border-radius: 2px;
  transition: background var(--duration-base) var(--ease-out-expo),
              height var(--duration-base) var(--ease-out-expo);
}
.minimap-dash.on { background: var(--color-text); }
.minimap-dash.peak { height: 18px; background: var(--color-accent); }

/* Right — nav links */
.topbar__right {
  display: flex; align-items: center; gap: 4px;
  justify-self: end;
  padding-right: var(--space-sm);
}
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  font-size: var(--size-nav);
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color var(--duration-fast) ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-text); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* =================================================================
   GLOBAL OVERLAYS
   ================================================================= */
.scroll-progress {
  position: fixed; bottom: 0; left: 0;
  height: 2px; background: var(--color-accent);
  width: 0%; z-index: 70;
  transition: width 0.1s linear;
}

/* =================================================================
   CURSOR
   ================================================================= */
.cursor-dot, .cursor-ring, .cursor-badge {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 1000;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--color-text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--color-text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--duration-fast) var(--ease-out-expo),
              height var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo);
}
.cursor-ring.hovering {
  width: 60px; height: 60px;
  background: rgba(27,79,255,0.08);
  border-color: var(--color-accent);
}
.cursor-badge {
  transform: translate(-50%, -200%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
}
.cursor-badge.visible { opacity: 1; }
.cursor-badge .glyph {
  width: 16px; height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 700;
}

/* =================================================================
   HERO (Section 1)
   ================================================================= */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-xl);
  padding: calc(var(--nav-h) + var(--space-md)) var(--space-xl) var(--space-md);
  height: 100vh;
  width: 100%;
}
.hero__left {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding-bottom: 60px;
  max-width: 760px;
}
.role-tag {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--space-xs);
}
.role-tag::before {
  content: ''; width: 20px; height: 1px;
  background: var(--color-secondary);
}
.avail-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(74,222,128, 0.7);
  animation: pulse 2s infinite;
}
.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--size-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: pretty;
}
.hero__title em { font-style: italic; font-weight: 300; }
.hero__statement {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-secondary);
  max-width: 540px;
  text-wrap: pretty;
}
.hero__statement strong { color: var(--color-text); font-weight: 500; }
.hero__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }

.btn-primary, .btn-secondary {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  border: 1px solid var(--color-text);
}
.btn-primary { background: var(--color-text); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-text); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-primary .arrow, .btn-secondary .arrow { transition: transform var(--duration-fast) var(--ease-out-expo); }
.btn-primary:hover .arrow, .btn-secondary:hover .arrow { transform: translateX(4px); }

.btn-primary--inv {
  background: var(--color-bg); color: var(--color-text);
  border-color: var(--color-bg);
}
.btn-primary--inv:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.btn-secondary--inv {
  background: transparent; color: var(--color-inv-text);
  border-color: var(--color-inv-text);
}
.btn-secondary--inv:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Hero media — portrait photo frame, no text overlays */
.hero__right { position: relative; display: flex; align-items: stretch; }
.hero__media {
  flex: 1;
  background: var(--color-surface);
  border-radius: var(--radius-img);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}
.hero__media::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 22px, rgba(13,13,13,0.025) 22px, rgba(13,13,13,0.025) 23px);
  pointer-events: none;
  z-index: 0;
}

/* Top floating orbit */
.top-orbit {
  position: absolute;
  top: calc(var(--nav-h) + 32px);
  left: 50%;
  transform: translate(-50%, 0);
  pointer-events: none;
  z-index: 5;
  width: 64px; height: 64px;
}
.top-orbit__inner {
  width: 100%; height: 100%;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform var(--duration-slow) var(--ease-out-expo);
  position: relative;
}
.top-orbit__inner::after {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--color-border-hover);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
   WORK (Section 2) — horizontal carousel
   ================================================================= */
.work {
  display: flex;
  align-items: center;
  height: 100vh;
  padding: calc(var(--nav-h) + var(--space-md)) var(--space-xl) var(--space-xl);
  gap: var(--space-xl);
}

.work__intro {
  flex: 0 0 460px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding-right: var(--space-md);
  border-right: 1px solid var(--color-border);
}
.work__intro .role-tag { margin-bottom: var(--space-md); }
.work__intro h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--size-section);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}
.work__intro h2 em { font-style: italic; font-weight: 300; }
.work__intro-foot {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.work__intro-foot b { color: var(--color-accent); font-weight: 500; }
.work__intro-industries {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Project card — horizontal split 45% text / 55% image */
.proj {
  width: 880px;
  height: 520px;
  flex: 0 0 auto;
  background: var(--color-surface); /* #EDEDEA */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 45% 55%;
  position: relative;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-out-expo), transform var(--duration-base) var(--ease-out-expo);
  text-decoration: none;
  color: inherit;
}
.proj:hover { border-color: var(--color-border-hover); transform: translateY(-4px); }

/* LEFT — text content */
.proj__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  border-right: 1px solid var(--color-border);
  gap: 12px;
}
.proj__num {
  position: absolute; top: var(--space-md); left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--color-accent);
  z-index: 2;
}
.proj__year {
  position: absolute; top: var(--space-md); right: var(--space-md);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--color-secondary);
  z-index: 2;
}
.proj__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.proj__title em { font-style: italic; font-weight: 300; }
.proj__desc {
  font-size: 14px; line-height: 1.55;
  color: var(--color-secondary);
  margin-top: 4px;
  margin-bottom: 8px;
}
.proj__view {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
  transition: color var(--duration-fast) ease;
  align-self: flex-start;
}
.proj__view:hover { color: var(--color-accent); }
.proj__view .arrow { transition: transform var(--duration-fast) var(--ease-out-expo); }
.proj__view:hover .arrow { transform: translateX(4px); }

/* RIGHT — static image placeholder (#D9D6CF) */
.proj__image {
  background: #D9D6CF;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.proj__image::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 18px, rgba(13,13,13,0.025) 18px, rgba(13,13,13,0.025) 19px);
  pointer-events: none;
}
.proj__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
.proj__image-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: #8A8A8A;
  text-align: center;
  z-index: 1;
  padding: 0 var(--space-md);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--size-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tag);
  display: inline-block;
}
.tag--active {
  color: var(--color-accent);
  border-color: rgba(27,79,255,0.3);
  background: rgba(27,79,255,0.06);
}

/* End-of-work outro */
.work__outro {
  flex: 0 0 320px;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-border);
}
.work__outro h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.work__outro h3 em { font-style: italic; font-weight: 300; }
.work__outro p {
  font-size: 14px; color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

/* =================================================================
   ABOUT (Section 3) — BENTO GRID
   4 columns × 3 rows
   ================================================================= */
.about {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr minmax(130px, 160px);
  gap: var(--space-md);
  padding: calc(var(--nav-h) + var(--space-md)) var(--space-xl) 110px;
  height: 100vh;
  align-content: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100vw;
}
.bento {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-base) var(--ease-out-expo);
}
.bento:hover { border-color: var(--color-border-hover); }

/* Cell spans */
.bento--bio    { grid-column: span 2; grid-row: span 3; padding: var(--space-lg); }
.bento--photo  { grid-column: span 1; grid-row: span 2; padding: 0; background: var(--color-surface); }
.bento--stat   {
  grid-column: span 1; grid-row: span 1;
  justify-content: center; align-items: center; text-align: center;
}
.bento--education {
  grid-column: span 1; grid-row: span 1;
  justify-content: center; align-items: flex-start;
  text-align: left;
  gap: 10px;
  padding: var(--space-md);
}
.bento--combined {
  grid-column: span 2; grid-row: span 1;
  background: var(--color-inv-bg);
  color: var(--color-inv-text);
  border-color: var(--color-inv-bg);
  padding: var(--space-md);
}

/* Corner label */
.bento__corner {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.bento__corner .accent { color: var(--color-accent); }
.bento__corner::before {
  content: ''; width: 5px; height: 5px;
  background: var(--color-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}
.bento--bio .bento__corner::before { background: var(--color-accent); }

/* BIO cell */
.bento--bio h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: var(--space-md) 0 var(--space-md);
  text-wrap: pretty;
}
.bento--bio h2 em {
  font-style: italic;
  font-weight: 300;
  font-size: 0.62em;
  display: block;
  line-height: 1.2;
  margin-top: 6px;
  color: var(--color-secondary);
}
.bento--bio p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
  max-width: 56ch;
}
.bento--bio p + p { margin-top: 10px; color: var(--color-secondary); }

/* PHOTO cell */
.bento--photo .photo-stage {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bento--photo .photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
}
.bento--photo .photo-stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 22px, rgba(13,13,13,0.025) 22px, rgba(13,13,13,0.025) 23px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}
.bento--photo .photo-label {
  font-family: var(--font-display);
  font-style: italic; font-weight: 300;
  font-size: 18px;
  color: var(--color-secondary);
  text-align: center;
  z-index: 2;
}
.bento--photo .photo-label small {
  display: block; margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
}
.bento--photo .photo-meta {
  position: absolute;
  bottom: var(--space-sm); left: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  z-index: 3;
}

/* STAT cell — perfectly centered */
.bento--stat .bento__corner { align-self: flex-start; margin-bottom: auto; }
.bento--stat .stat-num {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 0;
}
.bento--stat .stat-num em { color: var(--color-accent); font-style: italic; font-weight: 300; }
.bento--stat .stat-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: auto;
}

/* EDUCATION cell — compact, all content visible */
.bento--education .bento__corner { margin-bottom: var(--space-sm); }
.bento--education .edu-row {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bento--education .edu-row + .edu-row {
  padding-top: 8px; margin-top: 4px;
  border-top: 1px solid var(--color-border);
}
.bento--education .edu-row .institution { font-weight: 500; font-size: 13px; }
.bento--education .edu-row .degree { color: var(--color-secondary); font-size: 12px; }

/* COMBINED black card */
.bento--combined .bento__corner { color: var(--color-secondary); margin-bottom: var(--space-xs); }
.bento--combined .bento__corner::before { background: var(--color-secondary); }
.bento--combined .combined-skills {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.bento--combined .combined-skills .tag {
  background: rgba(255,255,255,0.1);
  color: var(--color-inv-text);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-tag);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.bento--combined .combined-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: var(--space-sm) 0;
  flex-shrink: 0;
}
.bento--combined .combined-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.bento--combined .combined-foot__left { flex: 1; min-width: 0; }
.bento--combined .combined-now {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 4px;
}
.bento--combined .combined-now::before {
  content: ''; width: 7px; height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(27,79,255, 0.7);
  animation: pulse 2s infinite;
}
.bento--combined .combined-headline {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-inv-text);
}
.bento--combined .combined-headline em { font-style: italic; font-weight: 300; color: rgba(245,242,236,0.7); }
.bento--combined .combined-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-inv-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) ease;
  white-space: nowrap;
}
.bento--combined .combined-cta:hover { color: var(--color-accent); }
.bento--combined .combined-cta .arrow { transition: transform var(--duration-fast) var(--ease-out-expo); }
.bento--combined .combined-cta:hover .arrow { transform: translateX(4px); }

/* =================================================================
   CONTACT (Section 4) — inverted
   ================================================================= */
.contact {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + var(--space-xl)) var(--space-xl) var(--space-xl);
  text-align: center;
  gap: var(--space-lg);
  height: 100vh;
}
.contact .role-tag { color: rgba(245,242,236,0.55); }
.contact .role-tag::before { background: rgba(245,242,236,0.55); }

.contact__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(48px, 5.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-inv-text);
  text-wrap: balance;
  max-width: 1100px;
}
.contact__title em { font-style: italic; }
.contact__title a {
  color: var(--color-inv-text);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) ease;
}
.contact__title a:hover { color: var(--color-accent); }

.contact__actions { display: flex; gap: var(--space-sm); }

.contact__grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  width: 100%; max-width: 900px;
}
.contact__grid--2 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
}
.contact__cell {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.contact__cell .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}
.contact__cell .val,
.contact__cell .val a {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--color-inv-text);
  text-decoration: none;
}
.contact__cell .val a:hover { color: var(--color-accent); }

.contact__foot {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 var(--space-xl);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

/* =================================================================
   PANEL FOOTER BAR
   ================================================================= */
.panel__footer {
  position: absolute;
  left: var(--space-xl); right: var(--space-xl);
  bottom: 32px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
}
.panel__footer .lead { display: inline-flex; align-items: center; gap: 12px; }
.panel__footer .line {
  width: 36px; height: 1px; background: var(--color-secondary);
  position: relative; overflow: hidden;
}
.panel__footer .line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--color-text);
  transform: translateX(-100%);
  animation: line-slide 2.2s var(--ease-out-expo) infinite;
}
@keyframes line-slide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.panel--contact .panel__footer { color: rgba(245,242,236,0.5); }
.panel--contact .panel__footer .line { background: rgba(245,242,236,0.5); }
.panel--contact .panel__footer .line::after { background: var(--color-inv-text); }

/* Reveal-on-load */
.reveal {
  opacity: 0; transform: translateY(20px);
  animation: reveal 0.9s var(--ease-out-expo) forwards;
}
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.18s; }
.reveal--3 { animation-delay: 0.32s; }
.reveal--4 { animation-delay: 0.5s; }
.reveal--5 { animation-delay: 0.7s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* Pulse animation */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (hover: none) { .cursor-dot, .cursor-ring, .cursor-badge { display: none; } html, body { cursor: auto; } }

@media (max-width: 900px) {
  body { overflow-x: hidden; overflow-y: auto; }
  .page { height: auto; }
  .page__sticky { position: relative; height: auto; }
  .page__track { flex-direction: column; transform: none !important; height: auto; }
  section.panel { width: 100% !important; height: auto; min-height: 100vh; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .about {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    padding: calc(var(--nav-h) + var(--space-lg)) var(--space-md);
  }
  .bento--bio, .bento--photo, .bento--stat, .bento--combined, .bento--education {
    grid-column: span 1; grid-row: span 1;
  }
  .bento--photo { min-height: 320px; }
  .bento--bio { min-height: 380px; }
  .work { flex-direction: column; padding: calc(var(--nav-h) + var(--space-lg)) var(--space-md); height: auto; }
  .work__intro, .work__outro { flex: 0 0 auto; border: none; padding: 0; }
  .proj { width: 100%; height: auto; grid-template-columns: 1fr; }
  .proj__info { border-right: none; border-bottom: 1px solid var(--color-border); }
  .proj__image { height: 320px; }
  .top-orbit { display: none; }
  .topbar__center { display: none; }
  .panel__footer { display: none; }
}
