/* ============================================================
   PORTFOLIO — GLOBAL STYLESHEET
   Inspired by Teenage Engineering & Omron industrial precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #F6F4F0;
  --bg-alt:       #EDEAE4;
  --bg-card:      #FFFFFF;
  --fg:           #0A0A0A;
  --fg-mid:       #3D3D3D;
  --fg-dim:       #7A7770;
  --accent:       #FF5C00;
  --accent-dim:   #FF5C0020;
  --accent-2:     #1A1A1A;
  --border:       #DEDAD4;
  --border-dark:  #0A0A0A;

  --font-head:    'Archivo', system-ui, sans-serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --r-sm:         4px;
  --r-md:         8px;
  --r-lg:         16px;

  --gap:          12px;
  --gap-lg:       24px;

  --nav-h:        60px;
  --transition:   0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
ul, ol { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.t-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.t-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.t-body { font-size: 15px; line-height: 1.7; color: var(--fg-mid); }
.t-body-sm { font-size: 13px; line-height: 1.65; color: var(--fg-dim); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.page-content {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 80px;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.nav__logo-mark svg { fill: var(--bg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.nav__link:hover { color: var(--fg); background: var(--bg-alt); }
.nav__link.active { color: var(--fg); font-weight: 700; background: var(--bg-alt); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: var(--transition);
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: all var(--transition);
}

.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav__mobile .nav__link { padding: 10px 12px; font-size: 12px; }

/* ─── BENTO GRID ─────────────────────────────────────────── */
.bento {
  display: grid;
  gap: var(--gap);
}

.bento--home {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
}

.bento--work {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
}

/* ─── BENTO CELL ─────────────────────────────────────────── */
.cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cell:hover {
  border-color: var(--fg-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.cell--dark {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.cell--dark .t-label, .cell--dark .t-caption { color: rgba(255,255,255,0.4); }
.cell--dark .t-body { color: rgba(255,255,255,0.75); }

.cell--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
}

.cell--accent .t-label, .cell--accent .t-caption { color: rgba(255,255,255,0.65); }

.cell--grid {
  background: var(--bg-alt);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cell__inner {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cell__label {
  margin-bottom: 12px;
}

.cell__title {
  font-family: var(--font-head);
  font-weight: 700;
}

.cell__body { margin-top: 8px; }
.cell__footer { margin-top: auto; padding-top: 16px; }

/* ─── HOME GRID LAYOUT ───────────────────────────────────── */
.cell--hero        { grid-column: span 8; min-height: 360px; }
.cell--hero-side   { grid-column: span 4; min-height: 360px; }
.cell--wide        { grid-column: span 6; min-height: 240px; }
.cell--third       { grid-column: span 4; min-height: 240px; }
.cell--quarter     { grid-column: span 3; min-height: 200px; }
.cell--full        { grid-column: span 12; min-height: 180px; }
.cell--two-thirds  { grid-column: span 8; }
.cell--one-third   { grid-column: span 4; }

/* ─── HERO CELL SPECIFICS ────────────────────────────────── */
.hero-cell__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-cell__eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}

.hero-cell__name {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero-cell__role {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-mid);
  margin-top: 16px;
  max-width: 420px;
  line-height: 1.6;
}

.hero-cell__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--fg-mid);
  padding: 4px 10px;
  border-radius: 2px;
  transition: all var(--transition);
}

.tag:hover { border-color: var(--fg); color: var(--fg); }
.tag--filled { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag--accent { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── STATUS INDICATOR ───────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-item::after {
  content: '◆';
  font-size: 6px;
  color: var(--accent);
}

/* ─── PROJECT CARD ───────────────────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--fg-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.project-card:hover .project-card__img img {
  transform: scale(1.03);
}

.project-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.project-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  flex: 1;
}

.project-card__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }

.project-card__arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  transition: all var(--transition);
  flex-shrink: 0;
}

.project-card:hover .project-card__arrow {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ─── FILTER BAR ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--fg-mid); color: var(--fg); }
.filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header__left {}

.section-header__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.section-header__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ─── STAT BLOCK ─────────────────────────────────────────── */
.stat { }

.stat__num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__num--accent { color: var(--accent); }

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* ─── PROCESS STEPS ──────────────────────────────────────── */
.process-list { display: flex; flex-direction: column; gap: 12px; }

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.process-item:last-child { border-bottom: none; }

.process-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 28px;
  padding-top: 2px;
}

.process-item__title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.process-item__desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ─── SKILL GRID ─────────────────────────────────────────── */
.skill-list { display: flex; flex-direction: column; gap: 6px; }

.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

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

.skill-row__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mid);
  min-width: 100px;
}

.skill-row__bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.skill-row__fill {
  height: 100%;
  background: var(--fg);
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.skill-row__fill--accent { background: var(--accent); }

.skill-row__pct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  min-width: 32px;
  text-align: right;
}

/* ─── CTA BUTTON ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 24px;
  border: 1.5px solid var(--fg);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  color: var(--fg);
  text-decoration: none;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--filled {
  background: var(--fg);
  color: var(--bg);
}

.btn--filled:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--accent:hover {
  background: #e04f00;
  border-color: #e04f00;
}

.btn--sm {
  font-size: 10px;
  padding: 8px 16px;
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 0; }

.form__group { display: flex; flex-direction: column; }

.form__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
  margin-top: 20px;
}

.form__group:first-child .form__label { margin-top: 0; }

.form__input, .form__textarea, .form__select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--fg);
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  outline: none;
  appearance: none;
}

.form__input:focus, .form__textarea:focus, .form__select:focus {
  border-color: var(--fg);
  background: var(--bg-card);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form__error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #E53E3E;
  margin-top: 4px;
  display: none;
}

.form__error.visible { display: block; }

.form__submit {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 16px;
}

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header__kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}

.page-header__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-header__desc {
  font-size: 16px;
  color: var(--fg-mid);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ─── ABOUT SECTION ──────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.timeline__item:last-child { border-bottom: none; }

.timeline__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  padding-top: 2px;
}

.timeline__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.timeline__org {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline__desc { font-size: 13px; color: var(--fg-dim); line-height: 1.6; }

/* ─── ABOUT BENTO ────────────────────────────────────────── */
.bento--about {
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: var(--gap-lg);
}

.cell--about-main { grid-column: span 7; min-height: 400px; }
.cell--about-side { grid-column: span 5; min-height: 400px; }
.cell--about-sm   { grid-column: span 4; min-height: 200px; }

/* ─── CONTACT GRID ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 80px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--accent); }

/* ─── PAGE TRANSITION ────────────────────────────────────── */
.page-fade {
  animation: pageFadeIn 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── CURSOR DOT (desktop only) ──────────────────────────── */
.cursor {
  pointer-events: none;
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.3s;
  mix-blend-mode: multiply;
}

/* ─── TOOLTIP ────────────────────────────────────────────── */
[data-tooltip] { position: relative; }

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

[data-tooltip]:hover::after { opacity: 1; }

/* ─── GRID OVERLAY (HERO DECORATION) ────────────────────── */
.grid-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ─── WORK GRID ──────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bento--home { grid-template-columns: repeat(8, 1fr); }
  .cell--hero        { grid-column: span 8; }
  .cell--hero-side   { grid-column: span 8; min-height: 220px; }
  .cell--wide        { grid-column: span 4; }
  .cell--third       { grid-column: span 4; }
  .cell--quarter     { grid-column: span 4; }
  .cell--full        { grid-column: span 8; }
  .cell--two-thirds  { grid-column: span 8; }
  .cell--one-third   { grid-column: span 8; }

  .cell--about-main  { grid-column: span 12; }
  .cell--about-side  { grid-column: span 12; }
  .cell--about-sm    { grid-column: span 4; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gap: 8px; --gap-lg: 16px; }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .bento--home { grid-template-columns: 1fr; }
  .cell--hero, .cell--hero-side, .cell--wide, .cell--third,
  .cell--quarter, .cell--full, .cell--two-thirds, .cell--one-third { grid-column: span 1; }

  .cell--hero { min-height: 280px; }
  .cell--hero-side, .cell--wide, .cell--third, .cell--quarter { min-height: 180px; }

  .bento--about { grid-template-columns: 1fr; }
  .cell--about-main, .cell--about-side, .cell--about-sm { grid-column: span 1; }
  .bento--about .bento { grid-template-columns: 1fr 1fr; }

  .work-grid { grid-template-columns: 1fr; }

  .timeline__item { grid-template-columns: 60px 1fr; gap: 12px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
