/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --accent:       #2368ab;
  --accent-dark:  #1a4f8a;

  /* Surfaces */
  --bg:           #f7f7f5;
  --bg-card:      #ffffff;
  --bg-subtle:    #f0f0ee;

  /* Text */
  --text:         #111111;
  --muted:        #6c7280;
  --on-accent:    #ffffff;

  /* Structure */
  --border:       #e4e4e2;

  /* Shape */
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-pill:  999px;

  /* Shadow */
  --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.09);

  /* Spacing — 8-point grid */
  --s-1:   0.25rem;   /*  4px */
  --s-2:   0.5rem;    /*  8px */
  --s-3:   0.75rem;   /* 12px */
  --s-4:   1rem;      /* 16px */
  --s-5:   1.5rem;    /* 24px */
  --s-6:   2rem;      /* 32px */
  --s-7:   3rem;      /* 48px */
  --s-8:   4rem;      /* 64px */
  --s-9:   6rem;      /* 96px */
  --s-10:  8rem;      /* 128px */

  /* Type scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.375rem;
  --t-xl:   clamp(1.5rem, 2.5vw, 2.125rem);
  --t-2xl:  clamp(1.875rem, 3.5vw, 2.875rem);
  --t-3xl:  clamp(2.25rem, 5vw, 3.75rem);
  --t-hero: clamp(2.75rem, 6.5vw, 5.25rem);

  /* Line height */
  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  /* Font (Plus Jakarta Sans via Google Fonts) */
  --font:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --fw-reg:   400;
  --fw-med:   500;
  --fw-semi:  600;
  --fw-bold:  700;
  --fw-disp:  800;

  /* Layout */
  --maxw:        1160px;
  --maxw-sm:     700px;
  --gutter:      clamp(1rem, 4vw, 2rem);
  --section-gap: clamp(1.5rem, 3.5vw, 2.75rem);

  /* Motion */
  --ease:     200ms ease;
  --ease-out: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}


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

/* Ensure [hidden] always wins over any display property set in CSS */
[hidden] { display: none !important; }

html {
  background-color: red;
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  p, h1, h2, h3, h4, h5, h6 {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

body {
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: var(--fw-reg);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a       { color: inherit; text-decoration: none; }
ul, ol  { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--sm { max-width: var(--maxw-sm); }

.section      { padding-block: var(--section-gap); }
.section--alt { background-color: var(--bg-subtle); }

.section-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.section-heading {
  font-size: var(--t-2xl);
  font-weight: var(--fw-disp);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--s-5);
}

.section-intro {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: var(--lh-body);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.65rem var(--s-5);
  min-height: 44px;
  border-radius: var(--radius-lg);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn--primary            { background-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover      { background-color: var(--accent-dark); }

.btn--outline            { background-color: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn--outline:hover      { background-color: var(--accent); color: var(--on-accent); }

.btn--ghost              { color: var(--accent); font-weight: var(--fw-semi); min-height: auto; padding: 0; }
.btn--ghost:hover        { text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-pill);
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--bg-subtle);
  color: var(--muted);
  white-space: nowrap;
}

.tag--accent {
  background-color: rgba(35, 104, 171, 0.1);
  color: var(--accent);
}


/* ============================================================
   IMAGE PLACEHOLDER (dev helper — replace with real <img> tags)
   ============================================================ */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background-color: var(--bg-subtle);
  border: 2px dashed var(--border);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--t-sm);
}


/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background-color: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  height: 68px;
}

.nav__logo {
  font-size: var(--t-md);
  font-weight: var(--fw-disp);
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
  transition: color var(--ease);
}
.nav__logo:hover { color: var(--accent); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: var(--fw-med);
  color: var(--muted);
  padding-block: var(--s-1);
  transition: color var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"]       { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

/* Hamburger button */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  width: 44px;
  height: 44px;
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Close button — only shown inside the full-screen mobile menu */
.nav__close {
  display: none;
}

@media (max-width: 767px) {
  .nav__toggle { display: flex; }

  /* Full-screen overlay menu */
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
    padding: var(--s-8) var(--s-6) var(--s-7);
    background: var(--bg-card);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--ease-out), visibility 0s 300ms;
    overflow: hidden;
    z-index: 9999;
    margin-left: 0;
  }

  .nav__menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--ease-out), visibility 0s 0s;
  }

  .nav__menu li {
    width: auto;
    border-bottom: none;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: var(--s-3) 0;
    font-size: var(--t-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .nav__cta { margin-top: var(--s-3); }

  /* Close button inside the full-screen menu */
  .nav__close {
    display: flex;
    position: absolute;
    top: 15px;
    right: calc(var(--gutter) + 10px);
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  }
  .nav__close:hover {
    background-color: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
  }
}


/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--s-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.footer__copy { font-size: var(--t-sm); }

.footer__link {
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.footer__link:hover { color: #fff; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: clamp(var(--s-6), 4vw, var(--s-8));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 42fr 58fr;
    gap: clamp(var(--s-7), 6vw, var(--s-9));
    align-items: stretch;
  }
}

/* Portrait: square on mobile, full-height flush on desktop */
.hero__portrait-wrap {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-subtle);
}

@media (min-width: 768px) {
  .hero__portrait-wrap {
    aspect-ratio: unset;
    min-height: 420px;
  }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text column */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.hero__eyebrow {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero__highlight {
  color: var(--accent);
  font-style: normal;
}

.hero__subline {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: var(--lh-body);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-2);
}


.hero__link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  white-space: nowrap;
  transition: gap var(--ease), text-decoration-color var(--ease);
}
.hero__link-arrow:hover {
  gap: var(--s-3);
  text-decoration-color: var(--text);
}



/* ============================================================
   INTRO
   ============================================================ */
.intro {
  padding-block: var(--s-7) var(--s-9);
  border-top: 1px solid var(--border);
}

.intro__text {
  font-size: var(--t-xl);
  font-weight: var(--fw-med);
  line-height: var(--lh-snug);
  color: var(--text);
}


/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  padding-block: var(--s-5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients__label {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: var(--s-4);
}

@media (max-width: 639px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6) var(--s-4);
  }
}

.client-logo {
  height: 43px;
  width: auto;
  max-width: 100%;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity var(--ease), filter var(--ease);
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 639px) {
  .client-logo { height: 50px; }
}

/* Text placeholder — remove once real logos are in place */
.client-logo--text {
  font-size: var(--t-sm);
  font-weight: var(--fw-bold);
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 640px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects__grid { grid-template-columns: repeat(3, 1fr); }
}

.projects__more {
  margin-top: var(--s-7);
  text-align: center;
}

/* Card */
.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}

@media (min-width: 640px) {
  .project-card { height: 440px; }
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.project-card__img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.project-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.project-card:hover .project-card__img-wrap img { transform: scale(1.03); }

.project-card__body {
  padding: var(--s-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.project-card__title {
  font-size: var(--t-md);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--text);
}

.project-card__desc {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
  flex: 1;
}

.project-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--accent);
  margin-top: var(--s-2);
  transition: gap var(--ease);
}
.project-card:hover .project-card__arrow { gap: var(--s-3); }


/* ============================================================
   STRENGTHS
   ============================================================ */
.strengths__header { margin-bottom: var(--s-6); }

.strengths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .strengths__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .strengths__grid { grid-template-columns: repeat(4, 1fr); }
}

.strength-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.strength-item__num {
  font-size: var(--t-sm);
  font-weight: var(--fw-bold);
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.strength-item__title {
  font-size: var(--t-md);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--text);
}

.strength-item__desc {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
}


/* ============================================================
   APPROACH CAROUSEL
   ============================================================ */
.approach__header { margin-bottom: var(--s-6); }

/* No-JS fallback: all slides stacked, no controls */
.carousel__slide {
  display: block;
  padding-block: var(--s-6);
  border-top: 1px solid var(--border);
}

.carousel__controls { display: none; }

/* JS-active: grid overlay — all slides occupy the same cell so the
   tallest one sets the height. Hidden slides use visibility so they
   still contribute to layout but are invisible. */
.carousel--js .carousel__track {
  display: grid;
}

.carousel--js .carousel__slide {
  grid-area: 1 / 1;
  padding: 0;
  border-top: none;
  visibility: hidden;
  pointer-events: none;
}

.carousel--js .carousel__slide.is-active {
  visibility: visible;
  pointer-events: auto;
}

.carousel--js .carousel__controls:not(.carousel__controls--inner) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

/* Slide layout */
.carousel__slide-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
  padding-block: var(--s-2);
}

@media (min-width: 768px) {
  .carousel__slide-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}

.carousel__step-num {
  display: block;
  font-size: var(--t-3xl);
  font-weight: var(--fw-disp);
  color: rgba(35, 104, 171, 0.14);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-3);
  user-select: none;
}

.carousel__step-title {
  font-size: var(--t-xl);
  font-weight: var(--fw-disp);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.carousel__step-desc {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: var(--lh-body);
  max-width: 42ch;
}

.carousel__img-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
}

.carousel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next buttons */
.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: var(--t-lg);
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.carousel__btn:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--on-accent);
}

/* Inner controls — between text and image on mobile */
.carousel__controls--inner {
  display: none;
}

@media (max-width: 767px) {
  .carousel--js .carousel__controls--inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-4);
  }

  .carousel--js .carousel__controls:not(.carousel__controls--inner) {
    display: none;
  }
}

/* Dot indicators */
.carousel__dots {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color var(--ease), transform var(--ease);
}
.carousel__dot.is-active     { background-color: var(--accent); transform: scale(1.35); }
.carousel__dot:hover:not(.is-active) { background-color: var(--muted); }


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
}

@media (max-width: 767px) {
  .contact .contact__heading,
  .contact .contact__text {
    text-align: center;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

.contact__inner {
  max-width: var(--maxw-sm);
  margin-inline: auto;
}

.contact__heading {
  font-size: var(--t-2xl);
  font-weight: var(--fw-disp);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--text);
  margin-bottom: var(--s-4);
}

.contact__text {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: var(--lh-body);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}

.contact__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}


/* ============================================================
   EXPERIENCE PAGE
   ============================================================ */

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Small button variant */
.btn--sm {
  padding: 0.4rem var(--s-4);
  min-height: 34px;
  font-size: var(--t-xs);
  gap: var(--s-2);
}

/* Page hero */
.exp-hero {
  padding-block: var(--s-7) var(--s-5);
  border-bottom: 1px solid var(--border);
}

.exp-hero__title {
  font-size: var(--t-2xl);
  font-weight: var(--fw-disp);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-block: var(--s-3) var(--s-5);
}

.exp-hero__sub {
  font-size: var(--t-lg);
  color: var(--muted);
  line-height: var(--lh-body);
  max-width: 60ch;
}

/* ---- Timeline container ---- */
.timeline {
  position: relative;
  padding-top: var(--s-5);
  margin-bottom: var(--s-9);
}

/* Vertical connecting line */
.timeline::before {
  content: '';
  position: absolute;
  /* timeline padding-top + node padding-top + half dot (24+40+7 = 71px) */
  top: calc(var(--s-5) * 2 + var(--s-3) + 11px);
  bottom: 0;
  /* date col 192px + half of 44px node col − 1px to center the 2px line */
  left: 213px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border) 0%, var(--accent) 60%, transparent 100%);
  z-index: 0;
}

/* ---- Timeline item ---- */
.timeline__item {
  display: grid;
  grid-template-columns: 192px 44px 1fr;
  gap: 0;
  margin-bottom: var(--s-7);
  align-items: start;
}

/* Parallel entry: slight indent to signal nesting */
.timeline__item--parallel {
  padding-left: var(--s-6);
}

/* Date label column */
.timeline__meta {
  text-align: right;
  padding-right: var(--s-4);
  /* align vertically with card heading */
  padding-top: calc(var(--s-5) + var(--s-3) + 2px);
}

.timeline__year {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  color: var(--muted);
  line-height: var(--lh-body);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Dot column */
.timeline__node {
  display: flex;
  justify-content: center;
  padding-top: calc(var(--s-5) + var(--s-3) + 4px);
  position: relative;
  z-index: 1;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  flex-shrink: 0;
}

/* Hollow dot for parallel/branch entries */
.timeline__dot--hollow {
  background: var(--bg-card);
}

/* Pulsing ring for most-recent entry */
.timeline__dot--current {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(35, 104, 171, 0.18);
}

/* ---- Timeline card ---- */
.timeline__card {
  margin-left: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}

/* Story/spark card: softer visual */
.timeline__card--spark {
  background: var(--bg-subtle);
  border-style: dashed;
}

.timeline__card-head {
  margin-bottom: var(--s-4);
}

.timeline__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.timeline__role {
  font-size: var(--t-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
  color: var(--text);
  margin-bottom: var(--s-2);
}

.timeline__org {
  font-size: var(--t-sm);
  color: var(--muted);
  font-weight: var(--fw-med);
}

.timeline__dates {
  font-size: var(--t-xs);
  color: var(--muted);
  font-weight: var(--fw-semi);
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-top: var(--s-2);
  flex-shrink: 0;
}

.timeline__meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-2);
  flex-shrink: 0;
}

.timeline__narrative {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: var(--s-4);
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.timeline__bullets li {
  font-size: var(--t-sm);
  color: var(--text);
  padding-left: var(--s-5);
  position: relative;
  line-height: var(--lh-body);
}

.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.timeline__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

/* ---- Skills strip ---- */
.skills-strip {
  padding-top: var(--s-7);
  margin-top: var(--s-2);
  border-top: 1px solid var(--border);
}

.skills-strip__heading {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-5);
}

.skills-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}


/* ============================================================
   WORK PAGE
   ============================================================ */
.work-hero {
  padding-block: var(--s-7) var(--s-6);
  border-bottom: 1px solid var(--border);
}

/* Larger grid on work page — 3 cols max, no fixed height */
.projects__grid--full {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .projects__grid--full { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects__grid--full { grid-template-columns: repeat(3, 1fr); }
}

.projects__grid--full .project-card {
  height: 460px;
}


/* ============================================================
   PROJECT TEMPLATE
   ============================================================ */

/* Hero */
.project-hero {
  padding-top: var(--s-7);
}

.project-hero__content {
  padding-bottom: var(--s-6);
}

.project-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.project-hero__title {
  font-size: var(--t-3xl);
  font-weight: var(--fw-disp);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.project-hero__summary {
  font-size: var(--t-lg);
  color: var(--muted);
  line-height: var(--lh-body);
  max-width: 60ch;
}

.project-hero__img-wrap {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  margin-top: var(--s-6);
}

.project-hero__placeholder {
  min-height: unset;
  height: 100%;
  border-radius: 0;
  border: none;
}

.project-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta bar */
.project-meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s-5);
  background: var(--bg-card);
}

.project-meta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.project-meta__label {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta__value {
  font-size: var(--t-md);
  font-weight: var(--fw-semi);
  color: var(--text);
}

/* Overview grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 640px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
}

.overview-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5) var(--s-6);
}

.overview-block__text {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
  margin-top: var(--s-3);
}

.overview-block__team-list {
  margin-top: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.overview-block__team-list li {
  font-size: var(--t-sm);
  color: var(--text);
  padding-left: var(--s-4);
  position: relative;
  line-height: var(--lh-body);
}

.overview-block__team-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Task list */
.task-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: var(--s-6);
  counter-reset: task-counter;
}

@media (min-width: 640px) {
  .task-list { grid-template-columns: repeat(2, 1fr); }
}

.task-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text);
  line-height: var(--lh-body);
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--border);
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  counter-increment: task-counter;
}

@media (min-width: 640px) {
  .task-list__item:nth-child(even) {
    padding: var(--s-5) 0 var(--s-5) var(--s-5);
    border-left: 1px solid var(--border);
  }
}

@media (max-width: 639px) {
  .task-list__item {
    padding: var(--s-4) 0;
    border-left: none;
  }
}

.task-list__item::before {
  content: "0" counter(task-counter);
  font-size: var(--t-lg);
  font-weight: var(--fw-disp);
  color: var(--accent);
  line-height: 1;
  min-width: 2rem;
  flex-shrink: 0;
}


/* Approach steps */
.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s-6);
}

.approach-step {
  border-top: 1px solid var(--border);
  padding-top: var(--s-6);
  padding-bottom: var(--s-6);
}

.approach-step__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}

@media (min-width: 768px) {
  .approach-step__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  /* Alternate image side on even steps */
  .approach-step:nth-child(even) .approach-step__img-wrap {
    order: -1;
  }
}

.approach-step__num {
  display: block;
  font-size: var(--t-3xl);
  font-weight: var(--fw-disp);
  color: rgba(35, 104, 171, 0.12);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-3);
  user-select: none;
}

.approach-step__title {
  font-size: var(--t-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.approach-step__desc {
  font-size: var(--t-md);
  color: var(--muted);
  line-height: var(--lh-body);
}

.approach-step__img-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.approach-step__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Impact table */
.impact-table {
  margin-top: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.impact-table__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: var(--s-3) var(--s-5);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.impact-table__head span {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.impact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  padding: var(--s-4) var(--s-5);
}

.impact-row + .impact-row {
  border-top: 1px solid var(--border);
}

.impact-row__dim {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-right: var(--s-5);
}

.impact-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background-color: var(--accent);
  flex-shrink: 0;
}

.impact-row__icon img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.impact-row__label {
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  color: var(--text);
  line-height: var(--lh-snug);
}

.impact-row__outcome {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
}

@media (max-width: 639px) {
  .impact-table__head { display: none; }

  .impact-row {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    align-items: start;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.gallery-item__placeholder {
  aspect-ratio: 1 / 1;
  min-height: unset;
  border-radius: var(--radius-lg);
}

.gallery-item__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.gallery-item__caption {
  font-size: var(--t-xs);
  color: var(--muted);
  padding-inline: var(--s-1);
}

/* Back navigation */
.project-nav {
  padding-block: var(--s-5);
  margin-top: var(--s-4);
}

.project-nav--top {
  border-top: none;
  border-bottom: 1px solid var(--border);
  padding-block: var(--s-4);
  margin-top: 0;
}

/* Gallery items are made clickable by JS */
.gallery-item { cursor: zoom-in; }
.gallery-item:hover .gallery-item__img {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover .gallery-item__placeholder { opacity: 0.88; transition: opacity var(--ease); }

/* Mobile adjustments */
@media (max-width: 767px) {
  .project-meta__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .project-hero__title {
    font-size: var(--t-2xl);
  }
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__close {
  position: fixed;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.25); }

/* Wrapper: image on top, nav buttons below */
.lightbox__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  width: 95vw;
  padding-block: var(--s-8) var(--s-5);
}

.lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--t-xs);
  text-align: center;
}

/* Prev / Next row — always below the image */
.lightbox__nav {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
}

.lightbox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: var(--t-lg);
  flex-shrink: 0;
  transition: background var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox__placeholder {
  width: clamp(240px, 60vw, 600px);
  height: clamp(240px, 60vw, 600px);
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--t-sm);
}

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
  .timeline::before {
    left: 15px;
  }

  .timeline__item {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto;
  }

  /* Hide date column on mobile — date shown in card */
  .timeline__meta { display: none; }

  .timeline__node {
    grid-column: 1;
    grid-row: 1;
    padding-top: calc(var(--s-5) + var(--s-3) + 2px);
  }

  .timeline__card {
    grid-column: 2;
    grid-row: 1;
    margin-left: var(--s-4);
  }

  /* Show date inside card on mobile */
  .timeline__dates {
    display: block;
    margin-bottom: var(--s-2);
  }

  .timeline__item--parallel {
    padding-left: 0;
  }

  .timeline__title-row {
    flex-direction: column;
    gap: var(--s-2);
  }

  .timeline__meta-right {
    align-items: flex-start;
  }

  .exp-hero__sub {
    max-width: 100%;
  }
}


/* ============================================================
   IMPRESSUM / LEGAL PAGE
   ============================================================ */
.legal-body {
  padding-block: var(--s-8) var(--s-9);
}

/* Separator between Impressum and Datenschutz blocks */
.legal-section + .legal-section {
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--border);
}

/* Section title with accent underline */
.legal-section h2 {
  font-size: var(--t-2xl);
  font-weight: var(--fw-disp);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--text);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-6);
  border-bottom: 2px solid var(--accent);
}

/* Numbered section headings (1. Datenschutz auf einen Blick …) */
.legal-section h3 {
  font-size: var(--t-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}

/* Sub-section headings */
.legal-section h4 {
  font-size: var(--t-base);
  font-weight: var(--fw-semi);
  color: var(--text);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}

.legal-section p {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: var(--s-3);
}

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

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover { text-decoration: none; }

/* Postal / contact address blocks */
.legal-address {
  display: block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  font-style: normal;
  font-size: var(--t-sm);
  line-height: 1.85;
  color: var(--text);
  margin-block: var(--s-4);
}

/* GDPR mandated all-caps paragraph */
.legal-caps {
  font-size: var(--t-xs);
  font-weight: var(--fw-semi);
  color: var(--text);
  line-height: var(--lh-body);
  letter-spacing: 0.01em;
  margin-bottom: var(--s-3);
}

/* End-of-page note ("Impressum & Privacy / © All rights reserved.") */
.legal-footer-note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: var(--lh-body);
}


/* ============================================================
   PROJECT PAGE — readtime + team cards
   ============================================================ */

/* "2 min read" label above hero tags */
.project-hero__readtime {
  font-size: var(--t-xs);
  font-weight: var(--fw-med);
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
}

/* Team member chips in "Who I worked with" */
.team-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-2) var(--s-4);
  font-size: var(--t-sm);
  font-weight: var(--fw-med);
  color: var(--text);
  white-space: nowrap;
}


/* ============================================================
   SKILLS AREAS — index.html (below My expertise cards)
   ============================================================ */
.skills-areas {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}

.skills-areas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-4);
}

@media (min-width: 768px) {
  .skills-areas__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  /* Inset each column so the border sits centred in the gap */
  .skills-area          { padding-inline: var(--s-6); }
  .skills-area:first-child { padding-left: 0; }
  .skills-area:last-child  { padding-right: 0; }

  /* Vertical divider between columns */
  .skills-area + .skills-area { border-left: 1px solid var(--border); }
}

/* Horizontal divider between stacked rows on mobile */
@media (max-width: 767px) {
  .skills-area + .skills-area {
    border-top: 1px solid var(--border);
    padding-top: var(--s-5);
  }
}

.skills-area__title {
  font-size: var(--t-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--s-4);
}

.skills-area__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
