/* ==========================================================================
   MATT BEDETTE - DESIGN PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #0a0b0e;
  --bg-surface: #121318;
  --bg-surface-elevated: #181a22;
  --bg-card: #1c1e28;
  --bg-card-hover: #222532;
  --bg-glass: rgba(14, 15, 20, 0.82);
  --bg-glass-card: rgba(26, 28, 38, 0.7);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.3);
  --border-accent: rgba(66, 133, 244, 0.4);

  /* Typography Colors */
  --text-main: #f5f6f8;
  --text-secondary: #9da4b2;
  --text-muted: #656c7a;
  --text-dim: #444a56;

  /* Accents */
  --accent-blue: #4285f4;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-coral: #ef4444;

  /* Gradients */
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(66, 133, 244, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);

  /* Spacing & Layout */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad-y: clamp(4.5rem, 8vw, 8rem);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.85);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: rgba(0, 0, 0, 0.35);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(66, 133, 244, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  --gradient-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(66, 133, 244, 0.35);
  color: #ffffff;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
  border-bottom-color: var(--border-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: transform var(--transition-fast);
  line-height: 0;
  flex-shrink: 0;
}

.brand-monogram svg {
  display: block;
  width: 38px;
  height: auto;
  fill: currentColor;
}

.brand-logo:hover .brand-monogram {
  transform: translateY(-1px) scale(1.04);
}

.brand-monogram-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.brand-monogram-footer svg {
  display: block;
  width: 26px;
  height: auto;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-role {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-role-beta {
  color: darkorange;
  font-weight: 600;
  margin-left: 4px;
}

[data-theme="light"] .brand-role-beta {
  color: #ea580c;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
  margin-left: clamp(2rem, 4vw, 3.5rem);
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav-link:hover,
.has-dropdown:hover>.nav-link {
  color: var(--text-main);
}

.nav-link.active::after {
  opacity: 1;
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-label {
  display: inline-block;
  text-align: center;
}

.nav-label::before {
  content: attr(data-text);
  display: block;
  font-weight: 600;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  user-select: none;
  pointer-events: none;
}

/* Work Dropdown Menu */
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--border-subtle);
  color: var(--text-main);
  padding-left: 14px;
}

.dropdown-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Header Action Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.theme-toggle-btn,
.contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 40px;
  padding: 0;
  border-radius: 0;
  border: none;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  background: transparent;
}

.theme-toggle-btn::before,
.contact-btn::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
}

.theme-toggle-btn:hover,
.contact-btn:hover {
  color: var(--text-main);
  background: transparent;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
}

.mobile-toggle span {
  position: absolute;
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.mobile-toggle span:nth-child(2) {
  transform: rotate(90deg);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  transform: rotate(135deg);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: var(--bg-dark);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section (Slide 1 Translation)
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(66, 133, 244, 0.08) 0%, transparent 60%);
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.hero-quote-block {
  margin-bottom: 3rem;
}

.hero-quote {
  font-size: clamp(1.4rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1.75rem;
}

.hero-subquote {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Hero Key Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  margin-top: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Hero Partner Logos (Integrated Slide 2 Translation)
   ========================================================================== */

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

/* Clients Grid (12 Logos) */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.client-card::before {
  display: none;
}

.client-card:hover {
  transform: translateY(-2px);
  border: none;
  background: transparent;
}

.client-logo-img {
  max-width: 80%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.client-logo-img.logo-collins {
  max-width: 90%;
  max-height: 56px;
}

.client-card:hover .client-logo-img {
  opacity: 1;
  transform: scale(1.05);
}

[data-theme="light"] .client-logo-img {
  filter: invert(1) brightness(0.12);
  opacity: 0.67;
}

[data-theme="light"] .client-card:hover .client-logo-img {
  filter: invert(1) brightness(0);
  opacity: 1;
}

/* Cannes Lion Award Rollover for Coca-Cola */
.client-card-cannes {
  cursor: pointer;
}

.client-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.client-card-cannes:hover .client-hover-img {
  opacity: 1;
  transform: scale(1);
}

.client-card-cannes:hover .client-logo-img {
  opacity: 0;
  transform: scale(0.92);
}

[data-theme="light"] .client-hover-img {
  filter: none;
}

/* ==========================================================================
   Selected Work / Projects Showcase
   ========================================================================== */

.work-section {
  padding-block: var(--section-pad-y);
}

/* Work / Case Studies Section Header */
.work-section-header {
  width: 100%;
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  border-bottom: none;
}

.work-section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.work-section-desc {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 400;
}

.project-case-study {
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
  border-bottom: none;
}

.project-case-study:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Case Study Header */
.project-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2.75rem;
}

.project-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.meta-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-secondary);
}

.meta-pill.highlight {
  background: rgba(66, 133, 244, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(66, 133, 244, 0.25);
}

.project-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--text-main);
}

.project-tagline {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 400;
}

/* Project Metric / Impact Callout Box */
.project-metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.project-metric-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-blue);
}

.metric-highlight-value {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
}

.metric-highlight-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Detailed Narrative Columns (Overview & Role) */
.project-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.narrative-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.narrative-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.narrative-p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.narrative-p-wrapper {
  display: contents;
}

.narrative-more-btn {
  display: none;
}

/* ==========================================================================
   Horizontal Scrolling Component (Nested Slides)
   ========================================================================== */

.slider-component,
.slider-stage {
  position: relative;
  width: 100%;
  margin-top: 0;
  margin-bottom: 2rem;
  container-type: inline-size;
}

.slider-btn {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  transition: all var(--transition-fast);
  cursor: pointer;
}

[data-theme="light"] .slider-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--text-main);
}

.slider-btn:hover:not(:disabled) {
  background: var(--text-main);
  color: var(--bg-dark);
  transform: scale(1.08);
}

[data-theme="light"] .slider-btn:hover:not(:disabled) {
  background: var(--text-main);
  color: #ffffff;
}

.slider-btn:disabled {
  opacity: 1;
  background: #141620;
  border-color: rgba(255, 255, 255, 0.1);
  color: #7b8496;
  cursor: not-allowed;
}

[data-theme="light"] .slider-btn:disabled {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.08);
  color: #94a3b8;
}

.slider-prev {
  left: -21px;
  top: calc(28.125cqi - 21px);
}

.slider-next {
  right: -21px;
  top: calc(28.125cqi - 21px);
}

/* Horizontal Scroll Viewport */
.slider-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider-viewport::-webkit-scrollbar {
  display: none;
}

/* Slides Track */
.slider-track {
  display: flex;
  gap: 0;
  padding-bottom: 0;
}

/* Individual Slide Card */
.slide-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.slide-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.slide-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.slide-card:hover .slide-img-wrapper img {
  transform: scale(1.02);
}

.slide-expand-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.slide-card:hover .slide-expand-hint {
  opacity: 1;
  transform: translateY(0);
}

.slide-card-footer {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: none;
}

[data-theme="light"] .slide-card-footer {
  background: rgba(0, 0, 0, 0.05);
}

.slide-info-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-info-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slide-rendered-by {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-main);
  opacity: 1;
  margin-left: auto;
  align-self: flex-end;
  flex-shrink: 0;
}

.slide-rendered-by .slide-info-sub {
  color: var(--text-main);
  opacity: 1;
}

.slide-rendered-by svg {
  display: block;
  flex-shrink: 0;
}

/* Dots Indicator */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #ffffff;
}

[data-theme="light"] .slider-dot.active {
  background: var(--text-main);
}

/* ==========================================================================
   Personal Philosophy & About Section (Slide 73 Translation)
   ========================================================================== */

.about-section {
  padding-block: var(--section-pad-y);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.about-heading {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-main);
}

/* Principles Cards */
.principles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-block: 0.5rem;
}

.principle-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-section .principle-card {
  padding: 2px 0 2px 1rem;
  background: transparent;
  border: none;
  border-left: 2px solid var(--border-medium);
  border-radius: 0;
  position: relative;
  transition: border-color var(--transition-fast);
}

.about-section .principle-card:nth-child(1):hover {
  border-left-color: var(--accent-blue);
}

.about-section .principle-card:nth-child(2):hover {
  border-left-color: var(--accent-emerald);
}

.about-section .principle-card:nth-child(3):hover {
  border-left-color: var(--accent-amber);
}

.principle-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.principle-card:nth-child(1) .principle-title {
  color: var(--accent-blue);
}

.principle-card:nth-child(2) .principle-title {
  color: var(--accent-emerald);
}

.principle-card:nth-child(3) .principle-title {
  color: var(--accent-amber);
}

.principle-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-body-quote {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-invitation {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Portrait Image */
.about-image-col {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin-right: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: #000000;
  aspect-ratio: 800 / 533;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  opacity: 1;
  filter: none;
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.portrait-frame:hover img {
  opacity: 1;
  filter: none;
  transform: scale(1.02);
}

[data-theme="light"] .portrait-frame {
  background: #0a0b0e;
  border-color: var(--border-medium);
}

[data-theme="light"] .portrait-frame img {
  opacity: 1;
}

.portrait-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.portrait-badge-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.portrait-badge-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Experience, Education & Skills (Slide 74 Translation)
   ========================================================================== */

.resume-section {
  padding-block: var(--section-pad-y);
  border-top: 1px solid var(--border-subtle);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.resume-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-col-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-medium);
}

.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-medium);
  transition: border-color var(--transition-fast);
}

.timeline-card:hover {
  border-left-color: var(--accent-blue);
}

.timeline-role {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.timeline-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
}

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

/* Skills Badges Grid */
.skills-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skills-group-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.skills-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
  background: var(--bg-card);
  transform: translateY(-1px);
}

/* ==========================================================================
   Contact & Footer Section
   ========================================================================== */

.contact-section {
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: 4rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.contact-banner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.contact-banner::before {
  display: none;
}

.contact-banner-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.contact-banner-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--text-main);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--border-medium);
  transform: translateY(-2px);
}

/* Footer Bottom Bar */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-social-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Full-Screen Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lightbox-caption {
  font-size: 1rem;
  font-weight: 600;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.lightbox-body:active {
  cursor: grabbing;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .brand-text {
    display: none;
  }

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

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-narrative-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .about-image-col {
    max-width: 580px;
    margin-inline: auto;
    justify-content: center;
  }

  .portrait-frame {
    width: 100%;
    max-width: 520px;
    margin-right: 0;
  }

  .portrait-badge {
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 16px;
  }

  .theme-toggle-btn,
  .contact-btn {
    width: 40px;
  }

  .theme-toggle-btn::before,
  .contact-btn::before {
    inset: 0;
  }

  .theme-toggle-btn svg,
  .contact-btn svg {
    width: 22px;
    height: 22px;
  }

  .mobile-toggle {
    display: flex;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .mobile-toggle span {
    width: 22px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-quote-block {
    margin-bottom: 2rem;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 0.75rem;
    padding-top: 1.75rem;
  }

  .client-card {
    height: 64px;
    padding: 0.5rem 0.75rem;
  }

  .client-logo-img {
    max-width: 85%;
    max-height: 32px;
  }

  .client-logo-img.logo-collins {
    max-width: 92%;
    max-height: 38px;
  }

  /* Mobile Full-Bleed Edge-to-Edge Slider Carousel */
  .slider-component {
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    width: calc(100% + (2 * var(--container-pad)));
    border-radius: 0;
    border: none;
    padding: 0;
  }

  .slider-btn {
    display: none;
  }

  .slider-viewport {
    border-radius: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .slider-track {
    gap: 0;
    padding-bottom: 0;
  }

  .slide-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }

  .slide-card:hover {
    transform: none;
  }

  .slide-img-wrapper {
    border-radius: 0;
  }

  .slide-card-footer {
    padding-inline: var(--container-pad);
    padding-block: 0.875rem;
  }

  .slider-dots {
    margin-top: 1rem;
    padding-inline: var(--container-pad);
  }

  .principles-row {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  /* Mobile Work Section Narrative Paragraph Clamp & More Link */
  .narrative-p-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .work-section .narrative-p.narrative-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-section .narrative-p.narrative-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .narrative-more-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 2px 0;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .narrative-more-btn:hover,
  .narrative-more-btn:active {
    color: var(--accent-cyan);
  }

  [data-theme="dark"] .narrative-more-btn {
    color: #99c3ff;
  }

  [data-theme="dark"] .narrative-more-btn:hover,
  [data-theme="dark"] .narrative-more-btn:active {
    color: var(--accent-cyan);
  }
}

@media (max-width: 480px) {
  .client-card {
    height: 58px;
    padding: 0.45rem 0.5rem;
  }
}