/* ===================================================
   DESIGN TOKENS - LIGHT MODE
   =================================================== */
:root {
  --bg:           #F8F8FA;
  --surface:      #FFFFFF;
  --surface-2:    #F0F0F5;
  --surface-3:    #E4E4EC;
  --border:       rgba(0, 0, 0, 0.09);
  --border-accent:rgba(4, 120, 87, 0.30);

  --accent:       #047857;
  --accent-dim:   rgba(4, 120, 87, 0.10);
  --accent-glow:  rgba(4, 120, 87, 0.04);

  --text-1:       #0A0A12;
  --text-2:       #44445A;
  --text-3:       #636378;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --max-w:        1200px;
  --nav-h:        64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===================================================
   ACCESSIBILITY UTILITIES
   =================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ===================================================
   SCROLL REVEAL
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-ghost:hover { background: var(--accent-dim); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

.hero-link {
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  transition: color 0.2s, text-decoration-color 0.2s;
  letter-spacing: 0.02em;
  align-self: center;
  text-decoration: underline;
  text-decoration-color: rgba(98, 98, 122, 0.35);
  text-underline-offset: 3px;
}
.hero-link:hover {
  color: var(--accent);
  text-decoration-color: rgba(4, 120, 87, 0.5);
}
.hero-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* LinkedIn icon button variant */
.hero-link--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
.hero-link--icon:hover {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hero-link--icon:focus-visible { border-radius: 50%; }
.hero-link--icon svg { display: block; }


/* ===================================================
   SECTION TITLES
   =================================================== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 3rem;
}
.title-accent { color: var(--accent); }

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 248, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px -6px rgba(4, 120, 87, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-right: auto;
}
.nav-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(4, 120, 87, 0.6);
}
.nav-logo:focus-visible { border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-1); }
.nav-link.is-active {
  color: var(--text-1);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-mobile-link.is-active { color: var(--accent); font-weight: 500; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.07) 1px, transparent 0);
  background-size: 44px 44px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 75% 50%, rgba(4, 120, 87, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 5rem 0;
  display: grid;
  grid-template-columns: 1fr clamp(360px, 40vw, 480px);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--nav-h));
}

/* Hero Left */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.hero-role {
  margin-top: -0.6rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text-1);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-top: 0.25rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-2);
  max-width: 42ch;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.5rem;
}
.meta-sep { color: var(--text-3); }

/* Hero Right - Portrait */
.hero-right {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Ghost monogram watermark behind the portrait photo */
.hero-portrait::before {
  content: 'SK';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(4, 120, 87, 0.07);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.hero-photo {
  width: 100%;
  height: auto;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  mask-image: linear-gradient(to bottom, black 0%, black 62%, rgba(0,0,0,0.6) 80%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 62%, rgba(0,0,0,0.6) 80%, transparent 98%);
  position: relative;
  z-index: 1;
}

/* Floating metric badges on portrait */
.hero-stat-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(4, 120, 87, 0.20);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  min-width: 130px;
  z-index: 2;
}

.hero-stat-badge--users {
  bottom: 38%;
  left: -1.25rem;
}

.hero-stat-badge--revenue {
  bottom: 20%;
  right: 0.5rem;
}

.hsb-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hsb-number sup {
  font-size: 0.68em;
  vertical-align: super;
  letter-spacing: 0;
}

.hsb-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ===================================================
   ABOUT INTRO
   =================================================== */
.about-intro {
  padding-block: 6rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-2);
  max-width: 26ch;
  margin-top: -0.75rem;
}
.about-more { margin-top: 2.5rem; }

/* Intro card (home) - photo left, story right */
.about-intro:has(.intro-card) {
  padding-block: 5rem 4rem;
  background: var(--surface);
  border-bottom: none;
}
.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  max-width: 1440px;
  margin-inline: auto;
}
.intro-media {
  position: relative;
  min-height: 380px;
}
.intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.intro-body {
  display: flex;
  flex-direction: column;
}
.intro-head {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem clamp(1.5rem, 3vw, 2.5rem) 2rem;
}
.intro-kicker {
  position: relative;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 0.6rem;
}
/* dash that bridges the photo edge into the kicker */
.intro-kicker::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 0.75rem);
  width: clamp(2.5rem, 4vw, 3.5rem);
  height: 1px;
  background: var(--text-1);
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
  max-width: 22ch;
}
.intro-text {
  background: var(--surface-2);
  padding: 2.25rem clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}
.intro-text p { max-width: 62ch; }
.intro-hi {
  font-size: 0.85rem;
  color: var(--text-3);
}
.intro-coffee {
  font-style: italic;
  color: var(--accent);
}
.intro-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.intro-btn {
  border-radius: 999px;
  padding: 0.95rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===================================================
   PAGE HEADER (About / Portfolio screens)
   =================================================== */
.page-header {
  padding-block: calc(var(--nav-h) + 4.5rem) 1rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
.portfolio-section--page {
  padding-top: calc(var(--nav-h) + 4.5rem);
}

/* ===================================================
   MY WORK (home)
   =================================================== */
.work-section {
  padding-block: 7rem 6rem;
  background: var(--surface);
}
.work-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.work-kicker {
  display: inline-block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-2);
  padding-left: 0.9rem;
  border-left: 1px solid var(--text-3);
  margin-bottom: 0.9rem;
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-1);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
  max-width: 980px;
  margin-inline: auto;
}
.work-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.work-text {
  display: flex;
  flex-direction: column;
  max-width: 32ch;
}
.work-row .work-text { justify-self: end; align-items: flex-end; text-align: right; }
.work-row--flip { grid-template-columns: 1.15fr 1fr; }
.work-row--flip .work-text { order: 2; justify-self: start; align-items: flex-start; text-align: left; }
.work-row--flip .work-media { order: 1; }

.work-name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin-bottom: 1.75rem;
}
.work-desc {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--text-3);
  text-wrap: balance;
}
.work-link {
  align-self: center;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.work-link:hover { opacity: 0.75; }

.work-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
a.work-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Full-width promo image: keep its own ratio so nothing is cropped */
.work-media--wide { aspect-ratio: 2752 / 1536; }
.work-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  padding: 2.5rem;
}
.work-media--logo img {
  width: auto;
  height: auto;
  max-width: 65%;
  max-height: 70%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.work-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.work-more .btn { text-transform: uppercase; letter-spacing: 0.08em; padding: 0.8rem 2rem; }

/* ===================================================
   PROCESS (home)
   =================================================== */
.process-section {
  --process-bg:    #06382A;
  --process-ink:   #FFFFFF;
  --process-muted: rgba(255, 255, 255, 0.72);
  --process-icon:  #6EE7B7;
  --process-line:  rgba(255, 255, 255, 0.28);
  --process-hub:   clamp(200px, 22vw, 260px);
  --process-gap:   3rem;

  padding-block: 7rem 6.5rem;
  background: var(--process-bg);
  color: var(--process-ink);
  overflow: hidden;
}
.process-header {
  text-align: center;
  margin-bottom: 4rem;
}
.process-kicker {
  display: inline-block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--process-muted);
  padding-left: 0.9rem;
  border-left: 1px solid var(--process-muted);
  margin-bottom: 0.9rem;
}
.process-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.process-diagram {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr var(--process-hub) 1fr;
  grid-template-areas:
    ".    top    ."
    "left hub    right"
    ".    bottom .";
  gap: var(--process-gap);
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin-inline: auto;
}

.process-step {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 30ch;
}
/* Faded step number behind each step */
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.process-step--top    { grid-area: top; }
.process-step--bottom { grid-area: bottom; }
.process-step--top,
.process-step--bottom { max-width: 36ch; }
.process-step--left,
.process-step--right  { flex-direction: row; gap: 1.25rem; }
.process-step--left   { grid-area: left;  justify-self: end;   text-align: right; }
.process-step--right  { grid-area: right; justify-self: start; text-align: left; }

.process-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.process-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--process-muted);
  text-wrap: balance;
}
.process-icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--process-icon);
}
.process-icon svg { width: 100%; height: 100%; }
.process-step--top .process-icon    { margin-top: 1.25rem; }
.process-step--bottom .process-icon { margin-bottom: 1.25rem; }

.process-hub {
  grid-area: hub;
  position: relative;
  width: var(--process-hub);
  aspect-ratio: 1;
}
.process-hub img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--process-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
/* Connector lines from the hub out to each step */
.process-hub::before,
.process-hub::after {
  content: "";
  position: absolute;
  background: var(--process-line);
}
.process-hub::before {
  left: 50%;
  width: 1px;
  top: calc(var(--process-gap) * -1);
  bottom: calc(var(--process-gap) * -1);
}
.process-hub::after {
  top: 50%;
  height: 1px;
  left: calc(var(--process-gap) * -1);
  right: calc(var(--process-gap) * -1);
}

.stmt-accent {
  color: var(--accent);
  font-weight: 500;
}
.stmt-em {
  font-style: italic;
  color: var(--text-1);
  font-weight: 400;
}

/* ===================================================
   EXPERIENCE TIMELINE
   =================================================== */
.experience {
  padding-block: 6rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.timeline-entry:last-child { border-bottom: 1px solid var(--border); }

.tl-meta {
  padding-top: 0.25rem;
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.tl-logo {
  display: block;
  width: auto;
  max-width: 280px;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  margin-bottom: 0.5rem;
}
.tl-location {
  font-size: 0.78rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.tl-context {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.tl-bullets li {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* Case-study toggle button */
.tl-case-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-case-toggle-text {
  text-decoration: underline;
  text-decoration-color: rgba(4, 120, 87, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.tl-case-toggle:hover .tl-case-toggle-text { text-decoration-color: rgba(4, 120, 87, 0.7); }
.tl-case-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.tl-case-toggle:hover .tl-case-chevron { transform: translateX(2px); }

/* ===================================================
   CASE STUDY PAGE (document layout)
   =================================================== */
.cs-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.cs-hero {
  background: var(--surface-2);
  padding-block: calc(var(--nav-h) + 6rem) 6rem;
}
.cs-kicker {
  position: relative;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text-2);
  margin-bottom: 0.25rem;
}
.cs-kicker::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + 1rem);
  width: 3rem;
  height: 2px;
  background: var(--text-1);
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 0.9rem;
}
.cs-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.cs-body {
  background: var(--surface);
  padding-block: 3.5rem 5rem;
}
.cs-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}
.cs-shot--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  background: var(--surface);
}
.cs-shot--logo img {
  max-width: 45%;
  max-height: 70%;
  object-fit: contain;
}
.cs-role {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-1);
  margin-bottom: 0.6rem;
}
.cs-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-3);
  margin-bottom: 2.5rem;
}
.cs-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 2.75rem 0 0.9rem;
}
.cs-label::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.cs-list,
.cs-sublist {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cs-list li,
.cs-sublist li,
.cs-steps > li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
}
.cs-list li::marker { color: var(--accent); }
.cs-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cs-steps > li::marker { font-weight: 700; color: var(--text-1); }
.cs-steps strong { color: var(--text-1); font-weight: 700; }
.cs-sublist {
  list-style: circle;
  margin-top: 0.35rem;
}

.cs-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(98, 98, 122, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cs-back:hover { color: var(--accent); }

/* ===================================================
   EDUCATION STRIP
   =================================================== */
.education {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem 3rem;
}

.edu-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.edu-logo {
  display: block;
  width: auto;
  max-width: 160px;
  max-height: 88px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
  margin-bottom: 0.75rem;
}

.tools-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.edu-strip {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.edu-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

.edu-item { flex: 1; min-width: 200px; }
.edu-degree {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}
.edu-school {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.15rem;
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
}

/* ===================================================
   SKILLS
   =================================================== */
.skills-section {
  padding-block: 6rem;
}

.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skill-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  align-items: start;
}
.skills-groups .skill-group:last-child { border-bottom: none; }

.sg-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 0.35rem;
}

.sg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 400;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.pill-accent {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}
.pill-accent:hover {
  background: rgba(4, 120, 87, 0.16);
}

/* ===================================================
   TOOLS ZONE
   =================================================== */
.tools-zone {
  padding-block: 0 2rem;
  border-bottom: 1px solid var(--border);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: opacity 0.2s;
}
.tool-item:hover { opacity: 0.7; }

.tool-logo {
  display: block;
  max-height: 128px;
  max-width: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* White-background logos — blend out the white */
.tool-logo--screen {
  mix-blend-mode: multiply;
  max-height: 104px;
  max-width: 320px;
}

/* Notion — white badge so the black N pops */
.tool-logo--invert {
  filter: none;
  max-height: 128px;
  max-width: 128px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 16px;
}

/* App icons (Claude Code, Codex) — white badge */
.tool-logo--app {
  max-height: 128px;
  max-width: 128px;
  border-radius: 28px;
  background: #FFFFFF;
  padding: 8px;
}

/* Wide SVG wordmarks (ClickUp) */
.tool-logo--wordmark { width: 180px; max-width: 100%; }

/* Confluence */
.tool-logo--boost { filter: none; }

/* Figma: white bg logo, blend out white */
.tool-logo--figma {
  mix-blend-mode: multiply;
  max-height: 104px;
  max-width: 320px;
  object-fit: contain;
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  text-align: center;
}

/* ===================================================
   RECOGNITION
   =================================================== */
.recognition {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3.5rem;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rec-item {
  background: var(--surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}
.rec-item:hover {
  background: var(--surface-2);
}

.rec-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: 0.45rem;
}
.rec-year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  opacity: 0.8;
}

/* ===================================================
   PORTFOLIO
   =================================================== */
.portfolio-section {
  padding-block: 6rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.portfolio-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.portfolio-media--logo img {
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.portfolio-body {
  padding: 1.75rem;
}

.portfolio-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.portfolio-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.portfolio-body .tl-case-toggle {
  margin-top: 0;
}

/* ===================================================
   ABOUT PAGE
   =================================================== */
.abt-hero {
  padding-block: calc(var(--nav-h) + 5rem) 5rem;
  background: var(--surface-2);
}
.abt-kicker,
.abt-head-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-style: italic;
  color: var(--text-3);
}
.abt-kicker::before,
.abt-head-kicker::before {
  content: '';
  flex: none;
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.abt-kicker {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.abt-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-1);
  padding-left: 3rem;
}

/* So this is me */
.abt-me {
  padding-block: 6rem 3rem;
  background: var(--surface);
}
.abt-me-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  grid-template-areas:
    "photo head"
    "photo text";
  column-gap: 2.5rem;
  max-width: 900px;
  margin-inline: auto;
}
/* Tinted panel that sits behind the lower half of the photo and the text */
.abt-me-card::before {
  content: '';
  position: absolute;
  inset: 7rem 0 0 0;
  z-index: 0;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}
.abt-me-photo {
  grid-area: photo;
  position: relative;
  z-index: 1;
  align-self: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(6, 56, 42, 0.45);
}
.abt-me-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.abt-me-head {
  grid-area: head;
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  min-height: 7rem;
}
.abt-me-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-style: italic;
  color: var(--text-3);
  margin-left: -2.5rem;
}
.abt-me-kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
}
.abt-me-name {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-1);
}
.abt-me-text {
  grid-area: text;
  position: relative;
  z-index: 1;
  padding: 1.75rem 2rem 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* Section scaffolding */
.abt-section {
  padding-block: 6rem;
  background: var(--surface);
}
.abt-section--tint { background: var(--surface-2); }
.abt-head {
  max-width: 900px;
  margin: 0 auto 3.5rem;
}
.abt-head-kicker { font-size: 0.98rem; }
.abt-head-title {
  margin-top: 0.4rem;
  padding-left: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
}

/* Skills */
.abt-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 2.5rem;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 3rem;
}
.abt-skill-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.abt-skill-icon svg { width: 100%; height: 100%; }
.abt-skill-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
}
.abt-skill-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
}
.abt-section .tools-zone {
  max-width: 900px;
  margin: 4.5rem auto 0;
  padding-left: 3rem;
}
.abt-section .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2rem 1.5rem;
  justify-items: center;
}
.abt-section .tool-logo {
  max-width: 100%;
  max-height: 88px;
}

/* Education */
.abt-edu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  max-width: 900px;
  margin-inline: auto;
}
.abt-edu-item {
  position: relative;
  padding-left: 3rem;
}
.abt-edu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.05rem;
  width: 2rem;
  height: 1px;
  background: var(--text-3);
}
.abt-edu-year,
.abt-exp-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}
.abt-edu-name {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}
.abt-edu-detail {
  margin-top: 0.2rem;
  color: var(--text-3);
}

/* Experience */
.abt-exp {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 900px;
  margin-inline: auto;
}
.abt-exp-item {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
}
.abt-exp-year {
  text-align: right;
  padding-top: 0.3rem;
}
.abt-exp-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
}
.abt-exp-name span {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-3);
}
.abt-exp-role {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--text-3);
}
.abt-exp-desc {
  margin-top: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}
.abt-exp-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.abt-exp-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-2);
  line-height: 1.65;
}
.abt-exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.abt-exp-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(4, 120, 87, 0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.abt-exp-link:hover { text-decoration-color: var(--accent); }

/* ===================================================
   HIRE ME (home)
   =================================================== */
.hire-section {
  padding-block: 7rem 6rem;
  background: var(--surface-2);
}
.hire-header {
  text-align: center;
  margin-bottom: 4rem;
}
.hire-kicker {
  display: inline-block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-3);
  padding-left: 0.9rem;
  border-left: 1px solid var(--text-3);
  margin-bottom: 0.9rem;
}
.hire-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-1);
}

.hire-body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px) 1fr;
  align-items: start;
  gap: 1.5rem;
}
.hire-label {
  justify-self: end;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  max-width: 11ch;
  color: var(--text-1);
}

.hire-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -18px rgba(6, 56, 42, 0.35);
  display: grid;
}
/* Panels share one grid cell so the card keeps the taller panel's height */
.hire-panel {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem 4.5rem;
  min-height: 250px;
}
.hire-panel[hidden] { display: flex; visibility: hidden; }
.hire-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
}
.hire-item-meta {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
}
.hire-item-desc {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
}
.hire-card-icon {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  color: var(--accent);
}
.hire-card-icon svg { width: 100%; height: 100%; overflow: visible; }

/* Duotone icons: soft accent fill under the stroke */
.hire-section .icon-fill { fill: currentColor; fill-opacity: 0.14; }
.hire-section .steam,
.hire-section .sparkle,
.hire-section .trophy { transform-box: fill-box; }
.hire-section .sparkle { transform-origin: center; opacity: 0; }
.hire-section .trophy { transform-origin: 50% 100%; }

/* Animate the card icon and the selected or hovered tab */
.hire-card-icon .steam,
.hire-tab[aria-selected="true"] .steam,
.hire-tab:hover .steam {
  animation: hire-steam 2.4s ease-in-out infinite;
}
.hire-card-icon .steam:nth-child(2),
.hire-tab .steam:nth-child(2) { animation-delay: 0.4s; }
.hire-card-icon .steam:nth-child(3),
.hire-tab .steam:nth-child(3) { animation-delay: 0.8s; }

.hire-card-icon .trophy,
.hire-tab[aria-selected="true"] .trophy,
.hire-tab:hover .trophy {
  animation: hire-trophy 3s ease-in-out infinite;
}
.hire-card-icon .sparkle,
.hire-tab[aria-selected="true"] .sparkle,
.hire-tab:hover .sparkle {
  animation: hire-sparkle 1.8s ease-in-out infinite;
}
.hire-card-icon .sparkle + .sparkle,
.hire-tab .sparkle + .sparkle { animation-delay: 0.9s; }

@keyframes hire-steam {
  0%   { transform: translateY(2px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(-3px); opacity: 0; }
}
@keyframes hire-trophy {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(-7deg); }
  80% { transform: rotate(6deg); }
  90% { transform: rotate(-3deg); }
}
@keyframes hire-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0); }
  50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hire-section .steam,
  .hire-section .trophy,
  .hire-section .sparkle { animation: none !important; }
  .hire-section .sparkle { opacity: 1; }
}

.hire-tablist {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hire-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hire-tab svg { width: 22px; height: 22px; overflow: visible; }
.hire-tab:hover { color: var(--accent); }
.hire-tab[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}
.hire-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hire-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.hire-cta .btn { text-transform: uppercase; letter-spacing: 0.08em; padding: 0.8rem 2.5rem; }

/* Hire me → envelope: on hover the button becomes an envelope,
   the flap opens and a letter rises out. Base rules hold the
   closing (reverse) timings; hover rules hold the opening ones. */
.hire-btn {
  --env-paper: #EAF3EF;
  --env-flap:  #DCEDE5;
  --env-ease:  cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  justify-content: center;
  width: 14rem;
  height: 3.25rem;
  perspective: 500px;
  transition: background-color 0.25s ease 0.5s, transform 0.15s;
}
.hire-btn:hover,
.hire-btn:focus-visible {
  background: var(--env-paper);
  transition: background-color 0.2s ease, transform 0.15s;
}
/* While open, extend the link's hit area up over the risen letter
   and flap, so moving onto "Let's talk" keeps it open and clickable. */
.hire-btn:hover::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 2.2rem;
}

.hire-btn-label {
  position: relative;
  z-index: 5;
  transition: opacity 0.25s ease 0.55s, transform 0.35s var(--env-ease) 0.55s;
}
.hire-btn:hover .hire-btn-label,
.hire-btn:focus-visible .hire-btn-label {
  opacity: 0;
  transform: translateY(10px);
  transition-delay: 0s;
}

.hire-env {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease 0.55s;
}
.hire-btn:hover .hire-env,
.hire-btn:focus-visible .hire-env {
  opacity: 1;
  transition-delay: 0s;
}

.hire-env svg {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: visible;
}
.hire-env-fold {
  fill: none;
  stroke: var(--border-accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hire-env-paper      { fill: var(--env-paper); }
.hire-env-flap-paper { fill: var(--env-flap); }

.hire-env-pocket { top: 0; height: 100%; z-index: 3; }

.hire-env-flap {
  top: 0;
  height: 100%;
  z-index: 4;
  transform-origin: 50% 0;
  transition: transform 0.32s var(--env-ease) 0.22s, z-index 0s linear 0.38s;
}
.hire-btn:hover .hire-env-flap,
.hire-btn:focus-visible .hire-env-flap {
  z-index: 0;
  transform: rotateX(180deg);
  transition: transform 0.38s var(--env-ease) 0.1s, z-index 0s linear 0.28s;
}

.hire-env-letter {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 18%;
  height: 2.6rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 -4px 14px rgba(4, 120, 87, 0.10);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1);
}
/* faint "handwriting" lines under the greeting */
.hire-env-letter::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 1.55rem;
  height: 0.9rem;
  background: repeating-linear-gradient(
    to bottom,
    var(--surface-3) 0 1px,
    transparent 1px 5px
  );
}
.hire-btn:hover .hire-env-letter,
.hire-btn:focus-visible .hire-env-letter {
  transform: translateY(-2.6rem);
  transition: transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) 0.38s;
}

.hire-env-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.hire-btn:hover .hire-env-arrow,
.hire-btn:focus-visible .hire-env-arrow {
  animation: hire-arrow-nudge 1.4s ease-in-out 0.95s infinite;
}
@keyframes hire-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hire-env { display: none; }
  .hire-btn-label,
  .hire-btn:hover .hire-btn-label,
  .hire-btn:focus-visible .hire-btn-label { opacity: 1; transform: none; transition: none; }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding-block: 5rem 3rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(4, 120, 87, 0.5) 30%, rgba(4, 120, 87, 0.5) 70%, transparent 100%);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.6rem;
}
.footer-sub {
  font-size: 0.95rem;
  color: var(--text-2);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 16px -6px rgba(4, 120, 87, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(4, 120, 87, 0.6);
}
.footer-linkedin:focus-visible { border-radius: 50%; }
.footer-email {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: var(--text-3);
  text-decoration: underline;
  text-decoration-color: rgba(160, 160, 184, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer-bottom a:hover {
  color: var(--text-2);
  text-decoration-color: rgba(98, 98, 122, 0.5);
}

/* ===================================================
   HAMBURGER TOGGLE
   =================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 1px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1),
              opacity 0.2s,
              width 0.2s;
}
.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   MOBILE NAV MENU
   =================================================== */
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* Solid: a blur nested inside the blurred nav bar lets page text bleed through */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px -20px rgba(10, 10, 18, 0.25);
  padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  /* visibility keeps the closed menu's links out of the Tab order */
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1),
              transform 0.22s cubic-bezier(0.16,1,0.3,1),
              visibility 0s linear 0.22s;
  z-index: 99;
}
.nav.open .nav-mobile {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition-delay: 0s;
  transform: none;
}
.nav-mobile-link {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-2);
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--text-1); }
.nav-mobile-cta {
  margin-top: 1.25rem;
  align-self: flex-start;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.back-to-top:hover {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}
.back-to-top:active { transform: scale(0.95); }

/* ===================================================
   CASE STUDY: NEXT LINK
   =================================================== */
.cs-next {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 4rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  transition: border-color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-next:hover {
  border-color: var(--border-accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.cs-next-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cs-next-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
}
.cs-next-arrow {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-next:hover .cs-next-arrow { transform: translateX(6px); }

/* ===================================================
   MOTION & MICRO-INTERACTIONS
   =================================================== */
/* Hero: lines arrive one after another */
.hero-left > * {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-left > :nth-child(1) { animation-delay: 0.05s; }
.hero-left > :nth-child(2) { animation-delay: 0.15s; }
.hero-left > :nth-child(3) { animation-delay: 0.25s; }
.hero-left > :nth-child(4) { animation-delay: 0.35s; }
.hero-left > :nth-child(5) { animation-delay: 0.45s; }

/* Hero: stat badges drift gently */
.hero-stat-badge {
  animation: badge-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both,
             badge-float 6s ease-in-out 1.4s infinite;
}
.hero-stat-badge--revenue {
  animation-delay: 0.75s, 2.4s;
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Nav: underline slides in on hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { text-decoration: none; }
.nav-link.is-active::after { transform: scaleX(1); }

/* Buttons lift a touch */
.btn { transition: opacity 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s; }
.btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(4, 120, 87, 0.65); }
.btn-ghost:hover { transform: translateY(-2px); }

/* Home work rows: image zooms slightly, link arrow nudges */
.work-media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.work-row:hover .work-media img { transform: scale(1.03); }
.work-link::after,
.abt-exp-link::after {
  content: ' \2192';
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-link:hover::after,
.abt-exp-link:hover::after { transform: translateX(4px); }

/* Portfolio cards: image zoom on hover */
.portfolio-media img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-card:hover .portfolio-media img { transform: scale(1.04); }

/* About: skill cards respond to hover */
.abt-skill {
  margin: -1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: background 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.abt-skill:hover {
  background: var(--accent-glow);
  transform: translateY(-3px);
}
.abt-skill-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.abt-skill:hover .abt-skill-icon { transform: scale(1.18) rotate(-6deg); }

/* About: timeline dash grows in when revealed */
.abt-edu-item::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.abt-edu-item.visible::before { transform: scaleX(1); }

/* Tools: gentle lift instead of fade */
.tool-item { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.tool-item:hover { opacity: 1; transform: translateY(-4px); }

/* Footer LinkedIn badge: soft wiggle on hover */
.footer-linkedin:hover svg { animation: nudge 0.5s ease; }
@keyframes nudge {
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left > *,
  .hero-stat-badge,
  .footer-linkedin:hover svg { animation: none !important; }
  .abt-edu-item::before { transform: none; transition: none; }
  .work-row:hover .work-media img,
  .portfolio-card:hover .portfolio-media img { transform: none; }
}

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===================================================
   RESPONSIVE - TABLET (< 1024px)
   =================================================== */
@media (max-width: 1024px) {
  .abt-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 4rem 0;
    min-height: auto;
  }
  .hero-right {
    max-width: 380px;
    margin-inline: auto;
    align-self: auto;
  }
  .hero-stat-badge {
    display: none;
  }

  .timeline-entry { grid-template-columns: 160px 1fr; gap: 2rem; }

  .skill-group { grid-template-columns: 140px 1fr; }

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

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

/* ===================================================
   RESPONSIVE - MOBILE (< 768px)
   =================================================== */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-logo { width: 40px; height: 40px; font-size: 0.9rem; }
  .abt-hero { padding-block: calc(var(--nav-h) + 3rem) 3.5rem; }
  .abt-title,
  .abt-head-title,
  .abt-skills,
  .abt-section .tools-zone { padding-left: 0; }
  .abt-me { padding-block: 4rem 2rem; }
  .abt-me-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "head" "text";
  }
  .abt-me-card::before { inset: 40% 0 0 0; }
  .abt-me-head { min-height: 0; padding: 1.5rem 1.5rem 0; }
  .abt-me-kicker { margin-left: 0; }
  .abt-me-text { padding: 1rem 1.5rem 2rem; }
  .abt-section { padding-block: 4rem; }
  .abt-head { margin-bottom: 2.5rem; }
  .abt-skills { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .abt-edu-item { padding-left: 2.5rem; }
  .abt-edu-item::before { width: 1.5rem; }
  .abt-exp-item { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .abt-exp-year { text-align: left; padding-top: 0; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { padding-block: 3rem 0; }
  .hero-name { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero-right { max-width: 280px; }
  .hero-photo { max-height: 60vh; }

  .hero-portrait::before {
    font-size: clamp(6rem, 40vw, 10rem);
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tl-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.875rem; align-items: center; }
  .tl-period, .tl-location { margin: 0; }
  .tl-logo { margin-bottom: 0; max-width: 180px; max-height: 56px; }


  .edu-strip { flex-direction: column; gap: 1.5rem; }
  .edu-divider { width: 100%; height: 1px; }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

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

  .section-title { margin-bottom: 2rem; }

  .experience, .skills-section { padding-block: 4rem; }
  .about-intro { padding-block: 4rem; }
  .portfolio-section { padding-block: 4rem; }

  .pill { min-height: 44px; display: inline-flex; align-items: center; }

  .about-intro:has(.intro-card) { padding-block: 0 3rem; }
  .intro-card { grid-template-columns: 1fr; }
  .intro-media { min-height: 0; aspect-ratio: 4 / 3; }
  .intro-kicker::before { display: none; }
  .intro-head { padding: 2rem 1.25rem 1.5rem; }
  .intro-text { padding: 1.75rem 1.25rem; }
  .intro-actions { justify-content: flex-start; }

  .cs-hero { padding-block: calc(var(--nav-h) + 3.5rem) 4.5rem; }
  .cs-kicker::before { display: none; }

  .work-section { padding-block: 4.5rem 4rem; }
  .work-header { margin-bottom: 3rem; }
  .work-row,
  .work-row--flip { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-row .work-text,
  .work-row--flip .work-text { order: 2; justify-self: stretch; align-items: flex-start; text-align: left; max-width: none; }
  .work-name { margin-bottom: 0.75rem; }
  .work-link { align-self: flex-start; margin-top: 1.25rem; }
  .work-row .work-media,
  .work-row--flip .work-media { order: 1; }

  .process-section { padding-block: 4.5rem 4rem; }
  .process-header { margin-bottom: 2.5rem; }
  .process-diagram {
    grid-template-columns: 1fr;
    grid-template-areas: "hub" "top" "right" "bottom" "left";
    gap: 2.25rem;
    justify-items: stretch;
  }
  .process-hub { --process-hub: 180px; justify-self: center; margin-bottom: 0.5rem; }
  .process-hub::before,
  .process-hub::after { display: none; }
  .process-step,
  .process-step--left,
  .process-step--right {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    justify-self: stretch;
    max-width: none;
  }
  .process-step::before { font-size: 6rem; left: auto; right: 0; transform: translateY(-50%); }
  .process-step--left .process-icon { order: -1; }
  .process-step--top,
  .process-step--bottom { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto 1fr; gap: 0 1rem; }
  .process-step--top .process-icon,
  .process-step--bottom .process-icon { margin: 0; grid-row: 1 / span 2; grid-column: 1; }
  .process-step--top .process-name,
  .process-step--top .process-desc,
  .process-step--bottom .process-name,
  .process-step--bottom .process-desc { grid-column: 2; }
  .hire-section { padding-block: 4.5rem 4rem; }
  .hire-header { margin-bottom: 2.5rem; }
  .hire-body { grid-template-columns: 1fr; gap: 1rem; }
  .hire-label { justify-self: start; margin-top: 0; text-align: left; max-width: none; }
  .page-header { padding-top: calc(var(--nav-h) + 3rem); }
  .portfolio-section--page { padding-top: calc(var(--nav-h) + 3rem); }
}

/* ===================================================
   SELECTION COLOR
   =================================================== */
::selection {
  background: rgba(4, 120, 87, 0.18);
  color: var(--text-1);
}

/* ===================================================
   SCROLLBAR (webkit)
   =================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
