/* Fonts, served from this site (Latin only) so text can draw without waiting on Google */
@font-face { font-family: 'Noto Serif JP'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/noto-serif-jp-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-300-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500-latin.woff2) format('woff2'); }

/* Flippen V3 - restrained layout overrides built on the original Tank grid. */
:root {
  --fp-bg: #0a0a0a;
  --fp-text: #f5f5f3;
  --fp-muted: #9b9b97;
  --fp-line: rgba(255,255,255,.14);
  --fp-gutter: clamp(18px, 3vw, 42px);
}

/* Keep every new element inside the same 1282px system as the original site. */
.fp-home-intro {
  padding: 190px 0 86px;
}
.fp-home-intro .tt-section-inner,
.fp-work-section .tt-section-inner,
.fp-contact-band .tt-section-inner {
  width: 100%;
}

.fp-home-intro .tt-section-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fp-eyebrow,
.fp-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 26px;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.fp-eyebrow::after,
.fp-section-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: var(--fp-line);
}
.fp-home-title {
  max-width: 1040px;
  margin: 0;
  color: var(--fp-text);
  font-size: clamp(44px, 6.25vw, 92px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}
.fp-home-copy {
  max-width: 660px;
  margin-top: 38px;
  margin-right: auto !important;
  margin-bottom: 0;
  margin-left: 0 !important;
  padding-left: 0 !important;
  align-self: flex-start;
  text-align: left !important;
  color: #c8c8c4;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.55;
}
.fp-work-section {
  padding-top: 20px;
}
.fp-section-label {
  margin-bottom: 30px;
}
.fp-section-label span:last-child {
  white-space: nowrap;
}

/* Let the original grid do the positioning; only standardize its proportions. */
.flippen-work-grid .tt-grid-items-wrap {
  align-items: flex-start;
}
.flippen-work-grid .ttgr-height {
  padding-bottom: 56.25% !important;
}
.flippen-work-grid .tt-grid-item:first-child {
  width: 100%;
}
.flippen-work-grid .pgi-image-holder {
  background: #111;
}
.flippen-work-grid .pgi-image-wrap {
  border-radius: 1px;
}
.flippen-work-grid .pgi-caption {
  position: static !important;
  max-width: none;
  padding: 15px 0 0;
}
.flippen-work-grid .pgi-title {
  color: var(--fp-text);
  font-size: clamp(18px, 1.35vw, 23px) !important;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.flippen-work-grid .pgi-categories-wrap {
  margin-top: 6px;
}
.flippen-work-grid .pgi-category {
  color: var(--fp-muted);
  font-size: 12px;
  letter-spacing: .04em;
  opacity: 1;
  text-transform: uppercase;
}
.flippen-work-grid .pgi-link-wrap {
  display: block;
  color: inherit;
}
.flippen-work-grid .pgi-image-inner {
  transition: transform .55s cubic-bezier(.2,.6,.2,1);
}
@media (hover:hover) and (pointer:fine) {
  .flippen-work-grid .pgi-link-wrap:hover .pgi-image-inner {
    transform: scale(1.012);
  }
  .flippen-work-grid .pgi-link-wrap:hover .pgi-title {
    opacity: .72;
  }
}
.flippen-work-grid .pgi-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-contact-band {
  padding: 92px 0 120px;
}
.fp-contact-band-inner {
  border-top: 1px solid var(--fp-line);
  padding-top: 42px;
}
.fp-contact-kicker {
  margin: 0 0 22px;
  color: var(--fp-muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fp-contact-link {
  display: inline-block;
  max-width: 100%;
  color: var(--fp-text);
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.fp-contact-link:hover { color: #bdbdb9; }
.fp-contact-note {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--fp-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Subtle cleanup without changing the template's positioning model. */
.bg-noise { opacity: .32; }
#tt-footer { border-top: 1px solid rgba(255,255,255,.08); }
.tt-footer-inner { padding-top: 38px; padding-bottom: 38px; }

/* Make still-image project heroes fill exactly like the old video heroes. */
.ph-video-wrap img.ph-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .fp-home-intro { padding: 132px 0 58px; }
  .fp-home-title {
    font-size: clamp(42px, 13vw, 68px);
    letter-spacing: -.05em;
    line-height: .98;
  }
  .fp-home-copy {
    margin: 26px 0 0;
    max-width: 540px;
    font-size: 16px;
  }
  .fp-work-section { padding-top: 10px; }
  .fp-section-label { margin-bottom: 22px; }
  .flippen-work-grid .tt-grid-item,
  .flippen-work-grid .tt-grid-item:first-child {
    width: 100% !important;
  }
  .flippen-work-grid .ttgr-item-inner {
    margin-bottom: 38px !important;
  }
  .flippen-work-grid .pgi-caption { padding-top: 12px; }
  .fp-contact-band { padding: 54px 0 82px; }
  .fp-contact-band-inner { padding-top: 28px; }
  .fp-contact-link { font-size: clamp(31px, 10vw, 48px); }
}

@media (max-width: 420px) {
  .fp-eyebrow { gap: 12px; }
  .fp-eyebrow span { max-width: 210px; }
  .fp-section-label::after { display: none; }
}


/* Shared inner-page rhythm: same top spacing and left edge as the homepage. */
.fp-page-intro {
  padding: 190px 0 86px;
}
.fp-page-intro .tt-section-inner {
  width: 100%;
}
.fp-page-title {
  max-width: 1040px;
  margin: 0;
  color: var(--fp-text);
  font-size: clamp(44px, 6.25vw, 92px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}
.fp-page-copy {
  max-width: 760px;
  margin: 38px 0 0;
  color: #c8c8c4;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.55;
}

/* Contact keeps the original form, but starts on the same vertical rhythm as Home. */
.fp-contact-page-intro .tt-contact-info {
  margin-top: 42px;
}
.fp-contact-page-intro .tt-form-minimal {
  padding-top: 38px;
}

/* About: intro first, reel second, then recognition. */
.fp-about-reel-section {
  padding: 6px 0 96px;
}
.fp-about-reel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.fp-about-reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


@media (max-width: 991px) {
  .fp-contact-page-intro .tt-form-minimal {
    margin-top: 30px;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .fp-page-intro { padding: 132px 0 58px; }
  .fp-page-title {
    font-size: clamp(42px, 13vw, 68px);
    letter-spacing: -.05em;
    line-height: .98;
  }
  .fp-page-copy {
    margin-top: 26px;
    font-size: 16px;
  }
  .fp-contact-page-intro .tt-contact-info { margin-top: 30px; }
  .fp-about-reel-section { padding: 4px 0 62px; }
}


/* ------------------------------------------------------------------
 * V3.3 — lead-focused additions (credits, services, honors, footer).
 * Same type scale, colors and hairlines as the rest of V3.
 * ------------------------------------------------------------------ */

/* Selected credits under the homepage intro */
.fp-credits {
  width: 100%;
  margin-top: 56px;
}
.fp-credits-label {
  margin: 0 0 14px;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fp-credits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c8c8c4;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  letter-spacing: -.01em;
}
.fp-credits-list li:not(:last-child)::after {
  content: "·";
  margin: 0 .7em;
  color: var(--fp-muted);
}

/* Services */
.fp-services { padding: 110px 0 0; }
.fp-services-list,
.fp-honors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fp-services-list a {
  display: block;
  height: 100%;
  padding: 8px 0;
  color: inherit;
}
.fp-svc-num {
  display: block;
  color: var(--fp-muted);
  font-size: 12px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.fp-svc-title {
  margin: 18px 0 12px;
  color: var(--fp-text);
  font-size: clamp(20px, 1.6vw, 26px) !important;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.fp-svc-copy {
  margin: 0;
  color: var(--fp-muted);
  font-size: 14px;
  line-height: 1.6;
}
@media (hover:hover) and (pointer:fine) {
  .fp-services-list a:hover .fp-svc-title { opacity: .72; }
}

/* Recognition */
.fp-honors { padding: 100px 0 0; }
.fp-work-label a,
.fp-honors .fp-section-label a {
  color: var(--fp-muted);
  transition: color .2s;
}
.fp-honors .fp-section-label a:hover { color: var(--fp-text); }
.fp-honors-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}
.fp-honor-award {
  color: var(--fp-text);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 500;
  letter-spacing: -.02em;
}
.fp-honor-for {
  color: var(--fp-muted);
  font-size: 13px;
}

/* Contact band + contact page extras */
.fp-inline-link {
  color: var(--fp-text);
  border-bottom: 1px solid var(--fp-line);
  margin-left: .35em;
  transition: border-color .2s;
}
.fp-inline-link:hover { border-color: var(--fp-text); }
.fp-contact-copy { font-size: clamp(15px, 1.1vw, 18px); }
.fp-form-status {
  min-height: 1.6em;
  margin: 22px 0 0;
  color: #c8c8c4;
  font-size: 14px;
}
.fp-form-status.is-error { color: #ff8a7a; }
#tt-contact-form button[disabled] { opacity: .5; cursor: progress; }

/* Footer contact */
.fp-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.fp-footer-contact a { color: var(--fp-muted); transition: color .2s; }
.fp-footer-contact a:hover { color: var(--fp-text); }

@media (max-width: 991px) {
  .fp-services-list,
  .fp-honors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(18px, 3vw, 36px); }
}
@media (max-width: 767px) {
  .fp-credits { margin-top: 40px; }
  .fp-services { padding-top: 64px; }
  .fp-honors { padding-top: 64px; }
  .fp-svc-title { margin-top: 18px; }
  .fp-footer-contact { justify-content: center; }
}
@media (max-width: 480px) {
  .fp-services-list,
  .fp-honors-list { grid-template-columns: 1fr; gap: 22px; }
}

/* Inline SVG icons (replace the Font Awesome webfont) */
.fp-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -.125em;
}

/* ------------------------------------------------------------------
 * Accent — the periwinkle from the Instagram system (#848eff).
 * Same rule as social: it's for tags and small signals only, as a solid
 * strip with dark type. Never on headlines or backgrounds.
 * ------------------------------------------------------------------ */
:root {
  --fp-accent: #848eff;
  --fp-accent-ink: #0a0a0a;
}
::selection { background: var(--fp-accent); color: var(--fp-accent-ink); }

/* Tag strip: slides up along the bottom of a work thumbnail on hover */
.fp-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 9px 14px 8px;
  background: var(--fp-accent);
  color: var(--fp-accent-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
}
@media (hover:hover) and (pointer:fine) {
  .flippen-work-grid .pgi-link-wrap:hover .fp-tag,
  .flippen-work-grid .pgi-link-wrap:focus-visible .fp-tag { transform: translateY(0); }
}
@media (hover:none) { .fp-tag { display: none; } }

/* Project pages: the category above the title becomes the same tag */
#page-header .ph-category {
  padding: 6px 10px 5px;
  background: var(--fp-accent);
  color: var(--fp-accent-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Small signals */
.fp-inline-link:hover,
.fp-inline-link:focus-visible { border-color: var(--fp-accent); }
.fp-contact-link:hover { color: var(--fp-accent); }
@media (hover:hover) and (pointer:fine) {
}
.fp-work-label a:hover,
.fp-honors .fp-section-label a:hover { color: var(--fp-accent); }
.tt-form-minimal .tt-form-control:focus { border-color: var(--fp-accent); }
.fp-form-status:not(.is-error):not(:empty) { color: var(--fp-accent); }
:focus-visible { outline-color: var(--fp-accent); }


/* ------------------------------------------------------------------
 * About page: credits, honors list, services (same system as Home).
 * ------------------------------------------------------------------ */
.fp-about-credits { padding: 0; }
.fp-about-credits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fp-text);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.fp-about-credits-list li:not(:last-child)::after {
  content: "·";
  margin: 0 .5em;
  color: var(--fp-muted);
}

.fp-about-honors { padding: 110px 0 0; }
.fp-honors-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fp-line);
}
.fp-hr-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 6px clamp(18px, 3vw, 48px);
  align-items: baseline;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--fp-line);
}
.fp-hr-title {
  margin: 0;
  color: var(--fp-text);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(19px, 1.6vw, 24px) !important;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.fp-hr-cat {
  display: block;
  margin-top: 5px;
  color: var(--fp-muted);
  font-size: 13px;
  line-height: 1.45;
}
.fp-hr-work {
  margin: 0;
  color: #c8c8c4;
  font-size: 14px;
  line-height: 1.5;
}
.fp-hr-year {
  color: var(--fp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.fp-hr-group {
  margin: 56px 0 16px;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fp-about-services { padding-top: 110px; }
.fp-about-services + .fp-contact-band { padding-top: 110px; }

@media (max-width: 767px) {
  .fp-about-honors, .fp-about-services { padding-top: 64px; }
  .fp-about-services + .fp-contact-band { padding-top: 64px; }
  .fp-hr-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 0 17px;
  }
  .fp-hr-work { grid-column: 1 / -1; grid-row: 2; }
  .fp-hr-year { grid-column: 2; grid-row: 1; }
}

/* About reel: plays muted on a loop; one tap switches to the full player with sound */
.fp-reel-sound {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 9px 14px;
  border: 0;
  background: var(--fp-accent);
  color: var(--fp-accent-ink);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
  transition: padding .3s cubic-bezier(.2,.6,.2,1);
}
.fp-reel-sound::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.fp-reel-sound:hover { padding-right: 22px; }
.fp-about-reel.is-sound .fp-reel-sound { display: none; }

/* Homepage hero video loop (only active once index.html sets data-video) */
.fp-home-intro { position: relative; }
.fp-hero-media { display: none; }
.fp-home-intro.has-hero-video {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}
.fp-home-intro.has-hero-video .fp-hero-media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0a0a;
}
.fp-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Same darkening as the project page heroes, heavier toward the text */
.fp-home-intro.has-hero-video .fp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 35%, rgba(10,10,10,.85) 100%);
}
.fp-home-intro.has-hero-video .tt-section-inner { position: relative; z-index: 1; }

/* ------------------------------------------------------------------
 * Project pages: big periwinkle logo over the hero + info strip
 * along the bottom (same strip as the Instagram templates).
 * ------------------------------------------------------------------ */
.fp-project-logo {
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: 20;
  width: clamp(120px, 10vw, 160px);
  transform: translateX(-50%);
  line-height: 0;
}
.fp-project-logo img { display: block; width: 100%; height: auto; }

.fp-project-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 42px) 13px;
  background: var(--fp-accent);
  color: var(--fp-accent-ink);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.fp-project-strip span:nth-child(2) { text-align: center; }
.fp-project-strip span:nth-child(3) { text-align: right; }

/* The strip carries the category, so the tag chip and scroll hint step aside */
body.fp-project #page-header .ph-categories,
body.fp-project #page-header .scroll-down-circle { display: none; }

/* Corner logo hides while the big logo is on screen, returns once you scroll past the hero */
body.fp-project #tt-header .tt-logo { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
body.fp-project.fp-past-hero #tt-header .tt-logo,
body.fp-project.tt-ol-menu-open #tt-header .tt-logo { opacity: 1; pointer-events: auto; }

@media (max-width: 767px) {
  /* Phones: no room to center it next to Menu, so the periwinkle corner logo stays in place */
  .fp-project-logo { display: none; }
  body.fp-project #tt-header .tt-logo { opacity: 1; pointer-events: auto; }
  .fp-project-strip { grid-template-columns: 1fr auto; font-size: 10px; letter-spacing: .12em; }
  .fp-project-strip span:nth-child(2) { display: none; }
}

/* ------------------------------------------------------------------
 * Motion
 * ------------------------------------------------------------------ */

/* Title-card reveal: words rise from behind a mask */
.fp-reveal .fp-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .22em; margin: -.06em 0 -.22em; }
.fp-reveal.fp-revealed .fp-w { overflow: visible; }
.fp-reveal .fp-wi { display: inline-block; will-change: transform; }

/* Credits ticker */
.fp-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 88%, transparent);
}
.fp-ticker-track {
  display: flex;
  width: max-content;
  animation: fp-ticker var(--fp-loop-time, 38s) linear infinite;
  will-change: transform;
}
.fp-ticker:hover .fp-ticker-track { animation-play-state: paused; }
.fp-ticker .fp-credits-list { flex-wrap: nowrap; white-space: nowrap; }
.fp-ticker .fp-credits-list li::after,
.fp-ticker .fp-credits-list li:last-child::after {
  content: "·";
  margin: 0 .7em;
  color: var(--fp-muted);
}
@keyframes fp-ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--fp-loop, 50%)), 0, 0); } }

/* Cursor over project tiles: a small periwinkle circle with a play head */
#ball .ball-view.fp-cursor-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 0 0 3px; /* optical centering of the triangle */
}
#ball .ball-view.fp-cursor-play::before {
  content: "";
  border-left: 13px solid var(--fp-accent-ink);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

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

/* ------------------------------------------------------------------
 * Work page: a clean index of every project (no divider lines)
 * ------------------------------------------------------------------ */
.fp-work-index { padding: 0 0 20px; }
.fp-work-list { margin: 0; padding: 0; list-style: none; }
.fp-wl-row {
  display: grid;
  grid-template-columns: 34px 168px minmax(0, 1fr) minmax(0, 220px) minmax(0, 190px);
  gap: 0 clamp(16px, 2.4vw, 36px);
  align-items: center;
  padding: 14px 0;
  color: inherit;
  transition: opacity .3s ease;
}
.fp-wl-num { color: var(--fp-muted); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.fp-wl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.fp-wl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.fp-wl-title {
  color: var(--fp-text);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.fp-wl-studio, .fp-wl-cat {
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fp-wl-cat { text-align: right; }
@media (hover:hover) and (pointer:fine) {
  .fp-work-list:hover .fp-wl-row { opacity: .4; }
  .fp-work-list .fp-wl-row:hover { opacity: 1; }
  .fp-wl-row:hover .fp-wl-thumb img { transform: scale(1.05); }
}
@media (max-width: 991px) {
  .fp-wl-row { grid-template-columns: 30px 140px minmax(0, 1fr); row-gap: 6px; }
  .fp-wl-num { grid-row: span 2; }
  .fp-wl-thumb { grid-row: span 2; }
  .fp-wl-studio { grid-column: 3; }
  .fp-wl-cat { display: none; }
}
@media (max-width: 480px) {
  .fp-wl-row { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; }
  .fp-wl-num { display: none; }
  .fp-wl-thumb { grid-column: 1; }
  .fp-wl-title { font-size: 21px; }
  .fp-wl-studio { grid-column: 2; font-size: 10px; }
}

/* Logos carry width/height so the page doesn't shift while they load; CSS keeps the real size */
.tt-logo img, .ptr-prel-image { width: auto; height: auto; }

/* Square (1:1) spots: keep them a comfortable size instead of full width */
.fp-embed-square { max-width: 560px; }

/* 404: the gold-ink background slowly drifts and flows.
   Two layers: the photo breathes, and a faint mirrored copy swirls the other way on top.
   Transform-only, so it runs on the graphics chip; skipped for anyone who asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .fp-404 #page-header .ph-image-inner { position: relative; overflow: hidden; }
  .fp-404 #page-header .ph-image-inner img {
    animation: fp-ink-drift 34s ease-in-out infinite alternate;
    will-change: scale, translate;
  }
  .fp-404 #page-header .ph-image-inner::after {
    content: "";
    position: absolute;
    inset: -15%;
    background: url(/assets/img/page-header/ph-7.jpg) center / cover no-repeat;
    mix-blend-mode: screen;
    opacity: .3;
    pointer-events: none;
    animation: fp-ink-flow 26s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes fp-ink-drift {
  from { scale: 1.06; translate: -1.5% -1%; }
  to   { scale: 1.16; translate: 2% 1.5%; }
}
@keyframes fp-ink-flow {
  from { transform: rotate(180deg) scale(1.05) translate(4%, 3%); }
  to   { transform: rotate(192deg) scale(1.18) translate(-4%, -2%); }
}

/* Film pages (Flippen productions): Watch button, credits, film box, stills */
.fp-watch { display: inline-flex; gap: 26px; align-items: center; margin-top: 34px; border: 1px solid var(--fp-accent); color: #fff; padding: 15px 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: background .3s, color .3s; }
.fp-watch span { color: var(--fp-accent); transition: color .3s; }
.fp-watch:hover { background: var(--fp-accent); color: var(--fp-accent-ink); }
.fp-watch:hover span { color: var(--fp-accent-ink); }
.fp-acc { color: var(--fp-accent) !important; }
.fp-film-credits { padding: 20px 0 90px; }
.fp-credits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 36px 0 0; }
.fp-credits-grid dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.fp-credits-grid dd { margin: 0; font-family: 'Noto Serif JP', serif; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; color: #fff; }
.fp-credits-cast { grid-column: 1 / -1; }
.fp-credits-cast ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 40px; }
.fp-film-soon { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); }
.fp-film-soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.fp-film-soon span { position: relative; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 14px 22px; }
.fp-stills { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.fp-stills img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 837; object-fit: cover; }
.fp-stills .fp-still-wide { grid-column: 1 / -1; }
@media (max-width: 767px) {
  .fp-credits-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .fp-credits-cast ul { grid-template-columns: 1fr; gap: 8px; }
  .fp-stills { grid-template-columns: 1fr; }
  .fp-film-soon span { font-size: 10px; padding: 10px 14px; }
}

/* Film pages: the campaign, one numbered row per piece (teaser, key art, social, promos) */
.fp-campaign { border-top: 1px solid rgba(255,255,255,.12); padding-top: 80px; }
.fp-campaign-intro { max-width: 620px; margin: 28px 0 60px; font-family: 'Noto Serif JP', serif; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; color: rgba(255,255,255,.8); }
.fp-camp-row { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); }
.fp-camp-num { display: block; font-size: 11px; letter-spacing: .2em; color: var(--fp-accent); margin-bottom: 14px; }
.fp-camp-title { font-family: 'Noto Serif JP', serif; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.fp-camp-note { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.55); margin: 0; }
@media (max-width: 991px) { .fp-camp-row { grid-template-columns: 1fr; gap: 20px; } }
.fp-camp-grid { display: grid; gap: 14px; }
.fp-camp-grid img, .fp-camp-grid video { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.fp-cg-posters { grid-template-columns: repeat(3, 1fr); }
.fp-cg-posters > * { aspect-ratio: 2 / 3; }
.fp-cg-social { grid-template-columns: repeat(4, 1fr); }
.fp-cg-social > * { aspect-ratio: 9 / 16; }
.fp-cg-promos { grid-template-columns: 1fr 1fr; }
.fp-cg-promos > * { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .fp-cg-posters, .fp-cg-social { grid-template-columns: 1fr 1fr; }
  .fp-cg-promos { grid-template-columns: 1fr; }
}

/* Hero actions on film pages: Watch button plus a quiet jump to the campaign */
.fp-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 34px; }
.fp-hero-actions .fp-watch { margin-top: 0; }
.fp-jump { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.fp-jump:hover { color: var(--fp-accent); border-color: var(--fp-accent); }

/* ------------------------------------------------------------------
 * Modern-web touches: progress line, floating Work preview, headline
 * drift, drawn underlines, arrow cursor, Next Project marquee, copy
 * badge, preloader fade, grain drift.
 * ------------------------------------------------------------------ */

/* Thin periwinkle playhead across the top that fills as you read */
.fp-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: var(--fp-accent); transform: scaleX(0); transform-origin: left; z-index: 100000; pointer-events: none; }

/* Homepage headline drifts and fades on scroll (set by script) */
.fp-home-intro .tt-section-inner { will-change: transform, opacity; }

/* Work page: poster floats with the cursor on desktop; the list itself stays clean */
.fp-float { position: fixed; top: 0; left: 0; width: min(34vw, 420px); aspect-ratio: 16 / 9; pointer-events: none; z-index: 9990; opacity: 0; transition: opacity .35s ease; overflow: hidden; background: #111; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.fp-float.is-on { opacity: 1; }
.fp-float img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 992px) {
  .fp-wl-thumb { display: none; }
  .fp-wl-row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 220px) minmax(0, 190px); padding: 22px 0; border-top: 1px solid var(--fp-line); }
  .fp-work-list li:last-child .fp-wl-row { border-bottom: 1px solid var(--fp-line); }
  .fp-wl-title { transition: transform .5s cubic-bezier(.2,.6,.2,1); }
  .fp-wl-row:hover .fp-wl-title { transform: translateX(12px); }
}

/* Underline that draws in from the left; periwinkle on the page you're on */
.fp-ul { position: relative; }
.fp-ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.fp-ul:hover::after, .fp-ul:focus-visible::after { transform: scaleX(1); }
.fp-jump { border-bottom: 0; padding-bottom: 0; }
.fp-contact-link.fp-ul::after { height: 2px; bottom: 0; }
.tt-ol-menu-list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
body:not(.is-mobile) .tt-ol-menu-list > li > a:hover::after { transform: scaleX(1); }
.tt-ol-menu-list > li.active > a::after { transform: scaleX(1); background: var(--fp-accent); }

/* Cursor over links: a small periwinkle circle with an arrow */
#ball .ball-view.fp-cursor-arrow { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#ball .ball-view.fp-cursor-arrow::before { content: "\2192"; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 500; line-height: 1; color: var(--fp-accent-ink); }

/* Next Project: the next title runs slowly as one line of large type, all the time */
@media (min-width: 1025px) {
  .tt-page-nav.tt-pn-scroll .tt-pn-link { flex-direction: column; align-items: flex-start; }
  .tt-page-nav.tt-pn-scroll .tt-pn-title { left: 0; transform: none !important; opacity: 1; margin-bottom: 14px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1; color: var(--fp-muted); }
  .tt-page-nav.tt-pn-scroll .tt-pn-hover-title { position: relative; left: 0; transform: none !important; display: flex; width: 100%; }
  .tt-page-nav.tt-pn-scroll .tt-pn-hover-title span,
  .tt-page-nav.tt-pn-scroll .tt-pn-link:hover .tt-pn-hover-title span { animation: marquee 24s linear infinite; animation-play-state: running; }
  .tt-page-nav.tt-pn-scroll .tt-pn-hover-title span::after { transition: background-color .3s; }
  .tt-page-nav.tt-pn-scroll .tt-pn-link:hover .tt-pn-hover-title span::after { background-color: var(--fp-accent); }
}

/* "Copied" badge after clicking an email address */
a[href^="mailto:"] { position: relative; }
.fp-copied { position: absolute; left: 0; bottom: calc(100% + 8px); font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--fp-accent); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; }
.fp-copied.is-on { opacity: 1; transform: translateY(0); }

/* Loading screen: the logo fades up instead of appearing instantly */
.ptr-prel-image { animation: fp-prel-in .9s ease-out both; }
@keyframes fp-prel-in { from { opacity: 0; transform: scale(.985); } to { opacity: .2; transform: scale(1); } }

/* Grain: a very slow drift instead of the template's flicker, so the black feels like film */
.bg-noise:before { animation: fp-grain 40s ease-in-out infinite alternate; }
@keyframes fp-grain { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-4rem, 3rem, 0); } 100% { transform: translate3d(3rem, -4rem, 0); } }

@media (prefers-reduced-motion: reduce) {
  .fp-float { display: none; }
  .tt-page-nav.tt-pn-scroll .tt-pn-hover-title span { animation: none; }
  .ptr-prel-image, .bg-noise:before { animation: none; }
  .fp-ul::after, .tt-ol-menu-list > li > a::after, .fp-wl-title { transition: none; }
}
