:root {
  --bg: #0f1b16;
  --bg-soft: #1e3329;
  --card: #1b2e23;
  --primary: #2f5d46;
  --primary-2: #3a6e54;
  --accent: #9e7a3e;
  --accent-soft: #c9a55a;
  --text: #eef3ef;
  --muted: #b7c6bc;
  --line: rgba(190, 173, 147, 0.28);
  --cream: #e8d8c4;

  /* Surface system — plain sections: lift up; panel sections: inset down */
  --surface-on-plain: #18271f;       /* metric/project cards on dark bg */
  --surface-on-plain-2: #192921;     /* editorial cards on dark bg — slightly richer */
  --surface-on-panel: #18271f;       /* timeline/nested items on bg-soft */
  --surface-on-panel-deep: #17241d;  /* deeper inset on bg-soft */
  --line-soft: rgba(190,173,147,0.16);
  --line-strong: rgba(201,165,90,0.30);
  --toplight: rgba(255,255,255,0.028);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0c1511 100%);
  color: var(--text);
  scroll-behavior: smooth;
}

/* ─── Page-level ambient gradient layer ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 8%,  rgba(201,165,90,0.055), transparent 24%),
    radial-gradient(circle at 18% 22%, rgba(58,110,84,0.08),   transparent 32%),
    linear-gradient(158deg, transparent 0%, rgba(58,110,84,0.04) 40%, transparent 72%);
}

main, header, footer { position: relative; z-index: 1; }

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.btn:focus-visible,
.nav-list a:focus-visible {
  border-radius: 10px;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(12, 21, 17, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(47, 93, 70, 0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(138, 107, 71, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 5%;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.lede {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 820px;
}

.section-card {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}
.section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}
/* subtle directional wash — echoes the page ambient light */
.section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(201,165,90,0.04), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(58,110,84,0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.section-card > * { position: relative; z-index: 1; }

.cta-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #f7fbf8;
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-tertiary {
  border-color: rgba(182, 151, 115, 0.45);
  background: rgba(138, 107, 71, 0.14);
  color: var(--cream);
}

.btn-tertiary:hover {
  background: rgba(138, 107, 71, 0.25);
}

.grid.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.metric-card {
  background: linear-gradient(180deg, var(--toplight) 0%, rgba(255,255,255,0) 100%), var(--surface-on-plain);
  border: 1px solid var(--line-soft);
  border-top: 2px solid rgba(201,165,90,0.72);
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 6px 20px rgba(0,0,0,0.22);
  transition: border-color 0.15s, transform 0.15s;
}
.metric-card:hover {
  border-top-color: var(--accent-soft);
  transform: translateY(-2px);
}

.metric-logo {
  display: block;
  max-width: 100px;
  height: 22px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 0.6rem 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.metric-logo--talend {
  max-width: 90px;
}

.metric-card h3 {
  display: block;
  color: var(--accent-soft);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.10) 100%), var(--surface-on-panel);
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(201,165,90,0.55);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: border-left-color 0.15s;
}
.timeline-item:hover {
  border-left-color: var(--accent-soft);
}

.timeline-item ul {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-intro {
  margin: -0.4rem 0 1.2rem;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card {
  background: linear-gradient(180deg, var(--toplight) 0%, rgba(255,255,255,0.008) 100%), var(--surface-on-plain-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 8px 24px rgba(0,0,0,0.24);
}

.project-card--summary {
  display: grid;
  gap: 0.85rem;
}

/* Featured project card — same surface as standard, gold border for distinction */
.project-card--featured {
  border-color: rgba(201,165,90,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 28px rgba(0,0,0,0.28);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Teaser card — focal bridge, more vertical breathing room */
.project-card--teaser {
  padding: 2.2rem;
  margin-bottom: 0;
}

.project-block {
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.10) 100%), var(--surface-on-plain-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid rgba(201,165,90,0.4);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.project-block__label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-soft);
  font-weight: 600;
  margin: 0;
}

.project-block p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.97rem;
  margin: 0;
}

.project-card__header {
  display: grid;
  gap: 0.2rem;
}

.project-kicker {
  margin: 0;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  display: grid;
  gap: 0.35rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1px solid rgba(231, 210, 187, 0.4);
  padding-bottom: 0.08rem;
}

.text-link:hover {
  color: var(--cream);
  border-bottom-color: rgba(231, 210, 187, 0.8);
}

.project-hero {
  padding-top: 4.2rem;
}

.project-container {
  width: min(780px, 92%);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--cream);
}

.project-brief {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.project-visual-wrap {
  margin: 1.2rem 0 1.35rem;
}

.project-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.project-visual figcaption {
  margin: 0;
  padding: 0.78rem 0.95rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.project-brief h2 {
  font-size: 1.08rem;
  margin-top: 0.35rem;
}

.cta-row--project {
  margin-top: 1.4rem;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

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

.resume-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.resume-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.resume-card__header h3 {
  margin: 0;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex: 0 0 auto;
}

.resume-card ul {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.skills-clusters {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.skill-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.skill-cluster-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin: 0;
  font-weight: 600;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  border: 1px solid rgba(190,173,147,0.14);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: var(--cream);
  font-size: 0.88rem;
  background: rgba(15,27,22,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: background 0.15s, border-color 0.15s;
}
.chip:hover {
  background: rgba(15,27,22,0.34);
  border-color: rgba(201,165,90,0.24);
}

.section-contact p {
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .grid.metrics,
  .org-grid,
  .resume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 0;
  }

  .nav-list {
    gap: 0.7rem;
    flex-wrap: wrap;
  }

  .nav-list a {
    font-size: 0.9rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-photo {
    width: min(100%, 300px);
  }

  .section {
    padding: 3.6rem 0;
  }

  .cta-row {
    gap: 0.65rem;
  }

  .btn {
    width: 100%;
  }

  .grid.metrics,
  .org-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .timeline-item {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

