/* ==========================================================================
   FI Studio — Home v2 (sketch)
   Works-first home page. Only transform / opacity / clip-path are animated.
   All hidden initial states are scoped to html.hv-js so the page is fully
   readable without JS and under prefers-reduced-motion.
   ========================================================================== */

:root {
  --hv-g: clamp(16px, 3.4vw, 60px);
  --hv-expo: cubic-bezier(.16, 1, .3, 1);
  --hv-inout: cubic-bezier(.76, 0, .24, 1);
  --hv-dur: 6500ms;
  --hv-line: rgba(247, 244, 239, .16);
  --hv-dim: rgba(247, 244, 239, .62);
}

html { scroll-behavior: auto; }
html, body { overflow-x: clip; }            /* keep position: sticky working */
body.hv-home .shell { padding-top: 0; overflow: visible; }

/* ---------- header over the hero ---------- */
body.hv-home .topbar {
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color .5s var(--hv-expo), border-color .5s var(--hv-expo), transform .6s var(--hv-expo);
}
/* Over the hero the header blends with the video (the logo GIF has a black plate) */
body.hv-home .topbar:not(.hv-solid) { mix-blend-mode: screen; }
body.menu-open.hv-home .topbar { mix-blend-mode: normal; background: #000; }
body.hv-home .topbar.hv-solid { background: #000; border-bottom-color: rgba(247, 244, 239, .1); }

/* ---------- intro ---------- */
.hv-intro { display: none; }
html.hv-intro-on .hv-intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #000;
  clip-path: circle(150% at 50% 50%);
  pointer-events: none;
}
html.hv-intro-on .hv-intro.is-open {
  animation: hv-iris 1.05s var(--hv-inout) forwards;
}
@keyframes hv-iris {
  from { clip-path: circle(150% at 50% 50%); }
  to   { clip-path: circle(0% at 50% 50%); }
}
.hv-intro-copy {
  font-size: clamp(34px, 8.2vw, 132px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-align: center;
}
.hv-intro-copy span { display: block; overflow: hidden; padding-bottom: .08em; }
.hv-intro-copy span > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(105%);
  animation: hv-up .8s var(--hv-expo) forwards;
}
.hv-intro-copy span:nth-child(2) > i { animation-delay: .12s; color: var(--hv-dim); }
.hv-intro-copy b { font-weight: inherit; color: var(--pink); display: inline-block; min-width: 3.6em; text-align: left; }
.hv-intro.is-open .hv-intro-copy { transition: transform 1s var(--hv-inout), opacity .5s; transform: scale(.86); opacity: 0; }
@keyframes hv-up { to { transform: none; } }

/* ---------- hero B: showreel + kinetic headline + featured rail ---------- */
.hv-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
}
.hv-stage {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
  will-change: transform;
  overflow: hidden;
  background: #0a0a0a;
}
.hb-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.hv-js .hb-reel { transform: scale(1.12); }
html.hv-js .hv-hero.is-live .hb-reel { transform: none; transition: transform 2.2s var(--hv-expo); }
.hv-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.66) 30%, rgba(0,0,0,0) 64%);
}
.hb-ui {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  padding: 0 var(--hv-g) clamp(20px, 3.6vh, 40px);
}
.hb-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(10px, 1.8vh, 20px);
  font-size: clamp(11px, .95vw, 14px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hb-kicker::before { content: ""; width: 34px; height: 2px; background: var(--pink); }
.hb-title {
  display: flex;
  align-items: baseline;
  gap: .2em;
  margin: 0 0 0 -.03em;
  font-size: clamp(40px, 4.8vw, 92px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
}
.hb-title .hb-line { flex: none; }
.hb-title .hb-line--word { flex: 1 1 0; min-width: 0; }
.hb-line { display: block; overflow: hidden; padding: .04em 0 .16em; margin-bottom: -.16em; }
.hb-line > span { display: inline-block; white-space: nowrap; }
html.hv-js .hb-line > span { transform: translateY(112%); }
html.hv-js .hv-hero.is-live .hb-line > span { transform: none; transition: transform 1.2s var(--hv-expo); }

/* The changing word: set like a hand-composed specimen — every few letters in a
   different typeface. The line has a fixed height and a fixed baseline, so words
   swap without nudging the layout. */
.hb-line--word {
  height: 1.42em;
  line-height: 1.42em;
  padding: 0 .04em 0 0;
  margin: -.06em 0 -.2em;
  white-space: nowrap;
  letter-spacing: 0;
}
html.hv-js .hb-line--word > span, html.hv-js .hv-hero.is-live .hb-line--word > span { transform: none; transition: none; display: inline; }
.hb-word { display: inline-block; line-height: 0; font-size: 1.14em; }
.hb-ch { display: inline-block; line-height: .7; }
html.hv-js .hb-ch { transform: translateY(1.5em); }
html.hv-js .hb-word.is-in .hb-ch { transform: none; transition: transform .95s var(--hv-expo); transition-delay: calc(var(--i) * 55ms); }
html.hv-js .hb-word.is-out .hb-ch { transform: translateY(-1.5em); transition: transform .34s var(--hv-inout); transition-delay: calc(var(--i) * 20ms); }
/* typefaces (Google Fonts, with macOS/iOS stand-ins) — none of them condensed */
.f-inst { font-family: "Instrument Serif", Didot, "Bodoni 72", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.2em; letter-spacing: -.01em; }
.f-unb  { font-family: "Unbounded", "Arial Rounded MT Bold", "Avenir Next", sans-serif; font-weight: 700; font-size: .74em; letter-spacing: -.03em; }
.f-syne { font-family: "Syne", "Avenir Next", Futura, sans-serif; font-weight: 800; font-size: .92em; letter-spacing: -.03em; }
.f-frau { font-family: "Fraunces", Cochin, Georgia, serif; font-style: italic; font-weight: 900; font-size: 1em; letter-spacing: -.02em; }
.f-dms  { font-family: "DM Serif Display", Didot, "Bodoni 72", serif; font-weight: 400; font-size: 1.06em; letter-spacing: -.01em; }
.f-bric { font-family: "Bricolage Grotesque", "Avenir Next", Poppins, sans-serif; font-weight: 800; font-size: .98em; letter-spacing: -.035em; }
.f-play { font-family: "Playfair Display", Didot, "Bodoni 72", serif; font-style: italic; font-weight: 900; font-size: .98em; letter-spacing: -.02em; }
.c-ink { color: #f7f4ef; } .c-pink { color: var(--pink); } .c-yel { color: var(--yellow); } .c-blue { color: var(--blue); }

html.hv-js .hb-kicker, html.hv-js .hb-rail { opacity: 0; transform: translateY(18px); }
html.hv-js .hv-hero.is-live .hb-kicker, html.hv-js .hv-hero.is-live .hb-rail { opacity: 1; transform: none; transition: opacity .8s .35s, transform 1s var(--hv-expo) .35s; }

.hb-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  margin-top: clamp(14px, 2.6vh, 30px);
  padding-top: clamp(14px, 2.2vh, 22px);
  border-top: 1px solid var(--hv-line);
}
.hb-rail-head { display: contents; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hb-rail-head > span { order: 1; color: rgba(247, 244, 239, .78); font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.hb-rail-head > a { order: 3; display: inline-flex; align-items: center; gap: 8px; color: #f7f4ef; font-size: 11px; font-weight: 600; letter-spacing: .2em; white-space: nowrap; }
.hb-rail-head svg { width: 11px; height: 11px; }
.hb-rail .hb-cards { order: 2; }
.hb-cards { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hb-card { display: block; width: clamp(108px, 9.7vw, 170px); flex: none; }
.hb-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; background: #111; outline: 1px solid rgba(247, 244, 239, .16); outline-offset: -1px; }
.hb-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--hv-expo); }
.hb-card span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-card i { font-style: normal; color: var(--pink); margin-right: 6px; font-size: 10px; letter-spacing: .1em; }
.hb-cards { transition: none; }
@media (hover: hover) {
  .hb-card { transition: transform .6s var(--hv-expo), opacity .4s; }
  .hb-cards:hover .hb-card { opacity: .5; }
  .hb-cards .hb-card:hover { opacity: 1; transform: translateY(-10px); }
  .hb-card:hover img { transform: scale(1.08); }
}
.hb-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- everything after the hero slides over it ---------- */
.hv-after {
  position: relative;
  z-index: 2;
  background: #000;
  border-radius: clamp(18px, 2.4vw, 36px) clamp(18px, 2.4vw, 36px) 0 0;
  margin-top: -1px;
}

/* shared */
.hv-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(11px, .95vw, 14px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hv-dim);
}
.hv-kicker::before { content: ""; width: 34px; height: 2px; background: var(--pink); }

html.hv-js [data-reveal] { opacity: 0; transform: translateY(34px); }
html.hv-js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--hv-expo), transform 1.1s var(--hv-expo); transition-delay: var(--d, 0s); }

.hv-mask { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hv-mask > span { display: inline-block; }
html.hv-js .hv-mask > span { transform: translateY(108%); }
html.hv-js .is-in .hv-mask > span, html.hv-js .hv-mask.is-in > span { transform: none; transition: transform 1.15s var(--hv-expo); transition-delay: var(--d, 0s); }

/* ---------- statement ---------- */
.hv-statement { padding: clamp(84px, 15vh, 190px) var(--hv-g) clamp(64px, 11vh, 140px); }
.hv-statement h2 {
  margin: clamp(22px, 3.4vh, 40px) 0 0;
  max-width: 17ch;
  font-size: clamp(36px, 6.9vw, 124px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hv-statement h2 .w { display: inline-block; transition: opacity .25s linear, color .25s linear; }
html.hv-js .hv-statement h2 .w { opacity: .16; }
html.hv-js .hv-statement h2 .w.is-on { opacity: 1; }
.hv-statement h2 em { font-style: normal; color: var(--pink); }
.hv-statement-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: clamp(34px, 6vh, 72px);
}
.hv-statement-foot p { margin: 0; max-width: 46ch; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; color: var(--hv-dim); }

.hv-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hv-link svg { width: 13px; height: 13px; transition: transform .45s var(--hv-expo); }
@media (hover: hover) {
  .hv-link:hover svg { transform: translate(3px, -3px); }
}
@keyframes hv-redraw { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); transform-origin: 0 50%; } }

/* ---------- works ---------- */
.hv-works { padding: 0 var(--hv-g) clamp(40px, 8vh, 110px); }
.hv-works-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vh, 34px) 0 clamp(26px, 5vh, 60px);
  border-top: 1px solid var(--hv-line);
}
.hv-works-head h2 {
  margin: 0;
  font-size: clamp(44px, 9.6vw, 176px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.055em;
}
.hv-works-head h2 sup { font-size: .2em; font-weight: 500; letter-spacing: 0; color: var(--pink); vertical-align: top; position: relative; top: .5em; margin-left: .35em; }

.hv-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 34px); row-gap: clamp(46px, 9vh, 130px); }
.hv-tile { position: relative; display: block; grid-column: var(--col, 1 / -1); margin-top: var(--mt, 0); color: inherit; }
.hv-tile-media {
  position: relative;
  aspect-ratio: var(--ar, 16 / 10);
  overflow: hidden;
  border-radius: 6px;
  background: #0d0d0d;
  transform: translateZ(0);
}
.hv-tile-inner { position: absolute; inset: -9% 0; will-change: transform; }
.hv-tile-zoom { position: absolute; inset: 0; transition: transform 1.2s var(--hv-expo); }
.hv-tile-zoom img, .hv-tile-zoom video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-tile-zoom video { opacity: 0; transition: opacity .5s; }
.hv-tile-zoom video.is-ready { opacity: 1; }
html.hv-js .hv-tile-media { clip-path: inset(100% 0 0 0); }
html.hv-js .hv-tile-media .hv-tile-zoom { transform: scale(1.25); }
html.hv-js .hv-tile.is-in .hv-tile-media { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--hv-inout); }
html.hv-js .hv-tile.is-in .hv-tile-zoom { transform: none; transition: transform 1.7s var(--hv-expo); }

.hv-tile-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 18px;
  padding-top: clamp(12px, 1.6vw, 20px);
}
.hv-tile-n { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--pink); }
.hv-tile-t { margin: 0; font-size: clamp(24px, 2.7vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.hv-tile-t span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--hv-expo); padding-bottom: 2px; }
.hv-tile-c { font-size: clamp(11px, .9vw, 13px); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--hv-dim); text-align: right; }
@media (hover: hover) {
  .hv-tile:hover .hv-tile-zoom { transform: scale(1.045); transition: transform 1.2s var(--hv-expo); }
  .hv-tile:hover .hv-tile-t span { background-size: 100% 2px; }
}
.hv-tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }

/* ---------- all works band ---------- */
.hv-all {
  display: block;
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3.2vh, 40px) 0;
  border-block: 1px solid var(--hv-line);
  isolation: isolate;
}
.hv-all::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .7s var(--hv-expo);
}
.hv-all-track { display: flex; width: max-content; will-change: transform; animation: hv-marquee 26s linear infinite; }
.hv-all-track span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .32em;
  padding-right: .32em;
  font-size: clamp(54px, 10.5vw, 190px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.hv-all-track em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(247, 244, 239, .8); }
.hv-all-track svg { width: .62em; height: .62em; flex: none; color: var(--pink); transition: color .4s; }
@keyframes hv-marquee { to { transform: translateX(-50%); } }
@media (hover: hover) {
  .hv-all:hover::before { transform: scaleY(1); }
  .hv-all:hover .hv-all-track svg { color: #000; }
  .hv-all:hover .hv-all-track em { -webkit-text-stroke-color: #000; }
  .hv-all:hover .hv-all-track span { color: #000; }
}

/* ---------- studio ---------- */
.hv-studio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(14px, 2vw, 34px);
  padding: clamp(80px, 14vh, 180px) var(--hv-g);
}
.hv-studio .hv-kicker { grid-column: 1 / 4; align-self: start; padding-top: .9em; }
.hv-studio-body { grid-column: 4 / -1; }
.hv-studio-body > p {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(26px, 3.5vw, 60px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.hv-studio-body > p em { font-style: normal; color: var(--hv-dim); }
.hv-stats { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; column-gap: 28px; margin: clamp(40px, 7vh, 90px) 0 0; border-top: 1px solid var(--hv-line); }
.hv-stat { padding: clamp(18px, 2.4vw, 32px) 20px 0 0; }
.hv-stat b { display: block; white-space: nowrap; font-size: clamp(38px, 5vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.hv-stat b i { font-style: normal; color: var(--pink); }
.hv-stat > span { display: block; margin-top: 12px; font-size: clamp(12px, 1vw, 15px); line-height: 1.5; color: var(--hv-dim); }
.hv-services { list-style: none; margin: clamp(40px, 7vh, 90px) 0 clamp(28px, 4vh, 48px); padding: 0; border-top: 1px solid var(--hv-line); }
.hv-services li { border-bottom: 1px solid var(--hv-line); }
.hv-svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: clamp(14px, 1.7vw, 24px) 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 clamp(20px, 2.3vw, 38px)/1.15 Poppins, sans-serif;
  letter-spacing: -.03em;
  text-align: left;
  cursor: pointer;
  transition: padding-left .5s var(--hv-expo), color .3s;
}
.hv-svc-icon { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid rgba(247, 244, 239, .3); border-radius: 50%; transition: background-color .35s, border-color .35s, transform .6s var(--hv-expo); }
.hv-svc-icon::before, .hv-svc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--hv-expo); }
.hv-svc-icon::after { transform: rotate(90deg); }
.hv-services li.is-open .hv-svc-icon { background: var(--yellow); border-color: var(--yellow); color: #000; transform: rotate(180deg); }
.hv-services li.is-open .hv-svc-icon::after { transform: rotate(0deg); }
.hv-services li.is-open .hv-svc-head { color: var(--yellow); }
.hv-svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--hv-expo); }
.hv-services li.is-open .hv-svc-body { grid-template-rows: 1fr; }
.hv-svc-body > div { overflow: hidden; }
.hv-svc-body p { margin: 0; max-width: 46ch; padding: 0 0 clamp(18px, 2vw, 28px); font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; color: var(--hv-dim); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--hv-expo); }
.hv-services li.is-open .hv-svc-body p { opacity: 1; transform: none; transition-delay: .12s; }
.hv-svc-head:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) { .hv-svc-head:hover { padding-left: 18px; color: var(--yellow); } }
@media (prefers-reduced-motion: reduce) { .hv-svc-body, .hv-svc-body p { transition: none; } }

/* ---------- CTA ---------- */
.hv-talk {
  display: block;
  position: relative;
  padding: clamp(60px, 11vh, 150px) var(--hv-g) clamp(54px, 9vh, 120px);
  border-top: 1px solid var(--hv-line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hv-talk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pink);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 100%));
  transition: clip-path .9s var(--hv-expo);
}
.hv-talk small { display: block; font-size: clamp(11px, .95vw, 14px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hv-dim); transition: color .4s; }
.hv-talk strong {
  display: block;
  margin: clamp(10px, 2vh, 24px) 0;
  font-size: clamp(64px, 17.5vw, 330px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.065em;
}
.hv-talk strong .hv-mask { padding-bottom: .16em; margin-bottom: -.16em; }
.hv-talk u { text-decoration: none; font-size: clamp(15px, 1.5vw, 22px); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (hover: hover) {
  .hv-talk:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
  .hv-talk:hover, .hv-talk:hover small { color: #000; }
}

/* existing logo wall — spacing inside the new flow */
.hv-after .logo-marquee { margin-top: clamp(40px, 8vh, 100px); }

/* ---------- cursor badge (desktop pointer only) ---------- */
.hv-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hv-cursor {
    display: grid;
    place-items: center;
    position: fixed;
    left: 0; top: 0;
    z-index: 60;
    width: 92px; height: 92px;
    margin: -46px 0 0 -46px;
    border-radius: 50%;
    background: var(--pink);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    pointer-events: none;
    will-change: transform;
  }
  .hv-cursor > span { transform: scale(0); transition: transform .45s var(--hv-expo); display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
  .hv-cursor { background: none; }
  .hv-cursor > span { background: var(--pink); }
  .hv-cursor.is-on > span { transform: scale(1); }
}

/* ---------- page-leave: the intro in reverse (iris closes from the click point) ---------- */
.hv-curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  background: #000;
  pointer-events: none;
  visibility: hidden;
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
}
.hv-curtain.is-on { visibility: visible; pointer-events: auto; clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); transition: clip-path .75s var(--hv-inout); }
.hv-curtain .hv-intro-copy span > i { transform: none; animation: none; }
.hv-curtain.is-plain .hv-intro-copy { display: none; }
.hv-curtain.is-plain.is-on { transition-duration: .5s; }
.hv-curtain .hv-intro-copy { opacity: 0; transform: scale(.9); }
.hv-curtain.is-on .hv-intro-copy { opacity: 1; transform: none; transition: opacity .4s .25s, transform .9s var(--hv-expo) .25s; }

/* ---------- tiles: independent drift + scroll-velocity lean ---------- */
.hv-tile { will-change: transform; }
.hv-tile-media { transform-origin: 50% 50%; }
.hv-tile-tag {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hv-tile-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--pink); vertical-align: 1px; animation: hv-blink 1.6s ease-in-out infinite; }
@keyframes hv-blink { 50% { opacity: .25; } }

/* ==========================================================================
   Mobile / tablet — its own layout, not a scaled-down desktop
   ========================================================================== */
@media (max-width: 980px) {
  body.hv-home .topbar, body.hv-home .topbar:not(.hv-solid) { background: #000; border-bottom-color: rgba(255, 255, 255, .12); mix-blend-mode: normal; }

  .hv-stats { grid-template-columns: 1fr 1fr; }

  .hv-statement h2 { max-width: none; }
  .hv-grid { display: flex; flex-direction: column; row-gap: 44px; }
  .hv-tile { margin-top: 0; }
  .hv-tile-media { aspect-ratio: var(--arm, 4 / 3); border-radius: 4px; }
  .hv-tile-info { grid-template-columns: minmax(0, 1fr); }
  .hv-tile-c { grid-column: 1; text-align: left; }
  .hv-works-head { flex-direction: column; align-items: start; }

  .hv-studio { display: block; }
  .hv-studio .hv-kicker { padding: 0 0 22px; }
  .hv-stat:last-child { grid-column: 1 / -1; }
  .hv-all-track { animation-duration: 18s; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-all-track { animation: none; }
}

/* ---------- hero B on mobile: full-bleed reel, headline over it, swipeable rail ---------- */
@media (max-width: 980px) {
  .hv-hero { padding-top: var(--header-h); }
  .hv-stage { inset: var(--header-h) 0 0; transform-origin: 50% 30%; }
  .hv-scrim { background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,0) 66%); }
  .hb-ui { display: block; padding: 0 0 max(18px, env(safe-area-inset-bottom)); }
  .hb-head { padding: 0 16px; }
  .hb-title { display: block; font-size: clamp(40px, 12vw, 96px); line-height: .92; }
  .hb-rail { display: block; margin-top: 20px; padding-top: 0; border-top: 0; }
  .hb-rail-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; padding: 0 16px; }
  .hb-cards { gap: 10px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hb-cards::-webkit-scrollbar { display: none; }
  .hb-card { width: 31vw; max-width: 190px; scroll-snap-align: start; }
  .hb-card span { font-size: 12px; }
}
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .hv-hero { position: relative; height: auto; min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-tile-tag::before { animation: none; }
}

/* ---------- scroll cue: a small line of meta text with an arrow — no frame, no icon; leaves once the visitor scrolls ---------- */
.hv-cue {
  position: fixed;
  right: var(--hv-g);
  bottom: clamp(18px, 3.4vh, 34px);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: rgba(247, 244, 239, .62);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  mix-blend-mode: difference;
  transition: opacity .3s, color .3s;
}
.hv-cue svg { width: 11px; height: 14px; animation: hv-cue-nudge 2.4s var(--hv-inout) infinite; }
@keyframes hv-cue-nudge { 0%, 55%, 100% { transform: none; } 28% { transform: translateY(4px); } }
html.hv-js .hv-cue { animation: hv-cue-in .6s ease 1.3s both; }
@keyframes hv-cue-pulse { 0%, 100% { transform: none; opacity: .55; } 45% { transform: translateY(9px); opacity: 1; } }
@keyframes hv-cue-in { from { opacity: 0; } to { opacity: 1; } }
html.hv-scrolled .hv-cue { opacity: 0 !important; pointer-events: none; animation: none; }
html.hv-intro-on .hv-cue { visibility: hidden; }
@media (hover: hover) { .hv-cue:hover { color: var(--ink); } }
.hv-cue:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
/* on the home hero it sits on the kicker line, opposite the studio name */
.hv-cue--hero { bottom: clamp(150px, 24vh, 230px); }
@media (max-width: 980px) {
  .hv-cue { right: 16px; bottom: 12px; font-size: 10px; }
  /* phone hero: just a white arrow, pulsing, at the right of the headline — above "All works" */
  .hv-cue--hero { top: auto; bottom: 178px; gap: 0; padding: 10px 4px; font-size: 0; letter-spacing: 0; color: #fff; mix-blend-mode: normal; }
  .hv-cue--hero svg { width: 17px; height: 22px; stroke-width: 1.3; animation: hv-cue-pulse 1.7s var(--hv-inout) infinite; }
}
@media (prefers-reduced-motion: reduce) { .hv-cue svg { animation: none; } html.hv-js .hv-cue { animation: none; } }

/* footer logo: smaller on phones */
@media (max-width: 980px) { .site-footer .footer-logo, .page .site-footer .footer-logo, .project-page .site-footer .footer-logo { width: 118px !important; height: auto !important; max-width: 118px !important; } }

/* home hero on phones: no slogan line above the title */
@media (max-width: 980px) { .hb-kicker { display: none !important; } }

/* quieter: no pink rule in front of kickers */
.hv-kicker::before { display: none !important; }

/* no single word left alone on the last line of a paragraph */
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- project -> All works: the page slides off to the side; the works page comes forward out of the dark ---------- */
html.hv-slide-out, html.hv-slide-out body { overflow: hidden; background: #000; }
html.hv-slide-out .page { transform: translate3d(20%, 0, 0) scale(.985); opacity: 0; transition: transform .95s cubic-bezier(.55, 0, .25, 1), opacity .8s cubic-bezier(.45, 0, .55, 1), filter .95s cubic-bezier(.45, 0, .55, 1); will-change: transform, opacity; pointer-events: none; }
html.hv-slide-out .page { filter: blur(10px); }
/* arrived through a page move: the old iris stays out for good */
html.hv-quiet .hv-enter { display: none !important; }
html.hv-slide-out .cx-progress, html.hv-slide-out .hv-cursor, html.hv-slide-out .site-footer { opacity: 0; }
html.hv-deep-in .hv-enter { display: none !important; }
html.hv-deep-in body { background: #000; }
html.hv-deep-in .page { transform-origin: 50% 46vh; animation: hv-deep-move 1.6s cubic-bezier(.19, 1, .22, 1) both, hv-deep-fade 1.1s cubic-bezier(.33, 0, .2, 1) both; will-change: transform, opacity; }
/* the page itself is the entrance — its own title reveal stays out of the way */
html.hv-deep-in .pg-title .hb-ch, html.hv-deep-in .pg-title .pg-pre, html.hv-deep-in .pg-title sup { transform: none !important; transition: none !important; }
@keyframes hv-deep-move { from { transform: scale(.86) translate3d(0, 2.5vh, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
@keyframes hv-deep-fade { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

/* ---------- into a project: this page sinks back into the dark; the project slides in from the right ---------- */
html.hv-sink-out, html.hv-sink-out body { overflow: hidden; background: #000; }
html.hv-sink-out .page { transform: scale(.86) translate3d(0, 2.5vh, 0); opacity: 0; transition: transform .8s cubic-bezier(.6, 0, .3, 1), opacity .7s cubic-bezier(.5, 0, .6, 1), filter .8s ease; will-change: transform, opacity; pointer-events: none; }
html.hv-sink-out .page { filter: blur(10px); }
html.hv-sink-out .hv-cursor, html.hv-sink-out .hv-cue, html.hv-sink-out .cx-progress { opacity: 0; }
html.hv-slide-in { overflow-x: hidden; overflow-x: clip; }
html.hv-slide-in .hv-enter { display: none !important; }
html.hv-slide-in body { background: #000; overflow-x: hidden; overflow-x: clip; }
html.hv-slide-in .page { transform-origin: 50% 50vh; animation: hv-slide-move 1.35s cubic-bezier(.19, 1, .22, 1) both, hv-slide-fade 1s cubic-bezier(.33, 0, .2, 1) both; will-change: transform, opacity; }
/* the page itself is the entrance — the hero's own reveals stay out of the way */
html.hv-quiet .cx-title > span, html.hv-quiet .cx-hero-meta, html.hv-quiet .cx-hero .cx-media { animation: none !important; }
html.hv-quiet .cx-title > span { transform: none !important; }
html.hv-quiet .cx-hero-meta { opacity: 1 !important; }
@keyframes hv-slide-move { from { transform: translate3d(20%, 0, 0) scale(.985); } to { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes hv-slide-fade { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

/* a short pink rule instead of a long dash */
.hv-sep { display: inline-block; width: 1.3em; height: 2px; margin: 0 .6em; background: var(--pink); vertical-align: middle; position: relative; top: -.08em; }

/* phone: project covers open sooner and quicker — same reveal, no lag */
@media (max-width: 980px) {
  html.hv-js .hv-tile.is-in .hv-tile-media { transition: clip-path .95s cubic-bezier(.3, .9, .3, 1); }
  html.hv-js .hv-tile.is-in .hv-tile-zoom { transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
}

/* phone: no second logo in the footer (the header logo is always on screen) */
@media (max-width: 980px) { .site-footer .footer-logo { display: none !important; } }

/* phone: the hero only dims as it is covered — it does not shrink or round, so no frame flickers behind the reel */
@media (max-width: 980px) { .hv-stage { transform: none !important; border-radius: 0 !important; } }

/* phone: the small "FI Studio / Creative brain" kicker lines are left out */
@media (max-width: 980px) { .hb-kicker, .hv-kicker { display: none !important; } }

/* phone: less air above the opening statement */
@media (max-width: 980px) { .hv-statement { padding-top: 44px; } }

/* phone: every project cover has the same shape (4:3) */
@media (max-width: 980px) { .hv-tile-media { aspect-ratio: 4 / 3 !important; } .hv-d-only { display: none !important; } }
@media (min-width: 981px) { .hv-m-only { display: none !important; } }

/* phone: the client logos come straight after the projects; the "All works" band follows them (desktop order unchanged) */
@media (max-width: 980px) {
  .hv-after { display: flex; flex-direction: column; }
  .hv-after > * { order: 3; }
  .hv-after > .hv-statement, .hv-after > .hv-works { order: 0; }
  .hv-after > .logo-marquee { order: 1; margin-top: 12px; margin-bottom: 44px; }
  .hv-after > .hv-all { order: 2; }
}

/* the "All works" band runs slower */
.hv-all-track { animation-duration: 40s; }
@media (max-width: 980px) { .hv-all-track { animation-duration: 30s; } }
@media (prefers-reduced-motion: reduce) { .hv-all-track { animation: none; } }

/* phone footer: quiet and small — one soft line, a row of links, fine print */
@media (max-width: 980px) {
  .site-footer { padding: 34px 16px max(22px, env(safe-area-inset-bottom)) !important; border-top: 1px solid rgba(247, 244, 239, .1) !important; min-height: 0 !important; }
  .site-footer .footer-inner { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .site-footer .footer-main { display: block !important; padding: 0 !important; margin: 0 !important; }
  .site-footer .footer-line { margin: 0 !important; max-width: 30ch !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.5 !important; letter-spacing: -.005em !important; color: rgba(247, 244, 239, .62) !important; }
  .site-footer .footer-actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px 0 !important; margin: 22px 0 0 !important; padding: 0 !important; }
  .site-footer .footer-actions a { margin: 0 !important; padding: 0 !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .16em !important; text-transform: uppercase !important; color: #f7f4ef !important; }
  .site-footer .footer-actions a + a { margin-left: 14px !important; padding-left: 14px !important; border-left: 1px solid rgba(247, 244, 239, .22) !important; }
  .site-footer .footer-bottom { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px 16px !important; margin: 26px 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid rgba(247, 244, 239, .1) !important; }
  .site-footer .footer-bottom > span, .site-footer .footer-bottom p { margin: 0 !important; font-size: 9.5px !important; font-weight: 500 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: rgba(247, 244, 239, .4) !important; }
  .site-footer .footer-bottom > span:last-child { display: none !important; }
  .site-footer .footer-a11y { width: 100%; gap: 6px 14px !important; }
  .site-footer .footer-a11y a, .site-footer .footer-a11y button, .site-footer .footer-a11y-link { font-size: 9.5px !important; font-weight: 500 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: rgba(247, 244, 239, .5) !important; text-decoration: none !important; }
}

/* quiet kicker */
.hb-kicker::before { display: none !important; content: none; }
.hb-kicker { gap: 0; margin-bottom: clamp(8px, 1.4vh, 16px); padding-left: calc(clamp(40px, 6.1vw, 116px) * .035); font-size: clamp(15px, 1.3vw, 21px); font-weight: 600; letter-spacing: .08em; line-height: 1; color: rgba(247,244,239,.82); }
.hv-sep { display: none !important; }

/* ---------- mobile home header: see-through over the reel, solid once you scroll ---------- */
@media (max-width: 980px) {
  body.hv-home .topbar:not(.hv-solid) { background: transparent; border-bottom-color: transparent; mix-blend-mode: normal; }
  body.hv-home .topbar.hv-solid { background: #000; border-bottom-color: rgba(255, 255, 255, .12); }
  body.menu-open.hv-home .topbar { background: #000; }
  /* soft black feather behind the logo and menu; fades out when the header turns solid */
  body.hv-home .topbar::before {
    content: ""; position: absolute; inset: 0 0 -96px; z-index: -1; pointer-events: none;
    /* eased fade (many stops) so the end of the shadow has no visible edge */
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .88) 10%, rgba(0, 0, 0, .8) 20%, rgba(0, 0, 0, .68) 30%,
      rgba(0, 0, 0, .54) 40%, rgba(0, 0, 0, .4) 50%, rgba(0, 0, 0, .28) 60%, rgba(0, 0, 0, .18) 70%,
      rgba(0, 0, 0, .1) 80%, rgba(0, 0, 0, .04) 90%, rgba(0, 0, 0, .01) 96%, rgba(0, 0, 0, 0) 100%);
    transition: opacity .5s var(--hv-expo);
  }
  body.hv-home .topbar.hv-solid::before, body.menu-open.hv-home .topbar::before { opacity: 0; }
  /* logo and menu button sit a little lower in the bar */
  .topbar .brand, .topbar .menu-toggle { position: relative; top: 2px; }
  .topbar .brand .fi-logo-anim { width: 53px !important; height: 53px !important; }
  /* the reel runs up under the header */
  .hv-stage { inset: 0; }
}

/* ---------- leave curtain: "normal" glitches into the destination word ---------- */
.hv-curtain .hv-intro-copy b.hv-glitch { animation: hv-glitch .42s steps(1, end) both; }
@keyframes hv-glitch {
  0%   { transform: translate(0, 0); clip-path: inset(0 0 0 0); text-shadow: 3px 0 #12b7ff, -3px 0 #ff168d; }
  12%  { transform: translate(-6px, 2px) skewX(-10deg); clip-path: inset(8% 0 58% 0); text-shadow: -5px 0 #12b7ff, 5px 0 #ffed39; }
  24%  { transform: translate(7px, -2px); clip-path: inset(62% 0 4% 0); text-shadow: 4px 0 #ff168d, -4px 0 #12b7ff; }
  36%  { transform: translate(-3px, 1px) skewX(12deg); clip-path: inset(28% 0 34% 0); }
  48%  { transform: translate(4px, 0); clip-path: inset(0 0 72% 0); text-shadow: -6px 0 #ffed39, 6px 0 #12b7ff; }
  60%  { transform: translate(-5px, -1px); clip-path: inset(44% 0 18% 0); }
  72%  { transform: translate(2px, 1px) skewX(-6deg); clip-path: inset(0 0 0 0); text-shadow: 2px 0 #12b7ff, -2px 0 #ff168d; }
  86%  { transform: translate(-1px, 0); text-shadow: 1px 0 #12b7ff, -1px 0 #ff168d; }
  100% { transform: none; clip-path: none; text-shadow: none; }
}

/* ---------- open mobile menu: no hairline under the header ---------- */
@media (max-width: 980px) {
  .topbar .nav { border-top-color: transparent; }
  body.menu-open .topbar, body.menu-closing .topbar { border-bottom-color: transparent !important; box-shadow: 0 2px 0 #000 !important; }
  /* the pink glow behind the menu started at full strength right under the header, which read as a line */
  .topbar .nav::before {
    background: radial-gradient(ellipse 95% 260px at 50% 96px, rgba(255, 22, 141, .17), rgba(0, 0, 0, 0) 72%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 44px, #000 104px);
    mask-image: linear-gradient(to bottom, transparent 44px, #000 104px);
  }
}

/* ---------- open mobile menu: a second, quieter glow at the bottom; both drift slowly ---------- */
@media (max-width: 980px) {
  .topbar .nav::after {
    content: "";
    position: absolute;
    left: -10%; right: -10%; bottom: -4%;
    height: 46%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(255, 22, 141, .11), rgba(0, 0, 0, 0) 70%);
    opacity: 0;
    transform: translateZ(0);
  }
  body.menu-open:not(.menu-closing) .topbar .nav::after {
    opacity: 1;
    transition: opacity .9s ease .15s;
    animation: menu-glow-drift 11s ease-in-out infinite alternate;
  }
  body.menu-closing .topbar .nav::after { opacity: 0; transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1) 400ms; }
  body.menu-open:not(.menu-closing) .topbar .nav::before { animation: menu-glow-zigzag 7s ease-in-out infinite, menu-glow-breathe 9s ease-in-out infinite alternate; }
}
@keyframes menu-glow-drift {
  0%   { transform: translate3d(-4%, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(5%, 1%, 0) scale(.98); }
}
@keyframes menu-glow-breathe {
  0%   { opacity: .75; }
  100% { opacity: 1; }
}
@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  body.menu-open .topbar .nav::after, body.menu-open .topbar .nav::before { animation: none; }
}

/* ---------- open menu: lock scrolling without pinning the body ----------
   position: fixed on <body> made mobile browsers resize the viewport (address bar),
   so the page behind the opening menu jumped. overflow: hidden + the touchmove guard
   in nav-hover.js already stop the scroll. */
@media (max-width: 980px) {
  body.menu-open.is-menu-scroll-locked { position: static !important; top: auto !important; }
}

/* ---------- client wall right under the statement: it is the proof of "Trusted by industry leaders" ---------- */
.hv-statement + .logo-marquee { margin-top: 0; padding-top: clamp(8px, 1.6vw, 24px); }
@media (max-width: 980px) { .hv-statement + .logo-marquee { padding-top: 4px; } }
/* phone: same order as desktop — statement, client wall, works */
@media (max-width: 980px) {
  .hv-after > * { order: 4; }
  .hv-after > .hv-statement { order: 0; }
  .hv-after > .logo-marquee { order: 1; margin-top: 0; margin-bottom: 36px; }
  .hv-after > .hv-works { order: 2; }
  .hv-after > .hv-all { order: 3; }
  /* the "Trusted by industry leaders" line stays visible on phones */
  .hv-statement .hv-kicker { display: block !important; margin-bottom: 14px; }
  .hv-after > .hv-statement { padding-bottom: 28px; }
}

/* footer (phone): the logo and the line sit side by side, the links run underneath, all on one left edge */
@media (max-width: 980px) {
  .site-footer .footer-main { display: grid !important; grid-template-columns: 70px minmax(0, 1fr); column-gap: 22px; align-items: center; }
  .site-footer .footer-main .fi-logo-anim { width: 92px !important; height: 92px !important; margin: 0 0 0 -13px !important; }  /* the letters sit inset in their box: pull them onto the left edge */
  .site-footer .footer-main .footer-line { max-width: none !important; font-size: 14px !important; line-height: 1.45 !important; padding-left: 20px !important; border-left: 1px solid rgba(247, 244, 239, .16) !important; }
  .site-footer .footer-main .footer-actions { grid-column: 1 / -1; margin-top: 24px !important; }
}
