/* ═══════════════════════════════════════════════════
   Marcus Thuillier — Portfolio
   Design system based on nikitarai.com
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --bg:             #f0eeea;
  --bg-warm:        #e8e5df;
  --bg-card:        #faf9f7;
  --bg-card-hover:  #f5f3ef;
  --text:           #1c2a3a;
  --text-secondary: #3d5068;
  --text-muted:     #6b7a8d;
  --text-faint:     #9ba5b0;
  --accent:         #9B3D36;
  --accent-light:   #B85C52;
  --accent-warm:    #b8924a;
  --accent-warm-bg: rgba(184, 146, 74, 0.07);
  --accent-subtle:  rgba(155, 61, 54, 0.06);
  --accent-glow:    rgba(155, 61, 54, 0.12);
  --border:         #d5d0c8;
  --border-light:   #e2ded7;
  --border-faint:   #ebe8e2;
  --gold:           #b8924a;
  --gold-bg:        rgba(184, 146, 74, 0.08);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --shadow-sm:      0 1px 3px rgba(28, 42, 58, 0.05);
  --shadow-md:      0 4px 20px rgba(28, 42, 58, 0.07);
  --shadow-lg:      0 12px 40px rgba(28, 42, 58, 0.1);
  --transition:     0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ── STICKY NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 238, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  padding: 0 2rem;
}

.nav-links { display: flex; align-items: stretch; }

.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
  padding: 0.85rem 0.8rem;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.8rem;
  right: 0.8rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px 2px 0 0;
}

.nav-link:hover { color: var(--text-secondary); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem 0;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── BANNER ── */
.banner {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #c46b5e 0%, var(--accent) 100%);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 30%, var(--accent) 70%, transparent 95%);
}

/* Inner-page banner — gradient placeholder, shorter than home */
.banner--inner { height: 200px; }
.banner--horizon      { background: linear-gradient(135deg, #1a3a5c 0%, #2b5c8a 100%); }
.banner--intel        { background: linear-gradient(135deg, #0068b5 0%, #00aeef 100%); }
.banner--nyu          { background: linear-gradient(135deg, #57068c 0%, #8900e1 100%); }
.banner--northwestern { background: linear-gradient(135deg, #4e2a84 0%, #7b68ee 100%); }
.banner--career       { background: linear-gradient(135deg, #1c2a3a 0%, #3d5068 100%); }
@media (max-width: 768px) { .banner--inner { height: 120px; } }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.page-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── PAGE HEADER with logo ── */
.page-header-inner { display: flex; align-items: center; gap: 1rem; }
.page-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--border-light);
}

/* ── HEADSHOT ── */
.contact-header-left { display: flex; align-items: flex-start; gap: 1.4rem; }
.headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.headshot--placeholder {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  user-select: none;
}

/* ── COMPANY LOGOS in cards ── */
.card-company--with-logo { display: flex; align-items: center; gap: 0.5rem; }
.card-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
  background: #fff;
}

/* ── LOGOS in teaser cards ── */
.teaser-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.teaser-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  background: #fff;
}

/* ── DEVICON tags ── */
.tag--icon { display: inline-flex; align-items: center; gap: 0.3rem; }
.tag--icon i { font-size: 0.78rem; line-height: 1; }

/* ── CONTACT HEADER ── */
.contact-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.2rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.contact-tagline-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.contact-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.contact-detail a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.contact-detail a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── CTA BUTTON ── */
.cta-wrapper { position: relative; padding-top: 0.3rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

.cta-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.cta-btn:hover {
  background: #7B2D25;
  box-shadow: 0 6px 20px rgba(155, 61, 54, 0.3);
  transform: translateY(-1px);
}

.cta-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.cta-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-dropdown-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-top: 0.6rem;
}

.cta-dropdown-label:first-child { margin-top: 0; }

.cta-dropdown-item {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.2s;
}

.cta-dropdown-item:hover { color: var(--accent); }

/* ── STATS BAR ── */
.stats-bar {
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat { text-align: left; }

.stat-number {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* ── DIVIDER ── */
.section-divider {
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--border-light);
}

/* ── BENTO GRID ── */
.bento-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.bento-grid-2col { grid-template-columns: 1fr 1fr; }

.bento-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-tile:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bento-metric {
  text-align: center;
  padding: 1.4rem 1.2rem;
}

.bento-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.bento-metric:hover::before { transform: scaleX(1); }

.bento-footprint { padding: 1.6rem; }

/* Teaser feature tile */
.bento-teaser-feature {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-color: rgba(155, 61, 54, 0.15);
}

.bento-teaser-feature:hover {
  background: rgba(184, 146, 74, 0.04);
  border-color: var(--accent-warm);
}

.teaser-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
  margin-bottom: 0.4rem;
}

.teaser-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.teaser-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.teaser-cta {
  font-size: 0.68rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
  margin-top: 0.8rem;
  transition: color var(--transition);
}

.bento-teaser-feature:hover .teaser-cta { color: var(--text); }

/* ── SECTION TEASERS ── */
.teaser-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.teaser-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.teaser-card-label {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-light);
  margin-bottom: 0.3rem;
}

.teaser-card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.teaser-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.teaser-card-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 0.6rem;
  transition: transform var(--transition);
  display: inline-block;
}

.teaser-card:hover .teaser-card-arrow { transform: translateX(4px); }

/* ── CONTENT SECTION ── */
.content-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
}

.section-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.section-subheading {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ── METRIC VALUES ── */
.metric-value {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--accent);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ── MINI METRICS ── */
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.mini-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  transition: all var(--transition);
}

.mini-metric:hover { box-shadow: var(--shadow-sm); }

.mini-metric-value {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.mini-metric-label {
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* ── CHART BOX ── */
.chart-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
}

.chart-box:hover { box-shadow: var(--shadow-sm); }

.chart-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* ── YEAR BREAKDOWN ── */
.year-breakdown { display: flex; flex-direction: column; gap: 1rem; }

.year-row-item { display: flex; align-items: flex-start; gap: 0.8rem; }

.year-badge {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 40px;
  padding-top: 0.1rem;
}

.year-details { flex: 1; }

.year-detail-main {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 0.15rem;
}

.year-detail-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.year-detail-sub ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
  list-style: none;
}

.year-detail-sub ul li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 0.8rem;
}

.year-detail-sub ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

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

/* ── GLOBAL FOOTPRINT ── */
.footprint-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.country-chip {
  font-size: 0.68rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.country-chip:hover { background: var(--accent-glow); border-color: var(--accent-subtle); }

.footprint-industries { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.industry-chip {
  font-size: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.footprint-subtitle {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ── HIGHLIGHT ITEMS ── */
.highlight-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-faint);
}

.highlight-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.highlight-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.highlight-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── TIMELINE ── */
.timeline-section {
  position: relative;
  padding: 3.5rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-bottom: 2.8rem;
}

.timeline-left {
  position: relative;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.year-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

.year-text {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
}

.timeline-item:hover .year-text { color: var(--accent); }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--border);
  flex-shrink: 0;
  transition: all 0.5s ease;
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-item.visible .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent-glow);
}

.timeline-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: -3rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), var(--border-faint));
}

.timeline-item:last-child .timeline-left::after { bottom: 0; }

.timeline-right { padding-left: 2rem; }

/* Dual-card layout for concurrent roles */
.timeline-right-dual {
  padding-left: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.card-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  transition: all var(--transition);
  position: relative;
  opacity: 0.85;
}

.card-secondary:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-light);
  opacity: 1;
}

.card-secondary .card-company { font-size: 0.62rem; }
.card-secondary .card-title { font-size: 1rem; }
.card-secondary .card-body { font-size: 0.76rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  transition: all var(--transition);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  left: 0; top: 1.2rem; bottom: 1.2rem;
  width: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); border-color: var(--border); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-company {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.card-role {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-light);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.card-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.card-award {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
  padding: 0.35rem 0.75rem;
  background: var(--gold-bg);
  border: 1px solid rgba(184, 146, 74, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--gold);
  font-weight: 500;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(155, 61, 54, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.inline-link:hover {
  color: var(--accent-light);
  text-decoration-color: var(--accent-light);
}

.tag {
  font-size: 0.6rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: all var(--transition);
}

.tag:hover { background: var(--accent-glow); }

/* ── AI / WORKS PROJECT CARDS ── */
.ai-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.ai-project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ai-project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.ai-project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ai-project-card:hover::after { transform: scaleX(1); }

.ai-project-card.coming-soon { opacity: 0.4; pointer-events: none; }

.ai-project-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-light);
  margin-bottom: 0.5rem;
}

.ai-project-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ai-project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ai-project-outcome {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
}

/* ── COMPANY SECTIONS ── */
.company-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.company-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.company-block:hover { box-shadow: var(--shadow-md); }
.company-block:hover::before { opacity: 1; }

.company-overline {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.company-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.company-role-line {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.company-contrib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.contrib-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-faint);
  background: rgba(250, 249, 247, 0.5);
  transition: all var(--transition);
}

.contrib-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.contrib-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.contrib-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── BLOG POST CARDS ── */
.blog-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.blog-post-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.blog-post-card.coming-soon { opacity: 0.4; pointer-events: none; }

.blog-post-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent-warm);
  margin-bottom: 0.4rem;
}

.blog-post-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.blog-post-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  border-top: 1px solid var(--border-light);
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 0.4rem;
}

.footer-links a {
  padding: 0 0.6rem;
  border-right: 1px solid var(--border);
  line-height: 1;
}

.footer-links a:last-child {
  border-right: none;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}

.footer a:hover { color: var(--text); border-bottom-color: var(--text); }

.ai-built-note {
  font-size: 0.62rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── SCROLL PROGRESS BAR ── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  pointer-events: none;
  z-index: 150;
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover { background: #7B2D25; }

/* ── COPY EMAIL FEEDBACK ── */
.copy-feedback {
  position: absolute;
  font-size: 0.65rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--accent);
  margin-left: 0.3rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.copy-feedback.show { opacity: 1; }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .banner { height: 180px; }

  .contact-header { padding: 1.4rem 1.5rem 0; flex-direction: column; gap: 1rem; }
  .contact-name { font-size: 2rem; }
  .cta-dropdown { right: auto; left: 0; }

  .stats-bar { padding: 0 1.5rem; gap: 1.5rem; }
  .section-divider { padding: 0 1.5rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(240, 238, 234, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-links.open { display: flex; }
  .nav-link { padding: 0.7rem 1.5rem; }
  .nav-link::after { display: none; }
  .nav-inner { padding: 0 1.5rem; position: relative; }

  .page-header { padding: 2rem 1.5rem 1.5rem; }
  .page-title { font-size: 1.8rem; }

  .bento-section { padding: 2rem 1.5rem 1.5rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-tile { grid-column: 1 / -1 !important; }
  .bento-grid-2col { grid-template-columns: 1fr; }

  .teaser-section { padding: 1.5rem 1.5rem 2.5rem; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }

  .content-section { padding: 2rem 1.5rem 2rem; }

  .timeline-section { padding: 2.5rem 1.2rem 4rem; }
  .timeline-item { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .timeline-left { align-items: flex-start; padding-right: 0; margin-bottom: 0.4rem; }
  .timeline-left::after { display: none; }
  .timeline-right { padding-left: 0; }
  .timeline-right-dual { padding-left: 0; grid-template-columns: 1fr; }
  .card { padding: 1.2rem 1.3rem; }
  .card::before { display: none; }
  .year-text { font-size: 1.1rem; }

  .mini-metrics { grid-template-columns: repeat(2, 1fr); }
  .ai-projects { grid-template-columns: 1fr; }
  .company-contrib-grid { grid-template-columns: 1fr !important; }
  .contrib-card { grid-column: auto !important; }
  .company-block { padding: 1.4rem 1.3rem; }
}

@media (max-width: 480px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-nav, .cta-wrapper, .banner { display: none; }
  body { font-size: 12pt; background: #fff; }
}

/* ── CV DOWNLOAD BUTTON ── */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.cv-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ── PAGE TRANSITION FADE ── */
@view-transition { navigation: auto; }

@keyframes _fade-in  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes _fade-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }

::view-transition-old(root) {
  animation: 200ms ease-in _fade-out both;
}
::view-transition-new(root) {
  animation: 280ms ease-out _fade-in both;
}

/* ── KEYBOARD FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── TIMELINE ENHANCEMENTS ── */
.timeline-logos {
  display: flex;
  gap: 0.3rem;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
}
.timeline-logos .timeline-logo { margin-bottom: 0; }

.timeline-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  opacity: 0.85;
  transition: opacity var(--transition);
  background: var(--bg-card);
  padding: 2px;
  border: 1px solid var(--border-faint);
}
.timeline-item:hover .timeline-logo { opacity: 1; }

.timeline-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  user-select: none;
}

.timeline-type {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text-faint);
  text-align: right;
  margin-top: 0.35rem;
  padding-right: 1.9rem;
}
.timeline-type--work { color: var(--accent-light); }

/* Pulse animation for the current (active) role dot */
.timeline-dot--current {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent-glow) !important;
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent-glow); }
  50%       { box-shadow: 0 0 0 3px var(--bg), 0 0 0 12px rgba(155,61,54,0);  }
}

/* ── ELO LIVE CHART ── */
.elo-charts-pair {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.elo-charts-pair .elo-chart-wrap {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 1.4rem;
}
@media (max-width: 640px) {
  .elo-charts-pair { flex-direction: column; }
}
.elo-chart-wrap {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-md);
}
.elo-chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.elo-chart-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.elo-chart-source {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  color: var(--text-faint);
}
.elo-chart-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--text-faint);
  padding: 1rem 0;
  text-align: center;
}
.elo-chart-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 0.9rem 0 0;
  min-height: 1.1rem;
}

/* ── TECH STACK ── */
.tech-stack {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.tech-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 0.5rem 1.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-faint);
}
.tech-row:last-child { border-bottom: none; }
.tech-row-label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.tech-row-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

@media (max-width: 640px) {
  .timeline-logo { width: 26px; height: 26px; }
  .timeline-type { padding-right: 0; }
  .tech-stack { padding: 0 1.2rem 3rem; }
  .tech-row { grid-template-columns: 1fr; gap: 0.35rem; }
}
