/* fluid.css — research revision: editorial fluid (asymmetric grid, soft plates, air)
   Layered after style.css (+ carousel.css). Ink-on-paper — not wellness blobs/glass. */

:root {
  --fluid-radius: 16px;
  --fluid-radius-sm: 12px;
  --fluid-radius-img: 14px;
  --fluid-pill: 999px;
  /* Soft warm ink shadow ~6–10% opacity, large blur — no hard chrome */
  --fluid-shadow: 0 20px 50px rgba(38, 42, 38, 0.08), 0 4px 12px rgba(38, 42, 38, 0.04);
  --fluid-shadow-soft: 0 14px 36px rgba(38, 42, 38, 0.07);
  --fluid-line: color-mix(in srgb, var(--line) 55%, var(--paper));
  --fluid-line-fade: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--line) 70%, transparent) 18%,
    color-mix(in srgb, var(--line) 70%, transparent) 82%,
    transparent
  );
  --fluid-section-pad: clamp(3rem, 8vw, 7rem);
  --fluid-gap: clamp(1.15rem, 2.4vw, 2rem);
}

/* ---------- Atmosphere: ONE soft wash max; type stays dominant ---------- */
body {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image:
    radial-gradient(
      ellipse 65% 50% at 12% 8%,
      color-mix(in srgb, var(--wash) 45%, transparent) 0%,
      transparent 62%
    );
  background-attachment: fixed;
}

/* Single decorative wash blob — dialed way down vs first pass */
body::before {
  content: "";
  position: fixed;
  inset: -8% auto auto -6%;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border-radius: 58% 42% 48% 52% / 48% 55% 45% 52%;
  background: radial-gradient(
    circle at 40% 40%,
    color-mix(in srgb, var(--wash) 55%, transparent),
    transparent 70%
  );
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  filter: blur(4px);
}

body::after {
  content: none;
}

/* Soften chrome borders → lighter line */
header {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  padding-bottom: 30px;
}

footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  padding-top: 30px;
}

.client-line,
.offer,
.endorsement,
.wargaming,
.contribution,
.quote-block,
.gallery-heading,
.rex-note,
.trophy-story,
.launch-subhead,
.project-contact,
.result-pair,
.engagement {
  border-color: color-mix(in srgb, var(--line) 55%, transparent);
}

.work,
.about {
  border-top-color: color-mix(in srgb, var(--ink) 28%, transparent);
}

/* ---------- Section spacing: air as structure ---------- */
.home .work {
  border-top: 0;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: var(--fluid-section-pad);
  position: relative;
}

.home .work::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--fluid-line-fade);
  border: 0;
}

/* Headline closer to lead media than to previous section */
.home .work .section-heading {
  margin-bottom: clamp(0.85rem, 1.8vw, 1.35rem);
}

.home .about {
  border-top: 0;
  position: relative;
  padding-top: var(--fluid-section-pad);
  padding-bottom: var(--fluid-section-pad);
}

.home .about::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  background: var(--fluid-line-fade);
}

.home .expertise {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: var(--fluid-section-pad);
}

.expertise,
.work,
.together,
.about {
  padding-top: var(--fluid-section-pad);
  padding-bottom: var(--fluid-section-pad);
}

/* ---------- Hero: type dominance, less framed rectangle ---------- */
.home .hero {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4.5vw, 3rem);
  max-width: none;
}

.home .hero h1 {
  max-width: min(18ch, 100%);
  font-size: clamp(48px, 7vw, 92px);
}

.home .hero-bottom {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.home .hero-bottom > p {
  max-width: 38rem;
}

/* ---------- Buttons: pill CTAs OK; do NOT pill the whole layout ---------- */
.button {
  border-radius: var(--fluid-pill);
  box-shadow: none;
  padding: 13px 28px;
  transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.button:hover {
  box-shadow: var(--fluid-shadow-soft);
  transform: translateY(-1px);
}

/* Nav stays mostly text — light accent wash, not a heavy pill chrome */
.nav-contact {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-contact:hover {
  background: transparent;
  border-bottom-color: var(--accent);
}

/* Focus rings: visible accent/ink outlines */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.button:focus-visible {
  border-radius: var(--fluid-pill);
}

.nav-contact:focus-visible {
  border-radius: 4px;
}

/* ---------- Image / figure plates: 12–20px, soft shadow, no hard borders ---------- */
.project-picture,
.case-image,
.home .work-carousel .project-card .project-picture {
  border-radius: var(--fluid-radius-img);
  overflow: hidden;
  box-shadow: var(--fluid-shadow-soft);
  border: 0;
}

.project-picture img,
.case-image img,
.home .work-carousel .project-card .project-picture img {
  border-radius: inherit;
}

/* Labels stay small pills; text columns stay sharp (no blanket rounding) */
.image-label,
.visualization-label {
  border-radius: var(--fluid-pill);
  box-shadow: 0 2px 8px rgba(38, 42, 38, 0.06);
}

.takeaway {
  border-radius: var(--fluid-radius-sm);
}

/* ---------- Work index: asymmetric 12-col grid (desktop) ---------- */
@media (min-width: 901px) {
  .home .work-carousel .carousel-tools,
  .home .work-carousel .carousel-dots,
  .home .work-carousel .carousel-announcement {
    display: none;
  }

  .home .work-carousel .carousel-track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--fluid-gap);
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    align-items: start;
  }

  .home .work-carousel .project-card,
  .home .work-carousel #project-riot {
    display: flex;
    flex-direction: column;
    flex: unset;
    width: auto;
    min-width: 0;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: unset;
    scroll-snap-stop: unset;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Default supporting span ~5/12; featured and staggered overrides below */
  .home .work-carousel .project-card {
    grid-column: span 5;
  }

  /* Featured ~7/12 */
  .home .work-carousel .project-card.is-featured,
  .home .work-carousel #project-riot {
    grid-column: span 7;
  }

  /* Staggered dense pack: 7+5, 5+7, 8+4, 4+8… */
  .home .work-carousel #project-invincible {
    grid-column: span 5;
  }

  .home .work-carousel #project-2xko {
    grid-column: span 5;
  }

  .home .work-carousel #project-tft {
    grid-column: span 7;
  }

  .home .work-carousel #project-apex {
    grid-column: span 4;
  }

  .home .work-carousel #project-wot {
    grid-column: span 8;
  }

  .home .work-carousel #project-rga {
    grid-column: span 5;
  }

  .home .work-carousel #project-samsung {
    grid-column: span 7;
  }

  .home .work-carousel .project-card:hover {
    transform: translateY(-3px);
  }

  .home .work-carousel .project-card:hover .project-picture {
    box-shadow: var(--fluid-shadow);
  }

  /* Type-led copy under soft media plate — no card chrome */
  .home .work-carousel .featured-copy {
    padding: 14px 2px 0;
  }

  .home .work-carousel .read-link,
  .home .work-carousel #project-riot .read-link {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 0;
    padding: 14px 0 8px;
    margin-top: 14px;
    background: transparent;
    justify-content: space-between;
  }

  .home .work-carousel .read-link:hover,
  .home .work-carousel #project-riot .read-link:hover {
    background: transparent;
    color: var(--accent);
    border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent);
  }

  /* Featured type scale bump */
  .home .work-carousel .is-featured h3,
  .home .work-carousel #project-riot h3 {
    font-size: clamp(28px, 2.6vw, 40px);
    max-width: 22ch;
  }
}

/* Tablet / phone: keep horizontal carousel, asymmetric flex bases */
@media (max-width: 900px) {
  .home .work-carousel .carousel-track {
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .home .work-carousel .project-card,
  .home .work-carousel #project-riot {
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .home .work-carousel .project-card.is-featured,
  .home .work-carousel #project-riot {
    flex-basis: min(82%, 720px);
  }

  .home .work-carousel .project-card:not(.is-featured):not(#project-riot) {
    flex-basis: min(62%, 480px);
  }

  .home .work-carousel .featured-copy {
    padding: 14px 0 0;
  }

  .home .work-carousel .read-link,
  .home .work-carousel #project-riot .read-link {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 0;
    padding: 14px 0 8px;
    margin-top: 12px;
    background: transparent;
  }

  .home .work-carousel .read-link:hover {
    background: transparent;
    color: var(--accent);
  }
}

@media (max-width: 700px) {
  .home .work-carousel .project-card.is-featured,
  .home .work-carousel #project-riot,
  .home .work-carousel .project-card:not(.is-featured):not(#project-riot) {
    flex-basis: 88%;
  }
}

/* Carousel chrome — soft, not fully pilled layout language */
.carousel-buttons button {
  border-radius: var(--fluid-radius-sm);
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-buttons .carousel-play {
  border-radius: var(--fluid-pill);
}

.carousel-buttons button:hover {
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
}

.carousel-dots button[aria-current="true"]:after {
  border-radius: 999px;
}

/* ---------- Endorsement: editorial pull-quote, not UI card ---------- */
.endorsement,
.home .endorsement {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
  max-width: 42rem;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.endorsement::before,
.home .endorsement::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.home .endorsement blockquote {
  font: clamp(1.45rem, 2.4vw, 1.85rem) / 1.35 var(--serif);
  max-width: 38rem;
}

/* ---------- Contact: soft plate, dialed radius (not 34px) ---------- */
.contact,
.home .contact {
  border-radius: var(--fluid-radius);
  box-shadow: var(--fluid-shadow-soft);
  overflow: hidden;
  position: relative;
}

.contact::before,
.home .contact::before {
  content: none;
}

.contact > *,
.home .contact > * {
  position: relative;
  z-index: 1;
}

/* Arrangements / offers — light wash, modest radius; home offers stay type-led */
.arrangements article {
  border-top-width: 0;
  border-radius: var(--fluid-radius-sm);
  background: color-mix(in srgb, var(--wash) 45%, transparent);
  padding: 22px 22px 24px;
  box-shadow: none;
}

.arrangements article::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 14px;
}

.offer {
  border-top: 0;
  border-radius: 0;
  padding: 26px 0;
  background: transparent;
  margin-bottom: 0;
}

.home .offer {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  position: relative;
}

.home .offer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--fluid-line-fade);
}

/* ---------- Case pages ---------- */
.case-image {
  border-radius: var(--fluid-radius-img);
}

.takeaway {
  border-radius: var(--fluid-radius);
  box-shadow: var(--fluid-shadow-soft);
  background: color-mix(in srgb, var(--wash) 88%, var(--paper));
}

.case-proof,
.campaign-results,
.visible-results {
  border-left: 0;
  border-radius: 0 var(--fluid-radius-sm) var(--fluid-radius-sm) 0;
  padding: 18px 22px 18px 26px;
  background: color-mix(in srgb, var(--wash) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.result-pair {
  border: 0;
  border-radius: var(--fluid-radius);
  background: color-mix(in srgb, var(--wash) 45%, transparent);
  padding: 28px 30px;
  box-shadow: none;
}

.league-tabs button {
  border-radius: var(--fluid-pill);
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
}

.league-tabs button[aria-pressed="true"] {
  box-shadow: var(--fluid-shadow-soft);
}

.quote-block {
  border-top: 0;
  border-radius: 0;
  padding: 26px 0;
  background: transparent;
  position: relative;
}

.quote-block::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.project-contact {
  border-top: 0;
  position: relative;
  padding-top: 48px;
}

.project-contact::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fluid-line-fade);
}

.trophy-originals a,
.trophy-originals img {
  border-radius: var(--fluid-radius-sm);
}

.trophy-story figure img {
  border-radius: var(--fluid-radius-img);
}

/* Soften remaining hard section rules */
.home .recent-research,
.home .wargaming {
  border-top: 0;
  position: relative;
  padding-top: 28px;
  margin-top: 28px;
}

.home .recent-research::before,
.home .wargaming::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fluid-line-fade);
}

.home .recent-research {
  border-radius: var(--fluid-radius-sm);
  background: color-mix(in srgb, var(--wash) 40%, transparent);
  padding: 20px 22px;
  margin-top: 36px;
}

.engagement {
  border-top: 0;
  position: relative;
  padding-top: 32px;
  margin-top: 20px;
}

.engagement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fluid-line-fade);
}


.legs {
  border-radius: 10px;
}

/* Motion: transform + opacity only, 200–400ms; no gimmicky card rotations */
@media (prefers-reduced-motion: reduce) {
  .button,
  .home .work-carousel .project-card,
  .home .work-carousel #project-riot {
    transition: none !important;
    transform: none !important;
  }

  .button:hover,
  .home .work-carousel .project-card:hover,
  .home .work-carousel #project-riot:hover {
    transform: none !important;
  }

  body {
    background-attachment: scroll;
  }
}

@media (max-width: 1000px) {
  .endorsement,
  .home .endorsement {
    padding: 1.5rem 0;
  }

  .contact,
  .home .contact {
    border-radius: var(--fluid-radius);
  }
}

@media (max-width: 700px) {
  :root {
    --fluid-radius: 14px;
    --fluid-radius-sm: 12px;
    --fluid-radius-img: 12px;
  }

  body::before {
    opacity: 0.14;
    filter: blur(5px);
  }

  .home .work-carousel .featured-copy {
    padding: 12px 0 0;
  }

  .endorsement,
  .home .endorsement {
    padding: 1.25rem 0;
  }

  .contact,
  .home .contact {
    border-radius: 14px;
  }

  .arrangements article {
    padding: 18px;
  }

  .result-pair {
    padding: 20px;
  }

  .home .recent-research {
    padding: 16px;
  }
}

/* Voices — restored testimonials, editorial pull-quotes (not buried chrome cards) */
.voices {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}
.voices::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  background: var(--fluid-line-fade, linear-gradient(90deg, transparent, rgba(207,206,193,.7) 18%, rgba(207,206,193,.7) 82%, transparent));
}
.voices-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.voices-heading .eyebrow {
  color: var(--accent);
  margin-bottom: 12px;
}
.voices-heading h2 {
  font: 500 clamp(1.5rem, 2.4vw, 1.85rem)/1.2 var(--sans);
  letter-spacing: -0.03em;
}
.voices-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.voice {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.voice:first-child {
  grid-column: 1 / -1;
  max-width: 920px;
}
.voice blockquote {
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--accent);
  font: clamp(1.35rem, 2.4vw, 1.85rem)/1.35 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.voice:not(:first-child) blockquote {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}
.voice figcaption {
  margin-top: 14px;
  padding-left: 1.1rem;
  font: 13px/1.5 var(--sans);
  color: var(--muted);
}
@media (max-width: 700px) {
  .voices-grid {
    grid-template-columns: 1fr;
  }
  .voice:first-child {
    grid-column: auto;
  }
  .voice blockquote {
    font-size: 1.25rem;
  }
}

/* Hire-me hierarchy pass */
.home .hero-proof {
  margin-top: 14px;
  max-width: 640px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.home .hero-action {
  flex-wrap: wrap;
}
.voice-inline {
  margin-top: 18px;
  max-width: 520px;
  font: 18px/1.35 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.voice-inline span {
  display: block;
  margin-top: 8px;
  font: 12px/1.4 var(--sans);
  color: var(--muted);
}

/* Dual featured + supporting strip */
@media (min-width: 901px) {
  .home .work-carousel .carousel-track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
  }
  .home .work-carousel .project-card.is-featured {
    grid-column: span 6;
  }
  .home .work-carousel .project-card.is-support {
    grid-column: span 3;
  }
  .home .work-carousel .project-card.is-support .project-picture img {
    aspect-ratio: 4/3;
  }
  .home .work-carousel .project-card.is-support h3 {
    font: 500 18px/1.25 var(--sans);
    letter-spacing: -0.02em;
  }
  .home .work-carousel .project-card.is-support p {
    font-size: 14px;
  }
  .home .work-carousel .project-card.is-support .read-link {
    font-size: 13px;
  }
}

.method {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.method .section-heading .eyebrow {
  color: var(--accent);
  margin-bottom: 12px;
}
.method .section-heading h2 {
  font: 500 clamp(1.6rem, 3vw, 2rem)/1.15 var(--sans);
  letter-spacing: -0.03em;
}
.method .section-heading > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
.method-grid article {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}
.method-grid h3 {
  font: 500 18px/1.3 var(--sans);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.method-grid p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
@media (max-width: 700px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
  .home .work-carousel .project-card.is-featured,
  .home .work-carousel .project-card.is-support {
    grid-column: auto;
  }
}

/* About — single column, human, no sidebar contest */
.home .about {
  display: block;
  max-width: 720px;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  gap: 0;
  grid-template-columns: none;
}
.home .about .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.home .about-copy .lead {
  font: clamp(1.5rem, 2.6vw, 1.85rem)/1.35 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.home .about-copy p {
  max-width: 38rem;
}
.home .about-copy .name-note {
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--muted);
}
.home .about-copy > a {
  display: inline-block;
  margin-top: 1.25rem;
}
.home .about .personal-note {
  display: none;
}

/* Hero dancer — keep moving (sprite is 1980×220 = 9 frames @ 220px) */
.home .hero {
  position: relative;
  padding-right: 175px;
}
.hero-dancer {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}
.hero-dancer span {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 0;
  background: url("assets/legs-sprite.png") 0 0 / 1350px 150px no-repeat;
  animation: hero-legs 1.35s steps(9) infinite;
}
@keyframes hero-legs {
  to { background-position: -1350px 0; }
}
/* Carousel pause must NOT freeze the legs */
.motion-paused .hero-dancer span {
  animation-play-state: running;
}
@media (max-width: 1000px) {
  .home .hero { padding-right: 120px; }
  .hero-dancer, .hero-dancer span {
    width: 110px;
    height: 110px;
  }
  .hero-dancer { bottom: 55px; }
  .hero-dancer span {
    background-size: 990px 110px;
    animation-name: hero-legs-medium;
  }
  @keyframes hero-legs-medium {
    to { background-position: -990px 0; }
  }
}
@media (max-width: 700px) {
  .home .hero { padding-right: 0; }
  .hero-dancer, .hero-dancer span {
    width: 72px;
    height: 72px;
  }
  .hero-dancer { bottom: 20px; right: 0; }
  .hero-dancer span {
    background-size: 648px 72px;
    animation-name: hero-legs-phone;
  }
  @keyframes hero-legs-phone {
    to { background-position: -648px 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dancer span {
    animation: none !important;
  }
}

