/* ===== Variables (ontology / knowledge-graph inspired) ===== */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --text: #e8e6e3;
  --text-muted: #8b92a0;
  /* Entity / primary node */
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.12);
  /* Relation / edge */
  --relation: #7c3aed;
  --relation-soft: rgba(124, 58, 237, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --node-size: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Graph-inspired background: node grid + subtle noise */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 184, 166, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  background-position: 0 0;
}
.noise::after {
  content: '';
  position: absolute;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

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

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); color: var(--text-muted); font-weight: 600; }
h3 { font-size: 1.125rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.logo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.logo::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--relation);
  opacity: 0.9;
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav__cv {
  color: var(--accent) !important;
  font-weight: 600;
}

.nav__cv:hover {
  color: var(--text) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  margin: 0 auto;
}

/* Hero as graph: central node + edges to section nodes */
.hero--graph {
  position: relative;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}
.hero__graph-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}
.hero__graph {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: min(520px, 70vh);
}
.hero__edge {
  stroke: url(#edgeGrad);
  stroke-width: 1.5;
  stroke-opacity: 0.5;
  transition: stroke-opacity var(--transition);
}
.hero--graph:hover .hero__edge {
  stroke-opacity: 0.8;
}
.hero__center-node {
  fill: var(--bg-elevated);
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.95;
}
.hero__graph-node {
  cursor: pointer;
  transition: transform var(--transition);
}
.hero__graph-node:hover {
  transform: scale(1.05);
}
.hero__graph-node:hover .hero__node-circle {
  filter: brightness(1.2);
}
.hero__node-circle {
  fill: var(--relation-soft);
  stroke: var(--relation);
  stroke-width: 2;
  transition: filter var(--transition);
}
.hero__node-label {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  text-anchor: middle;
  pointer-events: none;
}
.hero__center-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
.hero__center-content .hero__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 2px var(--relation-soft);
}
.hero__center-content .hero__greeting {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero__text {
  min-width: 0;
}

.hero__media {
  flex-shrink: 0;
}

.hero__photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero__greeting {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__name {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}
.hero__name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--relation));
  opacity: 0.7;
  border-radius: 1px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 36rem;
}

.hero__open {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 2rem;
  max-width: 36rem;
  font-weight: 500;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover {
  background: #0d9488;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn--outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--outline:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ===== Highlights strip (employer scan) ===== */
.highlights {
  padding: 2rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.highlights__item {
  text-align: center;
  padding: 0.5rem;
}

.highlights__value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.highlights__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.highlights__sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .highlights__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== Triples (subject — predicate → object) ===== */
.triples {
  padding: 3rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.triples__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--relation);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.triples__intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.triples__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  justify-content: center;
}
.triple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}
.triple__subject {
  color: var(--accent);
  font-weight: 500;
}
.triple__predicate {
  color: var(--relation);
  font-weight: 600;
}
.triple__predicate::after {
  content: ' →';
  opacity: 0.9;
}
.triple__object {
  color: var(--text-muted);
}

/* ===== Ontology class section titles (ex:Experience) ===== */
.section__title--class .class-prefix {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--relation);
  font-weight: 500;
}

/* ===== Profile graph section (SVG viz) ===== */
.graph-section__intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}
.graph-viz {
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.graph-viz__svg {
  width: 100%;
  height: auto;
  display: block;
}
.graph-viz__edge {
  stroke: var(--relation);
  stroke-width: 1.5;
  stroke-opacity: 0.6;
  fill: none;
}
.graph-viz__node {
  transition: filter var(--transition);
}
.graph-viz__node:hover {
  filter: brightness(1.15);
}
.graph-viz__node--project {
  fill: var(--bg-elevated);
  stroke: var(--relation);
  stroke-width: 2;
}
.graph-viz__label {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-anchor: middle;
  pointer-events: none;
}
.graph-viz__label--center {
  font-size: 14px;
  font-weight: 600;
}
.graph-viz__label--small {
  font-size: 10px;
  fill: var(--text-muted);
}
.graph-viz__edge-label {
  fill: var(--relation);
  font-family: var(--font-mono);
  font-size: 9px;
  text-anchor: middle;
  pointer-events: none;
  opacity: 0.9;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.section__title {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.section__title::after {
  content: '';
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 2px;
  height: 0.4em;
  background: linear-gradient(to bottom, var(--relation), transparent);
  opacity: 0.6;
  border-radius: 1px;
}

/* About */
.about__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 38rem;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__content strong {
  color: var(--accent);
  font-weight: 500;
}

.about__focus {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Experience timeline — graph spine + nodes */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 1px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--relation), transparent);
  opacity: 0.35;
  border-radius: 1px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem 0;
  padding-left: 0.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.5rem;
  width: var(--node-size);
  height: var(--node-size);
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  z-index: 1;
  transition: var(--transition);
}
.timeline__item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.timeline__company {
  font-size: 0.9rem;
  color: var(--accent);
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 400;
}

.timeline__place {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.timeline__body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline__body strong {
  color: var(--text);
}

/* Projects */
.projects__intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.projects__grid,
.projects__main {
  display: grid;
  gap: 1.5rem;
}

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

.card--project .card__date {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 400;
}

.card--project p {
  margin-bottom: 1rem;
}

.card--project-main p {
  line-height: 1.6;
  color: var(--text-muted);
}

.card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.card__link:hover {
  text-decoration: underline;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.tag-list li {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
  font-family: var(--font-mono);
  position: relative;
  padding-left: 1.25rem;
}
.tag-list li::before {
  content: '→';
  position: absolute;
  left: 0.5rem;
  color: var(--relation);
  font-weight: 600;
  opacity: 0.8;
}

.projects__other {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.projects__other h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.projects__other p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Education */
.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card--edu .card__org {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.card--edu .card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

/* Thesis */
.thesis__content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.thesis__title-line {
  font-size: 1.05rem;
  color: var(--text) !important;
}

.thesis__content .btn {
  margin-top: 0.5rem;
}

.thesis__content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.thesis__abstract,
.thesis__key,
.thesis__research-questions,
.thesis__tech {
  max-width: 44rem;
}

.thesis__key ul,
.thesis__research-questions ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: var(--text-muted);
}

.thesis__key li,
.thesis__research-questions li {
  margin-bottom: 0.6rem;
  line-height: 1.55;
}

.thesis__figures {
  margin-top: 2.5rem;
  max-width: 52rem;
}

.thesis__figures h3 {
  margin-bottom: 1rem;
}

.thesis__figure {
  margin: 2rem 0;
  padding: 0;
}

.thesis__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.thesis__figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.thesis__tech p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Skills */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  padding-left: 1.75rem;
}
.skill-group::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--relation);
  opacity: 0.8;
}

.skill-group h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Testimonials */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--relation);
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Contact location */
.contact__location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Work grid (legacy, kept for structure) */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--relation));
  opacity: 0.7;
  border-radius: 3px 0 0 3px;
}

.card:hover {
  border-color: rgba(20, 184, 166, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.link {
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .timeline__item::before {
    top: 1.5rem;
  }

  .timeline__meta {
    gap: 0.15rem;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero__media {
    order: -1;
    justify-self: center;
  }

  .hero__photo {
    width: 200px;
    height: 200px;
  }

  .hero__tagline {
    max-width: none;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__name::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .hero--graph .hero__graph-wrap {
    display: none;
  }
  .hero--graph .hero__center-content {
    flex-direction: column;
    text-align: center;
  }
  .hero--graph .hero__center-content .hero__photo {
    width: 120px;
    height: 120px;
  }

  .triples__list {
    flex-direction: column;
    align-items: stretch;
  }
  .triple {
    justify-content: flex-start;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .nav a {
    font-size: 1rem;
  }
}

/* Optional: mobile nav open state (script will toggle class) */
.header.nav-open .nav {
  display: flex;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 1.5rem 2rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

@media (min-width: 641px) {
  .header.nav-open .nav {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
  }
}
