:root {
  --blue: #2b3fc7;
  --blue-dark: #22339f;
  --blue-deep: #1a2678;
  --yellow: #e8ec9b;
  --yellow-soft: #f2f4c4;
  --white: #ffffff;
  --ink: #101536;
  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--text);
  background: var(--blue-deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
section { scroll-margin-top: 112px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  flex-wrap: wrap;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(26, 38, 120, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--yellow);
}
.nav-logo {
  font-family: var(--display); font-size: 22px; letter-spacing: .04em;
  color: var(--yellow); text-decoration: none; text-transform: uppercase;
}
.nav-logo span { color: var(--white); margin-left: 6px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--yellow); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta {
  background: var(--yellow); color: var(--ink); padding: 8px 18px; border-radius: 999px;
  transition: transform .2s ease;
}
.nav-links a.nav-cta:hover { transform: translateY(-2px); }
.nav-links a.nav-cta::after { display: none; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 26px; height: 3px; background: var(--yellow); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 60%, var(--blue-deep) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 72px 32px 40px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { line-height: .94; text-transform: uppercase; margin-bottom: 24px; }
.hero-title .line {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 124px); color: var(--yellow); letter-spacing: .01em;
}
.hero-title .line.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
}
.hero-sub { font-size: 18px; max-width: 46ch; color: #e7e9fb; margin-bottom: 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag {
  border: 1.5px solid var(--yellow); color: var(--yellow); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.hero-btn .arr { font-size: 18px; }

.hero-photo { position: relative; justify-self: center; }
.hero-photo img {
  width: min(340px, 70vw); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%;
  border-radius: 18px; position: relative; z-index: 2;
  border: 4px solid var(--yellow);
  box-shadow: 14px 14px 0 rgba(0,0,0,.25);
}
.bw { filter: grayscale(1) contrast(1.08); }
.burst {
  position: absolute; inset: -56px; z-index: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--yellow) 0deg 5deg, transparent 5deg 11deg);
  animation: spin 40s linear infinite;
}
.burst-sm { inset: -34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .burst { animation: none; } }
.sticker { position: absolute; z-index: 3; font-family: var(--display); }
.sticker-star { top: -22px; right: -10px; font-size: 64px; color: var(--yellow); transform: rotate(15deg); }
.sticker-year {
  bottom: 8px; left: -30px; font-size: 30px; color: var(--ink);
  background: var(--yellow); padding: 4px 14px; border-radius: 999px; transform: rotate(-8deg);
  border: 2px solid var(--ink);
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow);
  background: var(--yellow); overflow: hidden; padding: 12px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--display); text-transform: uppercase; font-size: 24px;
  color: var(--ink); white-space: nowrap; letter-spacing: .03em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 80s; } }

/* ---------- sections with side titles ---------- */
.section { display: grid; grid-template-columns: auto 1fr; background: var(--blue); }
.section:nth-of-type(even) { background: var(--blue-dark); }
.side {
  display: flex; align-items: center; justify-content: center;
  padding: 64px 18px; border-right: 2px solid rgba(232, 236, 155, .25);
}
.side span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(44px, 5.5vw, 84px); line-height: 1; color: var(--yellow);
  letter-spacing: .02em; white-space: nowrap;
}
.content { padding: 72px 48px; max-width: 1080px; }
.mobile-title { display: none; }

.section-note { font-size: 17px; color: #e7e9fb; max-width: 64ch; margin-bottom: 12px; }
.section-role { font-size: 15px; color: var(--yellow); max-width: 64ch; margin-bottom: 28px; }
.caption { font-size: 13px; color: rgba(255,255,255,.75); margin: 10px 0 34px; }
.sub-head {
  font-family: var(--display); text-transform: uppercase; color: var(--white);
  font-size: 26px; letter-spacing: .03em; margin: 8px 0 18px;
  border-bottom: 2px solid var(--yellow); display: inline-block; padding-bottom: 6px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 18px; font-size: 17px; color: #eef0ff; }
.about-text .lede { font-size: 24px; font-weight: 700; color: var(--white); }
mark { background: var(--yellow); color: var(--ink); padding: 0 6px; border-radius: 4px; }
.about-photo { position: relative; justify-self: center; }
.about-photo img {
  width: min(300px, 64vw); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%;
  border-radius: 18px; border: 4px solid var(--yellow); position: relative; z-index: 2;
}

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 4px; }
.tl-item {
  display: grid; grid-template-columns: 170px 26px 1fr; gap: 18px;
  padding: 26px 0; border-bottom: 1px solid rgba(232,236,155,.2); align-items: start;
}
.tl-item:last-child { border-bottom: 0; }
.tl-date { font-family: var(--display); color: var(--yellow); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; text-align: right; }
.tl-dot { position: relative; height: 100%; }
.tl-dot::before {
  content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--blue-deep);
}
.tl-dot::after {
  content: ""; position: absolute; left: 50%; top: 26px; bottom: -32px; transform: translateX(-50%);
  width: 2px; background: rgba(232,236,155,.35);
}
.tl-item:last-child .tl-dot::after { display: none; }
.tl-body h3 { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 2px; }
.tl-body h3 em { font-weight: 600; font-size: 15px; color: var(--yellow); font-style: italic; }
.tl-org { font-style: italic; color: var(--yellow-soft); margin-bottom: 6px; }
.tl-body p:last-child { color: #dfe2fb; font-size: 15.5px; }

/* ---------- credentials ---------- */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 44px; }
.cred { padding: 18px 0 18px 22px; position: relative; border-bottom: 1px solid rgba(232,236,155,.2); }
.cred::before {
  content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--yellow);
}
.cred h3 { font-size: 17px; font-weight: 800; color: var(--white); }
.cred p { color: var(--yellow); font-size: 14.5px; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 44px; }
.skill { padding: 18px 0 18px 22px; position: relative; border-bottom: 1px solid rgba(232,236,155,.2); }
.skill::before {
  content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--yellow);
}
.skill h3 { font-size: 17px; font-weight: 800; color: var(--white); }
.skill p { color: #dfe2fb; font-size: 14.5px; }

/* ---------- logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.logo-tile {
  min-width: 0; overflow: hidden;
  background: var(--white); border-radius: 16px; padding: 14px;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.logo-tile img { max-height: 74px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- results ---------- */
.keynums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 6px; }
.keynum {
  background: var(--yellow); color: var(--ink); border-radius: 16px; padding: 22px 18px;
  text-align: center; border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.25);
}
.keynum-value { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.keynum-label { font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(232,236,155,.4);
  border-radius: 16px; padding: 20px 22px;
}
.stat-top {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 1.5px solid var(--yellow); padding-bottom: 10px; margin-bottom: 12px;
}
.stat-num { font-family: var(--display); font-size: clamp(38px, 4vw, 54px); color: var(--yellow); line-height: 1; }
.stat-badge {
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  border-radius: 999px; padding: 4px 12px;
}
.stat-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.stat-detail { font-size: 14px; color: #dfe2fb; }

/* ---------- work ---------- */
.case { margin-bottom: 64px; }
.case-head { margin-bottom: 22px; }
.case-head h3 {
  font-family: var(--display); text-transform: uppercase; color: var(--yellow);
  font-size: clamp(30px, 4vw, 48px); letter-spacing: .02em;
}
.case-meta { font-style: italic; color: var(--yellow-soft); margin: 4px 0 10px; font-weight: 600; }
.case-head p:last-child { color: #eef0ff; max-width: 64ch; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.thumb {
  min-width: 0;
  border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; aspect-ratio: 1; 
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.gallery-3col { grid-template-columns: repeat(3, 1fr); }
.gallery-wide .thumb { aspect-ratio: 16/10; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px; }
.videos-4 { grid-template-columns: repeat(4, 1fr); }
.video video {
  width: 100%; border-radius: 12px; border: 2px solid rgba(232,236,155,.4); background: #000;
}
.videos-4 .video video { aspect-ratio: 9/16; object-fit: cover; }
.videos-3 { grid-template-columns: repeat(6, 1fr); }
.videos-3 .video { grid-column: span 2; }
.videos-3 .video:nth-child(4) { grid-column: 2 / span 2; }
.videos-3 .video:nth-child(5) { grid-column: 4 / span 2; }
.videos-3 .video video { aspect-ratio: 9/16; object-fit: cover; }
.gallery-45 .thumb { aspect-ratio: 4/5; }
.gallery-eq { display: flex; justify-content: center; align-items: flex-start; }
.gallery-eq .thumb, .gallery-eq .video { aspect-ratio: var(--ar); flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.gallery-eq .video { display: flex; flex-direction: column; aspect-ratio: auto; }
.gallery-eq .video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.gallery-169 .thumb { aspect-ratio: 16/9; }
.gallery-34 .thumb { aspect-ratio: 3/4; }
.video-45 video { aspect-ratio: 4/5; object-fit: cover; }
.videos-6 { grid-template-columns: repeat(3, 1fr); }
.videos-6 .video video { aspect-ratio: 9/16; object-fit: cover; }
.gallery-5c { grid-template-columns: repeat(6, 1fr); }
.gallery-5c .thumb { grid-column: span 2; aspect-ratio: 4/3; }
.gallery-5c .thumb:nth-child(4) { grid-column: 2 / span 2; }
.gallery-5c .thumb:nth-child(5) { grid-column: 4 / span 2; }
.gallery-7 { grid-template-columns: repeat(8, 1fr); }
.gallery-7 .thumb { grid-column: span 2; }
.gallery-7 .thumb:nth-child(5) { grid-column: 2 / span 2; }
.video figcaption { font-size: 13.5px; color: var(--yellow-soft); margin-top: 8px; }

/* ---------- closing ---------- */
.closing { background: linear-gradient(160deg, var(--blue-deep), var(--blue-dark)); }
.closing-inner {
  max-width: 1200px; margin: 0 auto; padding: 90px 32px 60px;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center;
}
.closing-photo { position: relative; justify-self: center; }
.closing-photo img {
  width: min(320px, 68vw); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%;
  border-radius: 18px; border: 4px solid var(--yellow); position: relative; z-index: 2;
}
.closing-kicker {
  font-family: var(--display); text-transform: uppercase; color: var(--white);
  font-size: clamp(22px, 3vw, 34px); letter-spacing: .04em;
}
.closing-title {
  font-family: var(--display); text-transform: uppercase; color: var(--yellow);
  font-size: clamp(64px, 10vw, 132px); line-height: .94; margin: 8px 0 30px;
}
.closing-title span { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.contact-cards { display: grid; gap: 12px; max-width: 460px; }
.contact-card {
  display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto;
  column-gap: 14px; align-items: center;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(232,236,155,.4);
  border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--white);
  transition: transform .2s ease, background .2s ease;
}
.contact-card:hover { transform: translateX(6px); background: rgba(232,236,155,.14); }
.contact-icon {
  grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; font-family: var(--display);
}
.contact-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 700; }
.contact-value { font-size: 16.5px; font-weight: 600; }
.footer {
  border-top: 2px solid var(--yellow); padding: 26px 32px; text-align: center;
}
.footer p { font-size: 16px; font-weight: 600; }
.footer-small { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 400 !important; margin-top: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 46, .94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: min(92vw, 900px); max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 100%; max-height: 80vh; border-radius: 10px; margin: 0 auto; border: 3px solid var(--yellow); }
.lb-figure figcaption { color: var(--yellow-soft); margin-top: 12px; font-size: 14px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: var(--yellow); color: var(--ink); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink); font-size: 20px; font-weight: 800;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .videos-4 { grid-template-columns: repeat(2, 1fr); }
  .videos-4 .video video { aspect-ratio: auto; }
  .videos-3 { grid-template-columns: repeat(2, 1fr); }
  .videos-3 .video, .videos-3 .video:nth-child(4) { grid-column: auto; }
  .videos-3 .video:nth-child(5) { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .videos-3 .video video { aspect-ratio: auto; }
  .gallery-7 { grid-template-columns: repeat(3, 1fr); }
  .gallery-7 .thumb, .gallery-7 .thumb:nth-child(5) { grid-column: auto; }
  .videos-6 { grid-template-columns: repeat(2, 1fr); }
  .videos-6 .video video { aspect-ratio: auto; }
  .gallery-5c { grid-template-columns: repeat(2, 1fr); }
  .gallery-5c .thumb, .gallery-5c .thumb:nth-child(4), .gallery-5c .thumb:nth-child(5) { grid-column: auto; }
  .keynums { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links a.nav-cta { padding: 7px 14px; font-size: 12px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; gap: 60px; }
  .hero-photo { order: -1; }
  .section { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-title {
    display: block; font-family: var(--display); text-transform: uppercase;
    color: var(--yellow); font-size: clamp(36px, 8vw, 56px); line-height: 1;
    margin-bottom: 28px;
  }
  .content { padding: 56px 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { order: -1; }
  .cred-grid, .skills-grid, .stats { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-date { text-align: left; }
  .tl-dot { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .closing-inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 22px 44px; }
  .closing-photo { order: -1; }
}
@media (max-width: 480px) {
  .gallery, .gallery-3col { grid-template-columns: repeat(2, 1fr); }
  .gallery .thumb:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2/1; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-kicker { font-size: 11px; padding: 6px 12px; }
  .videos { grid-template-columns: 1fr; }
  .keynums { grid-template-columns: 1fr 1fr; gap: 10px; }
  .marquee-track span { font-size: 18px; }
}

@media (max-width: 700px) {
  .gallery-eq { flex-direction: column; align-items: stretch; }
  .gallery-eq .thumb { flex: none; width: 100%; }
  .gallery-eq .video { flex: none; width: 60%; align-self: center; }
}

/* ---------- proof ---------- */
.proof-list { display: grid; gap: 18px; margin-bottom: 34px; }
.proof-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 18px; }
.proof-title { font-family: var(--text); font-weight: 700; font-size: 16px; color: var(--yellow); margin: 0 0 12px; }
.proof-row { justify-content: center; }
.proof-link { color: var(--yellow); text-decoration: underline; }
html { scroll-padding-top: 112px; }

/* ---------- scroll spy ---------- */
.spy { flex: 0 0 100%; order: 3; margin: 10px -28px -14px; padding: 0; }
.spy-list { list-style: none; margin: 0; padding: 0 28px; display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.spy-list li { flex: 0 1 auto; min-width: 0; }
.spy-list a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.55); white-space: nowrap; }
.spy-list i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); display: inline-block; flex: none; position: relative; box-sizing: border-box; }
.spy-list li.done a { color: rgba(255,255,255,.85); }
.spy-list li.done i { background: var(--yellow); border-color: var(--yellow); }
.spy-list li.done i::after { content: ""; position: absolute; left: 3px; top: 0px; width: 3px; height: 7px; border: solid var(--blue-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.spy-list li.cur a { background: var(--yellow); color: var(--blue-deep); }
.spy-list li.cur i { border-color: var(--blue-deep); background: var(--blue-deep); }
.spy-list li.next a { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(232,236,155,.7); }
.spy-list li.next a::after { content: "\2192"; margin-left: 2px; }
.spy-bar { height: 3px; background: rgba(255,255,255,.15); margin-top: 6px; }
.spy-bar b { display: block; height: 100%; width: 0; background: var(--yellow); }
@media (max-width: 1100px) {
  .nav { padding: 10px 16px 0; }
  .spy { margin: 6px -16px 0; }
  .spy-list { padding: 0 12px; gap: 4px; }
  .spy-list li { display: none; }
  .spy-list li.prev, .spy-list li.cur, .spy-list li.next { display: block; }
  .spy-list li.cur { flex: 1 1 auto; text-align: center; }
  .spy-list li.cur a { justify-content: center; font-size: 13px; }
  .spy-list li.prev a, .spy-list li.next a { padding: 6px 8px; font-size: 11px; }
  .spy-list li.prev a { color: rgba(255,255,255,.7); }
  .spy-list li.next a { box-shadow: none; color: var(--yellow); }
  .spy-list li.prev i { display: inline-block; }
  .spy-list li.cur i, .spy-list li.next i { display: none; }
}
@media (max-width: 380px) { .spy-list li.prev a span { display: none; } }
.nav { border-bottom: 0; }
.spy-bar { height: 4px; margin-top: 8px; background: rgba(255,255,255,.18); }
.spy { flex: 0 0 calc(100% + 56px); }
@media (max-width: 1100px) { .spy { flex: 0 0 calc(100% + 32px); } }
/* keep decorative bursts and the ticker inside the screen: no sideways page scroll on phones */
.hero, .closing { overflow: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } body { overflow-x: clip; } }
/* ---------- work cards (home) ---------- */
.work-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 26px; }
.work-card { background: rgba(255,255,255,.07); border: 1.5px solid rgba(232,236,155,.35); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.wc-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--blue-deep); }
.wc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s ease; }
.work-card:hover .wc-img img { transform: scale(1.04); }
.wc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.wc-body h3 { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: 28px; line-height: 1.05; margin: 0; }
.wc-meta { font-style: italic; color: var(--yellow-soft); font-weight: 600; margin: 6px 0 10px; }
.wc-line { color: #eef0ff; margin: 0 0 16px; }
.wc-stats { display: flex; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.wc-stat { background: var(--yellow); color: var(--blue-deep); border-radius: 12px; padding: 8px 14px; min-width: 96px; display: flex; flex-direction: column; }
.wc-num { font-family: var(--display); font-size: 26px; line-height: 1; }
.wc-lab { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.wc-btn { display: inline-block; margin-top: auto; align-self: flex-start; background: var(--yellow); color: var(--blue-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; padding: 12px 20px; border-radius: 999px; text-decoration: none; transition: transform .2s ease; }
.wc-btn:hover { transform: translateY(-2px); }

/* ---------- case pages and contact page ---------- */
.nav-case { flex-wrap: nowrap; }
.case-nav-links { display: flex; align-items: center; gap: 14px; }
.case-back { color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.case-back:hover { color: var(--yellow); }
.case-nav-links .nav-cta { background: var(--yellow); color: var(--blue-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.case-page .case { margin-bottom: 40px; }
.case-head h1 { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 0; font-weight: 400; }
.case-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 28px; border-top: 1.5px solid rgba(232,236,155,.3); }
.case-foot .wc-btn { margin-top: 0; }
.wc-next { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.case-footer { text-align: center; padding: 24px 16px 32px; background: var(--blue-deep); color: #dfe3ff; }
.case-footer a { color: var(--yellow); }
.contact-h1 { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: clamp(40px, 6vw, 68px); line-height: 1; margin: 0 0 12px; font-weight: 400; }
.contact-form { display: grid; gap: 14px; max-width: 560px; margin: 22px 0 8px; }
.cf-field { display: grid; gap: 6px; }
.cf-field span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.cf-field input, .cf-field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(232,236,155,.35); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-send { font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; background: var(--yellow); color: var(--blue-deep); border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer; justify-self: start; }
.cf-send:disabled { opacity: .6; cursor: wait; }
.cf-note { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.cf-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.cf-status.ok { color: var(--yellow); }
.cf-status.err { color: #ffd0d0; }
.cf-status a { color: var(--yellow); }
.direct-title { font-family: var(--display); text-transform: uppercase; color: var(--white); font-size: 30px; font-weight: 400; margin: 40px 0 14px; }
.direct-cards { max-width: 560px; }
.contact-actions { margin-top: 18px; }
.wa-btn { display: inline-block; background: #25d366; color: #073b1c; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; padding: 13px 22px; border-radius: 999px; text-decoration: none; transition: transform .2s ease; }
.wa-btn:hover { transform: translateY(-2px); }
.msg-btn { background: var(--yellow); color: var(--blue-deep); }
@media (max-width: 860px) {
  .work-cards { grid-template-columns: 1fr; }
  .nav-case { padding: 12px 16px; }
  .case-back { font-size: 12px; }
  .nav-case .nav-logo { font-size: 18px; }
}

/* ---------- hook + talk buttons ---------- */
.hook-title { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: clamp(40px, 6vw, 72px); line-height: 1; margin: 0 0 26px; font-weight: 400; }
.hook-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hook-card { background: rgba(255,255,255,.08); border: 1.5px solid rgba(232,236,155,.35); border-radius: 16px; padding: 22px 24px; }
.hook-card h3 { font-family: var(--text); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--yellow); margin: 0 0 10px; }
.hook-card p { margin: 0; color: #eef0ff; }
.talk-row { margin-top: 28px; }
.talk-btn { display: inline-block; background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.talk-btn:hover { background: var(--yellow); color: var(--blue-deep); transform: translateY(-2px); }
@media (max-width: 860px) { .hook-grid { grid-template-columns: 1fr; } }

/* ---------- phone: tap the current section to open the full list ---------- */
@media (max-width: 1100px) {
  .spy { position: relative; }
  .spy-list li.cur a::after { content: "\25BE"; margin-left: 6px; font-size: 12px; }
  .spy.open .spy-list {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--blue-deep); padding: 8px 14px 14px; border-bottom: 3px solid var(--yellow);
    box-shadow: 0 14px 24px rgba(0,0,0,.35);
  }
  .spy.open .spy-list li { display: block; flex: none; text-align: left; }
  .spy.open .spy-list li a { padding: 12px 12px; font-size: 14px; width: 100%; box-sizing: border-box; justify-content: flex-start; border-radius: 10px; }
  .spy.open .spy-list li.cur a::after { content: "\25B4"; }
  .spy.open .spy-list li.next a { box-shadow: none; color: var(--yellow); }
  .spy.open .spy-list li.next a::after { content: "\2192"; }
  .spy.open .spy-list i { display: inline-block; }
}

/* Shi Tayyib: 11 videos, 4 per row, last row centered */
.videos-11 { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.videos-11 .video { flex: 0 0 calc((100% - 48px) / 4); margin: 0; }
.videos-11 .video video { aspect-ratio: 9/16; object-fit: cover; }
@media (max-width: 860px) {
  .videos-11 { gap: 12px; }
  .videos-11 .video { flex: 0 0 calc((100% - 12px) / 2); }
  .videos-11 .video video { aspect-ratio: auto; }
}

/* ---------- desktop: one header bar (name | steps | Let's talk), progress line along the bottom edge ---------- */
@media (min-width: 1101px) {
  html { scroll-padding-top: 0; }
  section { scroll-margin-top: 72px; }
  .nav { flex-wrap: nowrap; gap: 18px; padding: 12px 28px 14px; justify-content: flex-start; }
  .nav-logo { order: 1; flex: none; }
  .spy { order: 2; flex: 1 1 auto; margin: 0; min-width: 0; position: static; }
  .spy-list { padding: 0; gap: 2px; justify-content: center; }
  .spy-list a { padding: 6px 9px; font-size: 11.5px; gap: 5px; }
  .nav-links { order: 3; flex: none; }
  .spy-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 4px; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav { gap: 10px; padding-left: 20px; padding-right: 20px; }
  .spy-list a { padding: 6px 7px; font-size: 11px; gap: 4px; }
  .spy-list i { width: 12px; height: 12px; }
  .spy-list li.done i::after { left: 2px; top: -1px; }
  .spy-list li.next a::after { display: none; }
}

@media (max-width: 1100px) {
  html { scroll-padding-top: 0; }
  section { scroll-margin-top: 100px; }
}

/* =====================================================================
   v19 motion. Everything below only runs when html has .motion
   (set by js/motion.js when the visitor has not asked for reduced motion).
   ===================================================================== */
.cover-wrap .hook { background: var(--blue-dark); }
.cover-wrap #about { background: var(--blue); }

/* About covers the hook: the hook stays pinned, About slides up over it */
.motion .cover-wrap .intro { position: sticky; top: var(--pin-top, 64px); top: min(var(--pin-top, 64px), calc(100svh - var(--hook-h, 0px))); z-index: 1; transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .05)); }
.motion .cover-wrap .intro::after { content: ""; position: absolute; inset: 0; background: #0a1038; opacity: calc(var(--cover, 0) * .7); pointer-events: none; z-index: 5; }
.motion .cover-wrap .hook {
  position: relative; z-index: 2;
  border-radius: 28px 28px 0 0; border-top: 3px solid var(--yellow); box-shadow: 0 -26px 50px rgba(0,0,0,.55);
}
.motion .about-photo {
  margin-top: -64px; position: relative; z-index: 3; will-change: transform;
  transform: translateY(calc(var(--rise, 1) * 150px)) scale(calc(.88 + (1 - var(--rise, 1)) * .12));
  opacity: calc(.35 + (1 - var(--rise, 1)) * .65);
}
.motion .section:not(.hook), .motion .closing { position: relative; z-index: 2; }

/* Proof: headings slide in from alternating sides */
.reveal.from-left { transform: translateX(-70px); }
.reveal.from-right { transform: translateX(70px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
#proof .content { overflow-x: hidden; overflow-x: clip; }

/* Proof carousels */
.pstrip { position: relative; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 0 30px; border-radius: 14px; }
.pstrip-track { display: flex; gap: 18px; width: max-content; padding: 6px 0; }
.ps-card { flex: none; margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px; }
.ps-card figcaption { font-family: var(--text); font-weight: 700; font-size: 14px; color: var(--yellow); margin: 0 0 10px; max-width: 520px; }
.ps-row { display: flex; gap: 10px; align-items: flex-start; }
.ps-row .thumb { flex: none; height: 190px; width: calc(190px * var(--ar)); aspect-ratio: auto; }
html:not(.motion) .pstrip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
html:not(.motion) .ps-clone { display: none; }

/* Brands: logo strip */
.motion .logo-wall.is-strip { display: block; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; border-radius: 16px; }
.motion .logo-wall.is-strip .logo-track { display: flex; gap: 16px; width: max-content; }
.motion .logo-wall.is-strip .logo-tile { flex: none; width: 170px; }

@media (max-width: 860px) {
  .ps-row .thumb { height: 140px; width: calc(140px * var(--ar)); }
  .ps-card { padding: 10px; }
  .ps-card figcaption { font-size: 12.5px; max-width: 300px; }
  .motion .logo-wall.is-strip .logo-tile { width: 120px; }
  .motion .about-photo { margin-top: -48px; }
  .reveal.from-left { transform: translateX(-40px); }
  .reveal.from-right { transform: translateX(40px); }
}
@media (prefers-reduced-motion: reduce) { .reveal.from-left, .reveal.from-right { transform: none; } }

/* ---------- v20: the hook is the opening screen ---------- */
.hook { min-height: calc(100vh - 64px); grid-template-rows: 1fr auto; }
.hook .content { align-self: center; padding-top: 28px; padding-bottom: 28px; }
.hook .mobile-title { display: none; }
.hook .hero-kicker { margin-bottom: 16px; }
.hook-cta { margin-top: 22px; }
.hook-marquee { grid-column: 1 / -1; }
.about-eyebrow { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px !important; }
.about-text .hero-tags { margin: 6px 0 22px; }
.cover-wrap ~ .section:nth-of-type(odd) { background: var(--blue); }
.cover-wrap ~ .section:nth-of-type(even) { background: var(--blue-dark); }
@media (max-width: 1100px) { .hook { min-height: calc(100vh - 100px); min-height: calc(100svh - 100px); } }
@media (max-width: 860px) {
  .hook .content { padding-top: 20px; padding-bottom: 20px; }
  .hook-title { font-size: 40px; margin-bottom: 14px; }
  .hook-card { padding: 14px 16px; }
  .hook-card h3 { font-size: 18px; margin-bottom: 6px; }
  .hook-card p { font-size: 14.5px; line-height: 1.45; }
  .hook-grid { gap: 12px; }
}
.about-text .about-eyebrow { color: var(--ink); font-size: 12px; }

/* v21 phone fix: grid columns must be allowed to shrink. Without this the long strips made the whole
   content column wider than the screen and the right part of the text was cut off. */
.section > .content { min-width: 0; }
@media (max-width: 860px) {
  .section { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
.pstrip, .logo-wall { max-width: 100%; }

/* ---------- v22: opening screen, hook screen, iPhone-safe motion ---------- */
.intro { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 60%, var(--blue-deep) 100%);
  min-height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; }
.intro-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 36px 32px 28px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.intro-text .hero-kicker { margin-bottom: 20px; }
.intro-title { font-family: var(--display); text-transform: uppercase; font-weight: 400; color: var(--white);
  font-size: clamp(40px, 6.2vw, 92px); line-height: .98; margin: 0 0 16px; }
.intro-title mark { background: var(--yellow); color: var(--ink); padding: 0 .12em; border-radius: 6px; }
.intro-sub { font-size: 20px; color: #e7e9fb; margin: 0; }
.intro-photo { position: relative; justify-self: center; }
.intro-photo img { width: min(300px, 62vw); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%;
  border-radius: 18px; position: relative; z-index: 2; border: 4px solid var(--yellow); box-shadow: 14px 14px 0 rgba(0,0,0,.25); }
.intro-brands { background: rgba(0,0,0,.14); border-top: 2px solid var(--yellow); padding: 14px 0 18px; }
.intro-brands-label { text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.intro-brands .logo-wall { max-width: 100%; }
.intro-brands .logo-tile { aspect-ratio: 3/2; }
html:not(.motion) .intro-brands .logo-wall { display: flex; overflow-x: auto; gap: 12px; padding: 0 16px; }
html:not(.motion) .intro-brands .logo-tile { flex: none; width: 130px; }
.about-wide { max-width: 760px; }
.about-grid { display: block; }
.hook { min-height: calc(100vh - 64px); }
/* opening animations: CSS keyframes (follow the page's own clock, reliable on iPhone) */
.motion .intro-anim { animation: introIn 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i, 0) * .22s); }
@keyframes introIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.motion .section:not(.hook), .motion .closing { position: relative; z-index: 2; }
.motion .cover-wrap .hook { z-index: 2; }

/* hook questions: fixed delay per card, started by .go on the grid */
.motion .seq-card, .gentle .seq-card { opacity: 0; animation-fill-mode: both; animation-play-state: paused; }
.motion .seq-card { --dx: -46px; animation-name: seqIn; animation-duration: 1s; animation-timing-function: cubic-bezier(.2,.8,.2,1); animation-delay: calc(.4s + var(--i, 0) * 1.1s); }
.motion .seq-card:nth-child(even) { --dx: 46px; }
.motion .seq-card p { opacity: 0; animation: seqP .8s ease both paused; animation-delay: calc(.9s + var(--i, 0) * 1.1s); }
.gentle .seq-card { animation-name: gentleIn; animation-duration: .9s; animation-timing-function: ease; animation-delay: calc(.3s + var(--i, 0) * .9s); }
.hook-grid.go .seq-card, .hook-grid.go .seq-card p { animation-play-state: running; }
@keyframes seqIn { from { opacity: 0; transform: translateX(var(--dx)) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes seqP { from { opacity: 0; } to { opacity: 1; } }
@keyframes gentleIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) { .intro { min-height: calc(100vh - 100px); min-height: calc(100svh - 100px); } }
@media (max-width: 860px) {
  .intro-main { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 20px 16px; text-align: left; }
  .intro-photo { order: -1; justify-self: start; margin-left: 4px; }
  .intro-photo img { width: 118px; box-shadow: 8px 8px 0 rgba(0,0,0,.25); border-width: 3px; }
  .intro-photo .burst-sm { inset: -18px; }
  .intro-title { font-size: clamp(34px, 10vw, 46px); }
  .intro-sub { font-size: 16px; }
  .intro-text .hero-kicker { font-size: 10.5px; padding: 5px 10px; margin-bottom: 12px; }
  .intro-brands .logo-tile { padding: 8px; }
}
.intro-title { line-height: 1.12; }
.intro-title mark { display: inline-block; line-height: 1.05; margin-top: 4px; }
@media (max-width: 860px) { .intro-main { align-content: center; flex: 1; } .intro-photo { margin-bottom: 4px; } }

.pstrip::-webkit-scrollbar, .logo-wall.is-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pstrip, .logo-wall.is-strip { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pstrip img, .logo-tile img { -webkit-user-drag: none; -webkit-touch-callout: none; }
@media (max-width: 560px) { .wc-stats { gap: 8px; flex-wrap: nowrap; } .wc-stat { flex: 1 1 0; min-width: 0; padding: 8px 8px; } .wc-num { font-size: 22px; white-space: nowrap; } .wc-lab { font-size: 10px; letter-spacing: .04em; } }
.wc-img.wc-img-sq { aspect-ratio: 1 / 1; } .wc-img.wc-img-sq img { object-position: center; }
.contact-icon svg { display: block; width: 24px; height: 24px; }

/* v28: Reduce Motion keeps a gentle, slow drift on the strips and the ticker; only pinning, slides and spins are calmed */
html.rm .cover-wrap .intro { position: relative !important; top: auto !important; transform: none !important; }
html.rm .cover-wrap .intro::after { display: none !important; }
html.rm .cover-wrap .hook { border-radius: 0; box-shadow: none; }
html.rm .seq-card { animation-name: gentleIn; animation-duration: .9s; animation-timing-function: ease; animation-delay: calc(.3s + var(--i, 0) * .9s); }
html.rm .intro-anim { animation-name: gentleIn; }
html.rm .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
#motionDebug { position: fixed; left: 8px; bottom: 8px; z-index: 9999; background: #000; color: #0f0; font: 12px/1.4 monospace; padding: 6px 8px; border-radius: 6px; max-width: 90vw; }
