/* ==========================================================================
   VoteShift — services & portfolio microsite
   All brand tokens live in :root. Swap the final brand kit here.
   ========================================================================== */

:root {
  /* Color */
  --navy: #122854;
  --navy-deep: #0d1f42;
  --teal: #3fc5e1;
  --off-white: #fafafb;
  --white: #ffffff;
  --surface: #f2f6ff;
  --ink: #1a1a2e;
  --ink-2: #475569;
  --on-navy: #eef4ff;
  --on-navy-2: #a8bcd9;

  /* Type — Adobe Fonts kit drf2vxd (Halyard Display, Supria Sans) */
  --display: "halyard-display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "supria-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cond: "supria-sans-condensed", "Arial Narrow", sans-serif;

  /* Rhythm */
  --space: clamp(4rem, 9vw, 8.5rem);      /* vertical section padding */
  --gutter: clamp(1.25rem, 4vw, 3rem);    /* horizontal page padding */
  --max: 76rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;
}

/* ------------------------------ Base ----------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--teal);
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--teal);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  scroll-margin-top: 5rem;
}

/* Hand-drawn squiggle rule used as a section divider */
.rule {
  width: 84px;
  height: 12px;
  border: 0;
  margin: 0 0 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 12'%3E%3Cpath d='M3 7C11 3 17 10 25 6.5 33 3 39 10 47 6.5 55 3 61 10 69 6.5 75 4 78 6 81 5' fill='none' stroke='%233FC5E1' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.rule--center {
  margin-inline: auto;
}

.section {
  padding-block: var(--space);
}

.section--navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--surface {
  background: var(--surface);
}

/* Graph-paper texture, straight from the reel */
#what-we-do,
.section--surface,
.contact {
  background-image:
    linear-gradient(rgba(18, 40, 84, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 40, 84, 0.05) 1px, transparent 1px);
  background-size: 27px 27px;
}

.kicker {
  font-family: var(--cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.section:not(.section--navy) .kicker {
  color: var(--navy);
}

.section-title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  max-width: 20ch;
}

.section-intro {
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section--navy .section-intro {
  color: var(--on-navy-2);
}

/* Hand-drawn wavy edge where a section meets the one above it */
.wave-top {
  position: relative;
}

.wave-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 13C60 4 120 23 190 15 260 7 320 21 390 13 460 5 520 22 600 14 680 5 740 21 810 13 880 5 950 22 1020 14 1090 7 1150 19 1200 12L1200 0 0 0Z' fill='%23FAFAFB'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.wave-top--navy::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0 13C60 4 120 23 190 15 260 7 320 21 390 13 460 5 520 22 600 14 680 5 740 21 810 13 880 5 950 22 1020 14 1090 7 1150 19 1200 12L1200 0 0 0Z' fill='%230D1F42'/%3E%3C/svg%3E");
}

/* ------------------------------ Buttons -------------------------------- */

.btn {
  display: inline-block;
  background: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9em 1.9em;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--teal);
  color: var(--navy);
}

.btn--teal:hover {
  background: var(--white);
}

.btn--ghost {
  border-color: rgba(250, 250, 251, 0.5);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

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

.btn--navy:hover {
  background: var(--navy-deep);
}

/* -------------------------------- Nav ----------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 40, 84, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 197, 225, 0.18);
}

.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a:not(.btn) {
  color: var(--on-navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  padding-block: 0.3rem;
}

.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav__links a:not(.btn):hover::after,
.nav__links a:not(.btn):focus-visible::after,
.nav__links a.is-active:not(.btn)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__links .btn {
  padding: 0.6em 1.3em;
  font-size: 0.9rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 820px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-deep);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }

  .nav__links .btn {
    margin-top: 0.75rem;
  }

  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* -------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
}

.btn--play::before {
  content: "";
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.55em;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}

.hero__orb {
  position: absolute;
  z-index: -1;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 197, 225, 0.16) 0%, rgba(63, 197, 225, 0) 65%);
  top: -12vmax;
  right: -14vmax;
  animation: orb-drift 26s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-14vmax, 18vmax) scale(1.25); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  padding-block: clamp(4rem, 10vh, 8rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

/* The reel panel, framed like a piece of work */
.hero__media {
  position: relative;
  transform: rotate(1.2deg);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.9s forwards;
}

.hero__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(63, 197, 225, 0.35);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.65);
}

.hero__reel-btn {
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  transform: translateX(-50%) rotate(-1.2deg);
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(13, 31, 66, 0.7);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.8vw, 4.9rem);
  font-weight: 700;
  color: var(--white);
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  /* room for the scribble below the descenders inside the reveal mask */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1s var(--ease-out) forwards;
}

/* Underlined word shrinks to its text so the scribble hugs it */
.hero h1 .line > span.u {
  display: inline-block;
}

.hero h1 .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.3s; }

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: var(--on-navy-2);
  max-width: 46ch;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.55s forwards;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.75s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--on-navy-2);
  font-family: var(--cond);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 820px), (max-height: 760px) {
  .hero__scroll-cue {
    display: none;
  }
}

.hero__cue-arrow {
  width: 18px;
  height: 34px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue-bob 1.9s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ------------------------ Scribble underlines --------------------------- */

.u,
.contact h2 .flip {
  position: relative;
  display: inline-block;
}

.scribble-under {
  position: absolute;
  left: -1%;
  bottom: -0.08em;
  width: 102%;
  height: 0.22em;
  fill: none;
  stroke: var(--teal);
  stroke-width: 5px;
  stroke-linecap: round;
  overflow: visible;
}

.scribble-under path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scribble-under path:nth-of-type(2) {
  stroke-width: 3.5px;
  opacity: 0.6;
}

/* hero variant sits behind the letters, below the descenders */
.scribble-under--hero {
  bottom: -0.2em;
  height: 0.26em;
  z-index: -1;
}

/* hero variant draws in on page load */
.scribble-under--hero path {
  animation: scribble-draw 0.9s var(--ease-out) 1.15s forwards;
}

.scribble-under--hero path:nth-of-type(2) {
  animation-delay: 1.45s;
}

@keyframes scribble-draw {
  to { stroke-dashoffset: 0; }
}

/* -------------------------- Scroll reveals ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------- Services --------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.service {
  background: var(--surface);
  border: 1px solid rgba(18, 40, 84, 0.08);
  border-radius: 8px;
  padding: 1.9rem 1.7rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--teal);
  transition: width 0.4s var(--ease-out);
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px -18px rgba(18, 40, 84, 0.35);
}

.service:hover::before {
  width: 100%;
}

.service h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service p {
  color: var(--ink-2);
  font-size: 0.98rem;
  margin: 0;
}

.service__doodle {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  color: var(--navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service__doodle .acc {
  stroke: var(--teal);
}

/* Doodles sketch themselves in as cards reveal */
.service__doodle path,
.service__doodle circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

.service.is-visible .service__doodle path,
.service.is-visible .service__doodle circle {
  stroke-dashoffset: 0;
}

.service.is-visible .service__doodle path:nth-of-type(2),
.service.is-visible .service__doodle circle:nth-of-type(2) { transition-delay: 0.2s; }
.service.is-visible .service__doodle path:nth-of-type(3),
.service.is-visible .service__doodle circle:nth-of-type(3) { transition-delay: 0.35s; }
.service.is-visible .service__doodle path:nth-of-type(4) { transition-delay: 0.5s; }
.service.is-visible .service__doodle path:nth-of-type(5) { transition-delay: 0.62s; }
.service.is-visible .service__doodle path:nth-of-type(6) { transition-delay: 0.74s; }

.service:hover .service__doodle {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  25% { transform: rotate(-4deg); }
  70% { transform: rotate(3deg); }
}

/* ------------------------------ Stats band ------------------------------ */

.awards-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.awards-row img {
  height: clamp(58px, 8vw, 92px);
  width: auto;
  opacity: 0.95;
}

.awards-row--big {
  margin-bottom: 0;
  margin-top: 1rem;
  gap: clamp(1.5rem, 3.5vw, 3.4rem);
  justify-content: space-between;
}

.awards-row--big img {
  height: clamp(72px, 9vw, 114px);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2.5rem 2rem;
  text-align: left;
}

.stat__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.2rem, 2rem + 6vw, 6rem);
  line-height: 1;
  color: var(--teal);
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat__value {
  position: relative;
  display: inline-block;
  padding-inline: 0.12em;
}

.stat__ring {
  position: absolute;
  inset: -14% -9%;
  width: 118%;
  height: 128%;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.55;
  overflow: visible;
}

.stat__ring path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s ease 0.5s;
}

.stat.is-visible .stat__ring path {
  stroke-dashoffset: 0;
}

.stat__label {
  display: block;
  margin-top: 0.8rem;
  color: var(--on-navy-2);
  max-width: 22ch;
  font-size: 0.98rem;
}

/* ------------------------------ Work grid ------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-pill {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid rgba(18, 40, 84, 0.3);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.filter-pill:hover {
  border-color: var(--navy);
}

.filter-pill[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  grid-auto-flow: dense;
  gap: 1.75rem;
  align-items: start;
}

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  animation: card-in 0.5s var(--ease-out) both;
}

.work-card--featured {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .work-card--featured {
    grid-column: span 1;
  }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.work-card:hover .work-card__media,
.work-card:focus-visible .work-card__media {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -20px rgba(18, 40, 84, 0.5);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card__media img,
.work-card:focus-visible .work-card__media img {
  transform: scale(1.045);
}

/* Teal overlay sliding up on hover */
.work-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(63, 197, 225, 0.94);
  color: var(--navy);
  padding: 0.9rem 1.1rem;
  transform: translateY(103%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.25s;
}

.work-card:hover .work-card__overlay,
.work-card:focus-visible .work-card__overlay {
  transform: translateY(0);
  opacity: 1;
}

.work-card__overlay strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.work-card__overlay span {
  font-family: var(--cond);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-card__body {
  padding-top: 0.9rem;
}

.work-card__client {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  display: block;
  line-height: 1.25;
}

.work-card__desc {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin: 0.3rem 0 0;
}

.work-card__tag {
  display: inline-block;
  font-family: var(--cond);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(18, 40, 84, 0.35);
  border-radius: 999px;
  padding: 0.18em 0.75em;
  margin-top: 0.6rem;
}

.work-card__metric {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.32em 0.8em;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(13, 31, 66, 0.35);
}

/* Aspect ratios per category */
.work-card--mailers .work-card__media   { aspect-ratio: auto; }
.work-card--mailers .work-card__media img { height: auto; }
.work-card--websites .work-card__media  { aspect-ratio: 16 / 10; }
.work-card--emails .work-card__media    { aspect-ratio: 3 / 4; }
.work-card--dtd-ads .work-card__media,
.work-card--persuasion-ads .work-card__media { aspect-ratio: 1 / 1; }
.work-card--organic-social .work-card__media { aspect-ratio: 4 / 5; }
.work-card--video .work-card__media     { aspect-ratio: 16 / 9; }

/* Mailers: physical print treatment */
.work-card--mailers .work-card__media {
  transform: rotate(-1.4deg);
  box-shadow: 0 12px 24px -12px rgba(18, 40, 84, 0.45);
  border-radius: 3px;
}

.work-card--mailers:nth-child(even) .work-card__media {
  transform: rotate(1.2deg);
}

.work-card--mailers:hover .work-card__media,
.work-card--mailers:focus-visible .work-card__media {
  transform: rotate(0deg) translateY(-6px);
}

/* Websites: browser chrome */
.work-card--websites .work-card__media {
  padding-top: 26px;
}

.work-card--websites .work-card__media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(63, 197, 225, 0.25);
}

.work-card--websites .work-card__media::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 14px 0 0 rgba(63, 197, 225, 0.5), 28px 0 0 rgba(63, 197, 225, 0.25);
}

/* Emails: slim frame, screenshot scrolls on hover */
.work-card--emails .work-card__media {
  border: 6px solid var(--navy-deep);
  border-radius: 16px;
}

.work-card--emails .work-card__media img {
  height: auto;
  min-height: 100%;
}

.work-card--emails:hover .work-card__media img,
.work-card--emails:focus-visible .work-card__media img {
  transform: translateY(-22%);
  transition: transform 2.2s ease-in-out;
}

/* Organic social: phone frame */
.work-card--organic-social .work-card__media {
  border: 8px solid var(--navy-deep);
  border-radius: 26px;
}

.work-card--organic-social .work-card__media::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  background: var(--navy-deep);
  border-radius: 999px;
  z-index: 2;
}

/* Graphics keep their natural aspect, uncropped */
.work-card--graphics .work-card__media {
  aspect-ratio: auto;
}

.work-card--graphics .work-card__media img {
  height: auto;
}

/* Video items show the full 16:9 poster, whatever their category frame */
.work-card--yt .work-card__media {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  padding-top: 0;
}

.work-card--yt .work-card__media::before,
.work-card--yt .work-card__media::after {
  display: none;
}

.work-card--yt .work-card__media img {
  height: 100%;
  object-position: center;
}

/* Vertical Shorts render as 9:16 tiles with the portrait poster */
.work-card--short .work-card__media {
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 12px;
  padding-top: 0;
}

.work-card--short .work-card__media::before,
.work-card--short .work-card__media::after {
  display: none;
}

/* Play badge (video + social video) */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(18, 40, 84, 0.72);
  border: 2px solid var(--teal);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), background-color 0.35s;
  z-index: 2;
}

.play-badge::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--teal);
  margin-left: 4px;
}

.work-card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--navy);
}

/* ----------------------------- Case studies ----------------------------- */

.case-list {
  display: grid;
  gap: 2.5rem;
}

.case-card[hidden] {
  display: none;
}

.case-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .case-card {
    grid-template-columns: 1fr;
  }
}

.case-card__media {
  position: relative;
  min-height: 280px;
}

.case-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__media--placeholder {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: grid;
  place-items: center;
}

.case-card__media--placeholder span {
  font-family: var(--display);
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.85;
}

.case-card__body {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.case-card__body h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  max-width: 18ch;
}

.case-card__meta {
  font-family: var(--cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.case-card dl {
  margin: 1.4rem 0;
  display: grid;
  gap: 0.9rem;
}

.case-card dt {
  font-family: var(--cond);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card dd {
  margin: 0.15rem 0 0;
  color: var(--on-navy-2);
  font-size: 0.97rem;
}

.case-card__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.case-card__stats .stat__value {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
}

.case-card__stats .stat__label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.case-card__link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.case-card__link:hover {
  color: var(--white);
  border-color: var(--white);
}

.badge-placeholder {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  border-radius: 3px;
  padding: 0.25em 0.7em;
  margin-left: 0.6em;
  vertical-align: middle;
}

/* ------------------------------- Clients -------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5.5rem);
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  opacity: 0.92;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.client-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem 2rem;
  margin-top: 3.5rem;
}

.client-wall h3 {
  font-size: 0.84rem;
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid rgba(63, 197, 225, 0.3);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}

.client-wall ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-wall li {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--on-navy);
  padding-block: 0.32rem;
}

.client-wall li span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--on-navy-2);
}

/* ------------------------------ Manifesto ------------------------------- */

.manifesto {
  text-align: center;
}

.manifesto p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.3rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 28ch;
  margin-inline: auto;
}

.manifesto em {
  color: var(--teal);
  font-style: italic;
  text-decoration: underline wavy rgba(63, 197, 225, 0.65);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* ------------------------------- Contact -------------------------------- */

.contact {
  text-align: center;
}

.contact h2 {
  font-size: clamp(3rem, 2rem + 7vw, 7rem);
  font-weight: 700;
}

.contact h2 .flip {
  color: var(--navy);
}

.contact h2 .flip .scribble-under path {
  transition: stroke-dashoffset 1s var(--ease-out) 0.35s;
}

.contact h2 .flip .scribble-under path:nth-of-type(2) {
  transition-delay: 0.7s;
}

.contact h2 .flip.is-visible .scribble-under path {
  stroke-dashoffset: 0;
}

.contact p {
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 auto 2.25rem;
}

/* -------------------------------- Footer -------------------------------- */

.footer {
  background: var(--navy-deep);
  color: var(--on-navy-2);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer__brand img {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer a {
  color: var(--on-navy);
  text-decoration: none;
}

.footer a:hover {
  color: var(--teal);
}

.footer address {
  font-style: normal;
  line-height: 1.9;
}

.footer__social {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(63, 197, 225, 0.15);
  font-size: 0.82rem;
}

/* ------------------------------- Lightbox ------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 31, 66, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  max-width: min(64rem, 100%);
  max-height: 100%;
  overflow: auto;
  border-radius: 8px;
}

.lightbox__content img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

/* Multi-page pieces stack their pages in one scrollable view */
.lightbox__content img.lightbox__page {
  max-height: none;
  width: 100%;
}

.lightbox__content img.lightbox__page + img.lightbox__page {
  margin-top: 14px;
}

.lightbox__content:has(.lightbox__page) {
  max-height: 84vh;
}

.lightbox__content iframe {
  display: block;
  width: min(64rem, 90vw);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.lightbox__content iframe.lightbox__iframe--portrait {
  width: min(26rem, 92vw);
  aspect-ratio: 9 / 16;
  max-height: 84vh;
}

.lightbox__caption {
  color: var(--on-navy-2);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

.lightbox__caption strong {
  color: var(--white);
}

.lightbox__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.lightbox__close:hover {
  background: var(--teal);
  color: var(--navy);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: rgba(18, 40, 84, 0.6);
  color: var(--teal);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.lightbox__nav:hover {
  background: var(--teal);
  color: var(--navy);
}

.lightbox__nav--prev { left: 1.1rem; }
.lightbox__nav--next { right: 1.1rem; }

@media (max-width: 640px) {
  .lightbox__nav--prev { left: 0.4rem; }
  .lightbox__nav--next { right: 0.4rem; }
}

.lightbox__flip {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
}

body.lightbox-open {
  overflow: hidden;
}

/* ----------------------------- Back to top ------------------------------ */

.to-top[hidden] {
  display: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -8px rgba(13, 31, 66, 0.5);
  transition: transform 0.25s var(--ease-out), background-color 0.25s;
}

.to-top:hover {
  transform: translateY(-3px);
  background: var(--navy-deep);
}

.to-top svg {
  width: 14px;
  height: 26px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}

/* --------------------------- Reduced motion ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero h1 .line > span {
    transform: none;
    animation: none;
  }

  .hero__sub,
  .hero__ctas {
    opacity: 1;
    animation: none;
  }

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

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .service__doodle path,
  .service__doodle circle,
  .scribble-under path,
  .stat__ring path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero__media {
    opacity: 1;
    animation: none;
  }
}
