/* Portfolio refinements: readable labels, quieter motion and smaller work cards. */
body .eyebrow,
body .hero-topline > .eyebrow,
body .project-meta .eyebrow,
body .work-heading .eyebrow,
body .thinking-top .eyebrow,
body .case-title-row .eyebrow,
body .case-spec .eyebrow,
body .case-copy > .eyebrow,
body .next-project > .eyebrow,
body .section-title > .eyebrow {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
}
body .hero-topline > .eyebrow:first-child { font-size: 14px; }
body .case-copy > .eyebrow,
body .ffgi-transform-head .eyebrow,
body .ffgi-logo-copy .eyebrow,
body .ffgi-campaign-head > .eyebrow,
body .presale-copy .eyebrow,
body .ffgi-ai .eyebrow { font-size: 16px; }

.home .project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px 26px;
  align-items: start;
}
.home .project:nth-child(n) {
  display: block;
  grid-column: span 2;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.home .project:nth-child(4) { grid-column: 2 / span 2; }
.home .project:nth-child(5) { grid-column: 4 / span 2; }
.home .project .project-art { margin: 0; rotate: 0deg; }
.home .project .project-art > img { aspect-ratio: 1.5; }
.home .project .project-art:hover { transform: translateY(-3px); }
.home .project .project-art:hover > img { transform: scale(1.025); }
.home .project .project-meta { display: block; margin-top: 18px; }
.home .project .project-service { display: block; margin-top: 6px; line-height: 1.55; }
.home .project h3 { font-size: clamp(27px, 2.3vw, 37px); margin-top: 15px; }
.home .project > p { font-size: 16px; line-height: 1.65; margin-top: 10px; }

.hero-scene .piece-vee { width: 60%; height: 55%; left: -3%; top: 0; z-index: 2; }
.hero-scene .piece-kronos { width: 40%; height: 58%; right: -1%; top: 23%; bottom: auto; z-index: 2; }
.hero-scene .piece-felix { width: 40%; height: 57%; left: 17%; bottom: 3%; z-index: 3; --depth: .55; }
.hero-scene .piece-felix img { animation-delay: -2s; }
.hero-scene .scene-label { bottom: -18px; font-size: 12px; }
.scene-piece img { animation-name: gentle-float; animation-duration: 7s; }
@keyframes gentle-float {
  from { transform: translateY(-5px) rotate(-.35deg); }
  to { transform: translateY(5px) rotate(.35deg); }
}
.case .gallery .artwork { --art-angle: 0deg; }
.case .gallery-editorial .artwork:first-of-type { --art-angle: -.35deg; }
.case .gallery-editorial .artwork:nth-of-type(2) { --art-angle: .35deg; }
.case .artwork-link:hover .artwork-surface,
.case .artwork-link:focus-visible .artwork-surface {
  --lift: -3px;
  box-shadow: 0 25px 55px #0006;
}
footer .footer-title { font-size: clamp(26px, 4vw, 62px); line-height: 1.08; margin: 28px 0 40px; }

/* Both layers have the same opaque backdrop. Only the crop moves. */
.comparison-control { max-width: 900px; margin: 0 auto; }
.compare-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  font: 13px/1.5 var(--mono);
  color: #e9dff4;
}
.compare-labels span:last-child { color: #ff9974; text-align: right; }
.comparison-reveal {
  --comparison-surface: radial-gradient(ellipse at 50% 65%, #35203d, #161020 72%);
  height: clamp(330px, 43vw, 530px);
  max-width: none;
  background: var(--comparison-surface);
  border: 1px solid #ff80532e;
  border-radius: 18px;
  box-shadow: 0 24px 65px #0006;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.comparison-reveal .compare-layer { background: var(--comparison-surface); opacity: 1; }
.comparison-reveal .compare-after {
  clip-path: inset(0 0 0 var(--reveal));
  -webkit-mask: none;
  mask: none;
  transition: none;
}
.comparison-reveal .compare-layer .comparison-art {
  position: absolute;
  top: var(--art-top);
  left: 50%;
  right: auto;
  bottom: auto;
  height: var(--art-height);
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: translateX(calc(-1 * var(--art-anchor)));
  filter: drop-shadow(0 16px 20px #0005);
  pointer-events: none;
}
.compare-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 1px;
  background: #ff9e7075;
  box-shadow: 0 0 6px 1px #ff7e4160, 0 0 17px 3px #ff6d3328;
  pointer-events: none;
}
.compare-edge span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffa46a80;
  border-radius: 50%;
  background: #21151ff2;
  box-shadow: 0 0 20px #ff72333a;
  color: #ffc599;
  font: 21px/1 var(--body);
  letter-spacing: 3px;
}
.compare-range-row { display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.compare-range-row label { flex-shrink: 0; font: 14px/1.5 var(--mono); color: #c8bccb; }
.compare-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  accent-color: #ff8757;
}
.compare-range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: #785448; }
.compare-range::-moz-range-track { height: 3px; border-radius: 3px; background: #785448; }
.compare-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  margin-top: -7.5px;
  border: 1px solid #ffc0a0;
  border-radius: 50%;
  background: #ff8757;
  box-shadow: 0 0 13px #ff723359;
}
.compare-range::-moz-range-thumb { height: 18px; width: 18px; border: 1px solid #ffc0a0; border-radius: 50%; background: #ff8757; box-shadow: 0 0 13px #ff723359; }
.compare-range:focus-visible { outline: 2px solid #ff9974; outline-offset: 3px; border-radius: 4px; }

.ffgi-logo-shift { grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: center; }
.identity-stack { min-width: 0; }
.identity-stack article { position: relative; }
.identity-stack .eyebrow { display: block; color: #a99aaf; margin-bottom: 24px; }
.identity-old { padding-bottom: 35px; }
.identity-old::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, #ff8a5344, transparent); }
.identity-old img { width: 145px; height: 145px; object-fit: contain; }
.identity-new { padding-top: 35px; }
.identity-new img { width: 100%; max-width: 720px; height: auto; }
.identity-new .eyebrow { color: #ff9974; }

.ffgi-campaign { padding: 0; overflow: visible; }
.campaign-pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 93% 14%, #61224355, transparent 42%), #0e0c12;
}
.campaign-pin .ffgi-campaign-head { width: 90%; padding-top: 34px; margin-bottom: 20px; }
.campaign-pin .ffgi-campaign-head h2 { font-size: clamp(36px, 4.25vw, 66px); }
.campaign-pin .ffgi-campaign-head p { font-size: 16px; line-height: 1.55; }
.campaign-track { will-change: transform; }
.campaign-track figure { width: min(32vw, 430px); flex: 0 0 auto; }
.campaign-track figure:nth-child(2n) { transform: translateY(8px); }
.campaign-track figure:hover { transform: translateY(-2px); }
.campaign-track figure:nth-child(2n):hover { transform: translateY(6px); }
.campaign-rail { overflow: hidden; padding-left: 5vw; padding-right: 5vw; }
.campaign-rail:focus-visible { outline: 2px solid #ff9974; outline-offset: -3px; }
.campaign-felix { height: 190px; width: 170px; margin-top: -18px; }
.rail-note { margin-top: 2px; padding-bottom: 17px; }
.sequence-progress { position: absolute; left: 5%; right: 5%; bottom: 15px; height: 2px; overflow: hidden; background: #4a2733; }
.sequence-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #ff533b, #ffb16f); transform: scaleX(var(--sequence-progress, 0)); transform-origin: left; }
.character-float,
.ffgi-symbol-float,
.next-character { animation: gentle-float 7s ease-in-out infinite alternate paused; }
.ambient-active .character-float,
.ambient-active .ffgi-symbol-float,
.ambient-active .next-character { animation-play-state: running; }
.ffgi-symbol-float { max-width: 135px; max-height: 170px; justify-self: center; animation-delay: -3s; }
.ffgi-ai > div:nth-child(2) { display: block; }
.scroll-page { display: block; width: 100%; max-width: none; padding: 0; overflow: visible; }
.presale-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 73% 35%, #48245a59, transparent 56%), #14101a;
}
.presale-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(520px, 1.3fr); gap: 7%; align-items: center; width: 100%; }
.scroll-page .presale-copy { position: static; }
.scroll-page .presale-screen { display: flex; flex-direction: column; width: 100%; max-width: 850px; aspect-ratio: 16 / 9; justify-self: center; transform: none; border-radius: 14px; }
.presale-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #171221; }
.presale-viewport img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; will-change: transform; }
.presale-progress { left: max(5%, calc((100% - 1440px) / 2)); right: max(5%, calc((100% - 1440px) / 2)); }
.presale-copy h2 { font-size: clamp(34px, 4vw, 60px); }
.ffgi-explainer { padding-top: 110px; padding-bottom: 115px; border-top: 1px solid #ffffff16; background: radial-gradient(ellipse at 12% 30%, #7e405620, transparent 52%); }
.ffgi-explainer-heading { display: grid; grid-template-columns: .75fr 1.5fr; gap: 7%; align-items: start; }
.ffgi-explainer-heading > .eyebrow { color: #ff8e79; }
.ffgi-explainer-heading h2 { font-size: clamp(40px, 4.7vw, 72px); line-height: 1.04; }
.ffgi-explainer-heading p { margin-top: 20px; max-width: 740px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.ffgi-explainer-art { max-width: 1280px; margin: 52px auto 0; }
.ffgi-explainer-art .artwork-surface { display: block; overflow: hidden; background: #e9e0ed; border: 1px solid #ffffff25; box-shadow: 0 30px 75px #0004; }
.ffgi-explainer-art img { display: block; width: 100%; height: auto; }
.ffgi-explainer-art figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 15px; color: var(--muted); font: 11px/1.6 var(--mono); }
.ffgi-explainer-art figcaption a { color: #ffd0c4; border-bottom: 1px solid #ffd0c480; }
.ffgi-explainer-art figcaption > a { white-space: nowrap; }
.theme-picnic .picnic-landing .presale-pin { background: radial-gradient(ellipse at 78% 40%, #a9346150, transparent 55%), #1c1019; }
.picnic-landing .presale-copy > .eyebrow { color: #ff9db4; }
.picnic-landing .presale-copy p { max-width: 460px; color: #c9bec5; }
.picnic-landing .presale-screen { border-color: #f86c9450; background: #fff; box-shadow: 0 35px 90px #0009, 0 0 55px #f86c9421; }
.picnic-landing .screen-browser { background: #321c2a; }
.picnic-landing .screen-browser i { background: #ff527d; }
.picnic-landing .screen-browser i:nth-child(2) { background: #ffb4c7; }
.picnic-landing .screen-browser i:nth-child(3) { background: #fae5ea; }
.picnic-landing .presale-viewport { background: #fff; }
.picnic-landing .presale-progress i { background: linear-gradient(90deg, #ff668b, #ffc4d0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.next-project .next-project-line { display: flex; align-items: center; gap: 20px; font-size: clamp(30px, 4vw, 64px); }
.next-project-name { display: inline-flex; align-items: center; gap: 22px; min-width: 0; }
.next-character { flex: 0 0 auto; width: 1.25em; height: 1.25em; object-fit: contain; filter: drop-shadow(0 4px 14px #0005); }
.next-character-round { width: 1.05em; height: 1.05em; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }

/* The Picnic character introduces the work against the site's dark canvas. */
.picnic-opening {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding-top: 25px;
  padding-bottom: 35px;
  background: radial-gradient(ellipse at 50% 65%, #ff557e15, transparent 62%);
  overflow: hidden;
}
.picnic-character-scene { width: min(460px, 45vw); height: 390px; }
.picnic-person { width: 100%; height: 100%; left: 0; top: 0; --depth: .4; }
.picnic-person img { filter: drop-shadow(0 22px 23px #0008); animation-duration: 8s; }

@media (max-width: 1000px) {
  .home .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 45px 24px; }
  .home .project:nth-child(n) { grid-column: span 2; }
  .home .project:nth-child(5) { grid-column: 2 / span 2; }
  .ffgi-logo-shift { grid-template-columns: 1fr; gap: 42px; }
  .identity-stack { max-width: 700px; width: 100%; }
  .ffgi-symbol-float { display: none; }
  .ffgi-ai { grid-template-columns: .45fr 1fr; }
  .presale-layout { grid-template-columns: .65fr 1.35fr; gap: 4%; }
}
@media (max-width: 760px) {
  body .case-copy > .eyebrow,
  body .ffgi-transform-head .eyebrow,
  body .ffgi-logo-copy .eyebrow,
  body .ffgi-campaign-head > .eyebrow,
  body .presale-copy .eyebrow,
  body .ffgi-ai .eyebrow { font-size: 14px; }
  footer .footer-title { font-size: clamp(24px, 5vw, 35px); }
  .campaign-pin { justify-content: flex-start; padding-top: 52px; }
  .campaign-pin .ffgi-campaign-head { padding-top: 0; margin-bottom: 15px; }
  .campaign-pin .ffgi-campaign-head h2 { font-size: 37px; }
  .campaign-pin .ffgi-campaign-head p { font-size: 14px; line-height: 1.45; }
  .campaign-felix { position: absolute; right: 4%; top: 48px; width: 92px; height: 110px; margin: 0; }
  .campaign-track figure { width: min(76vw, 430px); }
  .presale-pin { align-items: flex-start; padding-top: 72px; }
  .presale-layout { display: block; }
  .scroll-page .presale-copy { display: grid; grid-template-columns: .62fr 1.38fr; gap: 18px; margin-bottom: 22px; }
  .scroll-page .presale-copy .eyebrow { grid-row: 1 / 3; }
  .scroll-page .presale-copy h2 { font-size: 31px; margin: 0 0 8px; }
  .scroll-page .presale-copy p { font-size: 14px; line-height: 1.45; }
  .scroll-page .presale-screen { max-width: 100%; }
  .ffgi-explainer { padding-top: 75px; padding-bottom: 75px; }
  .ffgi-explainer-heading { display: block; }
  .ffgi-explainer-heading h2 { margin-top: 17px; font-size: 39px; }
  .ffgi-explainer-heading p { font-size: 16px; }
  .ffgi-explainer-art { margin-top: 32px; }
  .ffgi-explainer-art figcaption { font-size: 10px; }
  .comparison-reveal { height: 340px; border-radius: 12px; }
  .compare-labels { font-size: 11px; }
  .compare-range-row { gap: 16px; }
  .compare-range-row label { font-size: 12px; }
  .picnic-opening { min-height: 340px; padding-top: 20px; padding-bottom: 30px; }
  .picnic-character-scene { width: 300px; height: 300px; }
  .next-project-name { gap: 13px; }
}
@media (max-width: 560px) {
  .home .project-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .home .project:nth-child(n) { grid-column: 1; }
  .home .project h3 { font-size: 28px; }
  .ffgi-ai { grid-template-columns: 1fr; }
  .ffgi-ai > div:first-child { order: 2; }
  .picnic-opening { min-height: 315px; padding-bottom: 24px; }
  .picnic-character-scene { width: 245px; height: 270px; }
  .next-project .next-project-line { font-size: clamp(24px, 6.7vw, 36px); gap: 10px; }
  .scroll-page .presale-copy { display: block; }
  .scroll-page .presale-copy .eyebrow { display: block; margin-bottom: 12px; }
  .ffgi-explainer-art figcaption { display: block; }
  .ffgi-explainer-art figcaption > a { display: inline-block; margin-top: 10px; }
  .screen-browser { height: 34px; padding: 0 11px; }
}
.motion-paused .character-float,
.motion-paused .ffgi-symbol-float,
.motion-paused .next-character { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .character-float, .ffgi-symbol-float, .next-character, .scene-piece img { animation: none; }
  .campaign-track figure { transition: none; }
  .scroll-sequence { height: auto !important; }
  .campaign-pin, .presale-pin { position: relative; min-height: auto; padding-top: 70px; padding-bottom: 70px; }
  .campaign-rail { overflow-x: auto; }
  .campaign-track { transform: none !important; }
  .presale-viewport { overflow-y: auto; }
  .presale-viewport img { position: relative; transform: none !important; }
}
