/* ==========================================================================
   OYEKUNMI OYEDIJI (O.OYE) - PORTFOLIO DESIGN SYSTEM & STYLES
   Plain HTML, CSS, Vanilla JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Custom Properties
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Dark Mode (Default) */
  --bg-main: #171717;
  --text-main: #f3f3f3;
  --text-body: #b1b2aa;
  --wordmark: #d9d9d9;
  --wordmark-shimmer: #ffffff;

  --nav-bg: #222222;
  --nav-text: #b1b2aa;
  --nav-hover: #ffffff;
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #171717;

  --hero-halfcircle-bg: #222222;
  --hero-heading: #f3f3f3;
  --hero-sub: #d9d9d9;
  --theme-toggle-knob: #d6d0c4;
  --availability-dot: #74c111;

  --section-bg-dark: #222222;
  --tag-bg: rgba(243, 243, 243, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-subtle: rgba(255, 255, 255, 0.06);

  --proj-lumivox: #1a2122;
  --proj-learnflow: #211f24;
  --proj-eliteshine: #252021;
  --proj-auracayane: #1c1e22;

  --services-bg: #222222;
  --dot-inactive: rgba(255, 255, 255, 0.25);
  --dot-active: #ffffff;

  --cta-pill-bg: #222222;
  --cta-pill-border: rgba(255, 255, 255, 0.1);

  /* Typography shortcuts */
  --font-display:
    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  /* Layout */
  --container-max-width: 1728px;
  --container-padding: 150px;
}

[data-theme="light"] {
  /* Light Mode */
  --bg-main: #f5f5f5;
  --text-main: #111111;
  --text-body: #4a4a4a;
  --wordmark: #4a4a4a;
  --wordmark-shimmer: #ffffff;

  --nav-bg: #eaeaea;
  --nav-text: #111111;
  --nav-hover: #171717;
  --btn-primary-bg: #111111;
  --btn-primary-text: #f5f5f5;

  --hero-halfcircle-bg: #eaeaea;
  --hero-heading: #111111;
  --hero-sub: #111111;
  --theme-toggle-knob: #171717;
  --availability-dot: #2ecf56;

  --section-bg-light: #eaeaea;
  --tag-bg: rgba(17, 17, 17, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);
  --border-color-subtle: rgba(0, 0, 0, 0.06);

  --proj-lumivox: #dbe4e4;
  --proj-learnflow: #eeecef;
  --proj-eliteshine: #e8e3e5;
  --proj-auracayane: #e0e2e7;

  --services-bg: #eaeaea;
  --dot-inactive: rgba(0, 0, 0, 0.2);
  --dot-active: #111111;

  --cta-pill-bg: #ffffff;
  --cta-pill-border: rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth transition for theme switches */
header,
nav,
.nav-pill,
.btn-primary,
.btn-talk,
.mobile-nav-overlay,
.theme-toggle-switch,
.hero-halfcircle,
.hero-cta-group,
.btn-explore,
.btn-book-call,
.services-card,
.services-dot {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Global Container Margins */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* --------------------------------------------------------------------------
   3. Header & Navigation (Desktop & Mobile)
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  width: 100%;
  padding-top: 36px;
  padding-bottom: 24px;
  z-index: 50;
}

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

/* Wordmark & Glow Sweep Animation */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  position: relative;
  user-select: none;
  background: linear-gradient(
    115deg,
    var(--wordmark) 0%,
    var(--wordmark) 40%,
    var(--wordmark-shimmer) 50%,
    var(--wordmark) 60%,
    var(--wordmark) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wordmarkShimmer 5s ease-in-out infinite;
}

[data-theme="light"] .wordmark {
  background: linear-gradient(
    115deg,
    var(--wordmark) 0%,
    var(--wordmark) 40%,
    #999999 48%,
    #ffffff 50%,
    #999999 52%,
    var(--wordmark) 60%,
    var(--wordmark) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes wordmarkShimmer {
  0% {
    background-position: 180% 0;
  }
  30% {
    background-position: -80% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

/* Desktop Navigation Center Pill */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-pill {
  display: flex;
  align-items: center;
  background-color: var(--nav-bg);
  border-radius: 10px;
  padding: 6px 10px;
  list-style: none;
  gap: 4px;
}

.nav-pill li {
  display: flex;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--nav-text);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background-color: transparent;
}

/* Desktop CTA Button ("Let's Talk ↗") */
.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-talk svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.btn-talk:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-talk:hover svg {
  transform: translate(2px, -2px);
}

/* Mobile Menu Button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Fullscreen Navigation Overlay (ref_mobile_nav.png) */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-main);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 20px 32px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mobile-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mobile-nav-body {
  display: flex;
  flex-direction: column;
  padding: 32px 0 40px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-main);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.mobile-nav-link:hover {
  transform: translateX(4px);
}

.mobile-nav-link.mobile-nav-cta {
  gap: 12px;
  width: fit-content;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background-color: var(--nav-bg);
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: normal;
}

.mobile-nav-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-nav-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-color);
  flex-shrink: 0;
}

.mobile-nav-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
  min-height: 72px;
  padding-bottom: 0;
}

.mobile-nav-memoji {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   4. Availability Status Indicator Component
   -------------------------------------------------------------------------- */
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--availability-dot);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

.availability-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: var(--availability-dot);
  opacity: 0.35;
  animation: pulseDot 2.5s infinite ease-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

.availability-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--hero-sub);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  min-height: calc(100vh - 110.5px);
  min-height: calc(100svh - 110.5px);
  padding-top: 30px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6vh;
  position: relative;
}

/* Intro: "Meet O.Oye!" with O.O Toggle */
.hero-intro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 40px;
  color: var(--hero-heading);
  line-height: 1.2;
  margin-bottom: 10px;
  user-select: none;
}

.hero-intro-text {
  display: inline-block;
}

/* The O.O Interactive Theme Toggle Switch */
.theme-toggle-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  font: inherit;
  color: inherit;
}

.theme-toggle-hint {
  position: absolute;
  left: 50%;
  top: -34px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px) rotate(-10deg);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-toggle-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-10deg);
}

.theme-toggle-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 3px) rotate(-10deg);
}

.theme-toggle-switch:focus-visible .toggle-pill {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 66px;
  height: 34px;
  border: 2px solid var(--text-main);
  border-radius: 9999px;
  padding: 0 4px;
  box-sizing: border-box;
  transition: border-color 0.4s ease;
}

.toggle-pill.is-blinking {
  animation: toggleBlinkPulse 1s ease-in-out;
}

@keyframes toggleBlinkPulse {
  0%,
  100% {
    scale: 1;
  }
  30%,
  55% {
    scale: 1.05;
  }
}

/* Slots for the two "O"s */
.toggle-slot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--text-main);
  box-sizing: border-box;
  transition:
    border-color 0.4s ease,
    opacity 0.3s ease;
}

/* Center dot for the "." in O.O */
.toggle-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-main);
  flex-shrink: 0;
  transition: background-color 0.4s ease;
}

/* The physical knob that flips/slides */
.toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--theme-toggle-knob);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.4s ease,
    box-shadow 0.2s ease;
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.theme-toggle-switch:hover .toggle-knob {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    0 0 0 3px rgba(217, 217, 217, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

/* In Dark Mode (default): Knob covers left slot */
[data-theme="dark"] .toggle-knob {
  transform: translateX(0);
}

/* In Light Mode: Knob covers right slot */
[data-theme="light"] .toggle-knob {
  transform: translateX(32px);
}

/* When flipping, add a subtle physical spring flip effect */
.toggle-knob.is-animating {
  animation: knobPhysicalFlip 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes knobPhysicalFlip {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88, 1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Main Title */
.hero-title {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 80px;
  letter-spacing: -2px;
  line-height: 1.1;
  text-align: center;
  color: var(--hero-heading);
  margin-bottom: 50px;
}

/* --------------------------------------------------------------------------
   6. Hero Stage (Flanking Bio, Visual Center & Availability)
   -------------------------------------------------------------------------- */
.hero-stage {
  width: 100%;
  display: grid;
  grid-template-areas: "bio visual availability";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  margin-top: auto;
}

/* Left Bio Column (Desktop) */
.hero-bio-col {
  grid-area: bio;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 380px;
  padding-right: 20px;
  justify-self: start;
  transform: translateY(-150px);
}

.quote-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 12px;
  user-select: none;
}

.hero-bio {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hero-sub);
}

/* Center Visual Column */
.hero-visual-col {
  grid-area: visual;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-self: center;
}

.hero-halfcircle-wrapper {
  position: relative;
  width: 600px;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-halfcircle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--hero-halfcircle-bg);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  z-index: 1;
}

.hero-memoji-container {
  position: absolute;
  bottom: 70px;
  width: 350px;
  height: 350px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.memoji-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.memoji-open {
  opacity: 1;
  z-index: 2;
}

.memoji-close {
  opacity: 0;
  z-index: 3;
  transition: opacity 280ms ease-in-out;
}

/* Right Availability Column (Desktop) */
.hero-availability-col {
  grid-area: availability;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  justify-self: end;
  padding-left: 20px;
  transform: translateY(-150px);
}

.mobile-hero-availability-col {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Hero CTA Button Group
   -------------------------------------------------------------------------- */
.hero-cta-group {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  background-color: var(--cta-pill-bg);
  border: 1px solid var(--cta-pill-border);
  border-radius: 14px;
  padding: 5px;
  margin: 0;
  transform: translateX(-50%);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-cta-group.is-booking-hovered {
  transform: translateX(calc(-50% + 5.5px));
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.btn-explore svg {
  stroke: currentColor;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-explore:hover {
  opacity: 0.92;
}

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

/* "Book a call" Button */
.btn-book-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    padding-right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-cta-group.is-booking-hovered .btn-book-call {
  padding-right: 35px;
}

.btn-book-call:hover {
  color: #d9d9d9;
  background-color: transparent;
  transform: translateX(4px);
}

[data-theme="light"] .btn-book-call:hover {
  color: #4a4a4a;
}

.btn-book-call:active {
  background-color: transparent;
}

/* --------------------------------------------------------------------------
   8. Selected Work Section
   -------------------------------------------------------------------------- */
.selected-work-section {
  position: relative;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 120px;
}

/* Section Header with Background Watermark */
.section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
  margin-bottom: 80px;
  user-select: none;
}

.section-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  letter-spacing: 10px;
  line-height: 1;
  color: var(--text-main);
  opacity: 0.03;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

[data-theme="light"] .section-watermark {
  opacity: 0.05;
}

.section-title {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -150%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* 2-Column Projects Grid (Desktop) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 88px;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Visual Card Container with Theme-Adapted Colors */
.project-visual-wrapper {
  width: 100%;
  border-radius: 10px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 18px;
  overflow: hidden;
  transition:
    background-color 0.4s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card {
  cursor: pointer;
}

.project-visual-wrapper:hover {
  transform: translateY(-2px);
}

.project-visual-wrapper:hover .project-img {
  transform: scale(1.055);
}

.project-visual--lumivox {
  background-color: var(--proj-lumivox);
}

.project-visual--learnflow {
  background-color: var(--proj-learnflow);
}

.project-visual--eliteshine {
  background-color: var(--proj-eliteshine);
}

.project-visual--auracayane {
  background-color: var(--proj-auracayane);
}

.project-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Project Info & Typography Specifications */
.project-info {
  display: flex;
  flex-direction: column;
}

.project-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.project-description {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 24px;
  color: var(--text-body);
  margin-bottom: 12px;
  margin-right: 0;
  transition: color 0.4s ease;
}

.project-stat-row {
  margin-top: 30px;
  margin-bottom: 14px;
}

.project-stat {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  transition: color 0.4s ease;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  list-style: none;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 10px 0;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background-color: #222222;
  color: #b1b2aa;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

[data-theme="light"] .project-tag {
  border-color: rgba(0, 0, 0, 0.12);
  background-color: #eaeaea;
  color: #333333;
}

.project-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-main);
  text-decoration: none;
  width: fit-content;
  transition: color 0.4s ease;
}

.project-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 0.5px;
  background-color: currentColor;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.project-link:hover::after,
.project-link:focus-visible::after {
  opacity: 1;
}

.project-link-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 120px;
}

.services-card {
  background-color: var(--services-bg);
  border-radius: 40px;
  padding: 64px 80px 48px 80px;
  box-sizing: border-box;
  width: 100%;
  transition: background-color 0.4s ease;
}

/* Services Section Header (Top-Left aligned on Desktop) */
.services-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 140px;
  margin-bottom: 40px;
  user-select: none;
}

.services-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  letter-spacing: 12px;
  line-height: 1;
  color: var(--text-main);
  opacity: 0.04;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

[data-theme="light"] .services-watermark {
  opacity: 0.05;
}

.services-title {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-120%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* Services Carousel */
.services-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.services-slides-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.services-slides-track::-webkit-scrollbar {
  display: none;
}

.service-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  column-gap: 60px;
  box-sizing: border-box;
}

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

.service-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 12px;
  transition: color 0.4s ease;
}

.service-category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 28px;
  transition: color 0.4s ease;
}

.service-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  /* letter-spacing: -1px; */
  color: var(--text-body);
  max-width: 520px;
  transition: color 0.4s ease;
}

.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.service-img {
  width: 100%;
  max-width: 660px;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Pagination Dots */
.services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.services-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-inactive);
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.services-dot:hover {
  background-color: var(--dot-active);
  opacity: 0.8;
}

.services-dot.is-active {
  background-color: var(--dot-active);
  transform: scale(1.15);
}

.services-dot:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   10. About Me Section & Certificate Modal
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 120px;
}

/* About Section Header (Top-Left on Desktop) */
.about-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 140px;
  margin-bottom: 60px;
  user-select: none;
}

.about-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  letter-spacing: 12px;
  line-height: 1;
  color: var(--text-main);
  opacity: 0.04;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.4s ease;
}

[data-theme="light"] .about-watermark {
  opacity: 0.05;
}

.about-title {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-90%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
  transition: color 0.4s ease;
}

/* Main Content Grid: Portrait & Bio */
.about-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  column-gap: 200px;
  align-items: center;

  width: 100%;
}

.about-portrait-wrapper {
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.about-portrait-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.about-bio-col {
  display: flex;
  flex-direction: column;
  margin-right: 180px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 32px;
  transition: color 0.4s ease;
}

.about-body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  /* letter-spacing: -1px; */
  color: var(--text-body);
  margin-bottom: 32px;
  transition: color 0.4s ease;
}

.cert-trigger-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  color: var(--text-main);
  background: none;
  border: none;
  padding: 0;
  /* text-decoration: underline; */
  text-underline-offset: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cert-trigger-link:hover {
  opacity: 0.8;
}

.about-tools-block {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.about-tools-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.about-tools-list {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  transition: color 0.4s ease;
}

/* Statistics Row */
.about-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  width: 80%;
  padding-top: 20px;
}

.about-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-main);
  transition: color 0.4s ease;
}

.about-stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-body);
  max-width: 100%;
  transition: color 0.4s ease;
}

/* Certificate Modal */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease;
}

.cert-modal-backdrop.is-active .cert-modal-dialog {
  transform: scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--tag-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cert-modal-close:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

[data-theme="dark"] .cert-modal-close img {
  filter: invert(1);
}

[data-theme="light"] .cert-modal-close img {
  filter: invert(0);
}

.cert-modal-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

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

/* --------------------------------------------------------------------------
   11. Responsive Design & Breakpoints
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (<= 1200px) */
@media screen and (max-width: 1200px) {
  :root,
  [data-theme="dark"] {
    --container-padding: 60px;
  }

  .experience-layout {
    grid-template-columns: 340px 60px minmax(0, 1fr);
  }

  .experience-introduction {
    font-size: 24px;
    line-height: 38px;
  }

  .hero-halfcircle-wrapper {
    width: 560px;
    height: 260px;
  }

  .hero-memoji-container {
    bottom: 78px;
    width: 270px;
    height: 270px;
  }

  .hero-title {
    font-size: 64px;
  }

  .about-grid {
    grid-template-columns: 400px 1fr;
    column-gap: 50px;
  }
}

/* Tablets (<= 992px) */
@media screen and (max-width: 992px) {
  :root,
  [data-theme="dark"] {
    --container-padding: 40px;
  }

  .desktop-nav,
  .btn-talk {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 1;
    margin-top: 20px;
  }

  .hero-bio-col {
    order: 1;
    max-width: 500px;
    text-align: center;
    justify-self: center;
    padding-right: 0;
    margin-bottom: 16px;
    transform: none;
  }

  .quote-mark {
    display: none;
  }

  .hero-availability-col {
    display: none;
  }

  .mobile-hero-availability-col {
    position: relative;
    order: -1;
    align-self: flex-end;
    padding-left: 0;
    margin: 0 0 18px;
    transform: none;
    display: flex;
  }

  .hero-visual-col {
    order: 3;
    width: 100%;
    margin-top: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
  }

  .services-card {
    padding: 48px 40px 40px 40px;
    border-radius: 32px;
  }

  .service-slide {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .service-visual {
    order: 1;
    width: 100%;
  }

  .service-content {
    order: 2;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .about-portrait-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Mobile Devices (<= 640px / 440px target scale) */
@media screen and (max-width: 640px) {
  :root,
  [data-theme="dark"] {
    --container-padding: 20px;
  }

  .site-header {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .wordmark {
    font-size: 22px;
  }

  .mobile-menu-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-section {
    min-height: calc(100vh - 86px);
    min-height: calc(100svh - 86px);
    min-height: calc(100dvh - 86px);
    padding-top: 10px;
    padding-bottom: 0;
  }

  /* Intro: Meet O.Oye! Mobile Spec: 24px */
  .hero-intro {
    font-size: 24px;
    margin-bottom: 8px;
    transform: translateY(-8px);
  }

  .toggle-pill {
    width: 48px;
    height: 26px;
    border-width: 1.5px;
    padding: 0 3px;
  }

  .toggle-slot {
    width: 16px;
    height: 16px;
    border-width: 1px;
  }

  .toggle-dot {
    width: 3px;
    height: 3px;
  }

  .toggle-knob {
    width: 16px;
    height: 16px;
    top: 3.5px;
    left: 3px;
  }

  [data-theme="dark"] .toggle-knob {
    transform: translateX(0);
  }

  [data-theme="light"] .toggle-knob {
    transform: translateX(23px);
  }

  /* Heading: Your Design Partner Mobile Spec: 32px */
  .hero-title {
    font-size: 32px;
    letter-spacing: normal;
    margin-bottom: 0px;
    transform: translateY(-20px);
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* Bio: Mobile Spec: 16px */
  .hero-bio-col {
    order: 1;
    max-width: 100%;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 16px;
    transform: translateY(-20px);
  }

  .quote-mark {
    display: none;
  }

  .hero-bio {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Availability: Mobile Spec: 11px */
  .hero-availability-col {
    display: none;
  }

  .mobile-hero-availability-col {
    position: relative;
    order: -1;
    align-self: flex-end;
    right: auto;
    top: auto;
    margin: 0 12px 40px 0;
    transform: translateY(-50px);
    z-index: 4;
  }

  .availability-dot {
    width: 6px;
    height: 6px;
  }

  .availability-text {
    font-size: 11px;
  }

  /* Center Visual: Mobile Spec */
  .hero-visual-col {
    order: 3;
    width: 100%;
    margin-top: auto;
  }

  .hero-container {
    padding-top: 11.5vh;
    padding-top: 11.5dvh;
  }

  .hero-halfcircle-wrapper {
    width: 340px;
    height: 160px;
  }

  .hero-memoji-container {
    bottom: 60px;
    width: 210px;
    height: 210px;
  }

  .hero-cta-group {
    position: absolute;
    bottom: 8px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    padding: 4px;
  }

  .hero-cta-group.is-booking-hovered {
    transform: translateX(calc(-50% + 5px));
  }

  .hero-cta-group.is-booking-hovered .btn-book-call {
    padding-right: 28px;
  }

  .btn-explore {
    padding: 10px 18px;
    font-size: 14px;
  }

  .btn-book-call {
    padding: 10px 18px;
    font-size: 14px;
  }

  .mobile-nav-link {
    font-size: 28px;
  }

  /* Selected Work Mobile Specifications */
  .selected-work-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .section-header {
    min-height: 60px;
    margin-bottom: 40px;
  }

  .section-watermark {
    font-size: 56px;
    letter-spacing: 3px;
  }

  .section-title {
    font-size: 24px;
    letter-spacing: normal;
    transform: translate(-50%, -100%);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .project-visual-wrapper {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .project-name {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: normal;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .project-stat {
    font-size: 12px;
  }

  .project-tags {
    gap: 6px;
  }

  .project-tag {
    font-size: 11px;
  }

  .project-link {
    font-size: 12px;
  }

  .project-link-arrow {
    width: 12px;
    height: 12px;
  }

  /* Services Section Mobile Specifications */
  .services-section {
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .services-card {
    padding: 36px 20px 32px 20px;
    border-radius: 24px;
  }

  .services-header {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-bottom: 28px;
  }

  .services-watermark {
    font-size: 56px;
    letter-spacing: 3px;
  }

  .services-title {
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 24px;
    letter-spacing: normal;
  }

  .service-slide {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .service-visual {
    order: 1;
    width: 100%;
  }

  .service-content {
    order: 2;
    width: 100%;
  }

  .service-title {
    font-size: 28px;
    letter-spacing: -2px;
    margin-bottom: 8px;
  }

  .service-category {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .service-description {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: normal;
    max-width: 100%;
  }

  .service-img {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  }

  .services-pagination {
    margin-top: 32px;
    gap: 10px;
  }

  /* About Section Mobile Specifications */
  .about-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .about-header {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    margin-bottom: 28px;
  }

  .about-watermark {
    font-size: 56px;
    letter-spacing: 3px;
  }

  .about-title {
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 24px;
    letter-spacing: normal;
  }

  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .about-bio-col {
  margin-right: 0px;
  }

  .about-portrait-wrapper {
    max-width: 100%;
    border-radius: 20px;
  }

  .about-heading {
    font-size: 24px;
    letter-spacing: -1px;
    margin-bottom: 20px;
  }

  .about-body {
    font-size: 16px;
    line-height: 26px;
    letter-spacing: normal;
    margin-right: 0;
    margin-bottom: 24px;

  }

  .about-tools-label {
    font-size: 12px;
  }

  .about-tools-list {
    font-size: 14px;
  }

  .about-stats-row {
    margin-top: 56px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 95%;
  }

  .about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about-stat-number {
    font-size: 32px;
  }

  .about-stat-label {
    font-size: 12px;
    max-width: 80px;
  }

  .cert-modal-dialog {
    padding: 14px;
    border-radius: 16px;
  }
}

/* Extra small screens (<= 360px) */
@media screen and (max-width: 360px) {
  .hero-halfcircle-wrapper {
    width: 300px;
    height: 140px;
  }

  .hero-memoji-container {
    bottom: 58px;
    width: 205px;
    height: 205px;
  }

  .btn-explore,
  .btn-book-call {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-cta-group.is-booking-hovered .btn-book-call {
    padding-right: 24px;
  }
}

/* --------------------------------------------------------------------------
   12. Experience Section
   -------------------------------------------------------------------------- */
.experience-section {
  position: relative;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 140px;
}

.experience-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 64px;
  user-select: none;
}

.experience-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 100px;
  line-height: 1;
  letter-spacing: 12px;
  color: var(--text-main);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.4s ease;
}

[data-theme="light"] .experience-watermark {
  opacity: 0.05;
}

.experience-title {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -110%);
  margin: 0;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-main);
  white-space: nowrap;
  transition: color 0.4s ease;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

.experience-history {
  grid-column: 2 / 4;
  max-height: min(100vh, 1280px);
  min-width: 0;
  overflow-y: auto;
  /* Let page scrolling continue when this nested list reaches either edge. */
  overscroll-behavior-y: auto;
  scrollbar-width: none;
}

.experience-history::-webkit-scrollbar {
  display: none;
}

.experience-history:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 4px;
}

.experience-history-content {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
}

.experience-introduction {
  max-width: 430px;
  margin: 4px 30px 0 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -1px;
  color: var(--text-body);
}

.experience-timeline {
  position: relative;
  grid-column: 1;
  min-height: 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--border-color);
}

.timeline-memoji {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 1.5px solid var(--text-body);
  border-radius: 50%;
  background: var(--bg-main);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.timeline-memoji.is-active {
  opacity: 1;
  visibility: visible;
}

.timeline-memoji.is-passed {
  opacity: 0.5;
  visibility: visible;
}

.timeline-memoji img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.timeline-memoji.is-future {
  opacity: 0;
  visibility: hidden;
}

.experience-list {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.experience-card {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  padding: 28px 28px 24px;
  border: 1px solid var(--border-color-subtle);
  border-radius: 16px;
  background: var(--section-bg-dark);
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

[data-theme="light"] .experience-card {
  background: #eaeaea;
}

.experience-meta {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-body);
}

.experience-company {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
}

.experience-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-body);
}

.experience-date svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.experience-description {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
  color: var(--text-body);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tag-bg);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1;
  color: var(--text-main);
}

@media screen and (max-width: 992px) {
  .experience-layout {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  }

  .experience-history-content {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .experience-introduction {
    font-size: 22px;
    line-height: 34px;
  }

  .experience-card {
    padding: 24px;
  }
}

@media screen and (max-width: 640px) {
  .experience-section {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .section-title,
  .services-title,
  .about-title,
  .experience-title {
    top: calc(100% - 2px);
  }

  .experience-header {
    min-height: 60px;
    margin-bottom: 36px;
  }

  .experience-watermark {
    font-size: 56px;
    letter-spacing: 3px;
  }

  .experience-title {
    font-size: 24px;
    letter-spacing: normal;
    transform: translate(-50%, -100%);
  }

  .experience-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-history {
    grid-column: 1;
    grid-row: 2;
    max-height: 70vh;
  }

  .experience-history-content {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .experience-introduction {
    grid-column: 1 / -1;
    max-width: 390px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -1px;
  }

  .experience-timeline {
    grid-row: 1;
    min-height: 0;
  }

  .timeline-line {
    left: 8px;
  }

  .timeline-memoji {
    left: 8px;
    width: 20px;
    height: 20px;
  }

  .timeline-memoji img {
    width: 15px;
    height: 15px;
  }

  .experience-list {
    grid-row: 1;
    gap: 18px;
  }

  .experience-card {
    padding: 20px 18px;
    border-radius: 12px;
  }

  .experience-meta {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .experience-company {
    margin-bottom: 8px;
    font-size: 24px;
  }

  .experience-date {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .experience-date svg {
    width: 16px;
    height: 16px;
  }

  .experience-description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 22px;
  }

  .experience-tags {
    gap: 6px;
  }

  .experience-tags li {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 12px;
  }
}

/* --------------------------------------------------------------------------
   13. Notes / Testimonials
   -------------------------------------------------------------------------- */
.notes-section {
  position: relative;
  width: 100%;
  padding: 0 0 120px;
}

.notes-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin-bottom: 48px;
  user-select: none;
}

.notes-watermark {
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  letter-spacing: 12px;
  line-height: 1;
  opacity: 0.04;
  pointer-events: none;
  white-space: nowrap;
}

[data-theme="light"] .notes-watermark {
  opacity: 0.05;
}

.notes-title {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.1;
  transform: translate(-50%, -110%);
  white-space: nowrap;
}

.notes-board {
  padding: 56px 48px;
  border-radius: 24px;
  background-color: var(--services-bg);
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

[data-theme="light"] .notes-board {
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px
  );
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 36px 32px;
}

.note-card {
  --tilt: 0deg;
  --paper: #f1e5cf;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 0.96;
  padding: 30px 28px 12px;
  border-radius: 2px;
  background-color: var(--paper);
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.045) 0%,
    rgba(0, 0, 0, 0) 14%
  );
  box-shadow:
    0 10px 20px -6px rgba(0, 0, 0, 0.32),
    0 3px 6px -2px rgba(0, 0, 0, 0.18);
  color: #1a1a1a;
  transform: rotate(var(--tilt));
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.note-card-1 {
  --tilt: -2.2deg;
  --paper: #f1e5cf;
}

.note-card-2 {
  --tilt: 1.2deg;
  --paper: #bccab3;
}

.note-card-3 {
  --tilt: -1.5deg;
  --paper: #BBCFD0;
}

.note-card-4 {
  --tilt: 1.8deg;
  --paper: #f7e5a3;
}

.note-card-5 {
  --tilt: -1deg;
  --paper: #f1e5cf;
}

.note-card-6 {
  --tilt: 2deg;
  --paper: #becab4;
}

[data-theme="light"] .note-card {
  box-shadow:
    0 10px 20px -6px rgba(0, 0, 0, 0.14),
    0 3px 6px -2px rgba(0, 0, 0, 0.08);
}

.note-pin {
  position: absolute;
  z-index: 1;
  top: -15px;
  left: 50%;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(2px 5px 4px rgba(0, 0, 0, 0.32));
  transform: translateX(-50%);
}

.note-quote,
.note-author {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

.note-quote {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  text-align: left;
}

.note-author {
  margin-top: auto;
  padding-top: 2px;
  font-size: 18px;
  line-height: 1;
  text-align: right;
}

@media (hover: hover) and (pointer: fine) {
  .note-card:hover {
    box-shadow:
      0 16px 26px -6px rgba(0, 0, 0, 0.38),
      0 5px 10px -2px rgba(0, 0, 0, 0.22);
    transform: rotate(0deg) translateY(-4px);
  }
}

@media screen and (max-width: 768px) {
  .notes-section {
    padding-bottom: 60px;
  }

  .notes-header {
    min-height: 60px;
    margin-bottom: 36px;
  }

  .notes-watermark {
    font-size: clamp(30px, 10vw, 56px);
    letter-spacing: clamp(1px, 0.5vw, 3px);
  }

  .notes-title {
    top: calc(100% - 2px);
    font-size: 24px;
    letter-spacing: normal;
    transform: translate(-50%, -100%);
  }

  .notes-board {
    padding: 28px 16px;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .note-card {
    padding: 20px 8px 10px;
  }

  .note-quote {
    font-size: 13px;
  }

  .note-author {
    padding-top: 4px;
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   14. Contact & Footer
   -------------------------------------------------------------------------- */
.contact-section {
  position: relative;
  width: 100%;
  padding: 88px 0 96px;
  background-color: var(--bg-main);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  /* The stops mirror the dark-mode Figma separator. */
  background: linear-gradient(
    90deg,
    rgba(217, 217, 217, 0) 20%,
    rgba(217, 217, 217, 0.5) 50%,
    rgba(115, 115, 115, 0) 80%
  );
  pointer-events: none;
}

[data-theme="light"] .contact-section::before {
  background: linear-gradient(
    90deg,
    rgba(74, 74, 74, 0) 20%,
    rgba(74, 74, 74, 0.5) 50%,
    rgba(23, 23, 23, 0) 80%
  );
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-main);
}

.contact-supporting-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -1px;
  color: var(--text-body);
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 52px;
}

.contact-email-button,
.contact-call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-main);
}

.contact-email-button {
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--text-main);
  border-radius: 6px;
  background: var(--text-main);
  color: var(--bg-main);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.contact-email-button:hover,
.contact-email-button:focus-visible {
  border-color: #d9d9d9;
  background-color: #d9d9d9;
}

[data-theme="light"] .contact-email-button:hover,
[data-theme="light"] .contact-email-button:focus-visible {
  border-color: #4a4a4a;
  background-color: #4a4a4a;
}

.contact-call-link {
  min-height: 62px;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--border-color);
  transition: border-bottom-color 0.2s ease;
}

.contact-call-link:hover,
.contact-call-link:focus-visible {
  border-bottom-color: var(--text-main);
}

.contact-email-button svg,
.contact-call-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.contact-social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.contact-social-link {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text-body);
  border-radius: 12px;
  color: var(--text-body);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.contact-social-link img {
  display: block;
  width: 28px;
  height: 28px;
  opacity: 0.65;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}

[data-theme="dark"] .contact-social-link:hover,
[data-theme="dark"] .contact-social-link:focus-visible {
  border-color: #d9d9d9;
  background-color: #d9d9d9;
}

[data-theme="dark"] .contact-social-link:hover img,
[data-theme="dark"] .contact-social-link:focus-visible img {
  filter: brightness(0) saturate(100%) invert(9%);
  opacity: 1;
}

[data-theme="light"] .contact-social-link:hover,
[data-theme="light"] .contact-social-link:focus-visible {
  border-color: #4a4a4a;
  background-color: #4a4a4a;
}

[data-theme="light"] .contact-social-link:hover img,
[data-theme="light"] .contact-social-link:focus-visible img {
  filter: brightness(0) saturate(100%) invert(6.7%);
  opacity: 1;
}

[data-theme="light"] .contact-social-link img {
  filter: brightness(0.7);
}

.contact-email-button:focus-visible,
.contact-call-link:focus-visible,
.contact-social-link:focus-visible,
.footer-back-to-top:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-main);
}

.footer-container {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
}

.footer-copyright,
.footer-back-to-top {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
}

.footer-memoji {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.footer-memoji img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-memoji {
  transition: opacity 0.2s ease;
}

.site-footer.is-memoji-active .footer-memoji {
  opacity: 0;
}

.footer-easter-memoji {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.footer-easter-memoji img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-back-to-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 12px;
  text-decoration: none;
}

.footer-back-to-top svg {
  width: 18px;
  height: 18px;
}

@media screen and (max-width: 640px) {
  .contact-section {
    padding: 56px 0 50px;
  }

  .contact-title {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .contact-supporting-text {
    max-width: 360px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: auto;
  }

  .contact-actions {
    gap: 14px;
    margin-top: 28px;
  }

  .contact-email-button,
  .contact-call-link {
    gap: 8px;
    min-height: 52px;
    font-size: 14px;
    letter-spacing: -1px;
  }

  .contact-email-button {
    padding: 0 12px;
    border-radius: 5px;
  }

  .contact-email-button svg,
  .contact-call-link svg {
    width: 14px;
    height: 14px;
  }

  .contact-social-links {
    gap: 14px;
    margin-top: 50px;
  }

  .contact-social-link {
    width: 46px;
    height: 48px;
    border-radius: 10px;
  }

  .contact-social-link img {
    width: 32px;
    height: 32px;
  }

  .footer-container {
    min-height: 80px;
    grid-template-columns: 1fr 40px 1fr;
  }

  .footer-copyright,
  .footer-back-to-top {
    font-size: 12px;
  }

  .footer-back-to-top {
    gap: 6px;
  }

  .footer-back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* --------------------------------------------------------------------------
   11. Entrance Reveals
   -------------------------------------------------------------------------- */
html.reveal-ready .section-reveal,
html.reveal-ready .card-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.reveal-ready .card-reveal {
  transition-duration: 0.58s;
}

html.reveal-ready .section-reveal.is-revealed,
html.reveal-ready .card-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

html.reveal-ready .note-card.card-reveal {
  transform: translateY(12px) scale(0.96) rotate(var(--tilt));
}

html.reveal-ready .note-card.card-reveal.is-revealed {
  transform: rotate(var(--tilt));
}

@media (hover: hover) and (pointer: fine) {
  html.reveal-ready .note-card.card-reveal.is-revealed:hover {
    transform: rotate(0deg) translateY(-4px);
  }
}

/* --------------------------------------------------------------------------
   12. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .wordmark {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--wordmark) !important;
    color: var(--wordmark) !important;
  }

  .availability-dot::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .btn-book-call {
    transform: none !important;
  }

  html.reveal-ready .section-reveal,
  html.reveal-ready .card-reveal,
  html.reveal-ready .section-reveal.is-revealed,
  html.reveal-ready .card-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
