/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --color-bg:       #fafaf8;
  --color-bg-alt:   #f2ede5;
  --color-text:     #1c1a17;
  --color-muted:    #72675c;
  --color-border:   #e0d9d0;
  --color-accent:   #8a6d47;
  --color-accent-hover: #7a5e38;
  --color-dark:     #1c1a17;

  --font:           'Inter', sans-serif;
  --font-display:   'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;

  --shadow-sm:      0 1px 4px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.03);
  --shadow-md:      0 4px 16px rgba(0,0,0,.07), 0 8px 32px rgba(0,0,0,.04);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --shadow-warm:    24px 28px 56px rgba(138,109,71,.16), 0 4px 16px rgba(0,0,0,.10);

  --transition:     0.3s ease;

  --section-py:     clamp(5rem, 10vw, 9rem);
  --container:      1200px;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.section {
  padding: var(--section-py) 0;
}
.section:nth-child(even) { background: var(--color-bg-alt); }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
  padding-left: .625rem;
  border-left: 2px solid var(--color-accent);
}
.section__label--light {
  color: rgba(255,255,255,.6);
  border-left-color: rgba(255,255,255,.4);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  letter-spacing: .01em;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,26,23,.2);
}
.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .7s ease forwards;
}
.fade-in--delay-1 { animation-delay: .1s; }
.fade-in--delay-2 { animation-delay: .2s; }
.fade-in--delay-3 { animation-delay: .35s; }
.fade-in--delay-4 { animation-delay: .5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

/* White text / icons while nav is transparent over hero image */
.nav:not(.scrolled) .nav__logo { color: #fff; }
.nav:not(.scrolled) .nav__logo:hover { color: rgba(255,255,255,.75); }
.nav:not(.scrolled) .nav__links {
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.nav:not(.scrolled) .nav__link { color: rgba(255,255,255,.65); }
.nav:not(.scrolled) .nav__link:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav:not(.scrolled) .nav__link.active {
  background: rgba(255,255,255,.2);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}


.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.nav__logo {
  grid-column: 1;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color var(--transition);
}
.nav__logo:hover { color: var(--color-accent); }

/* Button-border segmented control (UntitledUI "button-border horizontal") */
.nav__links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  background: rgba(0,0,0,.05);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  list-style: none;
}
.nav__link {
  display: block;
  padding: .375rem .875rem;
  border-radius: 7px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.nav__link:hover {
  background: rgba(0,0,0,.04);
  color: var(--color-text);
}
.nav__link.active {
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
}

/* Hero LinkedIn icon button */
.hero__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem .5rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
  flex-shrink: 0;
}
.hero__linkedin svg {
  width: auto;
  height: calc(0.95rem * 1.2 + 1.7rem);
}
.hero__linkedin:hover {
  color: #0a66c2;
}


.nav__linkedin {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end; /* grid: stick to right of column 3 */
  width: 34px;
  height: 34px;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: color var(--transition);
}
.nav__linkedin:hover { color: #0a66c2; }
.nav:not(.scrolled) .nav__linkedin { color: rgba(255,255,255,.65); }
.nav:not(.scrolled) .nav__linkedin:hover { color: #fff; }

/* ─────────────────────────────────────────
   MOBILE OVERLAY
───────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav-overlay.open { transform: none; }

.nav-overlay__close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--color-muted);
  padding: .5rem;
  width: 44px; height: 44px;
}
.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.nav-overlay__links a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color var(--transition);
}
.nav-overlay__links a:hover { color: var(--color-accent); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 0;
  position: relative;
  background: url('../assets/images/hero-full.jpg?v=1') center top / cover no-repeat;
  overflow: hidden;
}

/* Dark gradient overlay — keeps bottom text readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.15) 35%,
    rgba(0,0,0,.60) 75%,
    rgba(0,0,0,.78) 100%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
  padding-top: clamp(6rem, 12vw, 8rem);
  padding-bottom: clamp(5rem, 10vw, 7rem);
  position: relative;
}

/* Eyebrow with leading dash */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: rgba(255,255,255,.6);
  flex-shrink: 0;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -.03em;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  margin: 0.75rem 0 1rem;
}
/* Typewriter target: each line shrinks to content so the caret hugs the text */
.hero__name span {
  align-self: flex-start;
  min-height: 1em; /* hold the line height even when empty (no layout shift) */
}
/* Blinking caret shown on the line currently being typed */
.hero__name span.is-typing::after {
  content: '';
  display: inline-block;
  width: .05em;
  height: .78em;
  background: currentColor;
  margin-left: .08em;
  vertical-align: -.04em;
  animation: caretBlink .7s steps(1) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

.hero__tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.25rem;
  line-height: 1.55;
  letter-spacing: .01em;
}

/* Thin divider between tagline and sub text */
.hero__divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.3);
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(.9rem, 1.6vw, 1rem);
  color: rgba(255,255,255,.7);
  max-width: 420px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}
.br-desktop { display: none; }
.hero__ctas {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
}

/* Image side */
.hero__image {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Decorative background card behind the photo */
.hero__image::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: calc(50% - min(170px, 40vw) - 16px);
  width: min(310px, 75vw);
  height: 92%;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero__image-wrap {
  position: relative;
  z-index: 1;
  width: min(340px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  background: #1a1a1a;
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  animation: bounce 2.5s ease-in-out infinite;
  opacity: .5;
  transition: opacity var(--transition);
}
.hero__scroll:hover { opacity: .9; }

/* Hero CTA buttons — white outline variant */
.hero .btn--outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.hero .btn--outline:hover {
  border-color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  color: #fff;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.about__image {
  display: none;
}
.about__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about__content { }
.about__text {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
  font-size: .97rem;
}
.about__values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.about .value-card { background: var(--color-bg); }
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.value-card__icon {
  display: block;
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: .5rem;
}
.value-card strong {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.value-card p {
  font-size: .82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   EXPERIENCE
───────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

/* Side-by-side pair of experience cards (mobile: stacked) */
.timeline__duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.exp-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.experience .exp-card { background: var(--color-bg); }
.exp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.exp-card__header {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.exp-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.exp-card__role {
  font-size: .9rem;
  color: var(--color-muted);
  font-weight: 500;
}
.exp-card__meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.exp-card__date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: .04em;
}
.exp-card__location {
  font-size: .8rem;
  color: var(--color-muted);
}
.exp-card__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.exp-card__bullets li {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.exp-card__bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.exp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.exp-card__tags span {
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

/* ─────────────────────────────────────────
   PORTFOLIO CAROUSEL
───────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* pull dots/buttons outside the card */
  padding-bottom: 3.5rem;
  margin-bottom: 0;
  user-select: none;
}

.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  padding: 0 .25rem;
}

/* ── Project card ── */
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.project-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  overflow: hidden;
  /* Swap for background-image: url('your-screenshot.jpg'); background-size: cover; */
}

/* Gradient visuals per project — replace with real images when available */
.project-card__visual--1 {
  background: linear-gradient(135deg, #c9a97a 0%, #8a6d47 60%, #5c4830 100%);
}
.project-card__visual--2 {
  background: linear-gradient(135deg, #7a8c6a 0%, #4a6741 60%, #2d4228 100%);
}
.project-card__visual--3 {
  /* White → Red (smooth, Save the Children) */
  background: linear-gradient(135deg, #fff0f0 0%, #e85060 52%, #c0001a 100%);
}
.project-card__visual--4 {
  background: linear-gradient(135deg, #c4956a 0%, #8a6d5a 60%, #4a3328 100%);
}
/* GlucoseView slide */
.project-card__visual--glucose {
  background: linear-gradient(135deg, #061209 0%, #0d2e18 52%, #040d07 100%);
}

/* Shared floating app screenshot style */
.app-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 80px);
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .25);
  pointer-events: none;
  z-index: 1;
}

/* Dahlqvist Consulting logo float */
.dc-logo-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 60px);
  max-height: calc(100% - 60px);
  width: auto;
  height: auto;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}

/* Instagram Carousel Generator slide */
.project-card__visual--tool {
  background: linear-gradient(135deg, #0e2a5c 0%, #1a4b9e 52%, #0a1f46 100%);
}

.villaagarna-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 80px); /* 40px each side */
  max-height: calc(100% - 40px); /* 20px top & bottom */
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45), 0 2px 10px rgba(0, 0, 0, .22);
  pointer-events: none;
  z-index: 1;
}

/* Floating certificate image in IKEA × Save the Children slide */
.cert-float {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 120px);  /* 60px each side */
  max-height: calc(100% - 120px); /* 60px top & bottom */
  width: auto;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .14);
  pointer-events: none;
  z-index: 1;
}

/* Subtle noise texture overlay */
.project-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.project-card__year {
  position: relative;
  z-index: 1;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.25);
  padding: .35rem .85rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.project-card__content {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.project-card__category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}

.project-card__title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .875rem;
  line-height: 1.2;
}

.project-card__desc {
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.project-card__tags span {
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .8rem;
  border-radius: 100px;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

/* ── Nav buttons ── */
.carousel__btn {
  position: absolute;
  bottom: .25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.carousel__btn--prev { right: 3.5rem; }
.carousel__btn--next { right: .25rem; }
.carousel__btn:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
  transform: scale(1.05);
}

/* ── Dots ── */
.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel__dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}
.carousel__dot:hover:not(.active) {
  background: var(--color-muted);
}

/* ── Desktop: two-column project card ── */
@media (min-width: 768px) {
  .project-card {
    grid-template-columns: 1fr 1fr;
  }
  .carousel__btn--prev { right: 3.75rem; }
  .carousel__btn--next { right: .5rem; }
}

/* ─────────────────────────────────────────
   EDUCATION
───────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.edu-card--main {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2rem);
  transition: box-shadow var(--transition), transform var(--transition);
}
.education .edu-card--main { background: var(--color-bg); }
.edu-card--main:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.edu-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  flex-shrink: 0;
}
.edu-card__school {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.edu-card__degree {
  font-size: .9rem;
  color: var(--color-muted);
  margin-bottom: .35rem;
}
.edu-card__date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.edu-card__desc {
  font-size: .88rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.edu-certs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.edu-certs__heading {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: .5rem;
}
.cert-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.education .cert-card { background: var(--color-bg); }
.cert-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.cert-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-accent);
  flex-shrink: 0;
}
.cert-card strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.cert-card p {
  font-size: .82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.skill-group__title {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.skill-tags span {
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
  cursor: default;
}
.skill-tags span:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(138,109,71,.05);
}

/* Brand-color hover for tagged chips (--brand-bg / --brand-text injected by JS) */
.skill-tags span.has-brand:hover,
.exp-card__tags span.has-brand:hover,
.project-card__tags span.has-brand:hover {
  border-color: var(--brand-bg);
  color: var(--brand-text, #fff);
  background: var(--brand-bg);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  background: var(--color-dark) !important;
  color: #fff;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.contact__title { color: #fff; }
.contact__sub {
  color: rgba(255,255,255,.6);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 440px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-item:hover { color: #fff; }
.contact-item__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
  transition: background var(--transition);
}
.contact-item:hover .contact-item__icon { background: rgba(138,109,71,.25); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  padding: 1.5rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
/* LinkedIn blue icon in contact section */
.contact-item__icon--linkedin {
  color: #0a66c2;
}

/* ─────────────────────────────────────────
   NAV RESPONSIVE
   <800px  → hide logo (pill stays centered in grid)
   <580px  → shrink pill so all 6 items stay on one row
───────────────────────────────────────── */
@media (max-width: 799px) {
  .nav__logo { display: none; }
  /* keep 3-col grid so pill stays mathematically centred even with logo hidden */
}
@media (max-width: 579px) {
  /* Tight container padding to give the pill more breathing room on mobile */
  .nav__inner.container { padding-left: .75rem; padding-right: .75rem; }
  /* Compact pill chrome */
  .nav__links {
    gap: 1px;
    padding: 2px;
  }
  /* Compact links so all 6 fit in one row at iPhone widths */
  .nav__link {
    padding: .28rem .4rem;
    font-size: .68rem;
    letter-spacing: -.015em;
  }
}
/* Even tighter for very narrow phones (≤390px, e.g. iPhone SE / 12 mini) */
@media (max-width: 389px) {
  .nav__link {
    padding: .25rem .3rem;
    font-size: .62rem;
  }
}

/* ─────────────────────────────────────────
   TABLET  768px+
───────────────────────────────────────── */
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .br-desktop { display: inline; }

  .about__inner { grid-template-columns: 1fr 1.6fr; }
  .about__image { display: block; }

  .exp-card__header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .exp-card__meta { align-items: flex-end; }

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

  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .contact__inner { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   DESKTOP  1024px+
───────────────────────────────────────── */
@media (min-width: 1024px) {
  .about__inner { grid-template-columns: 400px 1fr; gap: 5rem; }
  .timeline__duo { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   INSTAGRAM FOLLOWER RADIAL CHART
───────────────────────────────────────── */
/* Split container: chart on left, mockups on right */
/* ── OPTION A: column layout — chart compact on top, larger phones below ── */
.ig-split {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 3rem 1.25rem;
  z-index: 0;
}

.ig-chart {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 2.5rem;
  gap: .6rem;
  z-index: 0;
  pointer-events: none;
}

/* iPhone mockup strip */
.ig-mockups {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.ig-mockup {
  width: 110px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.55);
  display: block;
}
.ig-mockup--1 { transform: rotate(-3deg) translateY(5px); }
.ig-mockup--3 { transform: rotate(3deg) translateY(5px); }

.ig-chart__svg {
  width: clamp(110px, 38%, 154px);
  height: auto;
  overflow: visible;
}

/* Bars start hidden (dashoffset = filled length) until .ig-animate is added */
.ig-chart.ig-animate .ig-bar--1 {
  animation: ig-reveal-1 1.4s cubic-bezier(.22, 1, .36, 1) .10s forwards;
}
.ig-chart.ig-animate .ig-bar--2 {
  animation: ig-reveal-2 1.4s cubic-bezier(.22, 1, .36, 1) .28s forwards;
}
.ig-chart.ig-animate .ig-bar--3 {
  animation: ig-reveal-3 1.4s cubic-bezier(.22, 1, .36, 1) .46s forwards;
}
.ig-chart.ig-animate .ig-bar--4 {
  animation: ig-reveal-4 1.4s cubic-bezier(.22, 1, .36, 1) .64s forwards;
}

@keyframes ig-reveal-1 { from { stroke-dashoffset: 407; } to { stroke-dashoffset: 0; } }
@keyframes ig-reveal-2 { from { stroke-dashoffset: 216; } to { stroke-dashoffset: 0; } }
@keyframes ig-reveal-3 { from { stroke-dashoffset: 51;  } to { stroke-dashoffset: 0; } }
@keyframes ig-reveal-4 { from { stroke-dashoffset: 34;  } to { stroke-dashoffset: 0; } }

.ig-legend {
  display: flex;
  gap: .85rem;
  align-items: center;
}

/* ── OPTION B: dedicated Reel Performance card ── */
.project-card__visual--ig-reels {
  background: linear-gradient(135deg, #c4956a 0%, #8a6d5a 60%, #4a3328 100%);
  aspect-ratio: 4 / 3;
}

.ig-reels-grid {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem 2rem;
}

.ig-reel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  max-width: 155px;
}

.ig-reel-img {
  width: 100%;
  max-width: 130px;
  display: block;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.ig-reel-img--hero {
  max-width: 150px;
}

.ig-reel-stat {
  text-align: center;
  line-height: 1.2;
}

.ig-reel-stat__views {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.ig-reel-stat__label {
  font-size: .6rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

.ig-legend__item {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.ig-legend__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ig-legend__dot--1 { background: #f0c8a0; }
.ig-legend__dot--2 { background: #c9956a; }
.ig-legend__dot--3 { background: #a67c52; }
.ig-legend__dot--4 { background: #7a5938; }

.ig-legend__label {
  font-size: .65rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
}

.ig-legend__val {
  font-size: .65rem;
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
  .ig-chart.ig-animate .ig-bar--1,
  .ig-chart.ig-animate .ig-bar--2,
  .ig-chart.ig-animate .ig-bar--3,
  .ig-chart.ig-animate .ig-bar--4 {
    animation: none;
    stroke-dashoffset: 0;
  }
}
