/* ============================================================
   JOSEPH SOTO — joseph-soto.com
   Type:    Cormorant Garamond (display) + Raleway (body)
   Palette: Navy · Cobalt · Cyan · Cream · Light Blue
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Palette — matches Webflow site */
  --white:       #FFFFFF;
  --cream:       #FFFFFF;      /* unified to white */
  --light-blue:  #F3F8FF;     /* soft section bg */
  --navy:        #001A4F;      /* primary dark / text */
  --cobalt:      #0031A3;      /* accent dark sections */
  --cyan:        #0BD0FA;      /* highlight accent */
  --grey:        #6B7280;      /* muted text */
  --border:      rgba(0, 26, 79, 0.1);

  /* Type */
  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --body:    'Raleway', Helvetica, Arial, sans-serif;

  /* Scale */
  --fs-label: clamp(11px, 0.85vw, 13px);
  --fs-xs:    clamp(13px, 1.05vw, 15px);
  --fs-sm:    clamp(15px, 1.25vw, 17px);
  --fs-base:  clamp(15px, 1.15vw, 17px);
  --fs-md:    clamp(18px, 1.6vw,  24px);
  --fs-lg:    clamp(24px, 2.4vw,  36px);
  --fs-xl:    clamp(36px, 4vw,    60px);
  --fs-2xl:   clamp(52px, 6.5vw,  96px);
  --fs-3xl:   clamp(72px, 10vw,  150px);

  /* Layout */
  --maxw:    1480px;
  --gutter:  clamp(20px, 4vw, 72px);
  --section: clamp(72px, 9vw, 140px);

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.35s;
  --mid:  0.65s;
  --slow: 1s;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--navy); /* iOS Safari overscroll at bottom shows html bg — match footer color */
  /* overflow-x must NOT be set on html — it changes the scroll container on iOS Safari
     and breaks position: sticky on any descendant. Body overflow-x: hidden below is
     sufficient to prevent horizontal bleed. The width: 100% fix on .video-frame
     prevents the 100vw overflow that originally motivated this rule. */
}
body {
  font-family: var(--body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: var(--section) 0; }

/* ── SECTION THEMES ──────────────────────────────────────── */
.bg-white      { background: var(--white); }
.bg-light      { background: var(--light-blue); }
.bg-navy       { background: var(--navy); color: var(--white); }
.bg-cobalt     { background: var(--cobalt); color: var(--white); }

/* ── TYPE PRIMITIVES ─────────────────────────────────────── */
.label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label--dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; font-weight: 300; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.nav.scrolled-dark {
  background: rgba(0, 26, 79, 0.95);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--fast) var(--ease);
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo-img {
  height: 30px;
  width: auto;
  display: block;
  /* SVG is cobalt — invert to white when nav goes dark */
  transition: filter var(--fast) var(--ease);
}
.nav.scrolled-dark .nav-logo-img {
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav-links a {
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
  transition: opacity var(--fast) var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-active { color: var(--cyan) !important; opacity: 1 !important; }
.nav.scrolled-dark .nav-active { color: var(--cyan) !important; }
.nav.scrolled-dark .nav-links a { color: var(--white); }
.nav-cta {
  background: transparent;
  color: var(--navy) !important;
  opacity: 1 !important;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease) !important;
}
.nav-cta:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}
.nav.scrolled-dark .nav-cta {
  border-color: var(--white);
  color: var(--white) !important;
}
.nav.scrolled-dark .nav-cta:hover {
  background: var(--white) !important;
  color: var(--navy) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--navy);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding-top: 60px; /* nav offset */
  overflow: hidden;
}
/* Tags row */
.hero-tags-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.hero-tag-item {
  padding: 14px var(--gutter);
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.55;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-tag-item:last-child { border-right: none; }

/* The big full-bleed headline */
.hero-headline-wrap {
  padding: clamp(8px,1vw,16px) clamp(16px,2vw,32px) clamp(16px,2vw,32px);
  line-height: 0.88;
  overflow: hidden;
}
.hero-line-serif {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--navy);
  white-space: nowrap;
  /* JS overrides this, but fallback: */
  font-size: clamp(72px, 13vw, 220px);
  animation: slideUp 0.9s var(--ease) both;
}
.hero-line-sans {
  display: block;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  color: var(--navy);
  white-space: nowrap;
  /* JS overrides this, but fallback: */
  font-size: clamp(64px, 11vw, 192px);
  animation: slideUp 0.9s var(--ease) 0.12s both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SERVICES BAR (cobalt strip just below nav) ──────────── */
.services-bar {
  background: var(--cobalt);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px; /* clear the fixed nav */
}
.services-bar-item {
  padding: 14px var(--gutter);
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.services-bar-item:last-child { border-right: none; }
.services-bar-item span {
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.6;
}

/* ── DEDICATED TO (cobalt) ───────────────────────────────── */
.dedicated {
  background: var(--cobalt);
  padding: clamp(64px,8vw,120px) var(--gutter);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
/* When it's the opening section — height just enough to feel full without excess air */
.dedicated--hero {
  min-height: 75vh;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 7vw, 112px);
}
/* Portfolio image slides — behind watermark, purely textural */
.dedicated-bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.dedicated-bg-slide {
  position: absolute;
  /* Extend 25% above and below the section to give the parallax room to move.
     The parent .dedicated has overflow:hidden so the excess is clipped cleanly.
     JS translateY-s this element at ~20% of scroll speed — always within the buffer. */
  top: -25%;
  bottom: -25%;
  left: 0;
  right: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;        /* promote to compositor layer — no CPU repaint on scroll */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* opacity + transitions driven entirely by JS for reliable crossfading */
}

/* Ghost soto logo — horizontally centered, sits at bottom */
.dedicated-watermark {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 220%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.dedicated-eyebrow {
  position: relative;
  z-index: 2;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
/* Static line — lighter weight so the cycling word below hits harder */
.dedicated-static {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
  font-size: clamp(36px, 4.5vw, 72px);
  position: relative;
  z-index: 2;
}
/* Cycling word — bold contrast against the light static line */
.cycling-word {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  white-space: nowrap;
  font-size: clamp(80px, 14vw, 240px);
  margin-top: 4px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  z-index: 2;
}
.cycling-word.fade-out { opacity: 0; transform: translateY(16px); }

/* ── PARTNERS ────────────────────────────────────────────── */
.partners {
  background: var(--light-blue);
  padding: var(--section) 0;
}
.partners-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.partners-title {
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
}
/* ── LOGOS TICKER ────────────────────────────────────────── */
/* Full-bleed scroll container — fades at edges */
.logos-ticker {
  overflow: hidden;
  width: 100%;
  padding: clamp(4px, 0.5vw, 8px) 0 clamp(32px, 4vw, 52px);
  /* soft fade left + right */
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

/* The animated track — holds both sets of cards side by side */
.logos-track {
  display: flex;
  width: max-content;
  gap: clamp(12px, 1.5vw, 18px);
  animation: logo-ticker 42s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }

@keyframes logo-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Each item = card + label stacked, fixed width so the track is predictable */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: clamp(180px, 18vw, 240px);
}

/* The white floating card */
.logo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 2px 14px rgba(0, 26, 79, 0.06);
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 26, 79, 0.11);
}

.logo-card img {
  max-height: 72px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  filter: opacity(0.6);
  transition: filter var(--fast) var(--ease);
}
.logo-card:hover img { filter: opacity(1); }

/* Brand name — sits below the card, outside the box */
.logo-name {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.38;
  text-align: center;
  line-height: 1.4;
}

/* ── SELECTED WORK (white) ───────────────────────────────── */
.work-preview {
  background: var(--white);
}
.work-preview > .container {
  padding-top: var(--section);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}
.section-label-wrap { display: flex; flex-direction: column; gap: 12px; }
.section-title {
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
  transition: opacity var(--fast) var(--ease), gap var(--fast) var(--ease);
}
.link-arrow:hover { opacity: 1; gap: 16px; }
.link-arrow svg { width: 14px; height: 14px; flex-shrink: 0; }

.project-list { display: flex; flex-direction: column; }
.project-card {
  display: grid;
  grid-template-columns: 72px 1fr 42%;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--navy);
  transition: background var(--fast) var(--ease);
}
.project-card:hover { background: rgba(0,26,79,0.02); }
.project-card:hover .project-img img { transform: scale(1.04); }
.project-card:hover .project-num { opacity: 0.9; color: var(--cobalt); }
.project-num {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--navy);
  opacity: 0.2;
  padding-top: 4px;
  align-self: flex-start;
  transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease);
}
.project-info { display: flex; flex-direction: column; gap: 14px; }
.project-name {
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tag {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.4;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.project-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-md); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }

/* ── WORK PANELS ─────────────────────────────────────────── */
.work-panels {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
  padding: 0 clamp(16px, 3vw, 48px) clamp(24px, 3vw, 48px);
}

/* Each panel is a single full-bleed card — image fills everything */
.work-panel {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 960px;
  text-decoration: none;
  color: var(--white);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Image sits behind everything, fills the whole card */
.work-panel-img {
  position: absolute;
  /* Extend 20% above and below the panel to give parallax room to travel.
     .work-panel has overflow:hidden so the excess is cleanly clipped.
     JS applies translate3d to this element at ~18% of scroll speed. */
  top: -20%;
  bottom: -20%;
  left: 0;
  right: 0;
  z-index: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.work-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform var(--slow) var(--ease);
  /* Parallax is on the parent .work-panel-img — hover scale stays here with no conflict */
}
.work-panel:hover .work-panel-img img { transform: scale(1.05); }

/* Text overlay: gradient from navy → transparent, left side */
.work-panel-info {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(36px, 5vw, 88px) clamp(32px, 4.5vw, 80px);
  gap: 20px;
  background: linear-gradient(
    to right,
    rgba(0, 26, 79, 0.88) 0%,
    rgba(0, 26, 79, 0.72) 55%,
    rgba(0, 26, 79, 0)    100%
  );
  transition: background var(--mid) var(--ease);
}
.work-panel:hover .work-panel-info {
  background: linear-gradient(
    to right,
    rgba(0, 49, 163, 0.88) 0%,
    rgba(0, 49, 163, 0.72) 55%,
    rgba(0, 49, 163, 0)    100%
  );
}

/* Flipped panel: gradient runs right → left, text hugs the right edge */
.work-panel--flip .work-panel-info {
  left: auto;
  right: 0;
  align-items: flex-end;
  text-align: right;
  background: linear-gradient(
    to left,
    rgba(0, 26, 79, 0.88) 0%,
    rgba(0, 26, 79, 0.72) 55%,
    rgba(0, 26, 79, 0)    100%
  );
}
.work-panel--flip:hover .work-panel-info {
  background: linear-gradient(
    to left,
    rgba(0, 49, 163, 0.88) 0%,
    rgba(0, 49, 163, 0.72) 55%,
    rgba(0, 49, 163, 0)    100%
  );
}
.work-panel--flip .work-panel-tags {
  justify-content: flex-end;
}

.work-panel-num {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}
.work-panel-name {
  font-family: var(--display);
  font-size: clamp(56px, 7.5vw, 136px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
}
.work-panel-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.work-panel-tag {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.work-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 12px;
  transition: gap var(--fast) var(--ease);
}
.work-panel:hover .work-panel-cta { gap: 18px; }

/* ── VIDEO SCROLL (sticky expand) ───────────────────────── */
.video-scroll-section {
  position: relative;
  height: 280vh;
  background: var(--white);
  /* No overflow rule here — any overflow value breaks position:sticky on the child */
}
.video-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.video-label {
  position: absolute;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}
.video-label--left  { left:  clamp(24px, 4vw, 72px); text-align: left; }
.video-label--right { right: clamp(24px, 4vw, 72px); text-align: right; }
.video-frame {
  position: relative;
  width: 100%;   /* was 100vw — vw includes scrollbar width and causes iOS rotation overflow */
  height: 100vh;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.26);
  transform-origin: center center;
  will-change: transform, border-radius;
  z-index: 1;
  background: #0a0a1a; /* dark fallback — shows on all devices if video/poster don't load */
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Poster fallback — shows through when video file isn't loaded yet.
     Path is relative to this CSS file (assets/css/), so ../images/ */
  background: url('../images/aiga-conference-poster.webp') center top / cover no-repeat, #0a0a1a;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: opacity var(--fast) var(--ease);
}
.video-play-btn.hidden { opacity: 0; pointer-events: none; }
.video-play-text {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.video-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
  transition: background var(--fast) var(--ease);
}
.video-play-btn:hover .video-play-icon { background: rgba(255,255,255,0.3); }

/* ── YOUTUBE MODAL ───────────────────────────────────────── */
.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.yt-modal.open {
  opacity: 1;
  pointer-events: all;
}
.yt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.yt-modal-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease);
}
.yt-modal.open .yt-modal-inner {
  transform: scale(1);
}
.yt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.yt-modal-close:hover { background: rgba(255,255,255,0.25); }
.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── ABOUT (white) ───────────────────────────────────────── */
.about-section {
  background: var(--white);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}
.about-wordmark-wrap {
  position: absolute;
  bottom: -12%;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.about-wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
  opacity: 0.035;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.about-quote {
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.about-quote em { font-style: italic; color: var(--cobalt); }
.about-right { display: flex; flex-direction: column; gap: 32px; }
.about-body {
  font-family: var(--body);
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--navy);
  opacity: 0.6;
}
.stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: clamp(24px, 3vw, 36px);
  margin-top: clamp(20px, 2.5vw, 32px);
}
.stat-icon { width: 32px; height: 32px; display: block; }
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: clamp(16px, 2vw, 28px);
  margin-right: clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--border);
}
.stat-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 84px);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--navy);
  padding-bottom: 0.18em;
}
.stat-num sup {
  font-size: 0.28em;
  font-weight: 400;
  color: var(--cobalt);
  vertical-align: top;
  line-height: 1.6;
  letter-spacing: 0;
}
.stat-label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  line-height: 1.4;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials {
  background: var(--light-blue);
  padding: var(--section) 0;
}
.testimonial-featured {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px,5vw,80px);
  align-items: end;
  margin-bottom: clamp(40px,5vw,72px);
  padding-bottom: clamp(40px,5vw,72px);
  border-bottom: 1px solid var(--border);
}
.testimonial-quote {
  font-family: var(--display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.testimonial-quote::before { content: '\201C'; color: var(--cobalt); font-style: normal; margin-left: -0.32em; }
.testimonial-attr { display: flex; flex-direction: column; gap: 4px; text-align: right; flex-shrink: 0; }
.t-name { font-family: var(--body); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.t-role { font-family: var(--body); font-size: var(--fs-xs); color: var(--grey); letter-spacing: 0.08em; }
.t-company-logo {
  display: block;
  height: 29px;
  width: auto;
  margin-top: 12px;
  margin-left: auto;
  opacity: 0.5;
  /* natural logo color — no tint filter */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.testimonial-mini {
  background: var(--light-blue);
  padding: clamp(28px,3vw,44px);
  display: flex; flex-direction: column; gap: 20px;
}
.t-mini-text {
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy);
  opacity: 0.85;
}
.open-quote {
  display: inline-block;
  width: 0.52em;
  margin-left: -0.52em;
  overflow: visible;
  color: var(--cobalt);
  font-style: normal;
}
.t-mini-attr {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 20px;
}
.t-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-mini-name { font-family: var(--body); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.t-mini-role { font-family: var(--body); font-size: var(--fs-xs); color: var(--grey); letter-spacing: 0.08em; }

/* ── SERVICES ────────────────────────────────────────────── */
.services-section {
  background: var(--light-blue);
  padding: var(--section) 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  inset: -30% 0;           /* extra height top/bottom for parallax travel */
  background: url('../images/JosephSoto-InTheClouds.png') center / cover no-repeat;
  background-attachment: fixed;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.services-section .container {
  position: relative;
  z-index: 1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.service-card {
  background: rgba(243, 248, 255, 0.55);
  padding: clamp(28px,3vw,44px) clamp(20px,2.5vw,36px);
  display: flex; flex-direction: column; gap: 20px;
  border-radius: var(--radius-lg);
  transition: background var(--fast) var(--ease);
}
.service-card:hover { background: rgba(243, 248, 255, 0.85); }
.service-icon { width: 36px; height: 36px; display: block; }
.service-name {
  font-family: var(--display);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.service-items { display: flex; flex-direction: column; gap: 5px; }
.service-item {
  font-family: var(--body); font-size: var(--fs-xs);
  color: var(--navy); opacity: 0.45;
}
.service-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-img-wrap img { transform: scale(1.04); }
.service-desc {
  font-family: var(--body); font-size: var(--fs-xs);
  line-height: 1.75; color: var(--navy); opacity: 0.5;
}
.services-cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: clamp(32px, 4vw, 52px);
}
.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  text-decoration: none;
  border: 1.5px solid var(--cobalt);
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.services-cta-btn:hover { background: var(--cobalt); color: var(--white); }

/* ── AIGA PRESIDENT (light blue) ────────────────────────── */
.aiga-section {
  background: var(--alice);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.aiga-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: clamp(500px, 70vh, 800px);
}

/* Left: carousel column */
.aiga-carousel-col {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
}
.aiga-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(460px, 65vh, 740px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--alice);
}
.aiga-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alice);
  border-radius: 16px;
  overflow: hidden;
}
.aiga-slide.active { opacity: 1; }
.aiga-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Dots — bottom of image */
.aiga-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}
.aiga-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.45;
  border: none;
  cursor: pointer;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.aiga-dot.active { opacity: 1; transform: scale(1.4); }

/* Right: content */
.aiga-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(48px, 6vw, 80px) clamp(36px, 5vw, 72px);
}
.aiga-title {
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.aiga-title em { font-style: italic; color: var(--cobalt); }
.aiga-about-text {
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.8;
}
.aiga-logo {
  height: 55px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(18%) sepia(89%) saturate(1200%) hue-rotate(210deg) brightness(85%);
  display: block;
  align-self: flex-start;
}
.aiga-link {
  display: inline-block;
  color: var(--cobalt);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--fs-label);
  transition: opacity var(--fast) var(--ease);
}
.aiga-link:hover { opacity: 0.65; }

@media (max-width: 768px) {
  .aiga-inner { grid-template-columns: 1fr; }
  .aiga-carousel { min-height: 320px; }
}

/* ── BLOG (white) ────────────────────────────────────────── */
.blog-section { background: var(--white); padding: var(--section) 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.blog-card {
  background: var(--white);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--navy);
  transition: background var(--fast) var(--ease);
}
.blog-card:hover { background: var(--light-blue); }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.blog-body { padding: clamp(20px,2.5vw,32px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-date { font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt); }
.blog-title { font-family: var(--display); font-size: var(--fs-xl); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.blog-more { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-family: var(--body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt); }

/* ── CTA (navy) ──────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}
.cta-pattern {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);     /* pre-promote to GPU layer — prevents iOS flicker */
  backface-visibility: hidden;         /* additional iOS compositing hint */
  -webkit-backface-visibility: hidden;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.cta-headline {
  display: block;
  width: 100%;
  line-height: 1;
}
.cta-line-1 {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--white);
  white-space: nowrap;
  font-size: clamp(64px, 10vw, 172px);
}
.cta-line-2 {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cyan);
  white-space: nowrap;
  font-size: clamp(60px, 11vw, 188px);
}
.cta-sub {
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  max-width: 360px;
  line-height: 1.7;
  margin-top: -8px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); background: var(--white);
  padding: 16px 40px; border-radius: var(--radius-pill);
  transition: background var(--fast) var(--ease), gap var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn-primary:hover { background: var(--cyan); gap: 18px; transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  overflow: hidden;
}

/* iOS Safari rubber-band overscroll at page bottom reveals background behind the
   last element. Fix: extend the footer's navy color infinitely downward with a
   box-shadow so no white ever shows regardless of how far the user bounces. */
.footer-dark::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0;
  bottom: -200px;
  height: 200px;
  background: var(--navy);
  pointer-events: none;
}

/* Email hero band */
.footer-hero {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Navy lower section */
.footer-dark {
  background: var(--navy);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
  color: var(--white);
  position: relative;
}

.footer-eyebrow {
  color: rgba(255,255,255,0.35) !important;
}
.footer-email {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color var(--fast) var(--ease);
  line-height: 1;
}
.footer-email:hover { color: var(--cyan); }

/* Hairline rule */
.footer-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 clamp(40px, 5vw, 64px);
}

/* Three-column layout */
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.footer-col { display: flex; flex-direction: column; gap: 20px; }
.footer-col--links { flex-direction: row; gap: clamp(24px, 4vw, 60px); }
.footer-col-label {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 4px;
}
.footer-col-text {
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 300px;
}
.footer-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--fast) var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-social-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-social-nav a {
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  transition: color var(--fast) var(--ease);
  letter-spacing: -0.01em;
}
.footer-social-nav a:hover { color: var(--cyan); }

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.footer-copy {
  font-family: var(--body);
  font-size: var(--fs-label);
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* Oversized "soto" wordmark — fills full footer width */
.footer-wordmark-wrap {
  line-height: 0;
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
}
.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.12;
  transform: translateY(8%);
}

/* ── NAV: fix white-on-white links when scrolled-dark + overlay open ── */
.nav.scrolled-dark .nav-links.open a         { color: var(--navy) !important; }
.nav.scrolled-dark .nav-links.open .nav-cta  { color: var(--cobalt) !important; border-color: var(--cobalt) !important; }
.nav.scrolled-dark .nav-toggle.open span     { background: var(--navy) !important; }

/* ── SECTION HEADER META (right-side desc block) ───────── */
/* Desktop: right-aligned (inline style handles it) */
/* Mobile override applied in media query below          */

/* ── SCROLL REVEALS ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.in-view { 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.32s; }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────── */
/* Lives outside <nav> so nav's backdrop-filter can't clip it */
.mobile-nav-overlay { display: none; } /* hidden on desktop */

/* Active page link in mobile nav overlay — cyan at all breakpoints */
.mno-links .mno-current,
.mno-links .mno-active { color: var(--cyan) !important; }
.mno-links .mno-current:hover,
.mno-links .mno-active:hover { color: #fff !important; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */


/* ── 1300px: Wide tablet / iPad landscape ────────────────── */
/* Services grid drops to 2 cols on iPad landscape (1180–1366px)
   where 4 cramped columns overflow or look too tight.           */
@media (max-width: 1300px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 1100px: Tablet landscape ────────────────────────────── */
@media (max-width: 1100px) {
  .project-card  { grid-template-columns: 56px 1fr; }
  .project-img   { display: none; }
  .about-inner   { grid-template-columns: 1fr; }
}

/* ── 860px: Tablet portrait ──────────────────────────────── */
@media (max-width: 860px) {
  .work-panel-info,
  .work-panel--flip .work-panel-info {
    width: 100%; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,26,79,0.92) 0%, rgba(0,26,79,0.6) 55%, transparent 100%);
  }
  .work-panel:hover .work-panel-info,
  .work-panel--flip:hover .work-panel-info {
    background: linear-gradient(to top, rgba(0,49,163,0.92) 0%, rgba(0,49,163,0.6) 55%, transparent 100%);
  }
  .aiga-inner { grid-template-columns: 1fr; }
  .aiga-carousel { min-height: 320px; }
  .aiga-carousel-col { padding: 0; }
  .aiga-content { padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px); }
}

/* ── 768px: Mobile ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* — EYEBROW LABEL: keep dot inline on mobile — */
  .label--dot {
    display: flex;
    align-items: center;
  }
  .label--dot::before {
    position: static;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* — SECTION HEADER META: left-align on mobile — */
  .section-header-meta {
    text-align: left !important;
    max-width: 100% !important;
  }
  .section-header-meta a {
    align-self: flex-start !important;
  }

  /* — NAV — */
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    position: relative;
    z-index: 200;
  }
  .nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--navy);
    transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
  }
  .nav-toggle span:nth-child(1) { width: 26px; }
  .nav-toggle span:nth-child(2) { width: 18px; }
  .nav-toggle span:nth-child(3) { width: 26px; }
  /* Animated X when open */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); width: 26px; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 26px; }
  /* Invert bars when nav is dark */
  .nav.scrolled-dark .nav-toggle span { background: var(--white); }

  /* Full-screen elegant overlay */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: var(--white);
    padding: 80px clamp(28px, 6vw, 56px) 48px;
    gap: 0;
    z-index: 150;
    list-style: none;
    animation: navOverlayIn 0.35s var(--ease) both;
  }
  @keyframes navOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .nav-links.open li {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .nav-links.open li:first-child { border-top: 1px solid var(--border); }
  .nav-links.open a {
    display: block;
    font-family: var(--display);
    font-size: clamp(44px, 12vw, 72px);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--navy);
    opacity: 1;
    padding: clamp(12px, 2.5vw, 18px) 0;
    line-height: 1.1;
    animation: navLinkSlide 0.5s var(--ease) both;
  }
  .nav-links.open li:nth-child(1) a { animation-delay: 0.06s; }
  .nav-links.open li:nth-child(2) a { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(3) a { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(4) a { animation-delay: 0.24s; }
  @keyframes navLinkSlide {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* "Let's Talk" in overlay inherits display style, show as cobalt */
  .nav-links.open .nav-cta {
    border: none;
    border-radius: 0;
    padding: clamp(12px, 2.5vw, 18px) 0;
    font-family: var(--display);
    font-size: clamp(44px, 12vw, 72px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--cobalt) !important;
    background: transparent;
  }

  /* — MOBILE NAV OVERLAY (outside <nav>) — */
  @keyframes mno-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .mobile-nav-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--navy);
    padding: 0 clamp(28px, 7vw, 52px) clamp(36px, 7vw, 52px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.3s var(--ease),
                visibility 0.55s var(--ease);
    /* Allow scrolling if content overflows (iPhone landscape) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateY(0);
  }

  /* Decorative "soto" watermark — mirrors footer treatment */
  .mno-watermark {
    position: absolute;
    bottom: 40px;      /* above the footer row — mirrors footer treatment */
    left: -8%;
    width: 116%;
    pointer-events: none;
    z-index: 0;
    line-height: 0;
    transform: translateY(18%); /* let the tail of "soto" bleed off the bottom edge */
  }
  .mno-watermark img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.07;
  }
  /* Lift header, links, and footer above the watermark */
  .mno-header,
  .mno-links,
  .mno-footer { position: relative; z-index: 1; }

  /* Header row: logo + close */
  .mno-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
  }
  /* Invert the navy logo to white on the dark overlay */
  .mno-logo-img {
    height: 30px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
  }
  .mno-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    padding: 6px;
    margin-right: -6px;
    line-height: 1;
    transition: color var(--fast) var(--ease);
  }
  .mno-close:hover { color: var(--cobalt); }

  /* Nav links */
  .mno-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .mno-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    /* staggered entrance — reset when overlay is closed */
    opacity: 0;
  }
  .mno-links li:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
  /* Trigger animation only when overlay is open */
  .mobile-nav-overlay.open .mno-links li {
    animation: mno-rise 0.5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 0.07s + 0.2s);
  }
  .mno-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--display);
    font-size: clamp(38px, 10vw, 58px);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.9);
    padding: clamp(12px, 2.5vw, 18px) 0;
    line-height: 1.1;
    text-decoration: none;
    transition: color 0.2s var(--ease);
  }
  .mno-links a:hover { color: var(--cobalt); }
  /* Active page — cyan highlight (mno-active and mno-current both work) */
  .mno-active,
  .mno-current { color: var(--cyan) !important; }
  .mno-active:hover,
  .mno-current:hover { color: #fff !important; }
  /* Let's Talk CTA link */
  .mno-cta-link { color: var(--cyan) !important; }
  .mno-cta-link:hover { color: #fff !important; }
  /* Current page indicator — white, not cyan */
  .mno-current { color: #fff !important; font-weight: 600; }
  .mno-current:hover { color: var(--cobalt) !important; }
  /* Small ordinal numbers */
  .mno-num {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.4);   /* white at low opacity — visible on navy */
    flex-shrink: 0;
    position: relative;
    top: -4px;   /* baseline-align with descenders of the large display text */
  }
  .mno-link-text { display: block; }

  /* Footer: email + social */
  .mno-footer {
    padding: clamp(20px, 4vw, 32px) 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mno-email {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color var(--fast) var(--ease);
  }
  .mno-email:hover { color: rgba(255,255,255,0.9); }
  .mno-social {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .mno-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.45);
    transition: color var(--fast) var(--ease);
  }
  .mno-social-link:hover { color: var(--cobalt); }

  /* — MOBILE NAV: landscape compact — short viewport, shrink links to fit — */
  @media (orientation: landscape) and (max-height: 520px) {
    .mno-links a {
      font-size: clamp(24px, 5vh, 36px) !important;
      padding: clamp(8px, 1.5vh, 14px) 0 !important;
    }
    .mno-watermark { display: none; } /* reclaim space on very short screens */
  }

  /* — HERO — */
  .hero-tags-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-headline-wrap { padding: 8px 16px 16px; }

  /* — SERVICES BAR — */
  .services-bar { grid-template-columns: repeat(2, 1fr); }

  /* — DEDICATED / COBALT — */
  .dedicated { padding: clamp(48px,8vw,80px) var(--gutter); }
  .cycling-word { font-size: clamp(56px, 14vw, 160px); }

  /* — PARTNERS — */
  .partners-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* — PROJECT LIST — */
  .project-card { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; }
  .project-name { font-size: clamp(28px, 6vw, 48px); }

  /* — WORK PANELS — */
  .work-panels { padding: 0 clamp(12px, 2vw, 24px) clamp(16px, 2vw, 24px); gap: 10px; }
  .work-panel  { min-height: 420px; border-radius: var(--radius-md); }
  /* Full-width bottom-up gradient on mobile so text is always legible */
  .work-panel-info {
    width: 100%;
    background: linear-gradient(
      to top,
      rgba(0, 26, 79, 0.92) 0%,
      rgba(0, 26, 79, 0.6)  45%,
      rgba(0, 26, 79, 0)    100%
    ) !important;
  }
  .work-panel--flip .work-panel-info {
    left: 0; right: 0;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(
      to top,
      rgba(0, 26, 79, 0.92) 0%,
      rgba(0, 26, 79, 0.6)  45%,
      rgba(0, 26, 79, 0)    100%
    ) !important;
  }
  .work-panel--flip .work-panel-tags { justify-content: flex-start; }
  .work-panel-name { font-size: clamp(108px, 30vw, 200px); }
  .work-panel-num  { font-size: 13px; opacity: 0.55; }

  /* — VIDEO FEATURE — portrait scroll-reveal on mobile
     Dimensions and sticky behaviour are restored in mobile.css (loaded after this file).
     Only label visibility is set here; all other overrides moved to mobile.css. */
  .video-label { display: none; }

  /* — ABOUT — */
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-quote { font-size: clamp(32px, 7vw, 56px); }
  .about-wordmark-wrap { bottom: -2%; } /* prevent logo cutting off so much */

  /* — STATS — */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .stat-item {
    padding-left: 10px;
    padding-right: 14px;
    margin-right: 0;
    border-right: 1px solid var(--border);
    gap: 8px;
  }
  .stat-item:first-child { padding-left: 0; }
  .stat-item:last-child  { border-right: none; padding-right: 0; }
  .stat-num  { font-size: clamp(32px, 7vw, 52px); }
  .stat-icon { width: 24px; height: 24px; }

  /* — TESTIMONIALS — */
  .testimonial-featured  { grid-template-columns: 1fr; gap: 24px; }
  .testimonial-quote     { font-size: clamp(26px, 7vw, 40px); }
  .testimonial-attr      { text-align: left; }
  .t-company-logo        { margin-left: 0; }
  .testimonial-grid      { grid-template-columns: 1fr; }

  /* — SERVICES — */
  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: clamp(24px, 4vw, 36px); }
  /* background-attachment: fixed breaks on iOS — switch to scroll */
  .services-section::before {
    background-attachment: scroll;
    background-position: center center;
    inset: 0;
  }

  /* — AIGA — */
  .aiga-carousel     { min-height: 420px; }  /* taller for more photo impact */
  .aiga-title        { font-size: clamp(32px, 7vw, 52px); }
  .aiga-carousel-col { padding: 32px 20px 0; }
  .aiga-content      { padding: 28px 20px 48px; }

  /* — TESTIMONIALS extras — */
  .t-company-logo { margin-left: 0; } /* left-align on mobile */

  /* — SERVICES parallax (JS sets --svc-parallax, CSS applies it) — */
  .services-section::before {
    background-attachment: scroll;
    background-position: center center;
    inset: -40% 0;
    transform: translateY(var(--svc-parallax, 0px));
  }

  /* — FOOTER whitespace fix — */
  .footer-dark { padding-bottom: env(safe-area-inset-bottom, 4px); } /* fills iOS home-indicator gap with navy */

  /* — BLOG — */
  .blog-grid { grid-template-columns: 1fr; }

  /* — CTA — */
  .cta-inner { gap: 24px; }

  /* — FOOTER HERO — */
  .footer-hero { padding: clamp(40px, 6vw, 64px) var(--gutter); }
  .footer-email { font-size: clamp(22px, 6vw, 48px); }

  /* — FOOTER DARK — */
  .footer-cols       { grid-template-columns: 1fr; }   /* single col: blurb → pages+services → social */
  .footer-col--links { flex-direction: row; gap: 40px; } /* Pages | Services side by side */
  .footer-bottom     { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── 480px: Small phones ─────────────────────────────────── */
@media (max-width: 480px) {
  /* — NAV — */
  .nav { padding: 0 20px; }

  /* — HERO — */
  .hero-tags-bar { display: none; }

  /* — SERVICES BAR — */
  .services-bar { grid-template-columns: 1fr 1fr; }
  .services-bar-item span { font-size: 9px; }

  /* — DEDICATED — */
  .dedicated-static  { white-space: normal; }
  .cycling-word { white-space: normal; line-height: 0.9; }

  /* — STATS — row stays 3-col but font shrinks more */
  .stat-num { font-size: clamp(28px, 8.5vw, 44px); }
  .stat-label { font-size: 10px; }
  .stat-icon { width: 20px; height: 20px; }
  .stat-item { padding-right: 8px; gap: 6px; }

  /* — WORK PANELS — */
  .work-panel  { min-height: 320px; }
  .work-panel-name { font-size: clamp(24px, 7vw, 40px); }

  /* — PROJECT CARDS — hide number on tiny screens */
  .project-num { display: none; }
  .project-card { grid-template-columns: 1fr; }

  /* — FOOTER — */
  .footer-cols       { grid-template-columns: 1fr; }
  .footer-email      { font-size: clamp(20px, 7vw, 36px); }
  .footer-col--links { flex-direction: row; gap: 32px; } /* keep Pages | Services side-by-side */
  /* footer wordmark visible on all screen sizes */
}
