/* ============================================
   SEYBOLDT ART — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-accent: #FFDF77;
  --color-accent-hover: #FFD54F;
  --color-accent-light: #FFF8E1;
  --color-bg: #FAFAFA;
  --color-bg-white: #FFFFFF;
  --color-bg-dark: #111111;
  --color-bg-dark-card: #1A1A1A;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #999999;
  --color-text-on-dark: #F5F5F5;
  --color-border: #E8E8E8;
  --color-border-hover: #D0D0D0;

  --font-sans: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --fs-md: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-lg: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-2xl: clamp(2.2rem, 1.6rem + 2.5vw, 3.5rem);
  --fs-3xl: clamp(2.8rem, 2rem + 3.5vw, 4.5rem);
  --fs-hero: clamp(3rem, 2rem + 5vw, 6rem);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-accent: 0 4px 24px rgba(255,223,119,0.25);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --max-width: 1200px;
  --max-width-narrow: 800px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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


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

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p + p { margin-top: var(--space-md); }

.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-accent { color: var(--color-accent); }

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section {
  padding: var(--space-section) 0;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--accent {
  background: var(--color-accent);
  color: var(--color-text);
}


/* --- Navigation (Liquid Glass) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  pointer-events: none;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-xl);
  pointer-events: auto;

  /* Liquid glass morphism — more transparent */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.22) 60%,
    rgba(255, 255, 255, 0.35) 100%
  );
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

/* Subtle specular highlight shimmer across the top */
.nav__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.9) 70%,
    transparent 100%
  );
  border-radius: 1px;
  pointer-events: none;
}

/* Scrolled state — slightly more opaque, lifted */
.nav.scrolled .nav__inner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.50) 0%,
    rgba(255, 255, 255, 0.30) 40%,
    rgba(255, 255, 255, 0.38) 60%,
    rgba(255, 255, 255, 0.50) 100%
  );
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.07),
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.50);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo svg,
.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  /* Center nav links absolutely within the bar */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

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

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav {
    padding: var(--space-sm) var(--space-md);
  }

  .nav__inner {
    padding: var(--space-xs) var(--space-md);
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: auto;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    transform: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.78) 100%
    );
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    transition: right var(--transition-slow);
    box-shadow:
      -8px 0 32px rgba(0, 0, 0, 0.08),
      inset 1px 0 0 rgba(255, 255, 255, 0.6);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    font-size: var(--fs-lg);
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: -1;
  }

  .nav__links.open ~ .nav__overlay {
    display: block;
  }
}


/* --- Hero --- */
.hero {
  padding-top: clamp(7rem, 6rem + 5vw, 10rem);
  padding-bottom: var(--space-section);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__content {
  max-width: 900px;
}

.hero__label {
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-xl);
}

.hero__title .accent-line {
  position: relative;
  display: inline;
}

.hero__title .accent-line::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--color-accent);
  z-index: -1;
  border-radius: 2px;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
}

.hero__scroll-hint {
  margin-top: var(--space-4xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-tertiary);
  font-size: var(--fs-sm);
}

.hero__scroll-hint .arrow {
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* --- Case Study Cards (Home) --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.work-grid .card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-grid .card:first-child {
    grid-column: auto;
  }
}

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card__thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.work-grid .card:first-child .card__thumbnail {
  aspect-ratio: 21 / 10;
}

.card__thumbnail-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  letter-spacing: -0.03em;
}

.card__body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__number {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card__desc {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}


/* --- Tags / Pills --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.tag--accent {
  background: var(--color-accent-light);
  color: #8B7000;
  border-color: var(--color-accent);
}

.tag--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  border-color: transparent;
}


/* --- Principles Strip --- */
.principles {
  overflow: hidden;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.principles__track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.principles__item {
  font-size: var(--fs-xl);
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.principles__item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--transition-base);
  text-align: center;
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg-white);
}

.btn--primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

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

.btn--outline:hover {
  border-color: var(--color-text);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--fs-base);
}

.btn .arrow-right {
  transition: transform var(--transition-fast);
}
.btn:hover .arrow-right {
  transform: translateX(3px);
}


/* --- About Page --- */
.about-hero {
  padding-top: clamp(7rem, 6rem + 5vw, 10rem);
  padding-bottom: var(--space-4xl);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

@media (max-width: 768px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.about-hero__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: var(--color-accent);
  border-radius: var(--radius-xl) 0 var(--radius-xl) 0;
  opacity: 0.15;
  z-index: 1;
}

.about-intro p {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.8;
}


/* --- CV / Timeline --- */
.cv-section {
  padding: var(--space-section) 0;
}

.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.timeline__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline__company {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.timeline__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.skills-group__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.skills-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}


/* --- Contact CTA --- */
.cta-section {
  background: var(--color-accent);
  padding: var(--space-5xl) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: var(--fs-md);
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  margin-bottom: var(--space-2xl);
}

.cta-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
}

.cta-socials a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(26, 26, 26, 0.6);
  transition: color var(--transition-fast);
}

.cta-socials a:hover {
  color: var(--color-text);
}


/* --- Case Study Detail --- */
.cs-hero {
  padding-top: clamp(7rem, 6rem + 5vw, 10rem);
  padding-bottom: var(--space-4xl);
}

.cs-hero__label {
  margin-bottom: var(--space-md);
}

.cs-hero h1 {
  margin-bottom: var(--space-md);
}

.cs-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin-bottom: var(--space-2xl);
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.cs-meta__item {
  min-width: 120px;
}

.cs-meta__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.cs-meta__value {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.cs-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  margin-bottom: var(--space-section);
  overflow: hidden;
}

.cs-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.cs-content h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-4xl);
}

.cs-content h2:first-child {
  margin-top: 0;
}

.cs-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.cs-content ul,
.cs-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.cs-content li {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xs);
  list-style: disc;
}

.cs-content ol li {
  list-style: decimal;
}

.cs-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}


/* --- Persona Card --- */
.persona-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.persona-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.persona-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.persona-card__name {
  font-size: var(--fs-md);
  font-weight: 600;
}

.persona-card__role {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.persona-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .persona-card__details {
    grid-template-columns: 1fr;
  }
}

.persona-card__detail-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.persona-card__detail-value {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}


/* --- User Story Card --- */
.user-story {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  border-left: 3px solid var(--color-accent);
}

.user-story strong {
  color: var(--color-text);
}


/* --- Metrics / Results --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.metric {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.metric__value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.metric__label {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}


/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.process-step {
  padding: var(--space-xl);
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.process-step__number {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent-hover);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.process-step__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.process-step__desc {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}


/* --- Case Study Tabs --- */
.cs-tabs {
  margin-top: var(--space-4xl);
  margin-bottom: var(--space-2xl);
}

.cs-tabs__nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  width: fit-content;
  margin: 0 auto var(--space-3xl);
}

.cs-tabs__btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
  white-space: nowrap;
}

.cs-tabs__btn:hover {
  color: var(--color-text);
}

.cs-tabs__btn.active {
  background: var(--color-bg-white);
  color: var(--color-text);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.cs-tabs__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cs-tabs__panel {
  display: none;
}

.cs-tabs__panel.active {
  display: block;
  animation: tabFadeIn 0.4s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .cs-tabs__nav {
    width: 100%;
  }
  .cs-tabs__btn {
    flex: 1;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-xs);
  }
}


/* --- Case Study Navigation --- */
.cs-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-4xl) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-section);
}

.cs-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  max-width: 50%;
}

.cs-nav__link:hover {
  background: var(--color-bg);
}

.cs-nav__link--next {
  text-align: right;
  margin-left: auto;
}

.cs-nav__label {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  font-weight: 500;
}

.cs-nav__title {
  font-size: var(--fs-md);
  font-weight: 600;
}


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

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo svg,
.footer__logo img {
  height: 28px;
  width: auto;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}


/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* --- Image Placeholder Gradients --- */
.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.gradient-7 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.gradient-8 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.gradient-9 { background: linear-gradient(135deg, #f6d365, #fda085); }
.gradient-10 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }


/* --- Image Gallery --- */
.cs-image {
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.cs-image img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-image figcaption {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  background: var(--color-bg);
  text-align: center;
}

.cs-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

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

@media (max-width: 600px) {
  .cs-image-grid,
  .cs-image-grid--3 {
    grid-template-columns: 1fr;
  }
}

.cs-image-grid .cs-image {
  margin: 0;
}

.card__thumbnail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mt-section { margin-top: var(--space-section); }
.mb-section { margin-bottom: var(--space-section); }


/* --- Language Switcher --- */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.nav__lang a {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__lang a:hover {
  color: var(--color-text);
}

.nav__lang a.active {
  color: var(--color-text);
  background: rgba(255, 223, 119, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav__lang .nav__lang-sep {
  color: var(--color-border);
  user-select: none;
}

@media (max-width: 768px) {
  .nav__lang {
    margin-left: auto;
    margin-right: var(--space-sm);
  }
}
