/* ==========================================================================
   Design System — Quentin Lao Personal Website
   ========================================================================== */

:root {
  --color-bg:          #F7F5F0;
  --color-bg-alt:      #EDEAE3;
  --color-bg-warm:     #E8DED1;
  --color-text:        #2D2D2D;
  --color-text-light:  #5F5F5F;
  --color-text-faint:  #8E8E8E;
  --color-blue:        #2B4C6F;
  --color-blue-dark:   #1E3A5F;
  --color-blue-light:  #3E6B99;
  --color-green:       #5A8461;
  --color-green-faint: rgba(90, 132, 97, 0.10);
  --color-border:      #D0CBC3;
  --color-white:       #FFFFFF;

  --font-heading: 'Sora', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --container:    1080px;
  --gap:          2rem;
  --section-py:   8rem;

  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
a:hover { color: var(--color-green); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; margin: 0; padding: 0; }

::selection {
  background: rgba(90, 132, 97, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue-dark);
  margin-bottom: 1.2rem;
}

.section__label--green {
  color: var(--color-green);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 3rem;
  color: var(--color-text);
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background-color 0.4s var(--ease-smooth),
              box-shadow 0.4s var(--ease-smooth),
              padding 0.3s var(--ease-smooth);
}

.nav.is-scrolled {
  background-color: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
  padding: 0.6rem 0;
}

.nav__inner {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}
.nav.is-scrolled .nav__logo {
  color: var(--color-text);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-smooth);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-blue);
  transition: width 0.3s var(--ease-smooth);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}
.nav__links a:hover {
  color: var(--color-white);
}
.nav.is-scrolled .nav__links a {
  color: var(--color-text-light);
}
.nav.is-scrolled .nav__links a:hover,
.nav.is-scrolled .nav__links a.is-active {
  color: var(--color-blue-dark);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth),
              opacity 0.3s var(--ease-smooth),
              background 0.3s var(--ease-smooth);
}
.nav.is-scrolled .nav__toggle span {
  background: var(--color-text);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(27, 45, 65, 0.40) 0%,
    rgba(27, 50, 60, 0.30) 40%,
    rgba(40, 62, 50, 0.35) 75%,
    rgba(35, 55, 45, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 6rem 6%;
  max-width: 700px;
}

.hero__name {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__bicorne {
  --bicorne-size: 150;
  --bicorne-rotate: -40deg;
  height: calc(var(--bicorne-size) * 1.6em / 100);
  width: auto;
  display: inline;
  vertical-align: middle;
  margin-left: 0.4rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
  transform: rotate(var(--bicorne-rotate));
}

.hero__links {
  display: flex;
  gap: 1.2rem;
}

.hero__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.hero__links a:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero__cta {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.55rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  background: transparent;
  text-decoration: none;
  transition: background 0.35s var(--ease-smooth),
              color 0.35s var(--ease-smooth),
              border-color 0.35s var(--ease-smooth),
              transform 0.35s var(--ease-smooth);
  cursor: pointer;
}
.hero__cta::after {
  content: ' \2192';
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.35s var(--ease-smooth);
}
.hero__cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.hero__cta:hover::after {
  transform: translateX(3px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 6%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(90, 132, 97, 0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(140, 200, 150, 0.9);
  animation: scrollLine 2s var(--ease-smooth) infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

.hero__credit {
  position: absolute;
  bottom: 1rem;
  left: 6%;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ==========================================================================
   Keyword Strip
   ========================================================================== */

.keyword-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1.2rem 2rem;
  cursor: default;
  user-select: none;
}

.keyword-strip span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}

.keyword-strip span:not(:first-child)::before {
  content: '·';
  margin: 0 1rem;
  font-style: normal;
  color: var(--color-border);
}

@media (max-width: 600px) {
  .keyword-strip {
    flex-wrap: wrap;
    padding: 1rem 1rem;
  }
  .keyword-strip span {
    font-size: 0.75rem;
  }
  .keyword-strip span:not(:first-child)::before {
    margin: 0 0.6rem;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.section--about {
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.about__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(15%);
  transition: filter 0.5s var(--ease-smooth);
}
.about__portrait img:hover {
  filter: grayscale(0%);
}

.about__text h2 {
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.4;
}

.about__text p {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about__cta {
  margin-top: 2rem;
}

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  background: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
}
.button:hover {
  background: var(--color-blue-light);
  border-color: var(--color-blue-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

.button--outline {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}
.button--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ==========================================================================
   Experience
   ========================================================================== */

.section--experience {
  background: var(--color-bg-alt);
}

/* --- Horizontal Path --- */

.path__nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  position: relative;
}

.path__track-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 24px;
  position: relative;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.path__track-wrapper::-webkit-scrollbar {
  display: none;
}

.path__track-wrapper.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.path__nav::before,
.path__nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.path__nav::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.path__nav::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.path__nav.has-overflow-left::before {
  opacity: 1;
}

.path__nav.has-overflow-right::after {
  opacity: 1;
}

/* Left-scroll hint text with light sweep */
.path__hint {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  background: linear-gradient(
    90deg,
    var(--color-text-faint) 0%,
    var(--color-text-faint) 42%,
    #b8b8b8 49%,
    #c8c8c8 50%,
    #b8b8b8 51%,
    var(--color-text-faint) 58%,
    var(--color-text-faint) 100%
  );
  background-size: 300% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.path.has-overflow-left .path__hint {
  opacity: 1;
  animation: textSweepLeft 14s ease-in-out infinite;
}

@keyframes textSweepLeft {
  0%, 20%  { background-position: 0% 0; }
  60%      { background-position: 100% 0; }
  70%, 100% { background-position: 100% 0; }
}

.path__track {
  display: flex;
  gap: 0;
  align-items: center;
  position: relative;
}

.path__milestone {
  cursor: pointer;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  text-align: center;
  flex: 0 0 auto;
  position: relative;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s var(--ease-smooth),
              background 0.3s var(--ease-smooth),
              transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}

.path__milestone.is-active {
  border-color: var(--color-blue);
  background: var(--color-blue);
  box-shadow: 0 6px 24px rgba(43, 76, 111, 0.18);
  transform: translateY(-3px);
}

.path__milestone.is-active .path__ms-role {
  color: var(--color-white);
}
.path__milestone.is-active .path__ms-company {
  color: rgba(255, 255, 255, 0.8);
}
.path__milestone.is-active .path__ms-date {
  color: rgba(255, 255, 255, 0.6);
}

.path__milestone.is-active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--color-blue);
}

.path__milestone.is-hovered:not(.is-active) {
  border-color: rgba(43, 76, 111, 0.25);
  background: rgba(43, 76, 111, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(43, 76, 111, 0.12);
}

.path__milestone.is-hovered:not(.is-active) .path__ms-company {
  color: var(--color-blue-dark);
}

.path__connector {
  width: 32px;
  height: 2px;
  background: var(--color-border);
  flex-shrink: 0;
}

.path__terminus {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.path__terminus--start {
  width: 24px;
  justify-content: flex-start;
}

.path__terminus--start::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.path__terminus--start::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--color-border);
}

.path__future {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  min-width: 260px;
  cursor: default;
}

.path__future-svg {
  width: 120px;
  height: 48px;
  flex-shrink: 0;
}



.path__future-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  opacity: 0.75;
  white-space: nowrap;
  position: absolute;
  bottom: -18px;
  left: 8px;
}

.path__ms-role {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.2rem;
  transition: color 0.3s var(--ease-smooth);
}

.path__ms-company {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-blue);
  transition: color 0.3s var(--ease-smooth);
}

.path__ms-date {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  margin-top: 0.4rem;
  transition: color 0.3s var(--ease-smooth);
}

/* --- Detail Panel --- */

.path__detail {
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-blue);
  border-radius: 0 0 6px 6px;
  background: var(--color-white);
  min-height: 160px;
  margin-top: 12px;
  animation: pathFadeIn 0.35s var(--ease-smooth);
}

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

.path__detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.path__detail-info h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.path__detail-info h4 {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.path__detail-info h4 a {
  color: var(--color-blue);
}
.path__detail-info h4 a:hover {
  color: var(--color-green);
}

.path__detail-location {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin-bottom: 0;
}

.path__detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.path__detail-date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.path__detail-icon {
  margin-top: 0.5rem;
}

.path__detail-icon img {
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
}

.path__detail-body {
  color: var(--color-text-light);
  font-size: 0.98rem;
  line-height: 1.7;
}

.path__detail-body p {
  margin: 0;
}

/* ==========================================================================
   Education
   ========================================================================== */

.section--education {
  background: var(--color-bg);
}

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

.education__card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: 6px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.education__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.education__icon {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.education__icon img {
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.education__period {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: 0.8rem;
}

.education__card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.education__degree {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-blue);
  margin-bottom: 0.2rem;
}

.education__location {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--color-text-faint);
  margin-bottom: 0.8rem;
}

.education__card > p:last-of-type {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Projects
   ========================================================================== */

.section--projects {
  background: var(--color-bg-alt);
}

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

.project-card {
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-card__image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  transition: filter 0.3s var(--ease-smooth);
}
.project-card:hover .project-card__image {
  filter: brightness(1.05);
}

.project-card__image--research {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
}
.project-card__image--hackathon {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-light) 100%);
}
.project-card__image--kaggle {
  background: linear-gradient(135deg, #2B4C6F 0%, #4A7BA8 60%, #5A8461 100%);
}
.project-card__image--film {
  background: linear-gradient(135deg, #4A3D5C 0%, #6B5B7B 50%, var(--color-blue) 100%);
}

.project-card__body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__top {
  margin-bottom: 1rem;
}

.project-card__tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  background: var(--color-green-faint);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}
.project-card__tag svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 0.3rem;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.project-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.project-card__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-blue);
  margin-top: 1rem;
  display: inline-block;
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.project-card__link:hover {
  color: var(--color-green);
  transform: translateX(3px);
}

/* ==========================================================================
   Beyond Work
   ========================================================================== */

.section--beyond {
  background: var(--color-bg);
}

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

.beyond__item {
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}
.beyond__item:hover {
  border-color: var(--color-border);
  background: var(--color-white);
}

.beyond__icon {
  color: var(--color-green);
  margin-bottom: 1rem;
}

.beyond__item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.beyond__item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section--contact {
  background: var(--color-bg-alt);
  text-align: center;
}

.contact__intro {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.3s var(--ease-smooth),
              transform 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.contact__card svg {
  flex-shrink: 0;
  color: var(--color-blue);
}
.contact__card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  color: var(--color-blue);
}

.contact__resume {
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--color-bg);
}

.footer p {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.footer__easter {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--color-text-faint);
  opacity: 0.35;
  margin-left: 1.2rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Beyond: easter eggs & tooltips
   ========================================================================== */

.beyond__item--focus {
  cursor: crosshair;
}

.beyond__item[data-tooltip] {
  position: relative;
}

.beyond__item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  right: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--color-text-faint);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.beyond__item[data-tooltip]:hover::after {
  opacity: 0.7;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --section-py: 5rem;
  }

  .about__grid {
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
  }

  .education__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-radius: 0 0 0 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    color: var(--color-text) !important;
    font-size: 0.85rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__portrait {
    max-width: 200px;
  }

  .hero__image {
    object-position: 38% 30%;
  }

  .hero__content {
    padding: 0 6% 5rem;
  }

  .hero__cta {
    padding: 0.5rem 1.4rem;
    font-size: 0.7rem;
  }

  .hero__scroll-hint {
    display: none;
  }

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

  .path__milestone {
    padding: 0.8rem 1rem;
  }

  .path__ms-role {
    font-size: 0.75rem;
  }

  .path__ms-company {
    font-size: 0.68rem;
  }

  .path__ms-date {
    font-size: 0.6rem;
  }

  .path__connector {
    width: 20px;
  }

  .path__terminus--start {
    width: 18px;
  }

  .path__future {
    min-width: 210px;
  }

  .path__future-line {
    width: 40px;
  }

  .path__future-label {
    font-size: 0.52rem;
  }

  .path__detail {
    padding: 1.8rem;
    margin-top: 14px;
  }

  .path__hint {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-py: 4rem;
  }

  body {
    font-size: 1rem;
  }

  .hero__image {
    object-position: 30% 30%;
  }

  .hero__content {
    padding: 0 5% 4rem;
  }

  .hero__name {
    font-size: 2.4rem;
  }

  .hero__tagline {
    font-size: 0.85rem;
  }

  .section__title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

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

  .path__milestone {
    padding: 0.7rem 0.6rem;
  }

  .path__ms-role {
    font-size: 0.7rem;
  }

  .path__ms-company {
    font-size: 0.62rem;
  }

  .path__ms-date {
    font-size: 0.55rem;
  }

  .path__connector {
    width: 12px;
  }

  .path__terminus--start {
    width: 12px;
  }

  .path__terminus--start::after {
    width: 5px;
    height: 5px;
  }

  .path__future {
    min-width: 170px;
  }

  .path__future-line {
    width: 28px;
  }

  .path__future-label {
    font-size: 0.48rem;
    bottom: -16px;
  }

  .path__detail {
    padding: 1.4rem;
    margin-top: 14px;
  }

  .path__detail-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .path__detail-meta {
    align-self: flex-end;
  }

  .path__hint {
    font-size: 0.6rem;
  }
}
