/* ==========================================================
   Portfolio sections (client-facing layer of the home page)
   Keeps the grey glass identity of the site, adds one accent.
   ========================================================== */

/* Nothing may widen the page sideways (decorative claws, folded menus). */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

:root {
  --pf-accent: #12b3a3;
  --pf-accent-deep: #0b7d72;
  --pf-ink-strong: #2b3036;
  --pf-shell: 1180px;
  --pf-radius: clamp(20px, 2.4vw, 32px);
}

.pf-shell {
  width: min(calc(100% - 48px), var(--pf-shell));
  margin: 0 auto;
}

.pf-kicker {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pf-accent);
  box-shadow: 0 0 0 4px rgba(18, 179, 163, 0.18);
  animation: pf-pulse 2.4s var(--ease-out) infinite;
}

@keyframes pf-pulse {
  50% { box-shadow: 0 0 0 9px rgba(18, 179, 163, 0); }
}

.pf-index {
  display: inline-grid;
  min-width: 34px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Buttons & links */
.pf-button {
  display: inline-flex;
  min-height: 52px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--button-top), var(--button-bottom));
  box-shadow: var(--button-shadow);
  color: var(--pf-ink-strong);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.04em;
  transition: transform 320ms var(--ease-emphasized), box-shadow 280ms var(--ease-out), background 280ms var(--ease-out);
}

.pf-button:hover,
.pf-button:focus-visible {
  box-shadow: var(--button-shadow-hover);
  transform: translateY(-2px);
}

.pf-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #30363d, #4a525b);
  box-shadow: 0 10px 26px rgba(32, 38, 44, 0.24);
  color: #fff;
}

.pf-button-primary span:last-child {
  color: #7ff0e3;
}

.pf-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--pf-ink-strong);
  font-size: 13px;
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgba(18, 179, 163, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.pf-link:hover,
.pf-link:focus-visible {
  color: var(--pf-accent-deep);
  text-decoration-color: var(--pf-accent);
}

/* Language switchers */
.pf-langs ul,
.footer-langs ul,
.masthead-langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-langs a,
.footer-langs a,
.masthead-langs a {
  display: inline-grid;
  min-width: 40px;
  min-height: 32px;
  place-items: center;
  padding: 4px 10px;
  border: 1px solid var(--button-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 740;
  transition: background 200ms ease, color 200ms ease;
}

.pf-langs a[aria-current="page"],
.footer-langs a[aria-current="page"],
.masthead-langs a[aria-current="page"] {
  border-color: var(--pf-ink-strong);
  background: var(--pf-ink-strong);
  color: #fff;
}

.pf-langs a:hover,
.footer-langs a:hover,
.masthead-langs a:hover {
  background: #fff;
  color: var(--pf-ink-strong);
}

.footer-langs {
  margin-top: 24px;
}

/* Masthead scene: a film still behind the logo, only in the full-screen state. */
.masthead-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #dcecf1;
  pointer-events: none;
  transition: opacity 520ms var(--ease-out), visibility 0s linear 0s;
}

.masthead-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.55) 0%, rgba(248, 250, 251, 0) 22%),
    linear-gradient(0deg, rgba(240, 246, 248, 0.5) 0%, rgba(240, 246, 248, 0) 22%),
    radial-gradient(ellipse 42% 34% at 50% 50%, rgba(255, 255, 255, 0.4), transparent 70%);
}

.masthead-scene-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 76% 50%;
  transform-origin: 86% 12%;
  animation:
    masthead-scene-reveal 1800ms var(--ease-out) 120ms both,
    masthead-scene-drift 32s ease-in-out 1900ms infinite alternate;
}

@keyframes masthead-scene-reveal {
  from { opacity: 0; filter: blur(14px) brightness(1.25); transform: scale(1.09); }
  to { opacity: 1; filter: none; transform: scale(1.02); }
}

@keyframes masthead-scene-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(0.4%, 0, 0); }
}

.masthead.is-compact .masthead-scene,
.masthead.is-phone-game .masthead-scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.masthead.is-compact .masthead-scene-image,
.masthead.is-phone-game .masthead-scene-image {
  animation-play-state: paused;
}

.masthead-tagline {
  position: absolute;
  bottom: clamp(28px, 6vh, 64px);
  left: 50%;
  z-index: 2;
  margin: 0;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
}

/* Over the film still, the tagline becomes a frosted pill with a scroll cue. */
.masthead-scene ~ .masthead-tagline {
  padding: 9px 18px 9px calc(18px + 0.22em);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(248, 251, 252, 0.58);
  color: var(--pf-ink-strong);
  box-shadow: 0 10px 30px rgba(40, 60, 70, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.masthead-scene ~ .masthead-tagline::after {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 1px;
  height: 22px;
  content: "";
  background: linear-gradient(180deg, rgba(248, 251, 252, 0.95), rgba(248, 251, 252, 0));
  transform-origin: top;
  animation: masthead-scroll-cue 2400ms var(--ease-out) 2200ms infinite;
}

@keyframes masthead-scroll-cue {
  0% { opacity: 0; transform: scaleY(0); }
  35% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: translateY(12px) scaleY(0.4); }
}

.masthead.is-compact .masthead-tagline,
.masthead.is-phone-game .masthead-tagline {
  opacity: 0;
  pointer-events: none;
  transition: opacity 80ms linear;
  visibility: hidden;
}

/* Intro */
.pf-intro {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 90px);
  overflow: hidden;
}

.pf-intro-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.pf-intro-title {
  margin: clamp(26px, 4vw, 44px) 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(34px, 5.6vw, 84px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

.pf-intro-title em {
  position: relative;
  color: var(--pf-accent-deep);
  font-style: normal;
}

.pf-intro-title em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.06em;
  left: 0;
  height: 0.09em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pf-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: pf-underline 1.2s var(--ease-emphasized) 0.4s forwards;
}

.pf-intro-title em:nth-of-type(2)::after { animation-delay: 0.7s; }
.pf-intro-title em:nth-of-type(3)::after { animation-delay: 1s; }
.pf-intro-title em:nth-of-type(4)::after { animation-delay: 1.3s; }
.pf-intro-title em:nth-of-type(5)::after { animation-delay: 1.6s; }

@keyframes pf-underline {
  to { transform: scaleX(1); }
}

.pf-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(30px, 4vw, 52px);
}

.pf-intro-lead {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.pf-intro-lead strong {
  color: var(--pf-ink-strong);
}

.pf-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.pf-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(44px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line);
}

.pf-fact {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 24px 20px 0 0;
}

.pf-fact + .pf-fact {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.pf-fact dd {
  margin: 0;
  color: var(--pf-ink-strong);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pf-fact dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Reel */
.pf-reel {
  position: relative;
  margin-top: clamp(28px, 4vw, 60px);
  padding: 36px 0 72px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.pf-reel-track {
  display: flex;
  width: max-content;
  animation: pf-reel 150s linear infinite;
}

.pf-reel:hover .pf-reel-track,
.pf-reel.is-paused .pf-reel-track {
  animation-play-state: paused;
}

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

.pf-reel-list {
  display: flex;
  gap: clamp(18px, 2vw, 30px);
  margin: 0;
  padding: 0 clamp(18px, 2vw, 30px) 0 0;
  list-style: none;
}

.pf-reel-item {
  width: clamp(300px, 46vw, 760px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(18px, 1.6vw, 26px);
  background: var(--surface-soft);
  box-shadow: 0 18px 40px rgba(40, 46, 54, 0.16);
  transform: rotate(var(--tilt, 0deg));
}

.pf-reel-item:nth-child(odd) { --tilt: -1.2deg; }
.pf-reel-item:nth-child(3n) { --tilt: 1.4deg; }

.pf-reel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.pf-reel-item:hover img {
  transform: scale(1.06);
}

.pf-reel-toggle {
  position: absolute;
  z-index: 2;
  right: clamp(48px, 8vw, 120px);
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--button-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--pf-ink-strong);
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--button-shadow);
}

/* Sections */
.pf-section {
  padding: clamp(84px, 11vw, 150px) 0;
}

.pf-section-head {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.pf-section-head-center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.pf-section-head h2 {
  margin: 0;
  color: var(--pf-ink-strong);
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.pf-section-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

/* Audiences */
.pf-audiences {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 30%, transparent);
}

.pf-audience-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.pf-audience {
  position: relative;
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid rgba(148, 150, 154, 0.28);
  border-radius: var(--pf-radius);
  background: linear-gradient(150deg, #fff, #f3f5f6);
  box-shadow: 0 14px 40px rgba(48, 56, 64, 0.08);
  transition: transform 420ms var(--ease-emphasized), box-shadow 420ms var(--ease-out);
}

.pf-audience:nth-child(4),
.pf-audience:nth-child(5) {
  grid-column: span 3;
}

.pf-audience:hover {
  box-shadow: 0 26px 60px rgba(48, 56, 64, 0.15);
  transform: translateY(-6px);
}

.pf-audience::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 179, 163, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 500ms ease;
}

.pf-audience:hover::before {
  opacity: 1;
}

.pf-audience-number {
  color: rgba(43, 48, 54, 0.12);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.pf-audience h3 {
  margin: 0;
  color: var(--pf-ink-strong);
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pf-audience p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.pf-audience .pf-audience-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pf-audience ul {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.pf-audience li {
  position: relative;
  padding-left: 20px;
  color: var(--pf-ink-strong);
  font-size: 14px;
  line-height: 1.4;
}

.pf-audience li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--pf-accent);
}

.pf-audience .pf-link {
  margin-top: auto;
}

/* Work */
.pf-work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.pf-work-card {
  display: flex;
  grid-column: span 3;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 150, 154, 0.26);
  border-radius: var(--pf-radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(48, 56, 64, 0.1);
}

.pf-work-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}

.pf-work-third {
  grid-column: span 2;
}

.pf-work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1f2328;
}

.pf-work-wide .pf-work-media {
  aspect-ratio: auto;
  min-height: 380px;
}

.pf-work-card.is-portrait .pf-work-media {
  aspect-ratio: 4 / 5;
}

.pf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 6s linear;
}

.pf-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.pf-work-card:hover .pf-slide.is-active {
  transform: scale(1.035);
}

.pf-play {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 740;
  cursor: pointer;
  transition: background 220ms ease, transform 320ms var(--ease-emphasized);
}

.pf-play svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--pf-accent);
  fill: #fff;
}

.pf-play:hover,
.pf-play:focus-visible {
  background: rgba(20, 24, 28, 0.8);
  transform: translateY(-2px);
}

.pf-work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 34px);
}

.pf-work-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--pf-accent-deep);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pf-work-meta span:last-child {
  color: var(--muted);
}

.pf-work-body h3 {
  margin: 0;
  color: var(--pf-ink-strong);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.pf-work-wide .pf-work-body h3 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.pf-work-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.pf-work-role {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pf-work-role span {
  color: var(--pf-ink-strong);
  font-weight: 740;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 680;
}

.pf-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 8px;
}

/* Audiovisual library */
.pf-av {
  width: min(calc(100% - 24px), 1400px);
  margin: 0 auto;
  border-radius: calc(var(--pf-radius) + 12px);
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 179, 163, 0.22), transparent 38%),
    linear-gradient(180deg, #262b31 0%, #1b1f24 100%);
  color: #c9ced3;
  box-shadow: 0 30px 80px rgba(20, 24, 28, 0.28);
}

.pf-av .pf-section-lead {
  color: #c2c8ce;
}

.pf-av .pf-section-head h2,
.pf-av .pf-av-group-head h3 {
  color: #fff;
}

.pf-av .pf-kicker {
  color: #7ff0e3;
}

.pf-av .pf-index {
  border-color: rgba(255, 255, 255, 0.24);
}

.pf-av-feature {
  width: 100%;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.pf-av-feature-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.pf-av-feature .audiovisual-image {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.pf-play-static {
  top: 50%;
  bottom: auto;
  left: 50%;
  padding: 14px 24px 14px 16px;
  font-size: 15px;
  transform: translate(-50%, -50%);
}

.pf-av-feature-media:hover .pf-play-static,
.pf-av-feature-media:focus-visible .pf-play-static {
  background: rgba(20, 24, 28, 0.8);
  transform: translate(-50%, -52%);
}

.pf-av-filters {
  position: sticky;
  z-index: 5;
  top: 104px;
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(27, 31, 36, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.pf-av-filters button {
  flex: none;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9ced3;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.pf-av-filters button span {
  margin-left: 4px;
  color: #7c858e;
  font-size: 11px;
}

.pf-av-filters button.is-active,
.pf-av-filters button:hover {
  background: #fff;
  color: #1b1f24;
}

.pf-av-group + .pf-av-group {
  margin-top: clamp(44px, 5vw, 64px);
}

.pf-av-group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  margin-bottom: 20px;
}

.pf-av-group-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
}

.pf-av-group-head p {
  max-width: 620px;
  margin: 0;
  color: #9aa2aa;
  font-size: 14px;
}

.pf-av-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-video {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #e6e9ec;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pf-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pf-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out), filter 400ms ease;
}

.pf-video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45));
  opacity: 0.85;
  transition: opacity 300ms ease;
}

.pf-video-play svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(18, 179, 163, 0.92);
  fill: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  transition: transform 320ms var(--ease-emphasized);
}

.pf-video:hover .pf-video-thumb img,
.pf-video:focus-visible .pf-video-thumb img {
  filter: saturate(1.15);
  transform: scale(1.06);
}

.pf-video:hover .pf-video-play svg,
.pf-video:focus-visible .pf-video-play svg {
  transform: scale(1.05);
}

.pf-video-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.pf-av-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: clamp(48px, 6vw, 72px);
}

.pf-av-channels p {
  margin: 0 12px 0 0;
  color: #fff;
  font-weight: 700;
}

/* Video dialog */
.pf-video-dialog {
  width: min(1100px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #0f1215;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.pf-video-dialog::backdrop {
  background: rgba(10, 12, 14, 0.78);
  backdrop-filter: blur(6px);
}

.pf-video-dialog-card {
  position: relative;
}

.pf-video-frame {
  aspect-ratio: 16 / 9;
}

.pf-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pf-video-dialog-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 24px;
  cursor: pointer;
}

.pf-video-dialog-note {
  margin: 0;
  padding: 10px 16px;
  color: #8a939b;
  font-size: 12px;
}

/* Catalogue (existing icons) */
.games-catalog .pf-section-head {
  margin-bottom: 56px;
}

.games-subheading {
  font-size: clamp(24px, 3vw, 34px);
}

/* Skills */
.pf-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pf-skill {
  padding: 30px 28px 34px 0;
  border-bottom: 1px solid var(--line);
}

.pf-skill:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.pf-skill span {
  color: var(--pf-accent-deep);
  font-size: 12px;
  font-weight: 780;
}

.pf-skill h3 {
  margin: 12px 0 8px;
  color: var(--pf-ink-strong);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.pf-skill p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

/* Process */
.pf-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pf-step {
  position: relative;
  padding: 72px 24px 28px;
  border-radius: var(--pf-radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(48, 56, 64, 0.07);
  counter-increment: step;
}

.pf-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--pf-accent);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pf-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -14px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.pf-step h3 {
  margin: 0 0 8px;
  color: var(--pf-ink-strong);
  font-size: 22px;
}

.pf-step p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.pf-note {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding: 26px 30px;
  border: 1px dashed rgba(18, 179, 163, 0.5);
  border-radius: var(--pf-radius);
  background: rgba(18, 179, 163, 0.06);
}

.pf-note h3 {
  margin: 0;
  color: var(--pf-accent-deep);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-note p {
  margin: 0;
  color: var(--pf-ink-strong);
  line-height: 1.55;
}

/* About */
.pf-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.pf-portrait {
  position: relative;
  margin: 0;
}

.pf-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1013;
  object-fit: cover;
  border-radius: var(--pf-radius);
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 28px 70px rgba(48, 56, 64, 0.22);
}

.pf-portrait-claw {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: 42%;
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(-12deg);
  mix-blend-mode: multiply;
}

.pf-portrait-claw img {
  aspect-ratio: auto;
  box-shadow: none;
  filter: none;
}

.pf-about-copy h2 {
  margin: 18px 0 24px;
  color: var(--pf-ink-strong);
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.pf-about-copy > p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.pf-about-copy h3 {
  margin: 32px 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pf-credentials {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-credentials li {
  padding: 12px 16px;
  border-left: 3px solid var(--pf-accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  color: var(--pf-ink-strong);
  font-size: 14px;
  line-height: 1.45;
}

/* FAQ */
.pf-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.pf-faq-list {
  display: grid;
  gap: 10px;
}

.pf-faq-item {
  border: 1px solid rgba(148, 150, 154, 0.28);
  border-radius: 18px;
  background: var(--surface);
}

.pf-faq-item summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: var(--pf-ink-strong);
  font-weight: 720;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.pf-faq-item summary::-webkit-details-marker {
  display: none;
}

.pf-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--pf-accent-deep);
  font-size: 22px;
  transform: translateY(-50%);
  transition: transform 300ms var(--ease-emphasized);
}

.pf-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.pf-faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink);
  line-height: 1.6;
}

.pf-journal-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* CTA */
.pf-cta {
  padding: 0 0 clamp(84px, 10vw, 140px);
}

.pf-cta-card {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: start;
  width: min(calc(100% - 48px), var(--pf-shell));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px);
  overflow: hidden;
  border-radius: calc(var(--pf-radius) + 8px);
  background:
    radial-gradient(circle at 85% 15%, rgba(18, 179, 163, 0.38), transparent 42%),
    linear-gradient(135deg, #262b31, #3a4148);
  color: #d5dade;
  box-shadow: 0 34px 90px rgba(32, 38, 44, 0.3);
}

.pf-cta-card .pf-kicker {
  color: #7ff0e3;
}

.pf-cta-card h2 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5.6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.pf-cta-card p {
  max-width: 640px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.pf-cta-card .pf-intro-actions {
  justify-content: flex-start;
}

.pf-cta-card .pf-button:not(.pf-button-primary) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.pf-cta-card .pf-button-primary {
  background: #fff;
  color: #1f2328;
}

.pf-cta-card .pf-button-primary span:last-child {
  color: var(--pf-accent-deep);
}

.pf-cta-claw {
  position: absolute;
  top: -10%;
  right: -6%;
  width: 46%;
  opacity: 0.12;
  pointer-events: none;
  filter: invert(1);
  transform: rotate(8deg);
}

/* Contact page additions */
.contact-direct {
  margin-top: 6px;
  font-size: 15px;
}

.contact-direct a {
  color: var(--pf-ink-strong);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: var(--pf-accent);
  text-underline-offset: 4px;
}

.contact-intro .pf-langs {
  margin-top: 18px;
}

.form-field-select select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--button-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--pf-ink-strong);
  font: inherit;
}

/* Reveal */
.pf-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-emphasized);
}

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

/* Responsive */
@media (max-width: 1000px) {
  .pf-audience,
  .pf-audience:nth-child(4),
  .pf-audience:nth-child(5) {
    grid-column: span 3;
  }

  .pf-work-third {
    grid-column: span 3;
  }

  .pf-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-step::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .pf-intro-grid,
  .pf-about-grid,
  .pf-faq-grid,
  .pf-work-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf-intro-actions {
    justify-content: flex-start;
  }

  .pf-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-fact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .pf-work-wide .pf-work-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .pf-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-skill:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  .pf-skill:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .pf-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf-av-filters {
    top: 100px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .pf-shell,
  .pf-cta-card {
    width: calc(100% - 32px);
  }

  .pf-av {
    width: calc(100% - 16px);
    border-radius: 24px;
  }

  .pf-av .pf-shell {
    width: calc(100% - 32px);
  }

  .pf-av-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .pf-video-title {
    font-size: 12px;
  }

  .pf-video-play svg {
    width: 36px;
    height: 36px;
    padding: 9px;
  }

  .pf-av-channels .pf-button {
    width: 100%;
  }

  .pf-play-static {
    padding: 10px 18px 10px 12px;
    font-size: 13px;
  }

  .pf-intro-actions .pf-button {
    flex: 1 1 100%;
  }

  .pf-work-body {
    padding: 22px 20px 24px;
  }

  .pf-work-links {
    flex-direction: column;
    gap: 10px;
  }

  .pf-work-links .pf-link {
    overflow-wrap: anywhere;
  }

  .pf-cta-card .pf-button {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .pf-fact dd {
    font-size: 30px;
  }

  .pf-audience,
  .pf-audience:nth-child(4),
  .pf-audience:nth-child(5),
  .pf-work-card,
  .pf-work-third {
    grid-column: 1 / -1;
  }

  .pf-steps,
  .pf-skill-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf-skill:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .masthead-scene {
    background: linear-gradient(180deg, #f7fafb 0%, #eef5f7 45%, #e3eef1 100%);
  }

  .masthead-scene-image {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 64%;
    object-position: 72% 50%;
    transform-origin: 70% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }

  .masthead-tagline {
    font-size: 9px;
    letter-spacing: 0.14em;
    white-space: normal;
    width: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-reel-track,
  .pf-dot,
  .masthead-scene-image,
  .masthead-scene ~ .masthead-tagline::after {
    animation: none;
  }

  .pf-intro-title em::after {
    animation: none;
    transform: scaleX(1);
  }

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

  .pf-slide {
    transition: none;
  }
}

/* Japanese: break titles between phrases, not inside words. */
:lang(ja) .pf-intro-title,
:lang(ja) .pf-section-head h2,
:lang(ja) .pf-cta-card h2 {
  word-break: auto-phrase;
}

/* Videos per game project (catalogue) */
.pf-game-videos {
  width: min(100%, 980px);
  margin: 108px auto 0;
}

.pf-game-videos-head {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.pf-game-videos-head .games-heading {
  margin: 0;
}

.pf-game-videos-project + .pf-game-videos-project {
  margin-top: 40px;
}

.pf-game-videos-project h4 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.pf-game-videos-project h4 a {
  color: var(--pf-ink-strong);
}

.pf-game-videos-project h4 span {
  color: var(--pf-accent-deep);
  font-size: 15px;
}

.pf-game-videos-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-game-videos .pf-video {
  color: var(--pf-ink-strong);
}

.pf-game-videos .pf-video-thumb {
  box-shadow: 0 14px 34px rgba(48, 56, 64, 0.18);
}

/* Home: link from the audience cards and the artist banner */
.pf-audience-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: auto;
}

.pf-audience-links .pf-link {
  margin-top: 0;
}

.pf-artist-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 30px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3vw, 36px);
  border: 1px dashed rgba(18, 179, 163, 0.55);
  border-radius: var(--pf-radius);
  background: linear-gradient(120deg, rgba(18, 179, 163, 0.08), rgba(255, 255, 255, 0.6));
}

.pf-artist-banner h3 {
  margin: 0 0 6px;
  color: var(--pf-ink-strong);
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: -0.025em;
}

.pf-artist-banner p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .pf-artist-banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer: three link groups (Griffure, Commandes, Légal). */
.footer-groups {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
