/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
  --color-bg: #FAF8F5;
  --color-bg-alt: #F5F0EB;
  --color-primary: #8B4D57;
  --color-primary-dark: #6B3A42;
  --color-text: #2D2D2D;
  --color-text-light: #666666;
  --color-accent: #C4A35A;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   Splash Screen
   ======================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  transition: background-color 0.3s ease-out;
}

.splash.transitioning {
  background-color: transparent;
}

.splash.hidden {
  pointer-events: none;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  animation: fadeInUp 1s var(--transition-smooth) forwards;
  position: relative;
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash.hidden .splash-title {
  visibility: hidden;
}

.splash-title .title-james,
.splash-title .title-manning {
  display: block;
  width: fit-content;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash.transitioning .splash-title .title-james {
  transform: var(--james-transform);
}

.splash.transitioning .splash-title .title-manning {
  transform: var(--manning-transform);
}

.title-james {
  color: var(--color-primary);
}

.title-manning {
  color: var(--color-text);
}

.splash-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeIn 1s 0.5s var(--transition-smooth) both;
  transition: opacity 0.5s ease;
}

.splash.fading .splash-subtitle,
.splash.transitioning .splash-subtitle {
  opacity: 0 !important;
}

.splash-loader {
  width: 200px;
  height: 3px;
  background-color: var(--color-bg-alt);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.splash.fading .splash-loader,
.splash.transitioning .splash-loader {
  opacity: 0;
}

.loader-bar {
  height: 100%;
  width: 0;
  background-color: var(--color-primary);
  border-radius: 3px;
  animation: loadProgress 4.5s var(--transition-smooth) forwards;
}

/* ========================================
   Main Site Container
   ======================================== */
.main-site {
  opacity: 0;
  transition: opacity 0.6s var(--transition-smooth);
}

.main-site.visible {
  opacity: 1;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 5%;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--transition-smooth),
              box-shadow 0.3s var(--transition-smooth);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s var(--transition-smooth),
              opacity 0.3s var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  padding: 2rem 5%;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s var(--transition-smooth),
              opacity 0.3s var(--transition-smooth);
}

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

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 10% 2rem;
  position: relative;
  overflow: hidden;
  gap: 2rem;
}

.hero-branding {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  visibility: hidden;
}

.main-site.loaded .hero-title {
  visibility: visible;
}

.hero-title .title-james,
.hero-title .title-manning {
  display: block;
  width: fit-content;
}

.hero-title .title-james {
  color: var(--color-primary);
}

.hero-title .title-manning {
  color: var(--color-text);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding-left: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.main-site.visible .hero-content {
  opacity: 1;
  transform: translateX(0);
}

.main-site.loaded .hero-content,
.main-site.loaded .hero-branding {
  transition: none;
}

.hero-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.hero-headline .highlight {
  color: var(--color-primary);
}

/* Brand Ticker - Flowing Sine Wave Path */
.ticker-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 70vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ticker-brands {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ticker-letter {
  position: absolute;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

.ticker-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  color: var(--color-primary);
}

.scroll-indicator span {
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================
   Featured Work Section
   ======================================== */
.featured-work {
  padding: 3rem 5% 5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--transition-smooth),
              box-shadow 0.5s var(--transition-smooth),
              opacity 0.5s var(--transition-smooth);
  will-change: transform, opacity;
}

/* Scroll reveal states */
.project-card.scroll-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
}

.project-card.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card:nth-child(1).scroll-reveal.revealed {
  transition-delay: 0s;
}

.project-card:nth-child(2).scroll-reveal.revealed {
  transition-delay: 0.15s;
}

.project-card:nth-child(3).scroll-reveal.revealed {
  transition-delay: 0.3s;
}

.project-card:hover {
  box-shadow: 0 25px 70px rgba(139, 77, 87, 0.15);
}

/* Shine effect on hover */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 10;
  pointer-events: none;
}

.project-card:hover::before {
  left: 100%;
}

/* Smooth tilt transition */
.project-card {
  transform-style: preserve-3d;
  position: relative;
}

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  transition: transform 0.6s var(--transition-smooth);
  position: relative;
}

/* Animated background patterns */
.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-placeholder::before {
  opacity: 1;
}

.project-card:hover .project-placeholder {
  transform: scale(1.08);
}

.project-placeholder[data-project="netflix"] {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #E50914;
}

.project-placeholder[data-project="redbull"] {
  background: linear-gradient(135deg, #1a1a2e 0%, #0a1628 100%);
  color: #FF0000;
}

.project-placeholder[data-project="rspca"] {
  background: linear-gradient(135deg, #2d4a3e 0%, #1a2f26 100%);
  color: #4CAF50;
}

.placeholder-icon {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  font-size: 0.875rem;
  opacity: 0.7;
  color: white;
}

.project-info {
  padding: 1.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.project-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.project-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-stats span::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* ========================================
   Other Work Section
   ======================================== */
.other-work {
  padding: 3rem 5% 4rem;
  background-color: var(--color-bg-alt);
}

.other-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.work-item {
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth);
}

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

.work-thumbnail {
  aspect-ratio: 16/9;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, #e8e4df 100%);
  color: var(--color-primary);
  transition: background 0.3s var(--transition-smooth);
}

.thumbnail-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.work-item:hover .thumbnail-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.work-item:hover .thumbnail-placeholder svg {
  opacity: 1;
}

.work-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}


/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: 4rem 5% 2rem;
  background-color: var(--color-primary);
  color: white;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link {
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s var(--transition-smooth);
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-link.email {
  font-weight: 600;
}

.contact-location {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ========================================
   Project Modal
   ======================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--color-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--transition-smooth),
              visibility 0.4s var(--transition-smooth);
}

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

.modal-close {
  position: fixed;
  top: 1.5rem;
  right: 5%;
  z-index: 210;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--transition-smooth),
              background-color 0.3s var(--transition-smooth);
}

.modal-close:hover {
  transform: rotate(90deg);
  background-color: var(--color-primary);
  color: white;
}

.modal-content {
  padding: 6rem 5% 4rem;
}

.project-detail {
  max-width: 900px;
  margin: 0 auto;
}

.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.project-header.redbull .project-brand {
  color: #FF0000;
}

.project-header.rspca .project-brand {
  color: #2E7D32;
}

.project-mission {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-overview h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.project-overview p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.project-overview em {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 500;
}

.project-approach h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.approach-list {
  list-style: none;
  counter-reset: approach;
}

.approach-list li {
  counter-increment: approach;
  padding-left: 3rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.approach-list li::before {
  content: counter(approach);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50%;
}

.approach-list strong {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.approach-list p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-role {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--color-bg-alt);
  border-radius: 12px;
}

.role-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.role-item p {
  font-weight: 500;
}

.project-responsibilities h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.project-responsibilities ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-responsibilities li {
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-alt);
  border-radius: 20px;
  font-size: 0.9rem;
}

.project-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-media h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.media-placeholder {
  padding: 4rem 2rem;
  background-color: var(--color-bg-alt);
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-align: center;
  color: var(--color-text-light);
}

.media-placeholder.video {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.media-note {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.back-home-btn {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: var(--color-primary);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth),
              background-color 0.3s var(--transition-smooth);
}

.back-home-btn:hover {
  transform: translateY(-2px);
  background-color: var(--color-primary-dark);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loadProgress {
  0% { width: 0; }
  100% { width: 100%; }
}


@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

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

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

  .mobile-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1.5rem;
    padding: 4rem 5% 6rem;
    text-align: center;
    min-height: auto;
  }

  .hero-branding {
    order: 1;
  }

  .hero-title,
  .splash-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* Center hero title spans on mobile to match splash */
  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    order: 2;
    text-align: center;
    padding-left: 0;
  }

  .hero-headline {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Move ticker below content on mobile */
  .ticker-wrapper {
    position: relative;
    top: auto;
    transform: none;
    order: 3;
    height: 15vh;
    margin-top: 1rem;
  }

  .ticker-letter {
    font-size: 0.65rem;
  }

  .scroll-indicator {
    position: relative;
    order: 4;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1rem;
  }

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

  .other-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .project-results {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-link {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    padding: 3rem 5% 4rem;
    gap: 1rem;
  }

  .hero-title,
  .splash-title {
    font-size: clamp(2rem, 14vw, 3rem);
  }

  .hero-headline {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .splash-subtitle {
    font-size: 1rem;
  }

  .ticker-wrapper {
    height: 12vh;
  }

  .ticker-letter {
    font-size: 0.55rem;
  }

  .other-work-grid {
    grid-template-columns: 1fr;
  }


  .section-title {
    margin-bottom: 2.5rem;
  }

  .project-brand {
    font-size: 2.5rem;
  }

  .modal-content {
    padding: 5rem 5% 3rem;
  }

  .project-responsibilities ul {
    flex-direction: column;
  }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Hide elements visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}
