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

:root {
  --cream: #f9f6f1;
  --off-white: #fdfcfa;
  --parchment: #f4f0e8;
  --champagne: #ede8df;
  --ink: #1a1714;
  --ink-muted: #6b6560;
  --ink-faint: #b5b0aa;
  --accent: #17873a;
  --accent-light: #bef0b8;
  --accent-verylight: #e7fce5;
  --section-head: #000987;
  --section-timeframe: #474eb5;
  --section-tileHeader: #2a5f80;
  --light-sky: #8ad2ff;
  --rule: #e2ddd8;
  --rule-strong: #cec8c0;
  --shadow-soft: 0 2px 12px rgba(26,23,20,0.06);
  --shadow-card: 0 4px 24px rgba(26,23,20,0.08);
  --shadow-hover: 0 8px 32px rgba(26,23,20,0.13);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h: 56px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* ====== NAV ====== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,252,250,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
  box-shadow: 0 1px 0 var(--rule), var(--shadow-soft);
}
.nav-inner {
  max-width: 780px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  transition: color 0.18s, background 0.18s;
  display: block;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--champagne); }
.nav-links a.active { color: var(--accent); background: var(--accent-verylight); font-weight: 400; }

/* ====== HERO ====== */
#hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3.2rem;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule-strong) 20%, var(--rule-strong) 80%, transparent);
}
#hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190,240,184,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; position: relative; }
.hero-text { flex: 1; min-width: 0; }
.hero-photo { flex-shrink: 0; width: 152px; }
.hero-photo img {
  width: 152px; height: 185px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.hero-photo img:hover { box-shadow: var(--shadow-hover); }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.hero-name em { font-style: italic; color: var(--ink-muted); }

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  font-style: italic;
  color: var(--section-tileHeader);
  margin-bottom: 1.4rem;
  line-height: 1.3;
}

.hero-tagline {
  font-size: 1.00rem;
  color: var(--ink-muted);
  max-width: 460px;
  line-height: 1.8;
}

.hero-meta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  box-shadow: var(--shadow-soft);
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.hero-badge:last-child { border-right: none; }
.hero-badge span { color: var(--ink); }

.hero-cta { margin-top: 1.8rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary {
  background: var(--ink);
  color: var(--off-white);
  box-shadow: 0 2px 8px rgba(26,23,20,0.2);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 4px 16px rgba(23,135,58,0.3); }
.btn-outline {
  border: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  background: var(--off-white);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--champagne); }

@media (max-width: 600px) {
  .hero-inner { flex-direction: column-reverse; gap: 1.2rem; align-items: flex-start; }
  .hero-photo { width: 90px; }
  .hero-photo img { width: 90px; height: 108px; border-radius: 8px; }
  .hero-meta { flex-direction: column; width: 100%; }
  .hero-badge { border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-badge:last-child { border-bottom: none; }
}

/* ====== TAB PANELS ====== */
.tab-panel { display: none; padding: 3rem 0 3.5rem; animation: fadeUp 0.38s cubic-bezier(.22,1,.36,1) both; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ====== SECTION HEADER ====== */
.section-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section-head);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--section-head);
  opacity: 0.5;
}
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--rule), transparent); }

/* ====== ABOUT ====== */
.about-body p {
  font-size: 0.975rem;
  color: var(--ink-muted);
  max-width: 660px;
  margin-bottom: 1.1rem;
  line-height: 1.85;
}
.about-body p:last-child { margin-bottom: 0; }
.hl { color: var(--ink); font-weight: 400; }

/* ====== SKILLS ====== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.skill-group {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.skill-group:hover { box-shadow: var(--shadow-card); border-color: var(--rule-strong); }
.skill-group h3 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.skill-group ul { list-style: none; }
.skill-group li {
  font-size: 0.83rem;
  color: var(--ink-muted);
  padding: 0.22rem 0;
}
.skills-divider { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); }

/* ====== TIMELINE ====== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 128px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule) 10%, var(--rule) 90%, transparent);
}
.t-period {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--section-timeframe);
  padding-top: 0.25rem;
  line-height: 1.7;
  font-style: italic;
  text-align: right;
  padding-right: 1.4rem;
}
.t-body h3 {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  font-style: italic;
  color: var(--section-tileHeader);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.t-company {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.t-loc {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.65rem;
}
.t-body p { font-size: 0.975rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 0.5rem; }
.t-body ul { list-style: none; margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.t-body ul li {
  font-size: 0.83rem;
  color: var(--ink-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.65;
}
.t-body ul li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-size: 1rem; line-height: 1.5; }
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  background: var(--accent-verylight);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  margin-top: 0.6rem;
  margin-right: 0.3rem;
  border: 1px solid var(--accent-light);
}

/* ====== PROJECTS ====== */
.projects-grid { display: flex; flex-direction: column; gap: 0.8rem; }
.project-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.3rem;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  text-decoration: none;
  color: inherit;
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.project-info h3 {
  font-family: var(--font-serif);
  font-size: 1.00rem;
  font-weight: 500;
  color: var(--section-tileHeader);
  margin-bottom: 0.3rem;
}
.project-info p { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.65; }
.tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.55rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  background: var(--parchment);
  border: 1px solid var(--rule);
  color: var(--section-tileHeader);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.p-arrow {
  font-size: 0.9rem;
  color: var(--ink-faint);
  padding-top: 0.1rem;
  flex-shrink: 0;
  transition: color 0.2s;
}
.project-card:hover .p-arrow { color: var(--accent); }


/* ====== PROJECTS REDESIGN ====== */
.projects-section { margin-bottom: 3rem; }
.projects-section:last-child { margin-bottom: 0; }

/* Section A - Client Engagements: accent = --section-tileHeader orange */
.proj-section-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.proj-section-label {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.proj-section-label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  opacity: 0.5;
}
.proj-section-rule { flex: 1; height: 1px; }

/* Client Engagements - orange */
.proj-section-label.client { color: #b85c00; }
.proj-section-label.client::before { background: #b85c00; }
.proj-section-rule.client { background: linear-gradient(to right, #b85c00, transparent); opacity: 0.3; }

/* Org/Dev - section-timeframe (indigo) */
.proj-section-label.org { color: var(--section-timeframe); }
.proj-section-label.org::before { background: var(--section-timeframe); }
.proj-section-rule.org { background: linear-gradient(to right, var(--section-timeframe), transparent); opacity: 0.25; }

/* Full-width article card */
.proj-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem;
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  margin-bottom: 0.75rem;
}
.proj-card:last-child { margin-bottom: 0; }
.proj-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.proj-card.client:hover { border-color: #b85c00; }
.proj-card.org:hover { border-color: var(--section-timeframe); }

.proj-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}
.proj-card.client .proj-card-title { color: #b85c00; }
.proj-card.org .proj-card-title { color: var(--section-timeframe); }

.proj-card-body {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.80;
  margin-bottom: 0.75rem;
  max-width: 820px;
}

/* Org tags - indigo tint instead of teal */
.proj-card.org .tag {
  color: var(--section-timeframe);
  border-color: #c8caed;
  background: #f0f0fb;
}


/* ====== HONORS ====== */
.honors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.honor-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  background: var(--off-white);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  position: relative;
  overflow: hidden;
}
.honor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.honor-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-light); transform: translateY(-2px); }
.honor-card:hover::before { opacity: 1; }
.honor-title {
  font-family: var(--font-serif);
  font-size: 1.00rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.honor-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.honor-desc { font-size: 0.80rem; color: var(--ink-muted); line-height: 1.6; }

/* ====== PUBLICATION ====== */
.pub-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  background: var(--off-white);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 1.00rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.pub-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}
.pub-abstract { font-size: 0.83rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 0.85rem; }
.pub-link {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--section-tileHeader);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.pub-link:hover { color: var(--accent); border-color: var(--accent); }

/* ====== RECOMMENDATIONS ====== */
.recs-grid { display: flex; flex-direction: column; gap: 1rem; }
.rec-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  background: var(--off-white);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
  display: block;
}
.rec-card:hover { box-shadow: var(--shadow-hover); border-color: var(--rule-strong); transform: translateY(-2px); }
.rec-header { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.85rem; }
.rec-initials {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(26,23,20,0.2);
}
.rec-name { font-size: 0.80rem; font-weight: 500; color: var(--ink); margin-bottom: 0.08rem; }
.rec-role { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); line-height: 1.45; }
.rec-relation { font-family: var(--font-mono); font-size: 0.64rem; color: var(--accent); margin-top: 0.2rem; }
.rec-body {
  font-size: 0.83rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-style: italic;
  padding-left: 1rem;
  border-left: 2px solid var(--champagne);
}

/* ====== BLOGS ====== */
.blog-intro {
  font-size: 0.975rem;
  color: var(--ink-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.filter-bar { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 0.80rem;
  font-family: var(--font-sans);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow-soft);
}
.filter-btn:hover { background: var(--champagne); color: var(--ink); border-color: var(--rule-strong); }
.filter-btn.active { background: var(--ink); color: var(--off-white); border-color: var(--ink); box-shadow: 0 2px 8px rgba(26,23,20,0.2); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.blog-card {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s, border-color 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e6eff6, #ddeaf4);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 7px;
  border-bottom: 1px solid var(--rule);
}
.blog-card-img .b-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #2D5F8A;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; gap: 0.45rem; }
.blog-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.blog-tag {
  background: var(--parchment);
  color: var(--ink-muted);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 100px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid var(--rule);
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.00rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}
.blog-card-desc { font-size: 0.80rem; color: var(--ink-muted); line-height: 1.65; flex: 1; }
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
}
.blog-card-meta { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); }
.blog-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  background: var(--cream);
}
.blog-card:hover .blog-arrow { background: var(--ink); border-color: var(--ink); }
.blog-card:hover .blog-arrow svg { stroke: var(--off-white); }
.blog-arrow svg { width: 11px; height: 11px; stroke: var(--ink-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }

/* ====== CONTACT ====== */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { background: var(--parchment); }
.c-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 90px;
  flex-shrink: 0;
}
.c-value {
  font-size: 0.80rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.c-value:hover { color: var(--accent); }

/* ====== DIGITAL CARD ====== */
.dc-card {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
}
.dc-hero {
  background: #0d1b3e;
  padding: 1.8rem 1.6rem 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.dc-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid #3a5fa0;
  overflow: hidden;
  flex-shrink: 0;
}
.dc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dc-hero-text { flex: 1; }
.dc-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #f0ece4;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.dc-role {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9fc8;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.dc-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a7ab5;
  border: 0.5px solid #3a5fa0;
  padding: 2px 8px;
  border-radius: 2px;
}
.dc-body { padding: 1.2rem 1.6rem; display: flex; flex-direction: column; gap: 0; }
.dc-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.dc-row:last-child { border-bottom: none; }
.dc-row a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 1.4rem; width: 100%; }
.dc-row:hover { color: var(--accent); }
.dc-row:hover .c-value { color: var(--accent); }
.dc-qr-strip {
  border-top: 1px solid var(--rule);
  padding: 1rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--parchment);
}
.dc-qr-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dc-qr-item canvas { border-radius: 4px; }
.dc-qr-lbl {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.dc-qr-sep { width: 1px; background: var(--rule); align-self: stretch; }

/* ====== EDUCATION ====== */
.edu-block { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--rule); }
.edu-grid { display: flex; flex-direction: column; gap: 0; background: var(--off-white); border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); margin-top: 1.4rem; }
.edu-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--section-timeframe);
  font-style: italic;
}
.edu-body h4 { font-family: var(--font-serif); font-size: 1.00rem; font-weight: 400; color: var(--ink); margin-bottom: 0.08rem; }
.edu-body span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--accent); letter-spacing: 0.05em; }

/* ====== FOOTER ====== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.f-name { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); letter-spacing: 0.06em; }
.f-domain { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-muted); }
.f-domain span { color: var(--accent); }

/* ====== FEEDBACK WIDGET ====== */
#fb-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 48px; height: 48px; border-radius: 50%;
  background: #17873a; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: transform 0.2s;
}
#fb-btn:hover { transform: scale(1.08); }
#fb-btn svg { width: 22px; height: 22px; fill: #fff; }
#fb-panel {
  position: fixed; bottom: 88px; right: 28px; z-index: 9999;
  width: 300px; background: #fff; border-radius: 12px;
  border: 0.5px solid #d1d5db; padding: 20px;
  display: none; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12); font-family: inherit;
}
#fb-panel.open { display: flex; }
.fb-title { font-size: 14px; font-weight: 600; color: #111; margin: 0; }
.fb-thumb-row { display: flex; gap: 10px; }
.fb-thumb {
  flex: 1; padding: 8px; border-radius: 8px;
  border: 0.5px solid #d1d5db; background: #f9fafb;
  cursor: pointer; font-size: 18px; text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.fb-thumb:hover, .fb-thumb.selected { background: #ecfdf5; border-color: #17873a; }
#fb-comment {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  border: 0.5px solid #d1d5db; border-radius: 8px;
  font-size: 13px; resize: none; font-family: inherit;
  outline: none; color: #111;
}
#fb-comment:focus { border-color: #17873a; }
#fb-submit {
  background: #17873a; color: #fff; border: none;
  border-radius: 8px; padding: 9px; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: background 0.15s;
}
#fb-submit:hover { background: #12642c; }
#fb-thanks { font-size: 13px; color: #17873a; text-align: center; display: none; }
#fb-error { font-size: 13px; color: #dc2626; text-align: center; display: none; }

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
  .timeline-item::before { display: none; }
  .t-period { text-align: left; padding-right: 0; }
  .hero-cta { flex-direction: column; }
  .nav-brand { display: none; }
  .nav-inner { padding: 0 0.5rem; }
  .nav-links {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; width: 100%;
    justify-content: flex-start; padding: 0 0.5rem; gap: 0.1rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 0.65rem; padding: 0.4rem 0.7rem; opacity: 0.6; }
  .nav-links a.active { opacity: 1; }
}
