/* ============================================================
   TOKENS — navy + sky + white, matching the FB logo
   ============================================================ */
:root {
  --navy:      #1b3454;
  --navy-dark: #122540;
  --sky:       #5aafd4;
  --sky-light: rgba(70,150,205,.14);
  --sky-mid:   rgba(70,150,205,.28);
  --white:     #ffffff;
  --off:       #f2f7fb;
  --text:      #1b3454;
  --muted:     #2d4b68;
  --sub:       #4e7290;
  --border:    rgba(27,52,84,.13);
  --border-s:  rgba(90,175,212,.35);

  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
textarea { resize: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 2px; }

/* ============================================================
   SHARED HELPERS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sec-label {
  font-family: var(--f-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}

.sec-h {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.sec-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

.sec-head { margin-bottom: 3.5rem; }

/* Scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.5rem 0;
  transition: padding .3s var(--ease), background .3s var(--ease),
              box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0);
}

.navbar.scrolled {
  padding: .85rem 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(27,52,84,.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0 auto;
}

.nav-links a {
  text-decoration: none;
  font-size: .825rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .03em;
  transition: color .2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover  { color: var(--navy); }
.nav-links a.active { color: var(--sky); border-bottom-color: var(--sky); }

/* CTA */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.35rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.btn-nav-cta:hover {
  background: var(--sky);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .3s, background .3s;
}
.nav-toggle.open span { background: var(--white); }

/* ============================================================
   MOBILE MENU — stays navy for strong contrast
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu a {
  font-family: var(--f-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--sky); }
.mobile-menu .btn-nav-cta {
  font-family: var(--f-sans);
  font-size: .75rem;
  background: var(--sky);
  margin-top: .5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 0;
  background-color: var(--white);
  background-image:
    radial-gradient(circle, rgba(70,150,205,.28) 1.5px, transparent 1.5px),
    linear-gradient(rgba(70,150,205,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,150,205,.05) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 28px 28px;
}

/* JS-driven gradient orbs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  width: 62%; height: 85%;
  top: -10%; right: -8%;
  background: radial-gradient(ellipse at center,
    rgba(60,140,195,.42) 0%,
    rgba(70,150,205,.18) 45%,
    transparent 70%);
  filter: blur(52px);
}

.hero-blob-2 {
  width: 44%; height: 62%;
  bottom: -10%; left: -6%;
  background: radial-gradient(ellipse at center,
    rgba(55,130,190,.28) 0%,
    rgba(90,175,212,.1) 55%,
    transparent 75%);
  filter: blur(68px);
}

/* Cursor spotlight */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90,175,212,.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .4s;
  transform: translate(-50%, -50%);
}

/* ghost mark */
.hero::after {
  content: 'FB';
  position: absolute;
  bottom: -2%; right: 3%;
  font-family: var(--f-serif);
  font-size: clamp(14rem, 28vw, 28rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(27,52,84,.055);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.02em;
}

.hero-body {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-location {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--f-serif);
  font-size: clamp(5.5rem, 14vw, 11.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 2.25rem;
}

.hero-tagline {
  font-family: var(--f-sans);
  font-size: clamp(.75rem, 1.4vw, .88rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
  margin-bottom: .75rem;
}

.hero-sub {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: .9rem 2rem;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn-primary:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: .9rem 2rem;
  border: 1.5px solid var(--border-s);
  color: var(--navy);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-outline:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: var(--sky-light);
}

/* stat strip */
.hero-stats {
  max-width: 1200px;
  margin: 4.5rem auto 0;
  width: 100%;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stat { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: 0 2.5rem; }
.stat:first-child { padding-left: 0; }

.stat-n {
  font-family: var(--f-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat-l {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.stat-rule { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: .4;
  z-index: 1;
}
.scroll-hint span {
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--navy), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: .3; transform: scaleY(1); }
  50%      { opacity: .9; transform: scaleY(1.08); }
}

@keyframes heroBlob {
  0%,100% { transform: scale(1) translate(0,0); }
  35%     { transform: scale(1.07) translate(-18px, 14px); }
  70%     { transform: scale(.93) translate(12px,-10px); }
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-11px); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes availPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(46,204,113,.22); }
  50%     { box-shadow: 0 0 0 7px rgba(46,204,113,.08); }
}

/* ============================================================
   HERO VISUAL — floating analytics card (large screens only)
   ============================================================ */
.hero-visual {
  position: absolute;
  right: max(2.5rem, calc((100vw - 1200px) / 2 + 3.5rem));
  top: 50%;
  transform: translateY(-58%);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: none;
}

@media (min-width: 1380px) { .hero-visual { display: block; } }

.hv-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border-s);
  box-shadow: 0 20px 60px rgba(27,52,84,.13), 0 4px 20px rgba(90,175,212,.12);
  padding: 1.5rem 1.75rem;
  width: 240px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.hv-card-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: .9rem;
}

.hv-avail {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}

.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  50%       { box-shadow: 0 0 0 5px rgba(46,204,113,0); }
}

.hv-avail-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}

.hv-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: .85rem;
}

.hv-curr-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.hv-curr-list li {
  font-size: .68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hv-curr-list li::before {
  content: '→';
  color: var(--sky);
  font-size: .65rem;
  flex-shrink: 0;
}

/* Floating pills */
.hv-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border-s);
  box-shadow: 0 6px 20px rgba(27,52,84,.1);
  padding: .4rem .9rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hv-pill-1 {
  top: -2rem;
  left: -4rem;
  color: var(--sky);
  animation: float 8s ease-in-out 1.2s infinite reverse;
}
.hv-pill-1 svg { flex-shrink: 0; }

.hv-pill-2 {
  bottom: -1.75rem;
  right: -3rem;
  color: var(--navy);
  animation: float 9s ease-in-out 3s infinite;
}

/* ============================================================
   ABOUT — tinted off background
   ============================================================ */
.about {
  padding: 8rem 0;
  background-color: var(--off);
  background-image:
    linear-gradient(rgba(90,175,212,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,175,212,.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

.about-left .sec-h {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  line-height: 1.12;
  position: sticky;
  top: 8rem;
}

/* accent line above avatar */
.about-left::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(to right, var(--navy), var(--sky));
  margin-bottom: 1.75rem;
}

/* initials avatar */
.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-dark) 0%, #2a5f8f 55%, var(--sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 28px rgba(27,52,84,.25), 0 0 0 1px rgba(90,175,212,.2);
  position: relative;
  flex-shrink: 0;
}
.about-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(90,175,212,.45);
  animation: spinSlow 22s linear infinite;
}
.about-avatar span {
  font-family: var(--f-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}

.about-right p {
  color: var(--text);
  font-size: .97rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.about-meta {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-row { display: flex; gap: 2rem; align-items: baseline; }

.meta-k {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  min-width: 90px;
  font-weight: 600;
  flex-shrink: 0;
}

.meta-v { font-size: .88rem; color: var(--text); }

/* ============================================================
   PROJECTS — white, cards with sky hover accent
   ============================================================ */
.projects {
  padding: 8rem 0;
  background: var(--white);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.proj-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease);
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sky), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.proj-card:hover {
  box-shadow: 0 10px 36px rgba(27,52,84,.13), 0 2px 8px rgba(90,175,212,.08);
  border-color: var(--border-s);
  background: linear-gradient(160deg, rgba(90,175,212,.05) 0%, var(--white) 55%);
}
.proj-card:hover::before { transform: scaleX(1); }

.proj-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 270px;
}

/* project category icon */
.proj-icon {
  width: 42px;
  height: 42px;
  background: var(--sky-light);
  border: 1px solid rgba(90,175,212,.24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background .25s var(--ease), border-color .25s;
}
.proj-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .25s;
}
.proj-card:hover .proj-icon {
  background: rgba(27,52,84,.07);
  border-color: var(--sky);
}
.proj-card:hover .proj-icon svg { stroke: var(--navy); }

.proj-num {
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--sky);
  font-weight: 600;
  opacity: .7;
  margin-bottom: 1rem;
}

.proj-title {
  font-family: var(--f-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .75rem;
  transition: color .2s;
}
.proj-card:hover .proj-title { color: var(--sky); }

.proj-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.5rem;
}

.proj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }

.tag {
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-light);
  border: 1px solid var(--border-s);
  padding: .22rem .6rem;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.proj-card:hover .tag {
  background: var(--sky-mid);
  color: var(--navy);
}

/* ============================================================
   RESUME — off background
   ============================================================ */
.resume {
  padding: 8rem 0;
  background-color: var(--off);
  background-image:
    linear-gradient(rgba(90,175,212,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,175,212,.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.res-col-title {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 2.25rem;
}

/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.btn-download:hover {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}

/* Resume section top row (heading + download side by side) */
.res-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.res-top-row .sec-h { margin-bottom: 0; }

/* Experience block */
.res-block {
  margin-bottom: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

/* Inline title + date row inside timeline */
.tl-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.tl-row .tl-year {
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  margin-bottom: 0;
}

/* Bullet list inside timeline items */
.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.tl-list li {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.72;
  padding-left: 1.1rem;
  position: relative;
  font-weight: 400;
}
.tl-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 600;
}

/* timeline */
.timeline { position: relative; }

.tl-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
}
.tl-item::after {
  content: '';
  position: absolute;
  left: 5px; top: 20px; bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border: 2px solid var(--sky);
  border-radius: 50%;
  background: var(--off);
  z-index: 1;
  transition: box-shadow .3s var(--ease), background .3s;
}
.tl-item:hover .tl-dot {
  box-shadow: 0 0 0 5px rgba(90,175,212,.22);
  background: var(--sky);
}

.tl-year {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: .5rem;
}

.tl-degree {
  font-family: var(--f-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .3rem;
}

.tl-org { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }

.tl-detail { font-size: .8rem; color: var(--sub); line-height: 1.85; }

/* skills */
.skill-groups { display: flex; flex-direction: column; gap: 2.25rem; }

.skill-cat {
  display: block;
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 500;
  margin-bottom: .75rem;
}

.skill-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  font-size: .78rem;
  color: var(--navy);
  background: rgba(27,52,84,.05);
  border: 1px solid var(--border);
  padding: .3rem .85rem;
  transition: background .2s, border-color .2s, color .2s;
  cursor: default;
}
.chip:hover {
  background: var(--sky-light);
  border-color: var(--sky);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(90,175,212,.18);
}

/* ============================================================
   CONTACT — white
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: start;
}

/* availability badge */
.c-availability {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem;
  background: rgba(46,204,113,.08);
  border: 1px solid rgba(46,204,113,.28);
  font-size: .7rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
  margin-bottom: 2rem;
}
.c-avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,.22);
  animation: availPulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.clink {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--navy);
  transition: color .2s;
}
.clink:first-child { border-top: 1px solid var(--border); }
.clink:hover { color: var(--sky); }

.clink-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 70px;
  font-weight: 600;
  flex-shrink: 0;
  transition: color .2s;
}
.clink:hover .clink-label { color: var(--sky); }

.clink-val { font-size: .875rem; flex: 1; }

.clink-arr {
  font-size: 1rem;
  color: var(--sky);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .2s, transform .2s;
}
.clink:hover .clink-arr { opacity: 1; transform: translateX(0); }

/* form */
.cform { display: flex; flex-direction: column; gap: 1.4rem; }

.field { display: flex; flex-direction: column; gap: .45rem; }

.field label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea {
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: var(--f-sans);
  font-size: .9rem;
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--sub); }
.field input:focus,
.field textarea:focus {
  border-color: var(--sky);
  background: var(--white);
}

.btn-submit {
  align-self: flex-start;
  background: var(--navy);
  border: none;
  color: var(--white);
  padding: .88rem 2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover {
  background: var(--sky);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.form-note { font-size: .8rem; color: var(--sky); min-height: 1.2em; }

/* ============================================================
   FOOTER — dark navy as strong close
   ============================================================ */
.footer {
  padding: 2.25rem 0;
  background: var(--navy-dark);
  border-top: 3px solid var(--sky);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
}

.footer-copy { font-size: .78rem; color: rgba(255,255,255,.45); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--sky); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .resume-grid   { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-left .sec-h { position: static; }

  .tl-row { flex-direction: column; gap: .25rem; }
  .tl-row .tl-year { text-align: left; }

  .res-top-row { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links   { display: none; }
  .btn-nav-cta { display: none; }
  .nav-toggle  { display: flex; }
  .hero { padding: 6rem 1.5rem 0; }
  .hero-name { font-size: clamp(4.5rem, 18vw, 7.5rem); }
  .stat { padding: 0 1.25rem; }
  .stat:first-child { padding-left: 0; }
  .scroll-hint { display: none; }
}

@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 5.5rem 1.25rem 0; }
  .hero-stats { flex-wrap: wrap; gap: 1.75rem; padding: 2rem 0; }
  .stat-rule { display: none; }
  .stat { padding: 0; flex: 0 0 auto; min-width: 75px; }
  .about, .projects, .resume, .contact { padding: 5rem 0; }
  .hero::after { display: none; }
  .footer-inner { flex-direction: column; gap: .75rem; text-align: center; }
  .footer-links { justify-content: center; }
}
