/* ============================================================
   CLEMENT BLINDRON — PORTFOLIO 2026
   Shared Stylesheet · All pages
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;700&display=swap');

/* ── CSS Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #111110; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Base */
  --bg:          #ffffff;
  --bg-warm:     #f7f5f0;
  --bg-light:    #f8f8f8;
  --bg-chip:     #f4f0e6;
  --bg-dark:     #13151d;
  --bg-darker:   #201e26;
  --bg-code:     #242424;

  /* Text */
  --text-primary:   #111110;
  --text-secondary: #4c4840;
  --text-muted:     #8a8580;
  --text-faint:     #b4aea6;
  --text-white:     #ffffff;

  /* Borders */
  --border:        #e4ddd0;
  --border-light:  #e6e6e6;
  --border-medium: #e5e5e5;

  /* Accent */
  --color-gold:   #cea864;
  --color-blue:   #4f7eff;
  --blue-bg:      #e5ecff;
  --blue-border:  #6d94ff;
  --bmi-gold:     #fcbd00;

  /* Skill chips */
  --chip-purple-bg:     #cccaf0;
  --chip-purple-border: #9892fa;
  --chip-yellow-bg:     #f5eb71;
  --chip-yellow-border: #d8cd4a;
  --chip-orange-bg:     #f0c4a8;
  --chip-orange-border: #dc9a70;

  /* Typography */
  --font: 'Inter', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;

  /* Layout */
  --max-w:         1080px;
  --pad-h:         180px;
  --pad-v:         56px;
  --header-h:      68px;
  --footer-h:      55px;

  /* Animation */
  --ease-card:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur-card:      2s;
}

/* ── Shared Layout ────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

.content-container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--pad-h) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label .rule {
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  flex-shrink: 0;
}
.section-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: var(--text-primary);
  text-decoration: none;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(62, 207, 142, 0.55); }
  65%  { box-shadow: 0 0 0 6px rgba(62, 207, 142, 0.00); }
  100% { box-shadow: 0 0 0 0   rgba(62, 207, 142, 0.00); }
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block; /* image-based — Figma Online small 1: size-[9px], p-[6px] */
  flex-shrink: 0;
  animation: dot-pulse 2s ease-out infinite;
}

/* ── CTA Button ──────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 8px 16px;
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 48px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.85; }
.btn-cta svg { flex-shrink: 0; }

/* Arrow icon in CTA */
.btn-cta .arrow-icon {
  width: 16px;
  height: 16px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  height: var(--footer-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-h);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}
.footer-link:hover { color: var(--text-primary); }

/* ── Project Card (Homepage) ──────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(17,17,16,0.08);
}
.project-card__thumb {
  width: 100%;
  height: 231px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Zoom variant — Remediation card (node 87-953) */
.project-card__thumb--zoom-rem img {
  position: absolute;
  width: 109.51%;
  height: 133.43%;
  max-width: none;
  left: -4.76%;
  top: -22.51%;
}
/* Zoom variant — BMI card (node 87-953) */
.project-card__thumb--zoom-bmi img {
  position: absolute;
  width: 112.88%;
  height: 130.74%;
  max-width: none;
  left: -6.44%;
  top: -15.15%;
}
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 20px;
}
.project-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  margin-top: 16px;
}
.project-card__company {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.project-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.38px;
  line-height: 1.2;
  color: var(--text-primary);
}
.project-card__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}
.project-card__cta {
  margin-top: 8px;
}
.btn-see-case {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 8px 16px;
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 48px;
  transition: opacity 0.2s;
}
.btn-see-case:hover { opacity: 0.85; }

/* ── Skill Chips ──────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 17px;
  border-radius: 70px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
.chip--neutral { background: var(--bg-chip); border: 1px solid var(--border); color: #000; }
.chip--purple  { background: var(--chip-purple-bg); border: 1px solid var(--chip-purple-border); color: #000; }
.chip--yellow  { background: var(--chip-yellow-bg); border: 1px solid var(--chip-yellow-border); color: #000; }
.chip--orange  { background: var(--chip-orange-bg); border: 1px solid var(--chip-orange-border); color: #000; }

/* ── At a Glance Card ────────────────────────────────────── */
.glance-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 440px;
  min-width: 360px;
  flex: 1 0 0;
}
.glance-card__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.glance-card__stats {
  display: flex;
  justify-content: space-between;
}
.glance-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 120px;
}
.glance-stat--wide { width: 132px; }
.glance-stat__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.78px;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap; /* prevent wrapping on short values like "Product SaaS" */
}
.glance-stat__label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.glance-card__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.glance-card__locations {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

/* ── Skills Info Card ────────────────────────────────────── */
.skills-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  max-width: 440px;
  min-width: 360px;
  width: 360px;
}
.skills-card__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.skills-card__group:last-child { margin-bottom: 0; }
.skills-card__group-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.skills-card__group-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Case Study Header (dark) ────────────────────────────── */
.case-header {
  width: 100%;
  padding: 48px var(--pad-h) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  height: 212px;
}
.case-header__text { display: flex; flex-direction: column; flex-shrink: 0; }
.case-header__meta {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.45;
  letter-spacing: 0.56px;
  color: #fff;
  margin-bottom: 4px;
}
.case-header__title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 559px;
}
.case-header__subtitle {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.6;
  line-height: 1.7;
  color: #fff;
  max-width: 559px;
  margin-top: 8px;
}
.case-header__thumb {
  flex-shrink: 0;
  width: 374px;
  height: 232px;
  overflow: hidden;
  border-radius: 8px;
}
.case-header__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Meta Bar ────────────────────────────────────────────── */
.meta-bar {
  width: 100%;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-medium);
  padding: 24px var(--pad-h);
  display: flex;
  justify-content: center;
}
.meta-bar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  gap: 24px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-item__label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.88px;
  color: #888;
  text-transform: uppercase;
}
.meta-item__value {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ── Case Section ────────────────────────────────────────── */
.case-section {
  width: 100%;
  padding: var(--pad-v) var(--pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.case-section--warm { background: var(--bg-warm); }
.case-section--dark { background: var(--bg-dark); }
.case-section--darker { background: var(--bg-darker); }
.case-section--code { background: var(--bg-code); }
.case-section__inner {
  width: 100%;
  max-width: var(--max-w);
}

/* ── Section Heading ────────────────────────────────────── */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.section-heading--sm { margin-bottom: 24px; }
.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.48px;
  line-height: 1.2;
  color: #1a1a1a;
}
.section-heading h2.dark { color: #fff; }
.section-heading p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
  max-width: 800px;
}
.section-heading p.dark { color: rgba(255,255,255,0.75); }
.section-heading__spacer { height: 16px; }

/* ── Carousel (Expandable Cards) ─────────────────────────── */
.carousel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.carousel-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  flex: 1 0 0;
  min-width: 258px;
  max-width: 360px;
  cursor: pointer;
  transition: box-shadow 0.3s;
  position: relative;
}
.carousel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.carousel-card.is-open {
  max-width: 632px;
  flex: 2 0 0;
}

/* Card header (always visible) */
.carousel-card__header {
  padding: 24px 16px 0;
}
.carousel-card__num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-blue);
  margin-bottom: 10px;
}
.carousel-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  white-space: nowrap;
}
.carousel-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #737373;
  /* collapsed: show only ~3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp var(--dur-card) var(--ease-card);
}
.carousel-card.is-open .carousel-card__desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.carousel-card__toggle {
  display: flex;
  justify-content: flex-end;
  padding: 10px 16px 16px;
}
.carousel-card__plus {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  background: #111110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-card) var(--ease-card), background 0.3s;
}
.carousel-card__plus::before,
.carousel-card__plus::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.carousel-card__plus::before { width: 10px; height: 1.5px; }
.carousel-card__plus::after  { width: 1.5px; height: 10px; }
.carousel-card.is-open .carousel-card__plus {
  transform: rotate(45deg);
}

/* Expandable content area */
.carousel-card__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-card) var(--ease-card);
  overflow: hidden;
}
.carousel-card.is-open .carousel-card__expand {
  grid-template-rows: 1fr;
}
.carousel-card__expand-inner {
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-card) var(--ease-card), transform var(--dur-card) var(--ease-card);
}
.carousel-card.is-open .carousel-card__expand-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 24px;
}
.carousel-card__expand-inner img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  display: block;
}
.carousel-card__expand-inner img:last-child { margin-bottom: 0; }

/* Crazy 8s card images */
.crazy8-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 27px;
}
.crazy8-img-wrap {
  width: 277.75px;
  border-radius: 32px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 273/200;
  flex-shrink: 0;
}
.crazy8-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Perspectives cards inside Crazy 8s */
.perspectives-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: underline;
  line-height: 1.55;
  margin: 24px 0 16px;
}
.perspective-card {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  padding: 16px 24px;
  margin-bottom: 16px;
}
.perspective-card:last-child { margin-bottom: 0; }
.perspective-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.perspective-card__icon {
  width: 20px;
  height: 20px;
  border-radius: 100px;
  background: #90a9ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.perspective-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}
.perspective-card__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
}

/* ── Result Cards ────────────────────────────────────────── */
.result-cards {
  display: flex;
  gap: 17px;
  width: 100%;
}
.result-card {
  flex: 1 0 0;
  min-width: 258px;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.result-card__value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-gold);
}
.result-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.result-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #737373;
}

/* ── Browser Mockup ──────────────────────────────────────── */
.browser-frame {
  width: 100%;
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  background: #242424;
}
.browser-frame__bar {
  height: 36px;
  background: #242424;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 14px;
  flex-shrink: 0;
  position: relative;
}
.browser-frame__dots {
  display: flex;
  gap: 8px;
  z-index: 1;
}
.browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
}
.browser-frame__dot--red   { background: #ff5f57; }
.browser-frame__dot--amber { background: #febc2e; }
.browser-frame__dot--green { background: #28c840; }
.browser-frame__urlbar {
  position: absolute;
  left: 62px;
  right: 14px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
}
.browser-frame__url {
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame__content {
  width: 100%;
  overflow: hidden;
}
.browser-frame__content img {
  width: 100%;
  display: block;
  border-radius: 0;
  border: none;
  margin: 0;
}
.browser-frame__content--placeholder {
  background: #1e2030;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Stats Row ───────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 48px;
  width: 100%;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item__value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.stat-item__label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 200px;
}

/* ── Persona Cards ───────────────────────────────────────── */
.personas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.persona-card {
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.persona-card--green {
  background: #e3f5ed;
  border: 1px solid #7ac9a3;
}
.persona-card--purple {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
}
.persona-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.persona-card__role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.persona-card__quote {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: #333;
  font-style: italic;
}

/* ── Before/After Toggle ─────────────────────────────────── */
.before-after {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.toggle-row {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% - 0px);
}
.toggle-pill {
  display: inline-flex;
  border: 1px solid #000;
  border-radius: 32px;
  padding: 6px;
  gap: 0;
  background: #fff;
}
.toggle-pill button {
  font-size: 16px;
  font-weight: 600;
  width: 79px;
  height: 31px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13151d;
  transition: background 0.3s, color 0.3s;
}
.toggle-pill button.active {
  background: #1d1d1d;
  color: #fff;
}
.before-after-screens {
  position: relative;
  width: 100%;
}
.before-after-screen {
  width: 100%;
  border: 2px solid #000;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 0.5s, transform 0.5s;
}
.before-after-screen.hidden {
  display: none;
}
.before-after-screen img {
  width: 100%;
  display: block;
}

/* ── Design System Tabs ──────────────────────────────────── */
.ds-tabs {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.ds-tabs-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  border-radius: 30px;
  padding: 8px;
  gap: 0;
  background: #fff;
}
.ds-tabs-pill button {
  font-size: 16px;
  font-weight: 600;
  color: #13151d;
  padding: 0 16px;
  height: 31px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.ds-tabs-pill button.active {
  background: #1d1d1d;
  color: #fff;
}
.ds-panels { position: relative; width: 100%; }
.ds-panel { display: none; gap: 48px; }
.ds-panel.active { display: flex; }
.ds-panel img { width: 100%; }
.ds-panel__caption {
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
  margin-top: 10px;
}

/* ── Image Grid (2x2) ────────────────────────────────────── */
.img-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex-shrink: 0;
  width: 371px;
  height: 371px;
}
.img-grid-2x2__cell {
  overflow: hidden;
  border-radius: 4px;
}
.img-grid-2x2__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Julius button ───────────────────────────────────────── */
.btn-julius {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 8px 12px 8px 16px;
  background: #111110;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 48px;
  gap: 4px;
  transition: opacity 0.2s;
}
.btn-julius:hover { opacity: 0.85; }
.btn-julius__figma-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ── Learning Cards ──────────────────────────────────────── */
.learnings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}
.learning-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.learning-card__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-blue);
  line-height: 1;
}
.learning-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.learning-card__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #737373;
}

/* ── App Feature Cards (BMI) ─────────────────────────────── */
.app-feature-cards {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.app-feature-cards::-webkit-scrollbar { display: none; }
.app-feature-card {
  background: #fff;
  border-radius: 9px;
  box-shadow: 1px 1px 2px 0px white, 2px 2px 8px 0px rgba(0,0,0,0.25); /* Figma node 403:9251 */
  padding: 18px;
  flex-shrink: 0;
  width: 357.75px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.app-feature-card__num-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-feature-card__num-badge {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #4f7eff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-montserrat);
  flex-shrink: 0;
}
.app-feature-card__title {
  font-size: 12px;
  font-weight: 700;
  color: #25262a;
  font-family: var(--font-montserrat);
  white-space: nowrap;
}
.app-feature-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: #25262a;
  height: 60px;
  font-family: var(--font-montserrat);
}
.app-feature-card__screen {
  display: flex;
  justify-content: center;
  align-items: center;
}
.app-feature-card__screen img {
  max-width: 100%;
  border-radius: 4px;
}

/* ── Figma Italic Caption ────────────────────────────────── */
.fig-caption {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: #000;
  text-align: center;
  margin-top: 13px;
}

/* ── Research Activity Cards ─────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.research-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.research-card__icon {
  font-size: 20px;
  line-height: 1;
}
.research-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}
.research-card__text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: #737373;
}

/* ── Impact Stats ────────────────────────────────────────── */
.impact-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.impact-stat {
  flex: 1 0 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.impact-stat__value {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.impact-stat__label {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}
.impact-stat__sublabel {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Available dot ───────────────────────────────────────── */
.available-dot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.available-dot__circle {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf8e;
  flex-shrink: 0;
}
.available-dot__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* ── Small desktop (≤ 1440px) ───────────────────────────── */
/* Reduces horizontal padding so the 1080px content fits      */
/* within a 1280px viewport. At 1440px, max-width + flex      */
/* centering keep the visual offset identical (180px).        */
@media (max-width: 1440px) {
  :root {
    --pad-h: 100px;
  }
  .site-header,
  .site-footer { padding: 0 100px; }
}

/* ── Tablet (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pad-h: 32px;
    --pad-v: 48px;
  }

  .site-header,
  .site-footer { padding: 0 32px; }

  /* Homepage hero layout */
  .hero-1-content { flex-direction: column !important; gap: 40px !important; }
  .hero-1-text { max-width: 100% !important; min-width: unset !important; }
  /* Card constrained to its natural max-width — not screen-wide (Figma 768px) */
  .glance-card { max-width: 440px; min-width: 360px; width: 100%; }

  /* Case studies cards */
  .case-studies-cards { flex-wrap: wrap !important; gap: 24px !important; margin-left: 0 !important; margin-right: 0 !important; }
  .project-card { min-width: 280px; width: calc(50% - 12px); max-width: unset; }

  /* Hero 3 (expertise) */
  .expertise-content { flex-direction: column !important; }
  /* Card constrained to its natural max-width — not screen-wide (Figma 768px) */
  .skills-card { max-width: 440px; min-width: 360px; width: 100%; }

  /* Case study header */
  .case-header__thumb { display: none; }
  .case-header__title { font-size: 36px; }

  /* Carousel */
  .carousel { flex-wrap: wrap; }
  .carousel-card, .carousel-card.is-open { max-width: 100%; min-width: unset; flex: 1 0 calc(50% - 8px); }

  /* BMI specific */
  .img-grid-2x2 { width: 280px; height: 280px; }
  .result-cards { flex-wrap: wrap; }
  .result-card { min-width: calc(50% - 9px); }
}

/* ── Mobile (≤ 600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --pad-h: 20px;
    --pad-v: 40px;
    --header-h: 60px;
  }

  .site-header,
  .site-footer { padding: 0 20px; }

  /* Typography scale */
  .hero-name { font-size: 72px !important; letter-spacing: -3px !important; }
  .hero-hi   { font-size: 60px !important; }
  .hero-cta-email { font-size: 28px !important; letter-spacing: -0.7px !important; }
  .section-title-large { font-size: 38px !important; }
  .case-header__title { font-size: 28px; }

  /* Cards */
  .project-card { width: 100%; min-width: unset; max-width: 100%; }
  .case-studies-cards { flex-direction: column !important; align-items: stretch !important; }
  .project-card__thumb { height: 200px; border-radius: 16px 16px 0 0; }

  /* Carousel */
  .carousel { flex-direction: column; }
  .carousel-card, .carousel-card.is-open { max-width: 100%; min-width: unset; flex: none; width: 100%; }

  /* Stats */
  .stats-row { flex-wrap: wrap; gap: 24px; }
  .impact-grid { flex-direction: column; }

  /* Research grid */
  .research-grid { grid-template-columns: 1fr 1fr; }
  .learnings-grid { grid-template-columns: 1fr; }
  .result-cards { flex-direction: column; }
  .result-card { min-width: unset; max-width: 100%; }

  /* Personas */
  .personas-grid { grid-template-columns: 1fr; }

  /* BMI */
  .img-grid-2x2 { display: none; }
  .meta-bar__inner { flex-wrap: wrap; gap: 20px; }

  /* Footer — stack: logo → LinkedIn → copyright */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; align-items: center; }
  .site-footer { height: auto; padding: 18px 24px; }
  .footer-link { order: 2; }
  .footer-copy  { order: 3; }

  /* Before/after */
  .toggle-row { padding-right: 0; justify-content: center; }

  /* DS tabs */
  .ds-tabs { justify-content: center; }
  .ds-tabs-pill button { font-size: 13px; padding: 0 10px; }
}

/* ── Phone (≤ 402px) ─────────────────────────────────────── */
@media (max-width: 402px) {
  :root {
    --pad-h: 24px;
  }
  .site-header { padding: 0 24px; }
  /* Footer keeps vertical padding — Figma node 284:8850: py-18px px-24px */
  .site-footer { height: auto; padding: 18px 24px; }
}

/* ── Print / no-motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-card: 0.01ms; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
