/* ============================================================
   MICHAEL BARATH — PORTFOLIO
   Shared Stylesheet
   ============================================================ */

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

/* ============================================================
   TO REVERT TO DARK THEME — copy the block below back into :root
   --bg: #0a0a0c;
   --surface: #131316;
   --card: #1a1a1f;
   --border: #2a2a35;
   --accent: #00c9a7;
   --accent-dim: rgba(0, 201, 167, 0.12);
   --accent2: #8b5cf6;
   --text: #f0f0f5;
   --text-muted: #7a7a8c;
   --text-dim: #3a3a4a;
   --shadow: 0 4px 32px rgba(0,0,0,0.5);
   --shadow-card: 0 2px 16px rgba(0,0,0,0.35);
   ============================================================ */

:root {
  /* === LIGHT THEME (Figma Design) === */
  --bg: #fdf8f0;
  --surface: #f5e9d8;
  --card: #ffffff;
  --border: #e5d8c8;
  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.1);
  --accent2: #1d4ed8;
  --text: #111827;
  --text-muted: #6b7280;
  --text-dim: #d1d5db;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --shadow: 0 4px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }
strong { color: var(--text); }

/* ---- Utilities ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 64px 0; }
.section--sm { padding: 60px 0; }

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.accent-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #ede4d3;
  color: var(--text-muted);
  border: none;
}

.tag--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: none;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  pointer-events: none;
  transition: top 0.25s ease;
}

.nav__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 6px rgba(0,0,0,0.04);
  pointer-events: all;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.nav__logo-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__back:hover { color: var(--accent); }

.nav__back svg {
  width: 16px;
  height: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent2);
  opacity: 1;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ---- Hero — Two-card layout (Figma 124:1399) ---- */
.hero {
  padding: 120px 0 0;
  background: #fef9eb;
}

.hero__inner {
  max-width: 1118px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__cards {
  display: grid;
  grid-template-columns: 1fr 432px;
  gap: 24px;
  align-items: stretch;
}

/* Left card */
.hero__content-card {
  background: white;
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.06);
}

.hero__title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0.56px;
  color: #1d1c13;
  font-weight: 400;
  margin-bottom: 16px;
}

.hero__subtitle-heading {
  font-size: 20px;
  font-weight: 700;
  color: #424754;
  line-height: 26px;
  margin-bottom: 16px;
}

.hero__body-text {
  font-size: 16px;
  font-weight: 500;
  color: #424754;
  line-height: 27.2px;
  max-width: 503px;
  margin-bottom: 0;
}

.hero__stats {
  display: flex;
  gap: 32px;
  padding: 33px 0 0;
  border-top: 1px solid rgba(183,199,215,0.3);
  margin-top: 33px;
  flex-wrap: wrap;
}

.hero__stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 28px;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 13px;
  font-weight: 500;
  color: #6a6f7d;
}

/* Right side wrapper */
.hero__side {
  display: flex;
  flex-direction: column;
  width: 432px;
}

.hero__photo-card {
  background: #fffcf2;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.05);
  padding: 20px;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero__photo-inner {
  background: #f8f3e5;
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

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

.hero__location {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #6a6f7d;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  padding: 14px 0 4px;
}

.hero__role-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(160.86deg, #0058be 0%, #2170e4 100%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.66px;
  text-transform: uppercase;
}

/* Pill strip */
.hero__pill-strip {
  background: white;
  border-radius: 20px;
  height: 69px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.05);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.hero__pill-dot-square {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0058be, #2170e4);
  flex-shrink: 0;
}

.hero__pill-text {
  font-size: 14px;
  font-weight: 600;
  color: #424754;
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: 60px;
}

.section-header--center {
  text-align: center;
}

.section-header .label {
  margin-bottom: 12px;
}

.section-header h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-header--center p {
  margin: 0 auto;
}

/* ---- About Section (Figma 124:1435) ---- */
.about-section {
  background: #f8f3e5;
  padding: 64px 0;
}

.about-header {
  margin-bottom: 32px;
}

.about-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: #6a6f7d;
  margin-bottom: 12px;
}

.about-h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1c13;
  letter-spacing: -0.36px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.about-desc {
  font-size: 15px;
  font-weight: 500;
  color: #424754;
  line-height: 25.5px;
  max-width: 1070px;
}

/* Two-column body */
.about-body {
  display: grid;
  grid-template-columns: 1fr 434px;
  gap: 16px;
  align-items: stretch;
}

/* Left: 2×2 feature cards */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: 0 16px 48px rgba(29,28,19,0.08);
  transform: translateY(-2px);
}

.feature-card__icon-wrap {
  width: 40px;
  height: 40px;
  background: #f8f3e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 9px;
}

.feature-card__icon-wrap img {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 20.8px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 500;
  color: #424754;
  line-height: 22.4px;
  max-width: 226px;
}

/* Right: approach card fills full height */
.about-right-col {
  display: flex;
  flex-direction: column;
}

.approach-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.04);
  flex: 1;
}

.approach-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #1d1c13;
  line-height: 24px;
  margin-bottom: 12px;
}

.approach-card__body {
  font-size: 14px;
  font-weight: 500;
  color: #424754;
  line-height: 23.8px;
  margin-bottom: 16px;
}

.approach-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approach-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #424754;
  line-height: 21px;
}

.approach-bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0058be, #2170e4);
  flex-shrink: 0;
}

.location-card {
  background: #fffcf2;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.03);
}

.location-card__label {
  font-size: 13px;
  font-weight: 700;
  color: #6a6f7d;
  letter-spacing: 0.91px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.location-card__city {
  font-size: 20px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 30px;
  margin-bottom: 4px;
}

.location-card__sub {
  font-size: 13px;
  color: #6a6f7d;
  line-height: 19.5px;
}

/* ---- Skills Section (Figma 124:1514) ---- */
/* (keep .skills-section bg from body: #fef9eb) */
.skills-section {
  background: #fef9eb;
  padding: 64px 0;
}

.skills-section .about-header {
  margin-bottom: 32px;
}

.skills-layout {
  display: grid;
  grid-template-columns: 434px 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Left bar card */
.skills-bars-outer {
  background: #f8f3e5;
  border-radius: 28px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.skills-bars-inner {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.skills-category__title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 21.6px;
}

/* Progress bar rows */
.skill-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.skill-bar:last-child { margin-bottom: 0; }

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-bar__name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1c13;
}

.skill-badge {
  height: 22.5px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.skill-badge--expert {
  background: rgba(0,88,190,0.08);
  color: #0058be;
}
.skill-badge--advanced {
  background: #f8f3e5;
  color: #424754;
}
.skill-badge--proficient {
  background: #f8f3e5;
  color: #6a6f7d;
}

.skill-bar__track {
  height: 6px;
  background: #f8f3e5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #0058be, #2170e4);
  border-radius: 999px;
}

.skill-bar__pct {
  font-size: 12px;
  color: #6a6f7d;
  line-height: 18px;
}

/* Right tiles column */
.skills-tiles-col {
  display: flex;
  flex-direction: column;
}

.skills-tiles-outer {
  background: #f8f3e5;
  border-radius: 24px;
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skills-tiles-inner {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(29,28,19,0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.skills-tiles-inner .skills-category__title {
  font-size: 17px;
}

/* Tile grid */
.skill-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.skill-tile {
  background: #f8f3e5;
  border-radius: 16px;
  padding: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.skill-tile:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.skill-tile__name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1c13;
  line-height: 18.2px;
  margin-bottom: 10px;
}

.skill-tile__bar {
  height: 5px;
  background: rgba(183,199,215,0.4);
  border-radius: 999px;
  margin-bottom: 8px;
  overflow: hidden;
}

.skill-tile__fill {
  height: 100%;
  background: linear-gradient(90deg, #0058be, #2170e4);
  border-radius: 999px;
}

.skill-tile__level {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.skill-tile__level--expert { color: #0058be; }
.skill-tile__level--advanced { color: #424754; }
.skill-tile__level--proficient { color: #6a6f7d; }

/* ---- dummy, kept for compatibility ---- */
.info-pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Case Studies (Figma 124:1612) ---- */
.work-section {
  background: #f8f3e5;
  padding: 64px 0;
}

.case-studies-section {
  background: #f8f3e5;
}

/* Tighten label → quote gap in work section (10px, not 32px from about-header default) */
.work-section .about-header {
  margin-bottom: 10px;
}

.quote-banner {
  background: #fffcf2;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-banner blockquote {
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: #424754;
  line-height: 25.5px;
}

.quote-banner cite {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #6a6f7d;
  text-transform: uppercase;
  font-style: normal;
}

.cs-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cs-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: 320px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 40px rgba(29,28,19,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cs-card:hover {
  box-shadow: 0 16px 56px rgba(29,28,19,0.1);
  transform: translateY(-3px);
}

/* Image panel */
.cs-card__image {
  width: 41.66%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  height: 320px;
}

.cs-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-card:hover .cs-card__image img {
  transform: scale(1.04);
}

.cs-card__badge {
  position: absolute;
  top: 22px;
  left: 20px;
  background: rgba(29,28,19,0.55);
  border-radius: 999px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.66px;
  text-transform: uppercase;
}

/* Content panel */
.cs-card__body {
  flex: 1;
  padding: 38px 32px 32px;
  display: flex;
  flex-direction: column;
}

/* Alternate: content left, image right */
.cs-card--alt .cs-card__body { order: 1; }
.cs-card--alt .cs-card__image { order: 2; }

/* Metric row */
.cs-card__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-card__metric-value {
  font-size: 36px;
  font-weight: 700;
  color: #424754;
  line-height: 36px;
}

.cs-card__metric-label {
  font-size: 13px;
  font-weight: 500;
  color: #6a6f7d;
}

.cs-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 27.5px;
  margin-bottom: 12px;
}

.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cs-card__tag {
  height: 26px;
  border-radius: 999px;
  background: #f8f3e5;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6a6f7d;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

.cs-card p {
  font-size: 14px;
  font-weight: 500;
  color: #424754;
  line-height: 23.8px;
  flex: 1;
}

.cs-card__footer {
  margin-top: 24px;
}

.cs-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 45px;
  padding: 0 24px;
  background: linear-gradient(166.275deg, #0058be 0%, #2170e4 100%);
  box-shadow: 0 4px 16px rgba(0,88,190,0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.cs-card__btn:hover { opacity: 0.9; transform: translateY(-1px); }

.cs-card__btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Mini cards */
.cs-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.cs-mini-card {
  background: white;
  border-radius: 24px;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(29,28,19,0.05);
}

.cs-mini-card:hover {
  box-shadow: 0 16px 48px rgba(29,28,19,0.1);
  transform: translateY(-3px);
  opacity: 1;
}

.cs-mini-card__image {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.cs-mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-mini-card:hover .cs-mini-card__image img { transform: scale(1.05); }

.cs-mini-card__badge {
  position: absolute;
  top: 17px;
  left: 12px;
  background: rgba(29,28,19,0.55);
  border-radius: 999px;
  height: 18.5px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.cs-mini-card__body {
  padding: 16px 18px 20px;
}

.cs-mini-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1d1c13;
  line-height: 19.5px;
  margin-bottom: 10px;
}

.cs-mini-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-mini-card .tag {
  background: #f8f3e5;
  color: #6a6f7d;
  height: 22.5px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.44px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

/* Other Stories Short standalone link */
.cs-other-link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.cs-other-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 51px;
  padding: 0 28px;
  border: 1px solid rgba(183,199,215,0.8);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1c13;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(29,28,19,0.06);
  transition: box-shadow var(--transition);
}

.cs-other-link:hover { box-shadow: 0 8px 24px rgba(29,28,19,0.1); opacity: 1; }

/* ---- Work Experience — Two-column alternating timeline ---- */
.experience-section {
  background: var(--bg);
}

.timeline {
  position: relative;
  padding: 24px 0 0;
}

/* Centre vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.25;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  width: 100%;
  margin-bottom: 48px;
  position: relative;
  align-items: flex-start;
}

/* Left-side card */
.timeline-item--left {
  padding-right: calc(50% + 36px);
}

/* Right-side card */
.timeline-item--right {
  padding-left: calc(50% + 36px);
  justify-content: flex-end;
}

/* Centre dot */
.timeline-dot {
  position: absolute;
  left: calc(50% - 8px);
  top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  opacity: 0.7;
  z-index: 1;
}

.timeline-dot--current {
  width: 20px; height: 20px;
  left: calc(50% - 10px);
  top: 19px;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

/* Card */
.timeline-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  width: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.timeline-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #ffffff;
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.timeline-badge--prev {
  background: var(--surface);
  color: var(--text-muted);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.timeline-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-icon {
  font-size: 0.85rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #ede4d3;
  border: none;
  border-radius: 100px;
  padding: 3px 10px;
}

/* ---- Clients — unified card ---- */
.clients-section {
  background: var(--surface);
  padding: 64px 0;
}

.clients-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-top: 16px;
}

.clients-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px 24px;
}

.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition);
}

.client-item:hover {
  transform: translateY(-4px);
}

.client-item__circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.client-item:hover .client-item__circle {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  color: var(--accent);
}

.client-item__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Case Study Layout ---- */
.cs-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.cs-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cs-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.cs-hero__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.cs-hero__breadcrumb a:hover { color: var(--accent); }
.cs-hero__breadcrumb span { color: var(--border); }

.cs-hero__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cs-hero__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cs-hero__summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.cs-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 24px;
}

.cs-meta-bar__item {}

.cs-meta-bar__key {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cs-meta-bar__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cs-hero__image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 60px;
}

/* ---- CS Section styles ---- */
.cs-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cs-section h2 {
  color: var(--text);
  margin-bottom: 24px;
}

.cs-section h3 {
  color: var(--text);
  margin-bottom: 12px;
}

.cs-section p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 720px;
}

.cs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.cs-columns--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.cs-highlight-box {
  background: var(--card);
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cs-highlight-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cs-highlight-box p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: none;
}

.cs-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
}

.cs-image-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
}

.cs-stat {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

.cs-stat__value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.cs-stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cs-number-list {
  list-style: none;
  counter-reset: cs-counter;
}

.cs-number-list li {
  counter-increment: cs-counter;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cs-number-list li::before {
  content: counter(cs-counter, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 3px;
}

.cs-bullet-list {
  list-style: none;
}

.cs-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.cs-bullet-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cs-phase {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

.cs-phase__num {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.cs-phase h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.cs-phase p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 12px;
}

.cs-phase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cs-phase__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #ede4d3;
  border-radius: 100px;
  padding: 3px 8px;
}

.cs-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cs-insights-block {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

.cs-insights-block h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs-insight-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.cs-insight-stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.cs-insight-stat__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Benefits Grid ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.benefit-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
}

.benefit-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--surface);
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--card), rgba(37,99,235,0.06));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 16px;
  padding: 60px;
  text-align: center;
}

.cta-box h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-box__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Know More Page ---- */
.km-hero {
  padding: 160px 0 80px;
}

.km-philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.km-design-principle {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.km-design-principle__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.km-design-principle__content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.km-design-principle__content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}

.km-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.km-value-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  transition: box-shadow var(--transition), transform var(--transition);
}

.km-value-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.km-value-card__icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.km-value-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.km-value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.km-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.km-interest {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.km-timeline {
  position: relative;
  padding-left: 0;
}

.km-milestone {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.km-milestone__year {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.km-milestone__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Patterns Page ---- */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pattern-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  transition: box-shadow var(--transition), transform var(--transition);
}

.pattern-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.pattern-card__image {
  height: 200px;
  overflow: hidden;
}

.pattern-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pattern-card:hover .pattern-card__image img {
  transform: scale(1.04);
}

.pattern-card__body {
  padding: 20px;
}

.pattern-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pattern-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rapid-viz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.rapid-viz-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.rapid-viz-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Nav active link ---- */
.nav__links a.active {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Nav scrolled (compact shadow) ---- */
.nav--scrolled {
  top: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 6px rgba(0,0,0,0.06);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__cards { grid-template-columns: 1fr; }
  .hero__side { width: 100%; flex-direction: row; align-items: flex-start; gap: 16px; }
  /* .hero__photo-card { flex: 0 0 auto; } */
  .hero__pill-strip { border-radius: var(--radius); text-align: center; }
  .approach-content { grid-template-columns: 1fr; gap: 40px; }
  .cs-columns { grid-template-columns: 1fr; gap: 32px; }
  .cs-columns--3 { grid-template-columns: 1fr; }
  .cs-phase-grid { grid-template-columns: 1fr; }
  .cs-insights-grid { grid-template-columns: 1fr; }
  .km-philosophy-grid { grid-template-columns: 1fr; gap: 40px; }
  .rapid-viz-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 40px 24px; }
  .skills-layout { grid-template-columns: 1fr; }
  .skill-tile-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; transform: none; }
  .timeline-item--left,
  .timeline-item--right {
    padding-left: 52px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 12px; }
  .cs-card--featured,
  .cs-card--featured-alt { flex-direction: column; }
  .cs-card--featured .cs-card__image,
  .cs-card--featured-alt .cs-card__image { width: 100%; height: 220px; order: 0; }
  .cs-card--featured-alt .cs-card__body { order: 1; }
  .cs-card--featured .cs-card__body,
  .cs-card--featured-alt .cs-card__body { padding: 28px; }
  /* About section */
  .about-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .hero__stats { gap: 24px; }
  .hero__content-card { padding: 32px 24px; }
  .hero__photo { width: 140px; height: 140px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .km-milestone { grid-template-columns: 80px 1fr; }
  .rapid-viz-grid { grid-template-columns: 1fr; }
  .skill-tile-grid { grid-template-columns: 1fr 1fr; }
  .clients-row { gap: 20px; }
  .client-item__circle { width: 56px; height: 56px; }
  /* About section */
  .feature-cards-grid { grid-template-columns: 1fr; }
  /* Case study cards */
  .cs-card { flex-direction: column; height: auto; }
  .cs-card__image { width: 100%; height: 200px; }
  .cs-card--alt .cs-card__image { order: 0; }
  .cs-card--alt .cs-card__body { order: 1; }
  .cs-card__body { padding: 24px 20px; }
  .cs-card h3 { font-size: 18px; }
  .cs-card__metric-value { font-size: 28px; }
  /* Mini cards grid */
  .cs-mini-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Shared Page Footer ---- */
.oss-footer {
  background: #f8f3e5;
  border-top: 1px solid #e5d8c8;
  height: 72px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.oss-footer__logo {
  width: 42px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(142.814deg, #0058be 0%, #2170e4 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
}
.oss-footer__name { font-size: 14px; font-weight: 700; color: #1d1c13; }
.oss-footer__copy { font-size: 13px; color: #6a6f7d; }
