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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --z50: #f4f4f5;
  --z100: #e4e4e7;
  --z200: #d4d4d8;
  --z400: #63636b;
  --z600: #52525b;
  --z700: #3f3f46;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --sans: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

::selection {
  background: var(--black);
  color: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ── DOT GRID ── */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════
       HEADER
    ══════════════════════════════════════════ */
#app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: all 0.3s ease;
}

#app-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black);
  padding: 12px 0;
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  text-decoration: none;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.1;
  display: block;
}

.logo-sub {
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--z400);
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

nav.desk-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.desk-nav a {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--black);
  text-decoration: none;
  transition: 0.2s;
}

nav.desk-nav a:hover {
  text-decoration: none;
  scale: 1.3;
  transition: 0.2s;
}

/* hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--black);
}

/* ── MOBILE DRAWER ── */
#mob-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  flex-direction: column;
  gap: 0;
}

#mob-nav.open {
  display: flex;
}

#mob-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid var(--z100);
}

#mob-nav a:hover {
  background: var(--z50);
}

/* ══════════════════════════════════════════
       HERO
    ══════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 7fr 5fr;
    gap: 64px;
  }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--z400);
  margin-bottom: 14px;
}

.hero-h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-h1 strong {
  font-weight: 900;
  text-decoration: none;
  text-decoration-thickness: 2px;
}

.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 16px;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 14px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  padding: 14px 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--z50);
}

/* hero image */
.hero-img-wrap {
  display: flex;
  justify-content: center;
}

.hero-img-outer {
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--black);
  position: relative;
  display: inline-block;
}

.hero-img-inner {
  width: 260px;
  height: 325px;
  overflow: hidden;
  border: 1px solid var(--black);
  transition: filter 0.5s;
}

.hero-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s;
}

.hero-img-inner:hover img {
  transform: scale(1.03);
}

.hero-img-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 3px 9px;
}

@media (max-width: 480px) {
  .hero-img-inner {
    width: 220px;
    height: 275px;
  }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

.scroll-hint a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--z400);
  transition: color 0.2s;
}

.scroll-hint a:hover {
  color: var(--black);
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.bounce {
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ══════════════════════════════════════════
       SECTION COMMONS
    ══════════════════════════════════════════ */
section {
  padding: 88px 24px;
  border-top: 1px solid var(--black);
}

.section-inner {
  max-width: 1152px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--z400);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--black);
}

.sec-header {
  margin-bottom: 56px;
}

/* header row with horizontal rule */
.sec-header-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 56px;
}

.sec-header-row .hr-line {
  display: none;
}

.sec-header-row .right-lbl {
  display: none;
}

@media (min-width: 768px) {
  .sec-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .sec-header-row .hr-line {
    display: block;
    flex: 1;
    height: 1px;
    background: var(--black);
    margin: 0 28px 13px;
  }

  .sec-header-row .right-lbl {
    display: block;
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--z400);
    margin-bottom: 7px;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════
       ABOUT
    ══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
  }
}

.about-bio {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 16px;
  margin-bottom: 20px;
}

.academic-card {
  background: var(--z50);
  border: 1px solid var(--black);
  padding: 22px;
  position: relative;
  margin-bottom: 28px;
}

.academic-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 2px 7px;
}

.academic-icon {
  margin-bottom: 14px;
}

.academic-uni {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.academic-deg {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--z600);
  margin-bottom: 12px;
}

.academic-desc {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--z600);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  background: var(--white);
  border: 1px solid var(--black);
  gap: 8px;
  transition: background 0.2s;
}

.cert-item:hover {
  background: var(--z50);
}

.cert-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.cert-name {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-year {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--z400);
  white-space: nowrap;
}

.divider {
  border: none;
  border-top: 1px solid var(--black);
  margin: 56px 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ach-card {
  background: var(--z50);
  border: 1px solid var(--black);
  padding: 28px;
  position: relative;
  transition: background 0.2s;
}

.ach-card:hover {
  background: var(--z100);
}

.ach-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-meta {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--z400);
  margin-bottom: 3px;
}

.ach-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-right: 44px;
}

.ach-desc {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--z600);
}

/* ══════════════════════════════════════════
       SKILLS
    ══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-card {
  background: var(--z50);
  border: 1px solid var(--black);
  padding: 22px;
  transition: background 0.2s;
}

.skill-card:hover {
  background: var(--z100);
}

.skill-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.skill-domain {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--z400);
}

.skill-cat {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-list li {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--z600);
}

.competencies-box {
  background: var(--white);
  border: 1px solid var(--black);
  padding: 28px;
}

.comp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.comp-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .comp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .comp-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.comp-item {
  background: var(--z50);
  border: 1px solid var(--black);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  text-align: center;
  transition: background 0.2s;
}

.comp-item:hover {
  background: var(--z100);
}

.comp-num {
  font-family: var(--mono);
  font-size: 0.47rem;
  color: var(--z400);
  font-weight: 700;
  margin-bottom: 6px;
}

.comp-lbl {
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
       PROCESS
    ══════════════════════════════════════════ */
.process-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 16px;
  max-width: 620px;
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-card {
  background: var(--z50);
  border: 1px solid var(--black);
  padding: 26px 22px;
  position: relative;
  transition: background 0.2s;
}

.process-card:hover {
  background: var(--z100);
}

.process-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--z300, var(--z400));
  line-height: 1;
  margin-bottom: 16px;
}

.process-title {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.process-desc {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--z600);
}

.process-connector {
  display: none;
}

@media (min-width: 1024px) {
  .process-grid {
    position: relative;
  }
  .process-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -20px;
    width: 20px;
    height: 1px;
    background: var(--black);
    opacity: 0.35;
  }
}

/* ══════════════════════════════════════════
       PROJECTS
    ══════════════════════════════════════════ */
.projects-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 16px;
  max-width: 620px;
  margin-bottom: 56px;
}

/* app icon grid */
.app-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 16px 0 56px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.app-item:hover .app-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.app-item:hover .app-label {
  opacity: 1;
}

.app-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--black);
  text-align: center;
  opacity: 0.6;
  transition: opacity 0.25s;
}

@media (max-width: 480px) {
  .app-grid {
    gap: 28px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
    border-radius: 8px;
  }
}

/* ── MODAL ── */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#modal-overlay.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--white);
  border: 2px solid var(--black);
  width: 100%;
  max-width: 620px;
  z-index: 1;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--z50);
  border-bottom: 1px solid var(--black);
  padding: 14px 22px;
  flex-shrink: 0;
}

.modal-head-lbl {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--z600);
}

.modal-close {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 5px 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--btn-hover);
}

.modal-body {
  overflow-y: auto;
  padding: 28px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-subtitle {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--z400);
  margin-bottom: 3px;
}

.modal-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-tagline {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--z600);
  margin-bottom: 22px;
}

.modal-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--z700);
  border-left: 2px solid var(--black);
  padding-left: 14px;
  margin-bottom: 14px;
}

.modal-details {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--z600);
  background: var(--z50);
  border: 1px solid var(--z100);
  padding: 14px;
  margin-bottom: 28px;
}

.modal-hl-lbl {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--z400);
  margin-bottom: 12px;
}

.modal-hl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 480px) {
  .modal-hl-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hl-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.hl-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hl-text {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--z700);
}

.modal-footer {
  border-top: 1px solid var(--black);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.modal-launch {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 11px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
  cursor: pointer;
}

.modal-launch:hover {
  background: var(--btn-hover);
}

/* ══════════════════════════════════════════
       LEADERSHIP TIMELINE
    ══════════════════════════════════════════ */
.timeline {
  border-left: 1px solid var(--black);
  padding-left: 28px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.tl-item {
  position: relative;
}

.tl-node {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tl-item:hover .tl-node {
  background: var(--black);
}

.tl-dot {
  width: 5px;
  height: 5px;
  background: var(--black);
  transition: background 0.2s;
}

.tl-item:hover .tl-dot {
  background: var(--white);
}

.tl-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--z400);
  margin-bottom: 8px;
}

.tl-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.tl-org {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.tl-org a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tl-details {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--z700);
  background: var(--z50);
  border: 1px solid var(--z100);
  padding: 14px;
}

/* ══════════════════════════════════════════
       FOOTER
    ══════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 2px solid var(--black);
  padding: 80px 24px 28px;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
}

.footer-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--z400);
  margin-bottom: 14px;
}

.footer-h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 14px;
}

.footer-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--z600);
  margin-bottom: 20px;
}

.footer-email {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 7px 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s;
}

.footer-email:hover {
  background: var(--z100);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-link {
  width: 52px;
  height: 52px;
  background: var(--z50);
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--black);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--z200);
  transform: translateY(-2px);
}

.footer-base {
  border-top: 1px solid var(--black);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer-base {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name-text {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.48rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--z400);
}

/* ══════════════════════════════════════════
       FADE-IN ANIMATION
    ══════════════════════════════════════════ */
.fi {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fi.vis {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
       PRINT
    ══════════════════════════════════════════ */
@media print {
  #app-header,
  #mob-nav,
  .scroll-hint,
  .hero-ctas,
  #modal-overlay,
  footer .social-links,
  .app-grid {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  section {
    padding: 20px 12px;
  }

  #hero {
    min-height: auto;
    padding: 20px 12px;
  }

  .hero-img-outer {
    display: none;
  }
}

/* ══════════════════════════════════════════
       MOBILE - global tweaks ≤ 768px
    ══════════════════════════════════════════ */
@media (max-width: 768px) {
  nav.desk-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  section {
    padding: 64px 20px;
  }

  .sec-header {
    margin-bottom: 40px;
  }

  .sec-header-row {
    margin-bottom: 40px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .skill-card {
    padding: 16px;
  }

  .timeline {
    padding-left: 20px;
    margin-left: 8px;
  }

  .tl-node {
    left: -29px;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 88px 16px 64px;
  }

  .hero-h1 {
    font-size: 2.1rem;
  }

  .hero-quote {
    font-size: 0.9rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  section {
    padding: 52px 16px;
  }

  .about-grid {
    gap: 36px;
  }

  .skills-grid {
    gap: 12px;
  }

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

  .app-grid {
    gap: 24px;
  }

  .modal-box {
    max-height: 95svh;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .footer-h3 {
    font-size: 1.5rem;
  }
}

/* ══════════════════════════════════════════
   THEME TOKENS (light / dark)
══════════════════════════════════════════ */
:root {
  --btn-hover: #333;
  --header-bg: rgba(250, 250, 250, 0.93);
  --dot: #d4d4d8;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --black: #fafafa;
  --white: #0a0a0a;
  --z50: #161618;
  --z100: #27272a;
  --z200: #3f3f46;
  --z400: #a1a1aa;
  --z600: #b4b4bb;
  --z700: #d4d4d8;
  --btn-hover: #d4d4d8;
  --header-bg: rgba(10, 10, 10, 0.93);
  --dot: #3f3f46;
}

/* ══════════════════════════════════════════
   ACCESSIBILITY + TRANSITIONS
══════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}
nav.desk-nav a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
#mob-nav a[aria-current="true"] {
  background: var(--z50);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--black);
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.theme-btn:hover {
  background: var(--z100);
}
.theme-btn .ico-sun,
:root[data-theme="dark"] .theme-btn .ico-moon {
  display: none;
}
:root[data-theme="dark"] .theme-btn .ico-sun {
  display: block;
}
@media (min-width: 769px) and (max-width: 960px) {
  nav.desk-nav {
    gap: 16px;
  }
}
.modal-close {
  padding: 10px 16px;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
  }
}
::view-transition-old(root) {
  animation: 0.25s ease both vt-out;
}
::view-transition-new(root) {
  animation: 0.25s ease both vt-in;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 0.6s ease both;
}
.hero-inner > div > .rise:nth-child(2) {
  animation-delay: 0.08s;
}
.hero-inner > div > .rise:nth-child(3) {
  animation-delay: 0.16s;
}
.hero-inner > div > .rise:nth-child(4) {
  animation-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .fi {
    opacity: 1;
    transform: none;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════
   HERO (updated copy)
══════════════════════════════════════════ */
.hero-h1 {
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 16px;
  max-width: 560px;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════
   SECTIONS / LISTS
══════════════════════════════════════════ */
ol.timeline,
ol.process-grid {
  list-style: none;
}
.about-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.pwa-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--black);
  color: var(--white);
  padding: 2px 6px;
  line-height: 1.6;
}
.more-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════
   CASE STUDIES
══════════════════════════════════════════ */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 72px;
}
.case {
  border: 1px solid var(--black);
  background: var(--z50);
}
.case-head {
  padding: 32px;
  border-bottom: 1px solid var(--black);
}
.case-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--z400);
  margin-bottom: 8px;
}
.case-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 12px;
}
.case-lead {
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.7;
  color: var(--z600);
  border-left: 2px solid var(--black);
  padding-left: 14px;
  max-width: 680px;
  margin-bottom: 22px;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.case-meta dt {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--z400);
  margin-bottom: 3px;
}
.case-meta dd {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.5;
}
.case-cols {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--black);
}
@media (min-width: 900px) {
  .case-cols {
    grid-template-columns: 1fr 1fr;
  }
  .case-cols > div + div {
    border-left: 1px solid var(--black);
  }
}
.case-cols > div,
.case-block {
  padding: 28px 32px;
}

.case h4 {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.case-cols p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--z700);
}
.case-feats {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.case-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1918 / 970;
  object-fit: cover;
  border: 1px solid var(--black);
  background: var(--z100);
}
.shot figcaption {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--z600);
  margin-top: 8px;
}
.shot.is-missing img {
  display: none;
}
.shot.is-missing::before {
  content: "Screenshot coming soon";
  display: grid;
  place-items: center;
  aspect-ratio: 1918 / 970;
  border: 1px dashed var(--black);
  background: var(--z100);
  color: var(--z600);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.case-foot {
  padding: 20px 32px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .case-head {
    padding: 24px 20px;
  }
  .case-cols > div,
  .case-block {
    padding: 22px 20px;
  }
  .case-foot {
    padding: 16px 20px;
  }
  .case-foot .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── 404 ── */
.nf {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.nf-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.nf-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.nf h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 14px;
}
.nf p {
  color: var(--z600);
  line-height: 1.7;
  margin-bottom: 32px;
}
.nf .hero-ctas {
  justify-content: center;
}

/* ── Screenshot carousel (mobile) ── */
@media (max-width: 768px) {
  .case-cols {
    border-bottom: 0;
  }
  .case-block {
    padding-top: 0;
  }
}
.shot-dots {
  display: none;
}
@media (max-width: 768px) {
  .case-shots {
    display: flex;
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .case-shots::-webkit-scrollbar {
    display: none;
  }
  .case-shots .shot {
    flex: 0 0 100%;
    scroll-snap-align: center;
    cursor: pointer;
  }
  .shot-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
  }
  .shot-dots button {
    width: 28px;
    height: 28px;
    background: none;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .shot-dots button::after {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid var(--black);
    border-radius: 50%;
  }
  .shot-dots button[aria-current="true"]::after {
    background: var(--black);
  }
}

/* ── Screenshot lightbox ── */
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.shot.is-missing .shot-open {
  display: none;
}
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
}
#lightbox.open {
  display: flex;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}
.lb-fig {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
}
.lb-fig img {
  width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  border: 1px solid #fafafa;
  background: #0a0a0a;
}
.lb-cap {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fafafa;
}
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #fafafa;
  color: #0a0a0a;
  border: 0;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  font-size: 1.2rem;
  background: #fafafa;
  color: #0a0a0a;
  border: 0;
  cursor: pointer;
}
.lb-prev {
  left: 12px;
}
.lb-next {
  right: 12px;
}
#lightbox.single .lb-nav {
  display: none;
}
#lightbox :focus-visible {
  outline-color: #fafafa;
}
