/* =============================================
   JENNIFER WARD — PORTFOLIO
   Design System & Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 3px solid rgba(116, 120, 217, 0.55);
  outline-offset: 4px;
}

/* ---- Tokens ---- */
:root {
  --violet:        #17254A;
  --violet-mid:    #7478D9;
  --violet-bright: #A7ADEB;
  --violet-tint:   #EEF0FF;
  --violet-deep:   #17254A;
  --card-blue:     #3F6F9A;
  --card-violet:   #7775D8;
  --blush:         #EAC6C2;
  --sage:          #C9D8CD;

  --bg:            #F7F8F7;
  --bg-card:       #FFFFFF;
  --ink:           #17254A;
  --ink-2:         #293245;
  --ink-muted:     #6B7280;
  --border:        #D8DADF;
  --border-2:      #BFC3CC;

  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --nav-h:         72px;
  --max-w:         1200px;
  --gutter:        clamp(20px, 5vw, 48px);

  --r-sm:  6px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  --sh-sm: 0 1px 4px rgba(0,0,0,0.06);
  --sh-md: 0 4px 24px rgba(0,0,0,0.08);
  --sh-lg: 0 20px 64px rgba(0,0,0,0.10);
  --sh-v:  0 8px 32px rgba(23,37,74,0.22);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

.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;
}

.sr-only:focus,
.sr-only:focus-visible {
  position: fixed;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  white-space: normal;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-md);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--r-md);
  transition: all 300ms var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--violet-mid);
  color: #fff;
  box-shadow: var(--sh-v);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(23,37,74,0.30);
}
.btn--outline {
  border: 1.5px solid var(--border-2);
  color: var(--ink-2);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--violet-mid);
  color: var(--violet-mid);
  background: var(--violet-tint);
}

/* ---- Tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.tag:focus-visible {
  background: var(--violet-tint);
  color: var(--violet);
  border-color: transparent;
}
.tag--violet {
  background: var(--violet-tint);
  color: var(--violet);
  border-color: transparent;
}

/* ---- Section label ---- */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: none;
}
.section-eyebrow--center {
  justify-content: center;
}
.section-title-offset {
  margin-top: 12px;
}

/* ---- Reveal animations (only active when JS has loaded) ---- */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js-loaded .reveal.reveal-from-left { transform: translateX(-24px); }
.js-loaded .reveal.reveal-from-right { transform: translateX(24px); }
.js-loaded .reveal.reveal-scale-soft { transform: translateY(18px) scale(0.98); }
.js-loaded .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-loaded .reveal.reveal-from-left.is-visible,
.js-loaded .reveal.reveal-from-right.is-visible,
.js-loaded .reveal.reveal-scale-soft.is-visible {
  transform: translateX(0) translateY(0) scale(1);
}
.js-loaded .reveal-delay-1 { transition-delay: 100ms; }
.js-loaded .reveal-delay-2 { transition-delay: 200ms; }
.js-loaded .reveal-delay-3 { transition-delay: 300ms; }
.js-loaded .reveal-delay-4 { transition-delay: 400ms; }

.js-loaded .hero .reveal {
  transition-duration: 560ms;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 248, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(216, 218, 223, 0.7);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.nav.scrolled {
  background: rgba(247, 248, 247, 0.94);
  border-bottom-color: rgba(116, 120, 217, 0.22);
  box-shadow: var(--sh-sm);
}
.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--violet-mid);
  transition: color 200ms;
}
.nav__logo:hover { color: var(--violet); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 200ms;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--violet-mid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--violet-mid); }

.nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  transition: all 200ms;
}
.nav__icon:hover,
.nav__icon:focus-visible {
  border-color: var(--violet-mid);
  color: var(--violet-mid);
  background: var(--violet-tint);
}
.nav__icon::after { display: none; }

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 300ms var(--ease);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 92vh;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--violet-deep);
}
.hero__name-accent {
  color: var(--violet-mid);
  display: block;
  text-shadow: 0 0 40px rgba(167, 173, 235, 0.35);
}

.hero__bio {
  font-size: 1.125rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 420px;
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Decorative glow behind portrait */
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(167,173,235,0.32) 0%, transparent 70%);
  pointer-events: none;
}

.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(167,173,235,0.42);
  box-shadow: var(--sh-lg), 0 0 0 8px rgba(216,218,223,0.42);
  background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-violet) 100%);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 700ms var(--ease);
}
.hero__portrait img:hover,
.hero__portrait img:focus-visible { filter: grayscale(0%); }

/* Placeholder when no photo */
.hero__portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 78% 18%, #EDD0CC 0 12%, transparent 13%),
    radial-gradient(circle at 18% 76%, #D4E0D7 0 14%, transparent 15%),
    linear-gradient(135deg, var(--card-blue) 0%, var(--card-violet) 100%);
  position: relative;
  overflow: hidden;
}
/* Grid lines decoration */
.hero__portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero__monogram {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.94);
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero__portrait-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  position: relative;
  z-index: 1;
}

/* Hero decorative dots */
.hero__dots {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--violet-bright) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.72;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects {
  padding-block: 100px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.section-header__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section-header h2 em {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  color: var(--violet-mid);
}
.section-header__desc {
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 320px;
  line-height: 1.7;
  border-left: 2px solid var(--border);
  padding-left: 20px;
}

/* ---- Projects grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), border-color 350ms var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(116, 120, 217, 0.28);
  box-shadow: var(--sh-lg);
}

.card--featured { grid-column: span 7; }
.card--secondary { grid-column: span 5; }
.card--third { grid-column: span 4; }

.card__image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card--featured .card__image { aspect-ratio: 16/9; }
.card--secondary .card__image { flex: 1; min-height: 200px; }
.card--third .card__image { aspect-ratio: 4/3; }

.card__image-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transition: transform 600ms var(--ease);
}
.card:hover .card__image-bg,
.card:focus-within .card__image-bg { transform: scale(1.04); }

.card__img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.18));
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}
.card:hover .card__img,
.card:focus-within .card__img {
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.02) drop-shadow(0 18px 32px rgba(0,0,0,0.22));
}
.card__img + .card__image-pattern {
  background:
    linear-gradient(180deg, rgba(23,37,74,0.02) 0%, rgba(23,37,74,0.28) 100%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* Project themed gradients */
.card--profit   .card__image-bg { background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-violet) 100%); }
.card--crypto   .card__image-bg { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%); }
.card--co2      .card__image-bg { background: linear-gradient(135deg, #052e16 0%, #166534 55%, #15803d 100%); }
.card--behavior .card__image-bg { background: linear-gradient(135deg, #431407 0%, #9a3412 55%, #ea580c 100%); }
.card--ev       .card__image-bg { background: linear-gradient(135deg, #042f2e 0%, #0f766e 55%, #0d9488 100%); }
.card--tandemly .card__image-bg { background: linear-gradient(135deg, #312e81 0%, #7c3aed 52%, #06b6d4 100%); }
.card--job-tracker .card__image-bg { background: linear-gradient(135deg, #111827 0%, #475569 48%, #f59e0b 100%); }

/* Data pattern overlay on card images */
.card__image-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Card icon / label floating on image */
.card__image-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.card--featured .card__title { font-size: 1.75rem; }

.card__desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.card__link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--violet-mid);
  transition: gap 200ms var(--ease);
}
.card__link:hover,
.card__link:focus-visible { gap: 10px; }
.card__link svg { flex-shrink: 0; }
.card__status {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.skills-section {
  padding-block: 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}

/* ---- Skills Panel ---- */
.skills-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.skills-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.skills-group__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-mid);
  margin-bottom: 20px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-chip {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: all 200ms var(--ease);
}
.skill-chip:hover,
.skill-chip:focus-visible {
  border-color: var(--violet-mid);
  color: var(--violet-mid);
  background: var(--violet-tint);
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding-block: 100px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__header {
  text-align: center;
  margin-bottom: 72px;
}
.about__header h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-top: 14px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
}
.about__bio h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.about__bio h3 span { color: var(--violet-mid); }

.about__bio p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.about__quote {
  border-top: 3px solid var(--violet-mid);
  padding-top: 20px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
}

.experience {
  margin-top: 80px;
}
.experience__header {
  margin-bottom: 48px;
  text-align: center;
}
.experience__title {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.experience__title em {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  color: var(--violet-mid);
}

/* =============================================
   EXPERIENCE TIMELINE
   ============================================= */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.timeline__line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__line-fill {
  width: 100%;
  background: linear-gradient(to bottom, var(--violet-mid), var(--violet-bright));
  height: 0;
  transition: height 1.5s var(--ease-out);
}
.timeline-started .timeline__line-fill { height: 100%; }

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  position: relative;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--violet-mid);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--violet-tint);
  z-index: 2;
}

.timeline__left { text-align: right; padding-right: 32px; }
.timeline__right { padding-left: 32px; }

.timeline__date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-mid);
  margin-bottom: 8px;
}
.timeline__role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.timeline__desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.timeline__company-box {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--violet-mid);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding-block: 100px;
}
.contact__inner {
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 50%, var(--violet-mid) 100%);
  border-radius: var(--r-xl);
  padding: clamp(48px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Grid decoration */
.contact__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.contact__inner > * { position: relative; z-index: 1; }

.contact__heading {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
}
.contact__heading span {
  color: rgba(255,255,255,0.6);
  display: block;
}
.contact__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 460px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn--white {
  background: #fff;
  color: var(--violet);
  font-family: var(--font-display);
  font-weight: 700;
}
.btn--white:hover,
.btn--white:focus-visible {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.btn--ghost-white {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.btn--ghost-white:hover,
.btn--ghost-white:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 200ms;
}
.footer__links a:hover { color: var(--violet-mid); }

/* =============================================
   PROJECT PAGE STYLES
   ============================================= */
.project-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 64px;
  padding-inline: var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}
.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
  transition: color 200ms, gap 200ms;
}
.project-hero__back:hover,
.project-hero__back:focus-visible { color: var(--violet-mid); gap: 12px; }

.project-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 800px;
}
.project-hero__subtitle {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.project-hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-meta-item__label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.project-meta-item__value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Themed project banner */
.project-banner {
  width: 100%;
  height: clamp(200px, 30vw, 360px);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 80px;
  position: relative;
}
.project-banner__bg {
  width: 100%;
  height: 100%;
  position: relative;
}
.project-banner__image {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.18));
}
.project-banner__bg:has(.project-banner__image)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,37,74,0.02) 0%, rgba(23,37,74,0.24) 100%);
}
.project-banner__bg--profit { background: linear-gradient(135deg,var(--card-blue) 0%,var(--card-violet) 100%); }
.project-banner__bg--crypto { background: linear-gradient(135deg,#0f172a 0%,#1e3a5f 55%,#1d4ed8 100%); }
.project-banner__bg--co2 { background: linear-gradient(135deg,#052e16 0%,#166534 55%,#15803d 100%); }
.project-banner__bg--behavior { background: linear-gradient(135deg,#431407 0%,#9a3412 55%,#ea580c 100%); }
.project-banner__bg--job-tracker { background: linear-gradient(135deg, #111827 0%, #475569 48%, #f59e0b 100%); }
.project-banner__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.project-banner__title {
  position: absolute;
  bottom: 32px;
  left: 40px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.15);
}

/* Project content layout */
.project-content {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

.project-main { display: flex; flex-direction: column; gap: 60px; }

.project-section { display: flex; flex-direction: column; gap: 20px; }
.js-loaded .project-section.reveal {
  transition-duration: 650ms;
}
.project-section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.project-section h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 8px;
}
.project-section p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.8;
}
.project-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}
.project-section li {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.project-section li::before {
  content: '→';
  color: var(--violet-mid);
  font-size: 0.85em;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.project-section .note {
  background: var(--violet-tint);
  border-left: 3px solid var(--violet-mid);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--violet-deep);
  line-height: 1.65;
}
.text-link {
  color: var(--violet-mid);
}
.inline-code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

.project-figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.project-figure img {
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: contain;
  background: var(--bg);
}
.project-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.project-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-figure-grid .project-figure img {
  max-height: 320px;
}
.project-figure-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Step cards */
.step-cards { display: flex; flex-direction: column; gap: 16px; }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.step-card:hover,
.step-card:focus-within {
  border-color: rgba(116, 120, 217, 0.24);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--violet-mid);
  background: var(--violet-tint);
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Finding cards */
.findings { display: flex; flex-direction: column; gap: 12px; }
.findings--compact { margin-top: 8px; }
.finding {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.js-loaded .project-section .step-card,
.js-loaded .project-section .finding {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.js-loaded .project-section.is-visible .step-card,
.js-loaded .project-section.is-visible .finding {
  opacity: 1;
  transform: translateY(0);
}
.js-loaded .project-section.is-visible .step-card:nth-child(2),
.js-loaded .project-section.is-visible .finding:nth-child(2) { transition-delay: 80ms; }
.js-loaded .project-section.is-visible .step-card:nth-child(3),
.js-loaded .project-section.is-visible .finding:nth-child(3) { transition-delay: 140ms; }
.js-loaded .project-section.is-visible .step-card:nth-child(4),
.js-loaded .project-section.is-visible .finding:nth-child(4) { transition-delay: 200ms; }
.js-loaded .project-section.is-visible .finding:nth-child(n+5) { transition-delay: 240ms; }
.js-loaded .project-section.is-visible .step-card:hover,
.js-loaded .project-section.is-visible .step-card:focus-within {
  transform: translateY(-2px);
  transition-delay: 0ms;
}
.finding-bullet {
  color: var(--violet-mid);
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* Sidebar */
.project-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.js-loaded .project-sidebar .reveal {
  transition-duration: 560ms;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-mid);
  margin-bottom: 16px;
}
.sidebar-card .tag { margin: 3px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
}
.sidebar-link:hover,
.sidebar-link:focus-visible {
  border-color: var(--violet-mid);
  color: var(--violet-mid);
  background: var(--violet-tint);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.sidebar-link + .sidebar-link {
  margin-top: 10px;
}
.sidebar-link--inline {
  display: inline-flex;
  width: auto;
}
.project-disclaimer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js-loaded .reveal {
    opacity: 1;
    transform: none;
  }

  .js-loaded .project-section .step-card,
  .js-loaded .project-section .finding {
    opacity: 1;
    transform: none;
  }

  .timeline__line-fill {
    height: 100%;
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible,
  .card:hover,
  .card:focus-within,
  .card:hover .card__image-bg,
  .card:focus-within .card__image-bg,
  .sidebar-link:hover,
  .sidebar-link:focus-visible,
  .step-card:hover,
  .step-card:focus-within,
  .project-hero__back:hover,
  .project-hero__back:focus-visible {
    transform: none;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; }
  .hero__visual { order: -1; }
  .hero__portrait { max-width: 320px; margin-inline: auto; }
  .hero__name { font-size: clamp(3rem, 12vw, 5rem); }

  .card--featured { grid-column: span 12; }
  .card--secondary { grid-column: span 12; }
  .card--secondary .card__image { aspect-ratio: 16/9; flex: none; }
  .card--third { grid-column: span 6; }

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

  .project-content { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }

  .skills-panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 24px var(--gutter);
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms var(--ease);
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
  .nav__links.open a { font-size: 1rem; letter-spacing: 0.08em; }
  .nav__mobile-toggle { display: flex; }

  .card--third { grid-column: span 12; }

  .timeline__item { grid-template-columns: 1fr; gap: 16px; }
  .timeline__line { display: none; }
  .timeline__dot { display: none; }
  .timeline__left { text-align: left; padding: 0; }
  .timeline__right { padding: 0; }

  .contact__heading { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .footer__inner { flex-direction: column; text-align: center; }
  .project-figure-grid { grid-template-columns: 1fr; }
}
