/* ═══════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════ */
:root {
  --white:      #FFFFFF;
  --near-black: #141414;
  --footer-bg:  #191919;
  --work-bg:    #222222;
  --process-bg: #0B1A38;
  --about-bg:   #FFFFFF;
  --arc2-bg:    #191919;
  --culture-bg: #222222;
  --accent:     #E84B2A;
  --mid-gray:   #333333; /* secondary text on light backgrounds (AA) */
  --mid-gray-dark: #B3B3B3; /* secondary text on dark backgrounds (AA) */
  --light-gray: #DDDDDD;
  --font: 'Plus Jakarta Sans', sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--white); color: var(--near-black); font-family: var(--font); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.accent { color: var(--accent); }

/* Typography weights — match arc text */
h1 { font-weight: 800; }
h2, h3, h4, h5, h6 { font-weight: 400; }

/* Italic III in logo */
.logo-iii { font-style: italic; }

/* Blue hero glow instead of orange */
.hero-photo-mask {
  position: absolute; inset: 0;
  background: radial-gradient(circle 380px at var(--mx,70%) var(--my,45%), rgba(54,52,196,0.28) 0%, transparent 65%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Work card index number */
.work-card-num {
  position: absolute;
  top: 1rem; right: 1rem; /* right side: cover art puts logos top-left */
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  letter-spacing: 0.1em;
  z-index: 2;
}

/* Desktop/mobile visibility utils */
.desktop-only { display: flex; }
.mobile-only  { display: none !important; }

/* Work/process count on desktop */
.work-count {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.54);
  text-transform: uppercase;
  min-width: 64px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
}

/* ═══════════════════════════════════════════
   NAV — solid bar on ANY scroll
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: var(--near-black);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Logo morph: short → full on scroll */
.nav-logo {
  position: relative;
  z-index: 201;
  display: flex; align-items: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em;
  color: var(--white);
  overflow: visible; /* allow italic III to extend without clipping */
  min-width: 60px;
}
.logo-short,
.logo-full {
  white-space: nowrap;
  padding-right: 6px; /* breathing room for italic overhang */
}
.logo-short {
  position: absolute; left: 0;
  display: block;
  opacity: 1; transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.logo-full {
  display: block;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  white-space: nowrap;
  pointer-events: none;
}
.nav.scrolled .logo-short { opacity: 0; transform: translateX(12px); pointer-events: none; }
.nav.scrolled .logo-full  { opacity: 1; transform: translateX(0); pointer-events: auto; }

.nav-toggle { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); }

/* Overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--near-black);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 6rem 2.5rem 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-in-out);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-close { position: absolute; top: 1.8rem; right: 2.5rem; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.nav-close:hover { opacity: 1; }

/* Nav overlay links — stagger slide-up on open */
.nav-links { list-style: none; display: flex; flex-direction: column; }
.nav-link {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700;
  color: var(--white); line-height: 1.05; display: block; letter-spacing: -0.03em;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0; transform: translateY(30px);
}
.nav-overlay.open .nav-link {
  opacity: 1; transform: translateY(0);
  transition: color 0.2s, opacity 0.2s, transform 0.5s var(--ease-out),
              opacity 0.5s var(--ease-out);
}
/* Stagger each link */
.nav-overlay.open .nav-links li:nth-child(1) .nav-link { transition-delay: 0.05s; }
.nav-overlay.open .nav-links li:nth-child(2) .nav-link { transition-delay: 0.12s; }
.nav-overlay.open .nav-links li:nth-child(3) .nav-link { transition-delay: 0.19s; }
.nav-overlay.open .nav-links li:nth-child(4) .nav-link { transition-delay: 0.26s; }
.nav-overlay.open .nav-links li:nth-child(5) .nav-link { transition-delay: 0.33s; }
/* Reset when closing */
.nav-overlay:not(.open) .nav-link { transition: opacity 0.2s, transform 0.2s; }

.nav-links:has(.nav-link:hover) .nav-link:not(:hover) { opacity: 0.25; }
.nav-link:hover { color: var(--accent); opacity: 1; }
.nav-link .char-wrap { display: inline-block; overflow: hidden; vertical-align: top; height: 1.05em; }
.nav-link .char { display: inline-block; transition: transform 0.3s var(--ease-out); position: relative; }
.nav-link .char .char-dup { position: absolute; top: 100%; left: 0; }
.nav-link:hover .char { transform: translateY(-100%); }
.nav-overlay-footer { position: absolute; bottom: 2.5rem; left: 2.5rem; display: flex; gap: 2rem; }
.nav-overlay-footer a { color: var(--mid-gray-dark); font-size: 0.85rem; transition: color 0.2s; }
.nav-overlay-footer a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 8rem 2.5rem 4rem; overflow: hidden; background: var(--near-black); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ── Video background ─────────────────────── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  will-change: transform;
}

/* Fallback image — shown when video not available (mobile/no-js) */
.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: url('https://alexmcleaniii.com/vid/Background.png') center/cover no-repeat;
  z-index: -1;
}

/* Dark gradient overlay — keeps text readable over any video frame */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.65) 100%
    );
}

.hero-content { position: relative; z-index: 1; max-width: 960px; }
.hero-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.54); margin-bottom: 1.5rem; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s var(--ease-out) 0.2s forwards; }
.hero-name { font-weight: 800; font-size: clamp(4rem, 11vw, 10rem); line-height: 0.93; letter-spacing: -0.04em; color: var(--white); margin-bottom: 2rem; }
.hero-first { display: block; opacity: 0; transform: translateY(40px); animation: fadeUp 0.9s var(--ease-out) 0.35s forwards; }
.hero-last  { display: block; opacity: 0; transform: translateY(40px); animation: fadeUp 0.9s var(--ease-out) 0.5s  forwards; }
.hero-tagline { font-size: clamp(0.95rem,2vw,1.2rem); font-weight: 300; color: rgba(255,255,255,0.54); max-width: 760px; text-wrap: balance; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.7s forwards; }
.hero-tagline-ai { margin-top: -2rem; max-width: 760px; animation-delay: 0.82s; }
.hero-tagline-ai .accent { font-weight: 500; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; border: 1.5px solid rgba(255,255,255,0.54); color: var(--white); padding: 0.85rem 1.7rem; border-radius: 100px; transition: background 0.25s, border-color 0.25s; opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.9s forwards; }
.hero-cta:hover { background: var(--accent); border-color: var(--accent); }
.cta-arrow { transition: transform 0.3s var(--ease-out); }
.hero-cta:hover .cta-arrow { transform: translateY(4px); }
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0; /* centered without transform: the fadeUp animation overrides transforms */
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
  writing-mode: horizontal-tb;
  display: flex;
  flex-direction: column; /* icon sits centered above the label */
  align-items: center;
  gap: 0.6rem;
  text-indent: 0.12em; /* offsets trailing letter-spacing so the label is optically centered */
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
  white-space: nowrap;
}
.hero-scroll-hint svg {
  width: 18px;
  height: 26px;
  flex-shrink: 0;
}
.hero-stats { position: absolute; bottom: 3rem; right: 2.5rem; display: flex; flex-direction: column; align-items: flex-end; gap: 1.4rem; z-index: 2; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.1s forwards; }
.stat { text-align: right; }
.stat-num { display: block; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; color: var(--white); }
.stat-label { font-size: 0.66rem; color: rgba(255,255,255,0.54); text-transform: uppercase; letter-spacing: 0.1em; }

/* ═══════════════════════════════════════════
   SECTION HEADERS — centered, generous space
═══════════════════════════════════════════ */
.section-header { padding: 7rem 2.5rem 4rem; text-align: center; }

.section-title {
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1; margin-bottom: 0.75rem;
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.section-title.in-view { opacity: 1; transform: translateY(0); }

.section-sub {
  font-size: 0.95rem; color: var(--mid-gray); font-weight: 400;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.18s, transform 0.8s var(--ease-out) 0.18s;
}
.section-sub.in-view { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   WORK
═══════════════════════════════════════════ */
.work-section { background: var(--work-bg); padding-bottom: 5rem; }
.work-section .section-title { color: var(--white); }
.work-section .section-sub { color: var(--mid-gray-dark); }

.work-rail-outer { overflow-x: auto; padding: 6px 2.5rem 1.5rem; /* 6px top keeps the hover outline from clipping in scroll view */ scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.work-rail-outer:active { cursor: grabbing; }
.work-rail-outer::-webkit-scrollbar { display: none; }
.work-rail { display: flex; gap: 1.5rem; width: max-content; }

.work-card { width: clamp(340px, 46vw, 600px); flex-shrink: 0; }
.work-card-link { display: block; }
.work-card-img { position: relative; overflow: hidden; border-radius: 0; aspect-ratio: 16/9; margin-bottom: 1.1rem; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.15s; }
/* Hover / keyboard focus: same orange outline as the My Process and About cards */
.work-card-link:hover .work-card-img, .work-card-link:focus-visible .work-card-img { outline-color: var(--accent); }
.work-img-placeholder { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 1.2rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.03em; transition: transform 0.5s var(--ease-out); }
.work-card-img:hover .work-img-placeholder { transform: scale(1.03); }
.work-card-cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform 0.5s var(--ease-out); }
.work-card-img:hover .work-card-cover { transform: scale(1.03); }
.work-img-1 { background: linear-gradient(145deg, #0a0a0a, #2a2a2a); }
.work-img-2 { background: linear-gradient(145deg, #6600aa, #cc00cc); }
.work-img-3 { background: linear-gradient(145deg, #003380, #0047FF); }
.work-img-4 { background: linear-gradient(145deg, #1a3a1a, #2d6a2d); }
.work-img-5 { background: linear-gradient(145deg, #3a1a00, #8B3300); }
.work-img-6 { background: linear-gradient(145deg, #201B5C, #5A4FE0); }
.work-img-7 { background: linear-gradient(145deg, #0d0d0d, #C99700); }
.work-card-hover-label { position: absolute; bottom: 0; left: 0; right: 0; background: var(--white); color: var(--near-black); font-weight: 600; font-size: 0.82rem; padding: 0.9rem 1.2rem; transform: translateY(100%); transition: transform 0.3s var(--ease-out); }
.work-card-img:hover .work-card-hover-label { transform: translateY(0); }
.work-card-company { font-size: 0.7rem; font-weight: 600; color: #F06A4A; /* lighter accent for AA on dark cards */ letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.3rem; }
.work-card-title { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; color: var(--white); }
.work-card-tags { font-size: 0.76rem; color: var(--mid-gray-dark); }

/* Pagination nav: arrows + dots */
.work-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 0.5rem 0 2rem; }
.work-dots { display: flex; align-items: center; gap: 0.5rem; }
.work-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: background 0.25s, transform 0.25s; padding: 0; }
.work-dot.active { background: var(--white); transform: scale(1.3); }
.work-arrow { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.5); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; padding: 0; flex-shrink: 0; }
.work-arrow:hover { color: var(--white); }
.work-arrow svg { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════
   ARC FULLSCREEN — scroll-driven, 100vh desktop / 50vh mobile
═══════════════════════════════════════════ */
.arc-fullscreen {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.arc-white { background: var(--white); }
.arc-blue  { background: var(--arc2-bg); }

.arc-fs-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arc-fs-svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.arc-fs-text {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  fill: var(--near-black);
  letter-spacing: 0.06em;
}
.arc-fs-text-light { fill: var(--white); }

/* ═══════════════════════════════════════════
   PROCESS — dark, matches Work section
═══════════════════════════════════════════ */
.process-section { background: var(--process-bg); padding-bottom: 6rem; }
.process-section .section-title { color: var(--white); }
.process-section .section-sub { color: var(--mid-gray-dark); }

.process-rail-outer { overflow-x: auto; padding: 1.5rem 2.5rem 1.5rem; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.process-rail-outer:active { cursor: grabbing; }
.process-rail-outer::-webkit-scrollbar { display: none; }
.process-rail { display: flex; gap: 1.25rem; width: max-content; align-items: stretch; }

.process-card {
  width: 260px; flex-shrink: 0; display: flex; flex-direction: column;
  border-radius: 0; overflow: visible;
  opacity: 0; transform: translateY(24px);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              outline-color 0.2s;
  cursor: pointer;
}
.process-card.in-view { opacity: 1; transform: translateY(0); }

/* Hover: orange outline + lift. Fast, no delay. */
.process-rail:has(.process-card:hover) .process-card:hover {
  outline-color: var(--accent);
  transform: translateY(-8px);
  transition: transform 0.2s var(--ease-out), outline-color 0.15s;
}

.process-card-top {
  background: var(--card-bg, rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none; border-radius: 0;
  padding: 2rem 1.5rem 2rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 0; flex: 1; min-height: 220px;
}
/* Number top-left absolute */
.process-num {
  position: absolute; top: 1.1rem; left: 1.1rem;
  font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em; line-height: 1; text-transform: uppercase;
}
/* Icon: large, centered, light gray */
.process-icon {
  width: 160px; height: 160px;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
}
.process-icon svg { width: 100%; height: 100%; }
.process-card-body {
  background: #04060D; border: 1px solid rgba(255,255,255,0.07);
  border-top: none; border-radius: 0; padding: 1.25rem 1.5rem 1.5rem;
}
.process-card-title { font-size: 1.1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; color: var(--white); }
.process-card-body p { font-size: 0.85rem; color: var(--mid-gray-dark); line-height: 1.65; }

/* Process pagination */
.process-nav { margin-top: 2rem; }
.process-nav .work-dot { background: rgba(255,255,255,0.25); }
.process-nav .work-dot.active { background: var(--white); }
.process-nav .work-arrow { color: rgba(255,255,255,0.5); }
.process-nav .work-arrow:hover { color: var(--white); }

/* View toggle */
.view-toggle-wrap { text-align: center; padding: 1rem 0 2.5rem; }
.view-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid-gray-dark);
  transition: color 0.2s;
  text-decoration: underline; text-underline-offset: 4px;
}
.view-toggle:hover { color: var(--white); }
.work-section .view-toggle { color: var(--mid-gray-dark); }
.work-section .view-toggle:hover { color: var(--white); }

/* Grid view — work: 2 cols */
.work-rail-outer.grid-view { overflow-x: visible; cursor: default; }
.work-rail-outer.grid-view .work-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: auto;
  gap: 1.5rem;
  padding-bottom: 0;
}
.work-rail-outer.grid-view .work-card { width: 100%; }

/* Grid view — process: 3 cols, centered */
.process-rail-outer.grid-view { overflow-x: visible; cursor: default; }
.process-rail-outer.grid-view { padding-bottom: 0; }
.process-rail-outer.grid-view .process-rail {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  width: auto;
  gap: 1.25rem;
  justify-content: center;
}
.process-rail-outer.grid-view .process-card { width: 100%; }

/* Process rail: scrollable, centered content at wide screens */
.process-rail-outer {
  overflow-x: auto;
  overflow-y: visible;
  padding: 2rem 2.5rem 1.5rem;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.process-rail-outer:active { cursor: grabbing; }
.process-rail-outer::-webkit-scrollbar { display: none; }
.process-rail {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  align-items: stretch;
  margin: 0 auto;
  overflow: visible;
  padding-top: 0.5rem; /* extra breathing room for hover lift */
}

@media (min-width: 1750px) {
  .process-rail-outer { display: flex; justify-content: center; overflow-x: visible; cursor: default; }
  .process-rail { width: auto; flex-wrap: nowrap; justify-content: center; }
  .process-card { flex: 1; min-width: 0; max-width: 280px; }
}

/* ═══════════════════════════════════════════
   ABOUT — white background, black text
═══════════════════════════════════════════ */
.about-section { position: relative; background: var(--white); overflow: hidden; }
.about-photo-bg { display: none; }
.about-content {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 8rem 2.5rem 4rem;
  align-items: start;
}

.about-text-col { display: flex; flex-direction: column; }

/* Title matches section-title: weight 400, all caps, same tracking */
.about-title { font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 4.5rem); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; margin-bottom: 2rem; color: var(--near-black); }
.about-body { font-size: 0.98rem; color: #333; line-height: 1.78; margin-bottom: 1.2rem; max-width: 52ch; }

/* Photo: BW default, color on hover */
.about-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  overflow: hidden;
  flex-shrink: 0;
}
.about-photo-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
.about-photo-bw    { opacity: 1; transition: opacity 0.55s var(--ease-out); }
.about-photo-color { opacity: 0; transition: opacity 0.55s var(--ease-out); }
.about-photo-wrap:hover .about-photo-bw    { opacity: 0; }
.about-photo-wrap:hover .about-photo-color { opacity: 1; }

/* Right col: slides */
.about-slides-outer { position: relative; }
.about-slides-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.about-slide {
  background: #f2f2f2; border: 2px solid transparent;
  border-radius: 0; padding: 1.5rem 1.75rem;
  opacity: 1;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s;
  cursor: default;
}
.about-slides-stack:hover .about-slide { opacity: 0.4; transform: translateX(14px); }
.about-slides-stack:hover .about-slide:hover { opacity: 1; transform: translateX(-6px); border-color: var(--accent); }
.about-slide-num { font-size: 0.68rem; font-weight: 700; color: #C2381B; /* darker accent for AA on light gray */ letter-spacing: 0.1em; margin-bottom: 0.5rem; text-transform: uppercase; }
.about-slide h3 { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; color: var(--near-black); }
.about-slide p { font-size: 0.88rem; line-height: 1.68; color: #555; }

/* Brand mini-cards — 2 cols, constrained to text column width */
.about-companies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
  max-width: 52ch;
}
.about-companies span {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem; border-radius: 0;
  color: var(--white); background: #555555;
  border: none; text-align: center;
  transition: background 0.2s; cursor: default;
}
.about-companies span:hover { background: #444444; }

/* 3-col layout on wide desktop: photo | text+pills | slides */
@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 380px 1fr 1fr;
    gap: 3rem;
  }
  .about-photo-wrap  { grid-column: 1; grid-row: 1; }
  .about-text-col    { grid-column: 2; grid-row: 1; }
  .about-slides-outer { grid-column: 3; grid-row: 1; }
}

/* ═══════════════════════════════════════════
   CULTURE — Behind The Scenes
═══════════════════════════════════════════ */
.culture-section { background: var(--culture-bg); padding-bottom: 4rem; }
.culture-section .section-title { color: var(--white); }
.culture-section .section-sub { color: var(--mid-gray-dark); }

/* Desktop grid — masonry style */
.culture-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: 260px 260px; gap: 0.75rem; padding: 0 2.5rem; }
.culture-item { position: relative; border-radius: 0; overflow: hidden; cursor: pointer; }
.culture-tall { grid-row: span 2; }
.culture-wide { grid-column: span 2; }
.culture-img-placeholder { width: 100%; height: 100%; transition: transform 0.5s var(--ease-out); }
.culture-item:hover .culture-img-placeholder { transform: scale(1.05); }
.c-img-1 { background: linear-gradient(145deg, #1a2a5c, #0d2060); }
.c-img-2 { background: linear-gradient(145deg, #3a1a0a, #6a3010); }
.c-img-3 { background: linear-gradient(145deg, #0a3a1a, #1a6030); }
.c-img-4 { background: linear-gradient(145deg, #2a0a3a, #500a70); }
.c-img-5 { background: linear-gradient(145deg, #1a2a1a, #304030); }
.culture-caption { position: absolute; bottom: 0.85rem; left: 0.85rem; font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; }

/* Mobile slider — hidden on desktop */
.culture-rail-outer { display: none; }
.culture-nav { display: none; }
.culture-toggle-wrap { display: none; }

/* Grid view toggle for desktop culture section */
.culture-grid.grid-view-1col { grid-template-columns: 1fr; grid-template-rows: auto; }
.culture-grid.grid-view-1col .culture-tall,
.culture-grid.grid-view-1col .culture-wide { grid-row: span 1; grid-column: span 1; height: 260px; }

/* Culture nav arrow color on dark bg */
.culture-nav .work-arrow { color: rgba(255,255,255,0.5); }
.culture-nav .work-arrow:hover { color: var(--white); }
.culture-nav .work-dot { background: rgba(255,255,255,0.25); }
.culture-nav .work-dot.active { background: var(--white); }
.culture-toggle-wrap .view-toggle { color: var(--mid-gray-dark); }
.culture-toggle-wrap .view-toggle:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-section { background: var(--near-black); color: var(--white); padding: 7rem 2.5rem 0; min-height: 55vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact-headline { font-weight: 400; font-size: clamp(2.2rem, 6vw, 5.5rem); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; max-width: 860px; margin-bottom: 3rem; color: var(--white); }
.contact-headline em { font-style: italic; text-transform: none; color: var(--accent); }
.contact-links { display: flex; flex-direction: column; }
.contact-link { font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.6rem); color: var(--mid-gray-dark); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; transition: color 0.2s; }
.contact-link:hover { color: var(--white); }
.link-arrow { transition: transform 0.25s var(--ease-out); }
.contact-link:hover .link-arrow { transform: translate(4px,-4px); }

/* FOOTER — ADA compliant contrast (min 4.5:1 against #191919) */
.site-footer { background: var(--footer-bg); display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2.5rem; font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; margin-top: 4rem; }

/* ═══════════════════════════════════════════
   ANIMATIONS & REVEAL
═══════════════════════════════════════════ */
/* Scroll hint mouse wheel animation */
.scroll-dot {
  animation: scrollWheel 1.8s var(--ease-out) infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0);   opacity: 1; }
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.work-card.reveal    { transition-delay: 0.25s; }
.culture-item.reveal { transition-delay: calc(0.35s + var(--i,0) * 0.08s); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Culture: hide desktop grid, show mobile slider */
  .culture-grid { display: none; }
  .culture-rail-outer { display: block; overflow-x: auto; padding: 0 1.5rem 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
  .culture-rail-outer:active { cursor: grabbing; }
  .culture-rail-outer::-webkit-scrollbar { display: none; }
  .culture-rail { display: flex; gap: 1rem; width: max-content; }
  .culture-slide {
    width: clamp(260px, 75vw, 360px); flex-shrink: 0;
    position: relative; aspect-ratio: 4/3; overflow: hidden;
  }
  .culture-slide .culture-img-placeholder { width: 100%; height: 100%; }
  .culture-slide .culture-caption { position: absolute; bottom: 0.75rem; left: 0.75rem; font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.08em; text-transform: uppercase; }
  .culture-nav { display: flex; }
  .culture-toggle-wrap { display: block; }
  /* Grid view on mobile: 1 col stacked */
  .culture-rail-outer.grid-view { overflow-x: visible; cursor: default; }
  .culture-rail-outer.grid-view .culture-rail { display: grid; grid-template-columns: 1fr; width: auto; gap: 0.75rem; }
  .culture-rail-outer.grid-view .culture-slide { width: 100%; }
  .hero-stats { display: none; }
  .site-footer { flex-direction: column; gap: 0.4rem; text-align: center; }
  .work-card { width: clamp(280px, 80vw, 420px); }
  /* Hide video on mobile — too heavy, use fallback image */
  .hero-video { display: none; }
  .hero-video-fallback { background: url('https://alexmcleaniii.com/vid/Background.png') center/cover no-repeat; z-index: 0; }
  .arc-fullscreen { height: 50vh; }
  .arc-fs-text { font-size: 68px; }
  .arc-fs-svg { height: 160px; }
}
@media (max-width: 600px) {
  .nav { padding: 1.2rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .section-header { padding: 5rem 1.5rem 2.5rem; }
  .work-rail-outer, .process-rail-outer { padding: 0 1.5rem 1rem; }
  .about-content { padding: 5rem 1.5rem 3rem; grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 100%; aspect-ratio: 4/3; }
  .about-companies { grid-template-columns: repeat(2,1fr); max-width: 100%; }
  /* Work: 1 col grid on mobile */
  .work-rail-outer.grid-view .work-rail { grid-template-columns: 1fr; }
  /* Process: 1 col grid on mobile */
  .process-rail-outer.grid-view .process-rail { grid-template-columns: 1fr; justify-content: stretch; }
  .contact-section { padding: 4rem 1.5rem 0; }
  .nav-overlay { padding: 5rem 1.5rem 2rem; }
  .nav-overlay-footer { left: 1.5rem; bottom: 2rem; flex-direction: column; gap: 0.6rem; }
  .site-footer { padding: 1.25rem 1.5rem; margin-top: 2.5rem; }
  .arc-fs-text { font-size: 68px; letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
