/* ════════════════════════════════════════════════════
   TOKENS
   ════════════════════════════════════════════════════ */
:root {
  --bg:          #0a0a0a;
  --bg-raised:   #111111;
  --bg-elevated: #181818;
  --border:      #202020;
  --border-sub:  #181818;
  --accent:      #f5a623;
  --accent-h:    #e09416;
  --accent-dim:  rgba(245, 166, 35, 0.08);
  --text:        #f0f0f0;
  --text-2:      #888888;
  --text-3:      #444444;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica Neue, Arial, sans-serif;
  --mono: 'Cascadia Code', 'Cascadia Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  --nav-h:     64px;
  --max-w:    1200px;
  --radius:      5px;
  --ease:        0.2s ease;
  --arch-grid:
    linear-gradient(rgba(245,166,35,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.055) 1px, transparent 1px),
    linear-gradient(rgba(245,166,35,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.02) 1px, transparent 1px);
  --arch-grid-size: 300px 300px, 300px 300px, 60px 60px, 60px 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--mono);
  background-color: var(--bg);
  background-image: var(--arch-grid);
  background-size: var(--arch-grid-size);
  color: var(--text);
  line-height: 1.7;
  font-size: 0.9375rem;
  overflow-x: hidden;
}

svg { display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p { max-width: 65ch; }
em { font-style: normal; color: var(--accent); }

/* ════════════════════════════════════════════════════
   SKIP LINK
   ════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════ */
h1, h2, h3 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
h3 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn--lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════ */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: border-bottom var(--ease);
}

/* Blur on a pseudo-element so the header itself never gets backdrop-filter,
   which would make it a containing block and break the fixed nav-list. */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
#site-header.scrolled::before { opacity: 1; }
#site-header.scrolled { border-bottom: 1px solid var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.logo {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1;
}
.logo::after {
  content: '_';
  color: var(--accent);
  font-weight: 400;
  animation: blink 1.1s step-end infinite;
}
.logo-dot { color: var(--accent); }

.status-badge {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
  flex-shrink: 0;
}

.nav-num {
  font-size: 0.625rem;
  color: var(--accent);
  opacity: 0.5;
  margin-right: 0.4em;
  font-weight: 400;
  transition: opacity var(--ease);
  letter-spacing: 0.05em;
}

/* Mobile nav list */
.nav-list {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  /* Hidden state — visibility keeps it out of tab order; pointer-events blocks taps */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}
.nav-list.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.nav-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-sub);
  color: var(--text-2);
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover .nav-num, .nav-link.active .nav-num { opacity: 1; }
.nav-link:last-child { border-bottom: none; }

.nav-cta {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000 !important;
  border-radius: var(--radius);
  font-weight: 700;
  border-bottom: none;
}
.nav-cta:hover { background: var(--accent-h); color: #000 !important; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 768px) {
  .burger { display: none; }
  .status-badge { display: flex; }
  .nav-list {
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    align-items: center;
    gap: 0.25rem;
    overflow: visible;
    /* Reset all mobile hidden-state properties */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-link {
    padding: 0.5rem 0.875rem;
    border-bottom: none;
    font-size: 0.9375rem;
  }
  .nav-cta {
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 18% 52%, rgba(245,166,35,0.025) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: '// ';
  color: var(--text-3);
}

.hero-title {
  font-family: var(--mono);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
}

/* Blinking cursor after the accent word */
.hero-title em::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-sub {
  font-family: var(--font);
  font-size: clamp(1rem, 1.75vw, 1.1875rem);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  padding-top: 2.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 480px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat-val {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-top: 0.3rem;
}

/* ════════════════════════════════════════════════════
   SECTIONS (shared)
   ════════════════════════════════════════════════════ */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.section-hd { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-hd h2 { margin-bottom: 0.875rem; }
.section-hd p { font-family: var(--font); color: var(--text-2); font-size: 1.0625rem; }

/* ════════════════════════════════════════════════════
   EXPERTISE GRID
   ════════════════════════════════════════════════════ */
.expertise-section { background-color: var(--bg-raised); background-image: var(--arch-grid); background-size: var(--arch-grid-size); }

.exp-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) { .exp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .exp-grid { grid-template-columns: repeat(3, 1fr); } }

.exp-card {
  background: var(--bg-raised);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--ease);
}
.exp-card:hover { background: var(--bg-elevated); }

.exp-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.exp-card h3 { color: var(--text); }

.exp-card p {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: none;
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   PROCESS
   ════════════════════════════════════════════════════ */
.process-section { background: var(--bg-raised); background-image: var(--arch-grid); background-size: var(--arch-grid-size); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  position: relative;
}

.process-step {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-bottom: 1px solid var(--border); }

.process-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 0.875rem;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.process-step p {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 48ch;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-step {
    padding: 2.5rem 2rem 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: none !important;
  }
  .process-step:not(:first-child) {
    padding-left: 2rem;
    border-left: 1px solid var(--border);
  }
  .process-step p { max-width: none; }
}

/* ════════════════════════════════════════════════════
   WORK
   ════════════════════════════════════════════════════ */
.work-section { background: var(--bg); }

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter {
  padding: 0.4375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Work grid */
.work-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 580px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.08);
}
.work-card.hidden { display: none; }

.work-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-sub);
}

.project-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
}
.tag--platform { background: var(--accent-dim); color: var(--accent); }

.work-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.work-cat {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-2);
  max-width: none;
}

.work-card-body h3 { font-family: var(--font); line-height: 1.25; }

.work-card-body > p:not(.work-cat) {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: none;
  flex: 1;
}

.deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-sub);
  margin-top: auto;
}

.deliverables li {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.2rem 0.625rem;
}

/* ════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════ */
.about-section { background-color: var(--bg-raised); background-image: var(--arch-grid); background-size: var(--arch-grid-size); }

.about-inner {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
  }
}

.about-text h2 { margin-bottom: 1.75rem; }

.about-lead {
  font-size: clamp(1.1rem, 1.75vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about-text p {
  font-family: var(--font);
  color: var(--text-2);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-stack {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-stack h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}
.about-stack h3::before { content: '// '; }

.about-stack ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.about-stack li {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
}
.about-stack li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact-section { background: var(--bg); }

.contact-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4rem;
}

.contact-col--main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-col--aside {
  flex: 0 0 340px;
  padding-top: 0.5rem;
}

.contact-inner h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
}

.contact-col--main > p {
  font-family: var(--font);
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 46ch;
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--text-2);
}
.contact-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.contact-note a:hover { color: var(--accent-h); }

.collab-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.collab-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.collab-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}
.collab-role {
  font-size: 0.8125rem;
  color: var(--accent);
}
.collab-bio {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.collab-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.collab-links a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.collab-links a:hover { color: var(--accent-h); }

@media (max-width: 700px) {
  .contact-inner {
    flex-direction: column;
  }
  .contact-col--main { align-items: center; text-align: center; }
  .contact-col--aside { flex: none; width: 100%; }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer .logo { font-size: 1.25rem; }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
  max-width: none;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════
   WORK CARD GALLERY
   ════════════════════════════════════════════════════ */
.work-gallery {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-sub);
}

.work-gallery-main {
  height: 220px;
  overflow: hidden;
}

.gallery-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.2s ease;
}
.gallery-main-img.is-fading { opacity: 0; }

.work-gallery-thumbs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg);
}

.gallery-thumb {
  flex: 1;
  height: 52px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  background: var(--bg-elevated);
  padding: 0;
  transition: border-color var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb:hover:not(.is-active) { border-color: var(--text-3); }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* Click-to-expand hint on the main image */
.work-gallery-main { cursor: zoom-in; position: relative; }
.work-gallery-main::after {
  content: '⤢  expand';
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ease);
}
.work-gallery-main:hover::after { opacity: 1; }

/* Project live-site link */
.work-card-hd-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-url {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: background var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.project-url:hover { background: rgba(245,166,35,0.16); }
.project-url:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox:not([hidden]) { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Layout: image + nav + thumbs ── */
.lightbox-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: min(90vw, 1200px);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.lightbox-inner {
  flex: 1;
  max-height: 74vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  transition: opacity 0.16s ease;
}

/* ── Prev / Next nav arrows ── */
.lightbox-nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.lightbox-nav:hover:not(:disabled) { background: rgba(255,255,255,0.18); }
.lightbox-nav:disabled { opacity: 0.2; cursor: not-allowed; }
.lightbox-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox-nav[hidden] { display: none; }

/* ── Thumbnail strip ── */
.lightbox-thumbs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.lightbox-thumbs[hidden] { display: none; }

.lb-thumb {
  width: 72px;
  height: 45px;
  overflow: hidden;
  border-radius: 3px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg-elevated);
  flex-shrink: 0;
  transition: border-color var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.lb-thumb.is-active { border-color: var(--accent); }
.lb-thumb:hover:not(.is-active) { border-color: rgba(255,255,255,0.3); }
.lb-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ════════════════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger expertise cards */
.exp-grid .exp-card:nth-child(2) { transition-delay: 0.07s; }
.exp-grid .exp-card:nth-child(3) { transition-delay: 0.14s; }
.exp-grid .exp-card:nth-child(4) { transition-delay: 0.07s; }
.exp-grid .exp-card:nth-child(5) { transition-delay: 0.14s; }
.exp-grid .exp-card:nth-child(6) { transition-delay: 0.21s; }

/* Stagger work cards */
.work-grid .work-card:nth-child(2) { transition-delay: 0.05s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.10s; }

/* ════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title em::after { display: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════ */
@media print {
  #site-header, .hero-btns, .filter-bar, .about-links, .contact-section { display: none; }
  body { background: #fff; color: #000; }
  .hero, .section { padding-block: 2rem; }
}
