/* ============================================================
   MAIKE PAWLIK — PORTFOLIO  |  style.css
   Design system: Urbanist, 8pt grid, light neutral palette
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Color */
  --color-bg:    #F0EFED;   /* greige — page + hero background */
  --color-white: #FFFFFF;   /* cards, pills */
  --color-dark:  #1A1917;   /* headlines, buttons, dark footer */
  --color-grey:  #828182;   /* secondary text, muted labels */

  /* Type — Urbanist only, 8-based scale (12/14 for labels only) */
  --font-sans: 'Urbanist', sans-serif;
  --text-12: 12px;
  --text-14: 14px;
  --text-16: 16px;
  --text-24: 24px;
  --text-32: 32px;
  --text-48: 48px;
  --text-64: 64px;

  /* Spacing — 8pt grid */
  --space-8:  8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;

  /* Shape */
  --radius-pill: 9999px;

  /* Layout */
  --nav-h: 88px;   /* fixed nav height: 40px content + 24px padding × 2 */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);   /* anchor targets clear the fixed nav */
}

body {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  color: #2E2D2E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
.serif { font-family: 'DM Serif Display', serif; }

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--text-48);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(46, 45, 46, 0.45);
  display: block;
}

.eyebrow-light {
  color: rgba(240, 239, 236, 0.45);
}

/* ── Layout containers ───────────────────────────────────── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 96px 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: #1A1917;
  color: #F0EFEC;
}

.btn-primary:hover { opacity: 0.8; transform: translateY(-6px); }

.btn-primary.light {
  background: #F0EFEC;
  color: #1A1917;
}

.btn-primary.light:hover { opacity: 0.85; transform: translateY(-6px); }

.btn-secondary {
  background: transparent;
  color: #2E2D2E;
  border: 0.5px solid #2E2D2E;
}

.btn-secondary:hover { background: rgba(46,45,46,0.05); transform: translateY(-6px); }

.btn-secondary.light {
  color: #F0EFEC;
  border-color: rgba(240, 239, 236, 0.3);
}

.btn-secondary.light:hover { background: rgba(240,239,236,0.08); }

/* ── Image placeholders ──────────────────────────────────── */
.img-placeholder {
  background: #EBEBEB;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(46, 45, 46, 0.35);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.img-placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.img-placeholder .placeholder-label {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── Pills ───────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
}

.pill-dark {
  border: 1px solid rgba(240, 239, 236, 0.25);
  color: rgba(240, 239, 236, 0.85);
}

.pill-light {
  border: 1px solid rgba(46, 45, 46, 0.2);
  color: #2E2D2E;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  border-radius: 16px;
  padding: 24px;
}

/* ── Scroll to top ───────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #1A1917;
  color: #F0EFEC;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover { background: #333; }

/* ================================================================
   NAV — legacy dark bar (case-study subpages only)
   ================================================================ */
body > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1A1917;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid rgba(240,239,236,0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-eyebrow {
  display: none;
}

.nav-logo-name {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #F0EFEC;
  line-height: 1;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(240, 239, 236, 0.7);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #F0EFEC;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: #F0EFEC; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #F0EFEC; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #F0EFEC;
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #1A1917;
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 32px;
  gap: 4px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-bottom: 1px solid rgba(240,239,236,0.1);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 400;
  color: rgba(240, 239, 236, 0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(240,239,236,0.06);
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #F0EFEC; }

/* ================================================================
   HERO ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: fadeUp 0.6s ease both 0.05s; }
.hero-h1       { animation: fadeUp 0.6s ease both 0.15s; }
.hero-subline  { animation: fadeUp 0.6s ease both 0.25s; }
.hero-ctas     { animation: fadeUp 0.6s ease both 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-h1, .hero-subline, .hero-ctas {
    animation: none;
  }
}

/* Scroll-triggered fade-up */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   SITE HEADER — light nav (homepage)
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;                        /* above content, below the lightbox */
  background: var(--color-bg);
  padding: 0 var(--space-48);
  transition: background-color 200ms ease;
}

/* Adaptive themes — set by the scroll handler based on the section below */
.site-header--white { background: var(--color-white); }
.site-header--dark  { background: var(--color-dark); }

.site-header--dark .site-nav-name,
.site-header--dark .nav-hamburger { color: var(--color-bg); }

.site-header--dark .site-nav-links a { color: rgba(240, 239, 237, 0.65); }
.site-header--dark .site-nav-links a:hover,
.site-header--dark .site-nav-links a.active { color: var(--color-white); }

.site-header--dark .nav-linkedin-btn {
  background: var(--color-bg);
  color: var(--color-dark);
}

.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-24) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-nav-name {
  justify-self: start;
  font-size: var(--text-16);
  font-weight: 500;
  color: var(--color-dark);
  transition: color 200ms ease;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.site-nav-links a {
  font-size: var(--text-16);
  font-weight: 500;
  color: var(--color-grey);
  transition: color 0.2s ease;
}

.site-nav-links a:hover,
.site-nav-links a.active { color: var(--color-dark); }

.site-nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.site-header .nav-hamburger { color: var(--color-dark); }

.site-header .mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: none;
  padding: var(--space-16) var(--space-24) var(--space-32);
}

.site-header .mobile-menu a {
  color: var(--color-grey);
  border-bottom: 1px solid rgba(26, 25, 23, 0.06);
}

.site-header .mobile-menu a:hover { color: var(--color-dark); }

/* ── Pill button (dark primary) ──────────────────────────── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-16);
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-dark);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-16) var(--space-32);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.pill-btn:hover { opacity: 0.85; }

/* Nav LinkedIn icon button */
.nav-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  transition: opacity 0.2s ease, background-color 200ms ease, color 200ms ease;
}

.nav-linkedin-btn:hover { opacity: 0.85; }

.nav-linkedin-btn svg { width: 20px; height: 20px; stroke-width: 1.75; }

/* ================================================================
   HERO
   ================================================================ */
#hero {
  background: var(--color-bg);
  padding: calc(var(--nav-h) + var(--space-96)) var(--space-48) var(--space-80);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-dark);
}

.hero-h1 {
  font-family: var(--font-sans);
  font-size: var(--text-64);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  max-width: 720px;
  margin-top: var(--space-24);
}

.hero-subline {
  font-size: var(--text-24);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-grey);
  max-width: 720px;
  margin-top: var(--space-16);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex-wrap: wrap;
  margin-top: var(--space-32);
}

.hero-textlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-16);
  font-weight: 600;
  color: var(--color-dark);
}

.cta-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.pill-btn:hover .cta-arrow { transform: translateX(4px); }

/* Diagonal arrow (external LinkedIn link) nudges up-right */
.hero-textlink:hover .cta-arrow { transform: translate(2px, -2px); }

/* ================================================================
   WORK
   ================================================================ */
/* #work styles live in the "Work section" block further down */

/* Carousel wrapper */
.work-carousel-wrap {
  position: relative;
  margin-bottom: 32px;
}

.work-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 24px;
}

.work-carousel::-webkit-scrollbar { display: none; }

/* Nav arrows */
.work-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(46,45,46,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s;
  color: #2E2D2E;
}

.work-carousel-btn svg { width: 18px; height: 18px; }
.work-carousel-btn--prev { left: -22px; }
.work-carousel-btn--next { right: -22px; }
.work-carousel-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.16); }
.work-carousel-btn.carousel-btn-hidden { opacity: 0; pointer-events: none; transition: opacity 0.2s; }

/* Cards */
.work-card {
  background: #FFFFFF;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  flex: 0 0 340px;
  scroll-snap-align: start;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(46,45,46,0.06);
}

.work-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.work-card-top {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-card-image {
  width: 100%;
  margin-top: auto;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.work-card-image .img-placeholder {
  aspect-ratio: 4/3;
  background: rgba(46,45,46,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.work-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.work-card-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2E2D2E;
  line-height: 1.3;
  margin: 0;
}

.work-card-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(46,45,46,0.6);
  line-height: 1.6;
  margin: 0;
}

.work-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-pill {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(46,45,46,0.5);
  border: 1px solid rgba(46,45,46,0.15);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}

.work-card-tag { display: none; }
.work-card-cta { display: none; }

/* Featured / dark comm design card */
.work-card-featured {
  background: #1A1917;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card-featured:hover { transform: translateY(-6px); }

.work-card-featured .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: rgba(240,239,236,0.08);
  border: 1px solid rgba(240,239,236,0.1);
}

.work-card-featured .img-placeholder svg { opacity: 0.25; }
.work-card-featured .img-placeholder .placeholder-label { color: rgba(240,239,236,0.25); }

.work-card-featured .work-card-tag { color: rgba(240,239,236,0.4); }

.work-card-featured .work-card-title {
  color: #F0EFEC;
  margin-top: 12px;
  margin-bottom: 12px;
}

.work-card-featured .work-card-body { color: rgba(240,239,236,0.65); }

.work-card-featured .work-card-cta {
  color: rgba(46,45,46,0.7);
  margin-top: 20px;
}

/* ================================================================
   TESTIMONIALS — wall of love (two auto-scrolling rows)
   ================================================================ */
#testimonials {
  background: var(--color-bg);
  padding: var(--space-96) 0;
  overflow: hidden;
}

.testi-title {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: var(--space-40);   /* 40 + row padding 8 = visual 48 */
}

.testi-rows {
  display: flex;
  flex-direction: column;
  gap: 0;                            /* row paddings create the 16px visual gap */
}

/* Vertical padding gives the 1.03 hover scale room to grow without clipping */
.testi-row {
  overflow: hidden;
  padding: var(--space-8) 0;
}

/* Track holds the card set twice; -50% lands exactly on the seam */
.testi-track {
  display: flex;
  width: max-content;
  animation: testiScroll 55s linear infinite;
}

.testi-row--reverse .testi-track { animation-direction: reverse; }

@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause the row while hovering it or keyboard-focusing a card */
.testi-row:hover .testi-track,
.testi-track:focus-within { animation-play-state: paused; }

.testi-card {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  margin-right: var(--space-16);   /* card gap via margin so -50% loops cleanly */
  background: var(--color-white);
  border-radius: 24px;
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease;
}

.testi-card:hover,
.testi-card:focus-visible { transform: scale(1.03); }

.testi-quote-icon {
  width: 24px;
  height: 24px;
  color: var(--color-grey);
  margin-bottom: var(--space-16);
  flex-shrink: 0;
}

.testi-quote {
  font-size: var(--text-16);
  line-height: 1.5;
  color: var(--color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-24);
}

.testi-attrib { display: flex; flex-direction: column; gap: 2px; }

.testi-name {
  font-size: var(--text-16);
  font-weight: 600;
  color: var(--color-dark);
}

.testi-role {
  font-size: var(--text-14);
  color: var(--color-grey);
}

/* Touch devices & reduced motion: static rows, manual scroll */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
  .testi-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Hide the loop duplicates when scrolling manually */
  .testi-card[aria-hidden="true"] { display: none; }
}

/* ================================================================
   ABOUT
   ================================================================ */
#about {
  background: var(--color-bg);
  padding: var(--space-96) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-80);
  align-items: start;
}

.about-title {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: var(--space-8);
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-24));   /* clear the fixed nav */
  margin: 0;
}

.about-portrait-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.about-body {
  font-size: var(--text-16);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-dark);
  max-width: 480px;
}

/* ── About attribute cards ── */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  margin-top: var(--space-64);
}

.about-card {
  background: var(--color-white);
  border-radius: 24px;
  padding: var(--space-32);
}

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  margin-bottom: var(--space-24);
}

.about-card-icon svg { width: 24px; height: 24px; }

.about-card-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-8);
}

.about-card-desc {
  font-size: var(--text-16);
  line-height: 1.5;
  color: var(--color-grey);
}

/* ================================================================
   EXPERIENCE
   ================================================================ */
#experience {
  background: var(--color-white);
  padding: var(--space-96) 0;
}

.exp-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-80);
  align-items: start;
}

.exp-title {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

/* Vertical timeline: year | axis with dots | content */
.exp-timeline { list-style: none; }

.exp-entry {
  display: grid;
  grid-template-columns: 112px 12px 1fr;
  column-gap: var(--space-32);
}

/* Spacing between entries lives INSIDE the content column so the
   axis column keeps full height and the line stays continuous */
.exp-entry:not(:last-child) .exp-content { padding-bottom: var(--space-48); }

/* Wider gap before the education group */
.exp-entry:nth-child(3) .exp-content { padding-bottom: var(--space-80); }

.exp-axis { position: relative; }

/* One continuous vertical line through all dots */
.exp-axis::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: rgba(26, 25, 23, 0.15);
}

/* Trim the line to start at the first dot and end at the last dot */
.exp-entry:first-child .exp-axis::before { top: 14px; }
.exp-entry:last-child .exp-axis::before { bottom: calc(100% - 14px); }

.exp-dot {
  position: absolute;
  top: 8px;                    /* centers the dot on the title/year line */
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-dark);
  z-index: 1;
}

.exp-date {
  font-size: var(--text-16);
  font-weight: 400;
  line-height: 1.8;            /* matches the title line box for alignment */
  color: var(--color-grey);
}

.exp-content { position: relative; }

/* Group label floats in the gap above its entry so the dot
   alignment with the title stays intact */
.exp-eyebrow {
  position: absolute;
  top: -28px;
  left: 0;
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.exp-role {
  font-size: var(--text-24);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-dark);
}

.exp-company {
  font-size: var(--text-16);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-grey);
  margin-top: var(--space-8);
}

/* ================================================================
   TOOLS
   ================================================================ */
#tools {
  background: #1A1917;
}

.tools-header {
  margin-bottom: 56px;
}

.tools-header .eyebrow { margin-bottom: 12px; }

.tools-header h2 {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-bg);
  max-width: 560px;
}

.tools-category {
  margin-bottom: 40px;
}

.tools-category:last-child { margin-bottom: 0; }

.tools-category-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 239, 236, 0.3);
  margin-bottom: 16px;
  display: block;
}

.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pills-group .pill {
  border: 1px solid rgba(240, 239, 236, 0.2);
  color: rgba(240, 239, 236, 0.8);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pills-group .pill:hover {
  border-color: rgba(240, 239, 236, 0.5);
  color: #F0EFEC;
}

.pills-group .pill svg { opacity: 0.6; }

/* ================================================================
   FOOTER / CONTACT
   ================================================================ */
#contact {
  background: var(--color-dark);
  padding: var(--space-96) 0 0;
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-48) var(--space-96);
}

.contact-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-32);
}

#contact h2 {
  font-family: var(--font-sans);
  font-size: var(--text-64);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bg);
  max-width: 720px;
}

.contact-ctas {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Icon-only circular CTA */
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--color-dark);
  background: var(--color-bg);
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.contact-pill:hover { opacity: 0.85; }

.contact-pill svg { width: 20px; height: 20px; }

/* Bottom bar */
.footer-bar {
  border-top: 0.5px solid rgba(240, 239, 237, 0.12);
  padding: var(--space-16) 0;
}

.footer-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-bar-copy {
  font-size: var(--text-12);
  color: rgba(240, 239, 237, 0.5);
}

.footer-bar-credit {
  font-size: var(--text-12);
  color: rgba(240, 239, 237, 0.4);
}

/* ================================================================
   CASE STUDY SHARED STYLES
   ================================================================ */
.case-hero {
  background: var(--color-dark);
  padding-top: 64px;
  padding-bottom: 0;
}

.case-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 48px 0;
}

.case-meta-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,239,237,0.4);
  margin-bottom: 16px;
  display: block;
}

.case-hero h1 {
  color: var(--color-bg);
  margin-bottom: 24px;
  max-width: 700px;
}

.case-intro {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(240,239,237,0.65);
  max-width: 640px;
  margin-bottom: 48px;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(240,239,237,0.08);
  border-top: 1px solid rgba(240,239,237,0.08);
}

.case-meta-item {
  background: var(--color-dark);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,239,237,0.35);
}

.case-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(240,239,237,0.85);
  line-height: 1.5;
}

.case-hero-image {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 48px 0;
}

/* Light hero variant */
.case-hero--light {
  background: var(--color-bg);
}
.case-hero--light .case-meta-eyebrow { color: var(--color-grey); }
.case-hero--light .case-hero h1,
.case-hero--light h1 { color: var(--color-dark); }
.case-hero--light .case-intro { color: var(--color-grey); }
.case-hero--light .case-meta-grid { background: rgba(46,45,46,0.08); border-top-color: rgba(46,45,46,0.08); }
.case-hero--light .case-meta-item { background: var(--color-bg); }
.case-hero--light .case-meta-label { color: var(--color-grey); }
.case-hero--light .case-meta-value { color: var(--color-dark); }
.case-hero--light .case-hero-image .img-placeholder { background: rgba(46,45,46,0.05); border-color: rgba(46,45,46,0.08); }
.case-hero--light .case-hero-image .img-placeholder svg { opacity: 0.15; }
.case-hero--light .case-hero-image .img-placeholder .placeholder-label { color: rgba(46,45,46,0.25); }

.case-hero-image .img-placeholder {
  aspect-ratio: 16/7;
  border-radius: 16px 16px 0 0;
  background: rgba(240,239,237,0.05);
  border: 1px solid rgba(240,239,237,0.08);
  border-bottom: none;
}

.case-hero-image .img-placeholder svg { opacity: 0.2; width: 40px; height: 40px; }
.case-hero-image .img-placeholder .placeholder-label { color: rgba(240,239,237,0.25); }

.case-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px 16px 0 0;
  display: block;
}

/* Case section blocks */
.case-section {
  padding: 96px 0;
}

.case-section.bg-white { background: var(--color-white); }
.case-section.bg-beige { background: var(--color-white); }
.case-section.bg-dark { background: var(--color-dark); }
.case-section.bg-dark .eyebrow { color: rgba(240,239,237,0.45); }
.case-section.bg-dark h2 { color: var(--color-bg); }

.case-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

.case-section .eyebrow { margin-bottom: 16px; }
.case-section h2 { margin-bottom: 24px; max-width: 720px; }

.case-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-dark);
  max-width: 720px;
}

.case-subline {
  font-family: var(--font-sans);
  font-size: var(--text-16);
  font-weight: 400;
  color: var(--color-grey);
  line-height: 1.55;
  max-width: 640px;
}

.case-body-light {
  color: rgba(240,239,237,0.65);
}

/* Outcome cards */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.outcome-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outcome-grid {
  align-items: stretch;
}

.outcome-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.outcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  font-family: var(--font-sans);
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 20px;
  width: fit-content;
}

.outcome-tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-dark);
}

.outcome-number {
  font-family: var(--font-sans);
  font-size: var(--text-48);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  margin-bottom: 10px;
}

.outcome-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}

.outcome-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-grey);
  line-height: 1.55;
  padding: 0 4px;
}

/* Problem bullets */
.case-bullets {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.6;
}

.case-bullet svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-dark);
}

.case-bullet-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-bullet-icon svg {
  color: var(--color-bg);
}

/* Before/after */
.split-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-image {
  position: sticky;
  top: 88px;
}

.split-image .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: 16px;
}

.split-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.before-after-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.before-after-card .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: 12px;
}

.before-after-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.before-after-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.before-after-label strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  min-width: 48px;
}

.before-after-label p {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.5;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--color-dark);
  border-left: 2px solid rgba(46,45,46,0.2);
  padding-left: 28px;
  margin-bottom: 24px;
  max-width: 680px;
}

.pull-quote-dark {
  color: var(--color-bg);
  border-left-color: rgba(240,239,237,0.2);
}

/* Process cards */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.process-card {
  background: var(--color-bg);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.process-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-bg);
}

.process-step {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.process-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
}

.process-body {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.6;
  flex: 1;
}

/* Reflection */
.reflection-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.reflection-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid rgba(240,239,237,0.15);
  border-radius: 16px;
  padding: 28px;
}

.reflection-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240,239,237,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.reflection-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-bg);
}

.reflection-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,239,237,0.4);
  margin-bottom: 8px;
}

.reflection-body {
  font-family: var(--font-sans);
  font-size: var(--text-16);
  font-weight: 400;
  color: rgba(240,239,237,0.85);
  line-height: 1.7;
  margin: 0;
}

/* Case label divider */
.case-label-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.case-label-divider-line {
  flex: 1;
  height: 1px;
  background: #EBEBEB;
}
.case-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey);
  white-space: nowrap;
}

/* Flow arc */
.flow-arc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0;
}
.flow-arc-step {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-grey);
  background: var(--color-bg);
  padding: 6px 12px;
  border: 1px solid #EBEBEB;
  margin-right: -1px;
  white-space: nowrap;
}
.flow-arc-step:first-child { border-radius: 8px 0 0 8px; }
.flow-arc-step:last-child { border-radius: 0 8px 8px 0; margin-right: 0; }
.flow-arc-arrow {
  font-size: 12px;
  color: rgba(46,45,46,0.3);
  padding: 0 2px;
  background: var(--color-bg);
  border-top: 1px solid #EBEBEB;
  border-bottom: 1px solid #EBEBEB;
  line-height: 30px;
}

/* Research table */
.research-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-family: var(--font-sans);
}
.research-table th {
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-bg);
  text-align: left;
}
.research-table td {
  font-size: 14px;
  color: var(--color-dark);
  padding: 12px 12px;
  border-bottom: 1px solid var(--color-bg);
  vertical-align: middle;
}
.research-table tr:last-child td { border-bottom: none; }
.research-table tr.winner td {
  background: var(--color-bg);
  color: var(--color-dark);
  font-weight: 600;
}
.bar-wrap { display: flex; align-items: center; gap: 10px; }
.bar-track { flex: 1; height: 6px; background: var(--color-bg); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar-fill { height: 6px; border-radius: 3px; }
.bar-label { font-size: var(--text-14); font-weight: 600; min-width: 36px; }

/* Choice cards (accepted / rejected) */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.choice-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice-card--accepted {
  border: 1.5px solid rgba(46,45,46,0.15);
  background: var(--color-white);
}
.choice-card--rejected {
  border: 1px solid #EBEBEB;
  background: #FAFAFA;
  opacity: 0.6;
}
.choice-card-label {
  font-family: var(--font-sans);
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.choice-card-label svg { width: 14px; height: 14px; }
.choice-card--accepted .choice-card-label { color: var(--color-dark); }
.choice-card--rejected .choice-card-label { color: var(--color-grey); }
.choice-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}
.choice-card-body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.65;
  margin: 0;
}

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.platform-label {
  font-family: var(--font-sans);
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

/* Context quote (PM voice) */
.context-quote {
  border-left: 2px solid #EBEBEB;
  padding: 14px 20px;
  background: #FAFAFA;
  border-radius: 0 12px 12px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: italic;
  color: var(--color-grey);
  line-height: 1.7;
  margin: 16px 0;
}
.context-quote-label {
  font-size: var(--text-12);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 6px;
  font-style: normal;
  display: block;
}

/* Comparison table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  margin-top: 16px;
}
.comp-table th {
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  padding: 10px 16px;
  border-bottom: 1px solid #EBEBEB;
  text-align: left;
}
.comp-table td {
  font-size: 14px;
  color: var(--color-dark);
  padding: 12px 16px;
  border-bottom: 1px solid #EBEBEB;
  vertical-align: top;
  line-height: 1.5;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { font-weight: 600; color: var(--color-grey); font-size: 12px; }

/* Segmented control */
/* ── Work section: heading + segmented control ── */
#work {
  background: var(--color-white);
  padding: var(--space-96) 0;
}

.work-title {
  font-family: var(--font-sans);
  font-size: var(--text-32);
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-32);
}

.seg-control {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;              /* both segments equal width */
  margin: 0 auto var(--space-48);
  background: var(--color-white);
  padding: var(--space-8);
  border: 1px solid rgba(26, 25, 23, 0.1);
  border-radius: var(--radius-pill);
  width: fit-content;
}

.seg-btn {
  font-family: var(--font-sans);
  font-size: var(--text-16);
  font-weight: 600;
  padding: var(--space-8) var(--space-24);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-grey);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.seg-btn--active {
  background: var(--color-dark);
  color: var(--color-white);
}

/* Case-study subpage tab panels */
.seg-panel--hidden { display: none; }

/* Panel crossfade on tab switch */
@keyframes panelFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.project-cards:not(.work-grid--hidden),
.work-grid--graphic:not(.work-grid--hidden) {
  animation: panelFade 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .project-cards:not(.work-grid--hidden),
  .work-grid--graphic:not(.work-grid--hidden) { animation: none; }
}

/* ── Project cards (UX case studies) ── */
.project-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 200ms ease;
}

.project-card:hover { transform: scale(1.015); }

/* Alternate image side on even cards (desktop only) */
.project-card:nth-child(even) .project-card-media { order: 2; }
.project-card:nth-child(even) .project-card-content { order: 1; }

.project-card-media {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-grey);
}

.project-card-media svg { width: 32px; height: 32px; }

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-content {
  padding: var(--space-48);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.project-card-eyebrow {
  font-size: var(--text-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.project-card-title {
  font-family: var(--font-sans);
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
  margin-top: var(--space-8);
}

.project-card-summary {
  font-size: var(--text-16);
  line-height: 1.5;
  color: var(--color-grey);
  max-width: 380px;
  margin-top: var(--space-8);
}

.project-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.fact-pill {
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: var(--space-8) var(--space-16);
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--color-dark);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-16);
  font-weight: 600;
  color: var(--color-dark);
  margin-top: var(--space-16);
}

.project-card:hover .cta-arrow { transform: translateX(4px); }

/* Card scroll-reveal (skipped under prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .project-card,
  .about-card,
  .exp-entry {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .project-card.revealed,
  .about-card.revealed,
  .exp-entry.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  /* After reveal, hand the transform over to a snappy hover scale */
  .project-card.revealed {
    transition: opacity 0.5s ease, transform 200ms ease;
  }
  .project-card.revealed:hover { transform: scale(1.015); }
  .about-card:nth-child(2) { transition-delay: 80ms; }
  .about-card:nth-child(3) { transition-delay: 160ms; }
  .exp-entry:nth-child(2) { transition-delay: 60ms; }
  .exp-entry:nth-child(3) { transition-delay: 120ms; }
  .exp-entry:nth-child(4) { transition-delay: 180ms; }
  .exp-entry:nth-child(5) { transition-delay: 240ms; }
}

/* ── UX Case Studies grid ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-grid--hidden { display: none; }
.work-grid--graphic {
  grid-template-columns: repeat(4, 1fr);
}

/* Graphic Design tile */
.gd-tile {
  cursor: pointer;
}
.gd-tile-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gd-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
  display: block;
}
.gd-tile:hover .gd-tile-img {
  transform: scale(1.05);
}
.gd-tile-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms ease;
}
.gd-tile:hover .gd-tile-hover-overlay {
  background: rgba(0,0,0,0.3);
}
.gd-tile-expand {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 300ms ease, transform 300ms ease;
}
.gd-tile-expand svg {
  width: 16px;
  height: 16px;
  color: #1A1917;
}
.gd-tile:hover .gd-tile-expand {
  opacity: 1;
  transform: scale(1);
}
.gd-tile-label { display: none; }
.gd-tile-name  { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.lightbox--open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #F0EFEC;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 18px; height: 18px; }

/* Ticket index */
.ticket-index {
  margin-top: 40px;
  border-top: 1px solid #EBEBEB;
}

.ticket-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #EBEBEB;
}

.ticket-id {
  font-family: var(--font-sans);
  font-size: var(--text-12);
  font-weight: 600;
  color: var(--color-grey);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 96px;
}

.ticket-desc {
  font-family: var(--font-sans);
  font-size: var(--text-16);
  color: var(--color-dark);
  line-height: 1.5;
}

/* Case nav */
.case-nav {
  background: var(--color-dark);
  padding: 48px 0;
  border-top: 1px solid rgba(240,239,237,0.08);
}

.case-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(240,239,237,0.6);
  transition: color 0.2s ease;
}

.case-nav-link:hover { color: var(--color-bg); }
.case-nav-link svg { width: 16px; height: 16px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .section-inner { padding: 0 32px; }
  body > nav { padding: 0 32px; }
  .site-header { padding: 0 32px; }

  #hero { padding: calc(var(--nav-h) + var(--space-64)) 32px 64px; }
  .hero-h1 { font-size: var(--text-48); }

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

  .work-card-featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .testimonials-small-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid,
  .exp-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }

  .case-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .case-hero-image { padding: 32px 32px 0; }
  .case-hero-inner { padding: 64px 32px 0; }
  .case-section-inner { padding: 0 32px; }
  .case-nav-inner { padding: 0 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .section-inner { padding: 0 24px; }
  body > nav { padding: 0 24px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Site header mobile */
  .site-header { padding: 0 24px; }
  .site-nav { grid-template-columns: auto auto; }
  .site-nav-links { display: none; }
  .site-nav-actions { justify-self: end; }

  /* Hero mobile */
  #hero { padding: calc(var(--nav-h) + var(--space-48)) 24px 64px; }
  .hero-h1 { font-size: 40px; }
  .hero-subline { font-size: var(--text-16); }

  /* Work */
  .work-grid { grid-template-columns: 1fr; gap: 12px; }

  .work-title { font-size: var(--text-24); }

  .seg-btn { font-size: var(--text-14); padding: var(--space-8) var(--space-16); }

  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-card-media { order: 0; }
  .project-card:nth-child(even) .project-card-content { order: 0; }
  .project-card-media { min-height: 240px; }
  .project-card-content { padding: var(--space-32); }

  .work-card-featured {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  /* Testimonials */
  .testimonials-mid-grid,
  .testimonials-small-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .about-photo {
    position: static;
    max-width: 240px;
  }

  .about-cards { grid-template-columns: 1fr; }

  /* Experience: stack vertically, hide the axis */
  .exp-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .exp-entry {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .exp-axis { display: none; }

  .exp-entry:not(:last-child) .exp-content { padding-bottom: var(--space-32); }

  .exp-date { line-height: 1.4; margin-bottom: var(--space-8); }

  .exp-eyebrow { position: static; display: block; margin-bottom: var(--space-8); }

  /* Case study */
  .case-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .reflection-list { grid-template-columns: 1fr; gap: 16px; }
  .before-after-grid { grid-template-columns: 1fr; }

  /* Split sections stack: image on top, copy full width below */
  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  /* Inline-styled card grids (impact stats, feature cards, audit grid)
     stack on mobile — !important needed to beat the inline styles */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex card rows stack on mobile */
  .stack-mobile { flex-direction: column; }

  .split-image { position: static; }

  .case-hero-inner { padding: 48px 24px 0; }
  .case-hero-image { padding: 24px 24px 0; }
  .case-section-inner { padding: 0 24px; }
  .case-nav-inner {
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  /* Scroll top */
  #scroll-top { bottom: 24px; right: 24px; }

  /* Contact footer: stack headline above the CTA */
  .contact-main {
    flex-direction: column;
    align-items: flex-start;
  }

  #contact h2 { font-size: 40px; }

  .footer-bar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  h1, .h1 { font-size: 40px; }
  h2, .h2 { font-size: 24px; }
  .testimonial-hero-quote { font-size: 24px; }
}
