/* ============================================================
   PORTFOLIO DESIGN SYSTEM
   A light, fresh, editorial-inspired design for Content Design
   ============================================================ */

/* ---------- Google Fonts (loaded via HTML links for performance) ---------- */

/* ============================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* — Colors — */
  --color-bg:               #FAFAF7;
  --color-bg-alt:           #F0EDE6;
  --color-text:             #111827; /* deep charcoal black */
  --color-text-secondary:   #4B5563; /* muted gray */
  --color-accent:           #0E7490; /* cyan-teal */
  --color-accent-hover:     #155E75;
  --color-accent-light:     #ECFEFF;
  --color-sage:             #7FB69B; /* sage green */
  --color-sage-light:       #EEF6F1;
  --color-meta-blue:        #0668E1;
  --color-meta-light:       #EBF3FF;
  --color-skyscanner-teal:  #0770E3;
  --color-skyscanner-light: #E8F4FF;
  --color-border:           #E5E7EB;
  --color-white:            #FFFFFF;

  /* — Typography — */
  --font-display: 'Fraunces', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --text-hero:    clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --text-section: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --text-body:    clamp(0.95rem, 1vw + 0.5rem, 1.1rem);
  --text-small:   0.8rem;

  /* — Spacing — */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* — Radii — */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 50%;

  /* — Transitions — */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* — Selection — */
::selection {
  background: rgba(17, 24, 39, 0.15);
  color: var(--color-text);
}

/* — Ninja Logo — */
.logo-ninja,
.logo-ninja-cat {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__logo:hover .logo-ninja,
.nav__logo:hover .logo-ninja-cat {
  animation: logo-spin-flip 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes logo-spin-flip {
  0% {
    transform: rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-6px) rotate(-20deg) scale(1.15);
  }
  60% {
    transform: translateY(-6px) rotate(370deg) scale(1.15);
  }
  100% {
    transform: translateY(0) rotate(360deg) scale(1);
  }
}

/* — Scrollbar — */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
}

/* — Focus — */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* — Container — */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   3. NAVIGATION (.nav)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.nav--scrolled {
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav__logo-full {
  display: inline;
}

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

.nav__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.3s var(--ease-out);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

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

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  padding: var(--space-3xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav__mobile-menu--active {
  transform: translateX(0);
}

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s var(--ease-out);
}

.nav__mobile-menu a:hover {
  color: var(--color-accent);
}

.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.nav__mobile-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   4. HERO (.hero)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px clamp(1.5rem, 4vw, 3rem) var(--space-2xl);
  
  /* Cartoony comic book style halftone & rays background - optimized for visibility */
  background: 
    /* Halftone dots */
    radial-gradient(rgba(26, 26, 46, 0.06) 12%, transparent 13%) 0 0 / 24px 24px,
    radial-gradient(rgba(26, 26, 46, 0.06) 12%, transparent 13%) 12px 12px / 24px 24px,
    /* Sunburst Rays (faint warm accent rays) */
    conic-gradient(from 0deg at 50% 40%, 
      rgba(255, 107, 90, 0.05) 0deg 8deg, transparent 8deg 20deg,
      rgba(255, 107, 90, 0.05) 20deg 28deg, transparent 28deg 40deg,
      rgba(255, 107, 90, 0.05) 40deg 48deg, transparent 48deg 60deg,
      rgba(255, 107, 90, 0.05) 60deg 68deg, transparent 68deg 80deg,
      rgba(255, 107, 90, 0.05) 80deg 88deg, transparent 88deg 100deg,
      rgba(255, 107, 90, 0.05) 100deg 108deg, transparent 108deg 120deg,
      rgba(255, 107, 90, 0.05) 120deg 128deg, transparent 128deg 140deg,
      rgba(255, 107, 90, 0.05) 140deg 148deg, transparent 148deg 160deg,
      rgba(255, 107, 90, 0.05) 160deg 168deg, transparent 168deg 180deg,
      rgba(255, 107, 90, 0.05) 180deg 188deg, transparent 188deg 200deg,
      rgba(255, 107, 90, 0.05) 200deg 208deg, transparent 208deg 220deg,
      rgba(255, 107, 90, 0.05) 220deg 228deg, transparent 228deg 240deg,
      rgba(255, 107, 90, 0.05) 240deg 248deg, transparent 248deg 260deg,
      rgba(255, 107, 90, 0.05) 260deg 268deg, transparent 268deg 280deg,
      rgba(255, 107, 90, 0.05) 280deg 288deg, transparent 288deg 300deg,
      rgba(255, 107, 90, 0.05) 300deg 308deg, transparent 308deg 320deg,
      rgba(255, 107, 90, 0.05) 320deg 328deg, transparent 328deg 340deg,
      rgba(255, 107, 90, 0.05) 340deg 348deg, transparent 348deg 360deg
    ),
    /* Base highlight radial gradient */
    radial-gradient(
      ellipse at 50% 40%,
      rgba(255, 240, 238, 0.75) 0%,
      var(--color-bg) 75%
    );
  overflow: hidden;
}

/* Floating decorative items for hero background */
.hero__bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__decor-item {
  position: absolute;
  color: var(--color-accent);
  opacity: 0.28; /* Visibly floating, playful but styled */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .hero__bg-decor {
    display: none;
  }
}

.hero__decor-item--shuriken-1 {
  top: 22%;
  left: 8%;
  width: 55px;
  height: 55px;
  animation: float-shuriken-1 8s ease-in-out infinite;
}

.hero__decor-item--cat {
  top: 35%;
  right: 8%;
  width: 75px;
  height: 75px;
  animation: float-cat 12s ease-in-out infinite;
}

.hero__decor-item--shuriken-2 {
  bottom: 18%;
  right: 15%;
  width: 45px;
  height: 45px;
  animation: float-shuriken-2 10s ease-in-out infinite;
}

@keyframes float-shuriken-1 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(90deg);
  }
  100% {
    transform: translateY(0px) rotate(180deg);
  }
}

@keyframes float-cat {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-18px) rotate(-8deg) scale(1.05);
  }
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
}

@keyframes float-shuriken-2 {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-120deg);
  }
  100% {
    transform: translateY(0px) rotate(-240deg);
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 680px;
}

.hero__disclaimer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-secondary);
  opacity: 0.85;
  margin-bottom: var(--space-xl);
}

.hero__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  margin: 0 auto;
}

/* Asymmetrical Creative Profile Card */
.hero__creative-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 32px 12px 32px 12px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.02);
  transform: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  width: 100%;
}

.hero__creative-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.08);
}

.creative-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.creative-card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.creative-card__line {
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(17, 24, 39, 0) 100%);
  margin-bottom: var(--space-lg);
  width: 100%;
}

.creative-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.creative-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.creative-card__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.creative-card__text {
  flex-grow: 1;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

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

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3);
}

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

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ============================================================
   6. CASE STUDIES SECTION (.case-studies)
   ============================================================ */
.case-studies {
  padding: var(--space-3xl) 0;
}

.case-studies__header {
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-top: var(--space-sm);
  line-height: 1.7;
}

/* ============================================================
   7. INDIVIDUAL CASE STUDY (.case-study)
   ============================================================ */
.case-study {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.case-study:nth-child(odd) {
  background: var(--color-bg);
}

.case-study:nth-child(even) {
  background: var(--color-bg-alt);
}

.case-study:last-child {
  border-bottom: none;
}

/* — Header — */
.case-study__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.case-study__header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.case-study__company-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.badge--meta {
  background: var(--color-meta-light);
  color: var(--color-meta-blue);
}

.badge--skyscanner {
  background: var(--color-skyscanner-light);
  color: var(--color-skyscanner-teal);
}

.badge--default {
  background: var(--color-sage-light);
  color: var(--color-sage);
}

.case-study__category {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-sage);
}

.case-study__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.case-study__meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* — Content Grid — */
.case-study__content {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: start;
}

.case-study__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ============================================================
   8. FRICTION POINTS
   ============================================================ */
.friction-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.friction-point {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  padding-left: 40px;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.friction-point::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.contribution-item {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  padding-left: 40px;
  margin-bottom: 12px;
  border-left: 3px solid var(--color-sage);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.contribution-item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
}

/* — Journey Steps — */
.journey-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journey-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
}

.journey-step:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.08);
  transform: translateY(-2px);
}

.journey-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.journey-step__content {
  flex: 1;
}

.journey-step__content strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.journey-step__content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================================
   9. IMPACT METRICS
   ============================================================ */
.impact-section {
  grid-column: 1 / -1;
  margin-top: var(--space-lg);
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-xl);
  width: 100%;
}

.impact-section__intro {
  margin-bottom: var(--space-lg);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.impact-section__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.metric-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-md);
  align-items: flex-start;
  text-align: left;
  transition: transform 0.2s var(--ease-out),
              box-shadow 0.2s var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.metric-card__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.25;
}

.metric-card__label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================================
   10. VISUAL PLACEHOLDER
   ============================================================ */
.visual-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
  transition: all 0.3s var(--ease-out);
  width: 100%;
  max-width: 440px;
}

.visual-placeholder:hover {
  border-color: var(--color-accent);
  transform: scale(1.01);
}

.visual-placeholder__icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 12px;
  line-height: 1;
}

.visual-placeholder__text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.visual-placeholder__subtext {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  opacity: 0.6;
  margin-top: 4px;
}

.case-study-visual-wrapper {
  display: block;
  width: 100%;
  max-width: 440px;
}

.case-study-visual-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.case-study-visual-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  background: var(--color-bg-alt);
  overflow: hidden;
}

/* ============================================================
   11. PROJECT LINKS
   ============================================================ */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-lg);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.project-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1);
}

/* ============================================================
   11.5 TEASER CARDS & SUBPAGE LAYOUTS
   ============================================================ */
.teaser-card {
  position: relative;
  padding: var(--space-xl) 0;
  border-bottom: none;
  overflow: hidden;
}

.teaser-card--tinted {
  background: transparent;
}

.teaser-card__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  background-color: var(--color-white);
  border-radius: 40px 16px 40px 16px;
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.015);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
  z-index: 2;
}

.teaser-card__content,
.teaser-card__visual {
  position: relative;
  z-index: 2;
}

/* Brand-specific teaser tile backgrounds for extra visual interest */
#teaser-cs-1 .teaser-card__inner {
  background-color: var(--color-meta-light);
  border-color: rgba(6, 104, 225, 0.12);
}

#teaser-cs-2 .teaser-card__inner {
  background-color: var(--color-sage-light);
  border-color: rgba(127, 182, 155, 0.12);
}

#teaser-cs-3 .teaser-card__inner {
  background-color: var(--color-accent-light);
  border-color: rgba(14, 116, 144, 0.12);
}

#teaser-cs-4 .teaser-card__inner {
  background-color: var(--color-skyscanner-light);
  border-color: rgba(7, 112, 227, 0.12);
}

.teaser-card:hover .teaser-card__inner {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.05);
}

/* Background Card Numbers */
.teaser-card__number {
  position: absolute;
  bottom: -20px;
  right: 6%;
  font-family: var(--font-display);
  font-size: 16rem;
  font-weight: 800;
  font-style: italic;
  color: var(--color-accent-light);
  opacity: 0.9;
  line-height: 0.8;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.4s var(--ease-out), color 0.3s var(--ease-out);
}

.teaser-card:hover .teaser-card__number {
  transform: translateY(-8px) scale(1.03);
  color: #E0F7FA;
}

.teaser-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.teaser-card__summary {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.teaser-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.teaser-card__metric-bubble {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 18px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
}

.teaser-card__metric-icon {
  font-size: 1rem;
}

.teaser-card__image-wrapper {
  border: 1px solid var(--color-border);
  border-radius: 32px 8px 32px 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.teaser-card__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.teaser-card__image-wrapper--spc,
.teaser-card__image-wrapper--phone {
  max-width: 310px;
  margin: 0 auto;
}

.teaser-card__img--spc {
  transform: none;
}

.teaser-card:hover .teaser-card__image-wrapper {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.teaser-card:nth-of-type(even):hover .teaser-card__image-wrapper {
  transform: translateY(-6px);
}

/* Breadcrumb Back Link */
.back-link-wrapper {
  padding-top: 100px;
  margin-bottom: var(--space-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.back-link svg {
  transition: transform 0.2s var(--ease-out);
}

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

.back-link:hover svg {
  transform: translateX(-4px);
}

/* Case Study Subpage Layout */
.case-study-page {
  padding-bottom: var(--space-3xl);
}

.case-study-detail {
  padding: var(--space-md) 0 var(--space-2xl) 0;
}

.case-study-detail__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

/* Case Study Sections (Problem, Impact, Contributions) */
.case-study-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px dashed var(--color-border);
}

.case-study-section:last-of-type {
  border-bottom: none;
}

.case-study-section__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
}

.case-study-section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.case-study-section__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.case-study-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.25rem, 1.85rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.visual-placeholder--section {
  min-height: 280px;
}

/* Case Study Subsection (e.g. Design challenges) */
.case-study-subsection {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.case-study-subsection__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.challenge-item {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 24px;
}

.challenge-item::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: bold;
}

@media (min-width: 769px) {
  .case-study-section:nth-of-type(even) .case-study-section__grid {
    grid-template-columns: 45fr 55fr;
  }
  .case-study-section:nth-of-type(even) .case-study-section__text {
    order: 2;
  }
}

/* Next Project Banner */
.next-project-banner {
  background: var(--color-bg-alt);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s var(--ease-out);
}

.next-project-banner:hover {
  background: var(--color-accent-light);
}

.next-project-banner__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.next-project-banner__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  text-decoration: none;
  color: var(--color-text);
}

.next-project-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
  font-weight: 700;
  transition: color 0.2s var(--ease-out);
  margin: 0;
  line-height: 1.2;
}

.next-project-banner__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  transition: all 0.3s var(--ease-out);
  background: var(--color-white);
  min-width: 52px;
}

.next-project-banner:hover .next-project-banner__arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateX(6px);
}

.next-project-banner:hover .next-project-banner__title {
  color: var(--color-accent);
}

/* ============================================================
   12. ABOUT SECTION (.about)
   ============================================================ */
.about {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.about__divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  margin: 20px 0;
}

.about__descriptors {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-family: 'Courier New', Courier, monospace;
}

.about__location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
}

.about__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about__bio p + p {
  margin-top: 24px;
}

/* ============================================================
   13. CONTACT OVERLAY (.contact-overlay)
   ============================================================ */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

.contact-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.contact-overlay__card {
  max-width: 500px;
  width: 90%;
  margin-top: 15vh;
  margin-bottom: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 24px 64px rgba(26, 26, 46, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.contact-overlay--active .contact-overlay__card {
  transform: translateY(0);
}

.contact-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

.contact-overlay__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.contact-overlay__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.contact-overlay__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s var(--ease-out);
}

.contact-link:last-child {
  border-bottom: none;
}

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

.contact-link__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s var(--ease-out);
}

.contact-link:hover .contact-link__icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.contact-link__label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.contact-link__value {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2px;
}
}

/* ============================================================
   13.5. DEDICATED LOGIN PAGE (.login-page-container, .login-card)
   ============================================================ */
.login-page-body {
  background: var(--color-bg);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.login-page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-lg) var(--space-2xl);
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(rgba(26, 26, 46, 0.06) 12%, transparent 13%) 0 0 / 24px 24px,
    radial-gradient(rgba(26, 26, 46, 0.06) 12%, transparent 13%) 12px 12px / 24px 24px,
    conic-gradient(from 0deg at 50% 40%, 
      rgba(255, 107, 90, 0.05) 0deg 8deg, transparent 8deg 20deg,
      rgba(255, 107, 90, 0.05) 20deg 28deg, transparent 28deg 40deg,
      rgba(255, 107, 90, 0.05) 40deg 48deg, transparent 48deg 60deg,
      rgba(255, 107, 90, 0.05) 60deg 68deg, transparent 68deg 80deg,
      rgba(255, 107, 90, 0.05) 80deg 88deg, transparent 88deg 100deg,
      rgba(255, 107, 90, 0.05) 100deg 108deg, transparent 108deg 120deg,
      rgba(255, 107, 90, 0.05) 120deg 128deg, transparent 128deg 140deg,
      rgba(255, 107, 90, 0.05) 140deg 148deg, transparent 148deg 160deg,
      rgba(255, 107, 90, 0.05) 160deg 168deg, transparent 168deg 180deg,
      rgba(255, 107, 90, 0.05) 180deg 188deg, transparent 188deg 200deg,
      rgba(255, 107, 90, 0.05) 200deg 208deg, transparent 208deg 220deg,
      rgba(255, 107, 90, 0.05) 220deg 228deg, transparent 228deg 240deg,
      rgba(255, 107, 90, 0.05) 240deg 248deg, transparent 248deg 260deg,
      rgba(255, 107, 90, 0.05) 260deg 268deg, transparent 268deg 280deg,
      rgba(255, 107, 90, 0.05) 280deg 288deg, transparent 288deg 300deg,
      rgba(255, 107, 90, 0.05) 300deg 308deg, transparent 308deg 320deg,
      rgba(255, 107, 90, 0.05) 320deg 328deg, transparent 328deg 340deg,
      rgba(255, 107, 90, 0.05) 340deg 348deg, transparent 348deg 360deg
    ),
    radial-gradient(
      ellipse at 50% 40%,
      rgba(255, 240, 238, 0.75) 0%,
      var(--color-bg) 75%
    );
}

.login-card {
  max-width: 440px;
  width: 100%;
  background: var(--color-white, #ffffff);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 24px 64px rgba(26, 26, 46, 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid var(--color-border);
  animation: loginCardFadeIn 0.5s var(--ease-out);
  position: relative;
  z-index: 1;
}

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

.login-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.login-card__lock-icon-wrapper {
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.login-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.login-card__subtitle {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-card__input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.login-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-secondary);
  align-self: flex-start;
}

.login-card__field-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.login-card__input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-family: var(--font-mono, monospace);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.login-card__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.login-card__visibility-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s var(--ease-out);
}

.login-card__visibility-toggle:hover {
  color: var(--color-text);
}

.login-card__error-message {
  font-size: 0.78rem;
  color: #d32f2f;
  min-height: 16px;
  display: block;
  font-weight: 500;
  text-align: left;
  margin-top: 4px;
}

.login-card__submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-white);
  transition: all 0.3s var(--ease-out);
}

.login-card__submit-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3);
}

.login-card__footer {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-top: var(--space-xs);
}

.login-card__back-home {
  text-align: center;
  margin-top: var(--space-sm);
}

.login-card__back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color 0.2s var(--ease-out);
}

.login-card__back-link:hover {
  color: var(--color-accent);
}

.login-card__back-link svg {
  transition: transform 0.2s var(--ease-out);
}

.login-card__back-link:hover svg {
  transform: translateX(-3px);
}

/* ============================================================
   14. FOOTER (.footer)
   ============================================================ */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.footer__cta-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: all 0.2s var(--ease-out);
  display: inline;
  cursor: pointer;
}

.footer__cta-link:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

.footer__social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  transition: all 0.2s var(--ease-out);
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 32px;
}

/* ============================================================
   15. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

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

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

/* — Case study visual asset images — */
.case-study__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.case-study__visual img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* — About Section photo asset — */
.about__photo {
  margin-top: var(--space-lg);
}

.about__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease-out);
}

.about__photo img:hover {
  transform: scale(1.02);
}

/* ============================================================
   16. MEDIA QUERIES
   ============================================================ */

/* — Large screens (above 1200px) — */
@media (min-width: 1201px) {
  .case-study__content,
  .teaser-card__inner {
    gap: 64px;
  }

  .about__grid {
    gap: 80px;
  }

  .hero {
    padding-top: 140px;
  }
}

/* — Tablet & below (768px) — */
@media (max-width: 768px) {
  /* Navigation */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__logo-full {
    display: none;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: var(--space-2xl);
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__text {
    align-items: center;
    text-align: center;
  }

  .hero__title {
    max-width: 100%;
  }

  .hero__ctas {
    flex-direction: row;
    width: 100%;
    gap: var(--space-md);
  }

  .hero__ctas .btn {
    flex: 1;
    min-width: auto;
  }

  .hero__creative-card {
    transform: rotate(0deg) !important;
    max-width: 100%;
    margin-top: var(--space-md);
  }

  /* Journey Steps */
  .journey-step {
    flex-direction: column;
    gap: var(--space-md);
  }

  .journey-step__number {
    align-self: flex-start;
  }

  /* Case study grid & teaser grid & section grid */
  .case-study__content,
  .case-study-section__grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl);
  }

  .teaser-card__inner {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl);
    padding: 24px;
    border-radius: 24px 8px 24px 8px;
  }

  .teaser-card__number {
    font-size: 10rem;
    bottom: -10px;
    right: 4%;
  }

  .case-study__visual,
  .teaser-card__visual {
    order: -1;
  }

  .case-study-section__visual {
    order: initial;
  }

  .case-study-section:nth-of-type(even) .case-study-section__text {
    order: initial !important;
  }

  /* About grid */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Metrics */
  .metrics-grid {
    flex-direction: column;
  }

  .metric-card {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  /* Contact overlay */
  .contact-overlay__card {
    padding: 32px 24px;
    margin-top: 10vh;
  }

  /* Login card responsive */
  .login-card {
    padding: 36px 24px;
  }

  /* Footer */
  .footer__cta-text {
    padding-inline: var(--space-md);
  }
}

/* — Small mobile (480px) — */
@media (max-width: 480px) {
  /* Even more compact spacing */
  :root {
    --space-3xl: 64px;
    --space-2xl: 48px;
  }



  /* Friction points & contribution items */
  .friction-point,
  .contribution-item {
    padding: 16px 20px;
    padding-left: 36px;
  }

  /* Case study title */
  .case-study__header {
    flex-direction: column;
    gap: var(--space-sm);
  }

  /* Visual placeholder */
  .visual-placeholder {
    min-height: 240px;
  }

  /* Project links stack */
  .project-links {
    flex-direction: column;
  }

  .project-link {
    justify-content: center;
  }

  /* Hero decorative elements smaller */
  .hero::before {
    width: 300px;
    height: 300px;
  }

  .hero::after {
    width: 250px;
    height: 250px;
  }
}

/* ============================================================
   17. PRINT STYLES
   ============================================================ */
@media print {
  .nav,
  .nav__mobile-menu,
  .nav__mobile-overlay,
  .contact-overlay {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-xl);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .case-study__content {
    grid-template-columns: 1fr;
  }

  .btn {
    border: 1px solid currentColor !important;
    box-shadow: none !important;
  }
}

/* ============================================================
   18. 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   19. IMAGE CAROUSEL (For experiment designs)
   ============================================================ */
.carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  background: var(--color-white);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.carousel:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14, 116, 144, 0.08);
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 10; /* Changed to 16:10 to fit widescreen mockups perfectly */
}

.carousel__viewport--widescreen {
  aspect-ratio: 16 / 9; /* Fit 16:9 mockups perfectly */
}

.carousel__viewport--square {
  aspect-ratio: 1 / 1; /* Retain 1:1 for square dashboard screenshots */
}

/* — Dark Carousel Theme (for VR/MR mockups) — */
.carousel--dark {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.12);
}

.carousel--dark .carousel__slide {
  background: #000000;
}

.carousel--dark .carousel__slide img {
  padding: 0; /* Full bleed to maximize visual image area and reduce black/white padding differences */
}

.carousel--dark .carousel__caption {
  background: rgba(18, 18, 20, 0.85);
  color: var(--color-white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  padding-bottom: 44px; /* Reduced padding to maximize visual image area and reduce white space */
  display: block;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--space-md);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--color-border);
  z-index: 5;
}

.carousel__btn {
  position: absolute;
  top: calc(50% - 24px); /* centered vertically relative to the image area, accounting for caption */
  transform: translateY(-50%) scale(1);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  z-index: 10;
  padding: 0;
}

.carousel__btn:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--color-white);
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.15);
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel__btn--prev {
  left: var(--space-sm);
}

.carousel__btn--next {
  right: var(--space-sm);
}

.carousel__indicators {
  position: absolute;
  bottom: 44px; /* Just above the caption */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: rgba(17, 24, 39, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  padding: 0;
}

.carousel__dot--active {
  background: var(--color-accent);
  width: 16px;
  border-radius: 3px;
}

/* — Visual Wrapper and Images — */
.case-study-visual-wrapper {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.case-study-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  background: var(--color-white);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.case-study-visual-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14, 116, 144, 0.08);
}

.case-study-visual__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  text-align: left;
}

/* ======================================================================
 * LIGHTBOX / ZOOM OVERLAY
 * ====================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(18, 18, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay--active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 80vh;
  gap: var(--space-md);
}

.lightbox-content img,
.lightbox-content svg {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay--active .lightbox-content img,
.lightbox-overlay--active .lightbox-content svg {
  transform: scale(1);
}

.lightbox-caption {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s 0.1s var(--ease-out), transform 0.3s 0.1s var(--ease-out);
}

.lightbox-overlay--active .lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 300;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  z-index: 3100;
}

.lightbox-close:hover {
  transform: scale(1.1);
  opacity: 1;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 3100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav-btn--prev {
  left: var(--space-lg);
}

.lightbox-nav-btn--next {
  right: var(--space-lg);
}

/* Make images zoom-clickable */
.teaser-card__image-wrapper img,
.carousel__slide img,
.case-study-visual-img,
.about__sidebar img,
.case-study-visual-card img {
  cursor: zoom-in;
}

/* ---------- Tips for Hands-on Iteration ---------- */
.tips-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px dashed var(--color-border);
}

.tips-section__header {
  margin-bottom: var(--space-lg);
}

.tips-section__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  opacity: 0.85;
  margin-bottom: var(--space-xs);
}

.tips-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw + 0.25rem, 1.55rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.tips-section__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 800px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 641px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tip-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.tip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.tip-card--cyan::before { background: #0ea5e9; }
.tip-card--orange::before { background: #f97316; }
.tip-card--rose::before { background: #f43f5e; }
.tip-card--indigo::before { background: #6366f1; }

.tip-card__number {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}

.tip-card--cyan .tip-card__number { color: #0ea5e9; }
.tip-card--orange .tip-card__number { color: #f97316; }
.tip-card--rose .tip-card__number { color: #f43f5e; }
.tip-card--indigo .tip-card__number { color: #6366f1; }

.tip-card__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.tip-card__text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.tip-card__text em {
  font-style: italic;
}

.tip-note-box {
  background: rgba(244, 63, 94, 0.02);
  border: 1px solid rgba(244, 63, 94, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.tip-note-box__icon {
  font-size: 1.15rem;
  line-height: 1;
  color: #f43f5e;
  margin-top: 1px;
}

.tip-note-box__text {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.55;
}


