/* Layout concept: big tight type in daylight; every size is a fluid formula of the viewport,
   so the page scales smoothly between phone, tablet, laptop and wide monitors. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #e0e0e5;
  --link: #0066cc;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(16px, calc(4 * var(--vw)), 48px);
  --edge: max(var(--gutter), calc((var(--full) - var(--max)) / 2));
  --section: clamp(56px, calc(8 * var(--vw)), 120px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* work wall: 4 rows of 16:9 cells; row height tuned so 1x1, 2x2 and 3x3 tiles all stay 16:9 */
  --gap: clamp(5px, calc(0.6 * var(--vw)), 9px);
  --col: clamp(112px, calc(10 * var(--vw)) + 78px, 320px);
  --row: calc(var(--col) * 0.5625 - var(--gap) * 0.21875);

  /* filmography posters */
  --poster: clamp(96px, calc(4.5 * var(--vw)) + 80px, 156px);

  /* 1% of the viewport. On large desktops v5.js pins these to the 1708px reference design and zooms the page,
     so everything grows or shrinks together with no change in proportions. */
  --vw: 1vw;
  --full: 100vw;
  --dvh: 1dvh;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(16px, calc(0.2 * var(--vw)) + 15px, 18px);
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* Section titles share the hero's voice: heavy, tight, large */
.sec-title {
  font-size: clamp(34px, calc(4.6 * var(--vw)) + 14px, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  margin-bottom: clamp(18px, calc(2.4 * var(--vw)), 32px);
}
.sec-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sec-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot-play {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M0 0l12 7-12 7z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 6px no-repeat;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.nav__inner { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, calc(2.4 * var(--vw)), 32px); font-size: 13px; white-space: nowrap; }
.nav__links a { color: rgba(29, 29, 31, 0.75); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__links .nav__cta { background: var(--fg); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 500; }
.nav__links .nav__cta:hover { color: #fff; background: #000; }
@media (max-width: 460px) { .nav__opt { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(60px, calc(8 * var(--vw)), 112px) clamp(44px, calc(5 * var(--vw)), 72px); display: grid; gap: clamp(16px, calc(1.6 * var(--vw)), 22px); }
.hero__heading { display: grid; gap: clamp(4px, calc(0.9 * var(--vw)), 14px); }
.hero__name { font-size: clamp(15px, calc(3.6 * var(--vw)) + 2px, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero__title { font-size: clamp(36px, calc(11.4 * var(--vw)), 136px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; white-space: nowrap; }
.hero__lede {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(14px, calc(1.6 * var(--vw)) + 8.5px, 28px);
  line-height: 1.32;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero__meta { display: flex; align-items: center; gap: clamp(12px, calc(3 * var(--vw)), 40px); flex-wrap: nowrap; margin-top: clamp(10px, calc(1 * var(--vw)), 16px); }
.hero__members { display: flex; align-items: center; gap: clamp(10px, calc(1.6 * var(--vw)), 20px); min-width: 0; }
.hero__members img { height: clamp(20px, calc(1.6 * var(--vw)) + 14px, 34px); width: auto; transition: opacity .2s; }
/* logos keep their own width: never let the flex row squeeze them to nothing (Safari did on reload) */
.hero__members a, .about__members a { flex: none; display: block; line-height: 0; }
.hero__members img, .about__members img { max-width: none; width: auto; }
.hero__members img[alt="Visual Effects Society"], .about__members img[alt="Visual Effects Society"] { aspect-ratio: 126 / 36; }
.hero__members img[alt="Television Academy"], .about__members img[alt="Television Academy"] { aspect-ratio: 104 / 55; }
.hero__members img { filter: grayscale(1); opacity: .75; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.hero__members a:hover img, .hero__members a:focus-visible img { filter: none; opacity: 1; }
.imdb {
  display: inline-flex; align-items: center; gap: 9px;
  flex: none; white-space: nowrap;
  height: clamp(32px, calc(1 * var(--vw)) + 28px, 40px); padding: 0 1.1em 0 0.55em;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: clamp(12px, calc(0.3 * var(--vw)) + 11px, 14px); font-weight: 500;
  transition: background .2s var(--ease);
}
.imdb:hover { background: #e8e8ed; }
.imdb__logo { display: grid; place-items: center; height: 1.85em; padding: 0 0.55em; border-radius: 6px; background: #F5C518; color: #000; font-family: Impact, "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue", sans-serif; font-size: 1.07em; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.imdb__arrow { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }

/* ---------- Controls ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-soft); border-radius: 999px; max-width: 100%; }
.seg button { padding: 7px clamp(10px, calc(1.4 * var(--vw)), 16px); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s; }
.seg button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button:not([aria-selected="true"]):hover { color: var(--fg); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: background .2s, opacity .2s; }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.arrow:hover { background: #e8e8ed; }
.arrow:disabled { opacity: .35; cursor: default; background: var(--bg-soft); }
@media (hover: none) { .arrows { display: none; } }

/* ---------- Work wall ---------- */
.work { padding-bottom: var(--section); }
.wall {
  display: grid;
  grid-template-rows: repeat(4, var(--row));
  grid-auto-columns: var(--col);
  grid-auto-flow: column dense;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.wall::-webkit-scrollbar { display: none; }
.is-dragging { cursor: grabbing !important; }
.is-dragging > * { pointer-events: none; }

.tile { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: clamp(6px, calc(0.7 * var(--vw)), 10px); background: var(--bg-soft); text-align: left; isolation: isolate; }
.tile--m { grid-row: span 2; grid-column: span 2; border-radius: clamp(8px, calc(0.9 * var(--vw)), 12px); }
.tile--l { grid-row: span 3; grid-column: span 3; border-radius: clamp(10px, calc(1 * var(--vw)), 14px); }
.tile.is-hidden { display: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease), transform .8s var(--ease); -webkit-user-drag: none; user-select: none; }
.tile img.is-loaded { opacity: 1; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 32px 12px 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile__t { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.tile__s { display: block; font-size: 12px; opacity: .8; margin-top: 1px; }
.tile--m .tile__t { font-size: 16px; }
.tile--l .tile__t { font-size: clamp(16px, calc(1.2 * var(--vw)) + 6px, 22px); }
.tile--l .tile__cap { padding: 48px clamp(12px, calc(1.4 * var(--vw)), 18px) clamp(10px, calc(1.2 * var(--vw)), 16px); }
.tile__play { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tile__play svg { width: 10px; height: 10px; margin-left: 2px; }
.tile--l .tile__play { width: 40px; height: 40px; }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.045); }
  .tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
}
@media (hover: none) {
  .wall, .posters { cursor: auto; }
  .tile--m .tile__cap, .tile--l .tile__cap { opacity: 1; transform: none; padding: 26px 10px 8px; }
  .tile__s, .tile__play { display: none; }
  .tile--m .tile__t { font-size: 13px; }
  .tile--l .tile__t { font-size: 15px; }
}

/* ---------- Filmography: two rows, scrolls sideways past both edges ---------- */
.films { padding-bottom: var(--section); }
.posters {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: var(--poster);
  gap: clamp(22px, calc(2.6 * var(--vw)), 36px) clamp(12px, calc(1.4 * var(--vw)), 20px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  padding-bottom: 6px;
  cursor: grab;
}
.posters::-webkit-scrollbar { display: none; }
.poster { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; }
.poster__img {
  position: relative; display: block;
  aspect-ratio: 2 / 3;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.25);
}
.poster__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); -webkit-user-drag: none; user-select: none; }
.poster__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-size: clamp(15px, calc(1 * var(--vw)) + 8px, 20px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--muted); }
.poster__play {
  position: absolute; right: 8px; bottom: 8px;
  width: clamp(34px, calc(2 * var(--vw)) + 20px, 44px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #000;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: transform .25s var(--ease);
}
.poster__play svg { width: 32%; margin-left: 8%; }
.poster__title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.poster__meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.poster__watch { display: none; }
@media (hover: hover) {
  button.poster:hover .poster__img img { transform: scale(1.04); }
  button.poster:hover .poster__play { transform: scale(1.1); }
  button.poster:hover .poster__watch { text-decoration: underline; }
}

/* ---------- About: columns wrap on their own when there is no room ---------- */
.about { display: grid; grid-template-columns: clamp(200px, calc(30 * var(--vw)), 400px) minmax(0, 1fr); column-gap: clamp(28px, calc(5 * var(--vw)), 80px); row-gap: clamp(14px, calc(2 * var(--vw)), 24px); align-items: start; padding-bottom: var(--section); }
.about__title { grid-column: 2; grid-row: 1; }
.about__side { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 76px; display: grid; gap: clamp(14px, calc(1.6 * var(--vw)), 22px); }
.about__photo { border-radius: 14px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 2 / 3; }
.about__members { display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(12px, calc(1.4 * var(--vw)), 18px); }
.about__members img { height: clamp(24px, calc(0.8 * var(--vw)) + 18px, 30px); width: auto; transition: opacity .2s; }
.about__members a:hover img { opacity: .65; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { grid-column: 2; grid-row: 2; min-width: 0; display: grid; gap: 18px; }
.about__text p { margin: 0; max-width: 64ch; color: #424245; }
.about__name { font-weight: 700; }
.about__info { display: none; }
.about__text .about__lede { font-size: clamp(19px, calc(0.9 * var(--vw)) + 14px, 26px); line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px; margin-top: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts__col { min-width: 0; display: grid; gap: 12px; align-content: start; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; gap: 2px; font-size: 15px; line-height: 1.35; }
.facts li b { font-weight: 600; }
.facts li span { color: var(--muted); font-size: 14px; }
.press a { display: grid; gap: 2px; font-weight: 600; transition: color .2s; }
.press a:hover { color: var(--link); }
.press a span { font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- Contact: one centred composition ---------- */
.contact { background: var(--bg-soft); padding-block: var(--section); }
.contact__inner { display: grid; justify-items: center; text-align: center; }
.contact__mail {
  margin-top: clamp(20px, calc(3 * var(--vw)), 40px);
  font-size: clamp(22px, calc(3.2 * var(--vw)) + 8px, 56px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
  max-width: 100%; overflow-wrap: anywhere;
  transition: color .2s;
}
.contact__mail:hover { color: var(--link); }
.contact__sub { margin: clamp(8px, calc(1 * var(--vw)), 14px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: clamp(16px, calc(0.6 * var(--vw)) + 13px, 21px); color: var(--muted); }
.contact__sub a { transition: color .2s; }
.contact__sub a:hover { color: var(--fg); }
.contact .icons { margin-top: clamp(24px, calc(3 * var(--vw)), 40px); justify-content: center; }

.icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(8px, calc(1 * var(--vw)), 12px); }
.icons a {
  --brand: var(--fg);
  width: clamp(42px, calc(1.4 * var(--vw)) + 34px, 52px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px -6px rgba(0,0,0,.12);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.icons a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.icons a.is-imdb:hover { color: #000; }
.icons svg { width: 44%; height: 44%; fill: currentColor; }

.footer { padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--muted); }

/* ---------- Lightbox (dark: video reads best on black) ---------- */
.lb { width: var(--full); max-width: var(--full); height: calc(100 * var(--dvh)); max-height: calc(100 * var(--dvh)); margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.95); color: #f5f5f7; display: none; grid-template-rows: auto 1fr auto; }
.lb[open] { display: grid; animation: fade .3s var(--ease); }
.lb::backdrop { background: rgba(0,0,0,.5); }
.lb__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: calc(16px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.lb__meta { min-width: 0; }
.lb__title { margin: 0; font-size: clamp(18px, calc(2 * var(--vw)), 24px); font-weight: 600; letter-spacing: -0.02em; }
.lb__sub { margin: 2px 0 0; color: #a1a1a6; font-size: 14px; }
.lb__close, .lb__nav { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1c1c1f; color: #f5f5f7; transition: background .2s; flex: none; }
.lb__close:hover, .lb__nav:hover { background: #2c2c30; }
.lb__stage { position: relative; display: grid; place-items: center; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); min-height: 0; }
.lb__player { width: min(100%, calc((calc(100 * var(--dvh)) - 190px) * 16 / 9), 1400px); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.lb__player iframe, .lb__player video { width: 100%; height: 100%; border: 0; display: block; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.lb__nav--next { right: max(10px, env(safe-area-inset-right, 0px)); }
.lb__role { margin: 0; text-align: center; font-size: 13px; color: #a1a1a6; padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (hover: none), (max-width: 760px) { .lb__nav { display: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }


/* ---------- Services ---------- */
.services { padding-bottom: var(--section); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(20px, calc(2.4 * var(--vw)), 40px); }
.svc { display: grid; gap: 8px; align-content: start; }
.svc h3 { font-size: clamp(18px, calc(0.6 * var(--vw) + 13px), 22px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.svc p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.worked { margin: clamp(28px, calc(3.4 * var(--vw)), 48px) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.worked__list { font-size: clamp(17px, calc(0.9 * var(--vw) + 10px), 24px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; }

/* ---------- Lightbox: link to the project page ---------- */
.lb__role { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; }
.lb__link { color: #f5f5f7; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: #1c1c1f; transition: background .2s; }
.lb__link:hover { background: #2c2c30; }
a.tile { color: inherit; -webkit-user-drag: none; }

/* ---------- Project page ---------- */
.proj { padding-block: clamp(28px, calc(4 * var(--vw)), 64px) var(--section); display: grid; gap: clamp(20px, calc(2.6 * var(--vw)), 40px); }
.proj__back { display: inline-flex; align-items: center; gap: 4px; width: fit-content; font-size: 14px; color: var(--muted); transition: color .2s; }
.proj__back:hover { color: var(--fg); }
.proj__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.proj__head { display: grid; gap: 8px; }
.proj__sub { margin: 0; font-size: clamp(17px, calc(1 * var(--vw) + 11px), 24px); color: var(--muted); font-weight: 500; letter-spacing: -0.02em; }
.proj__player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: clamp(10px, calc(1.2 * var(--vw)), 18px); overflow: hidden; background: #000; cursor: pointer; }
.proj__player img, .proj__player iframe, .proj__player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.proj__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(56px, calc(5 * var(--vw)), 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .25s var(--ease), background .25s; }
.proj__play svg { width: 26%; margin-left: 6%; fill: currentColor; }
.proj__player:hover .proj__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(0,0,0,.55); }
.proj__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, calc(4 * var(--vw)), 64px); align-items: start; }
.proj__facts { margin: 0; display: grid; gap: 14px; }
.proj__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.proj__facts dd { margin: 2px 0 0; font-size: clamp(17px, calc(0.5 * var(--vw) + 13px), 21px); font-weight: 500; letter-spacing: -0.02em; }
.proj__text { display: grid; gap: 22px; min-width: 0; }
.proj__summary { margin: 0; font-size: clamp(18px, calc(0.6 * var(--vw) + 13px), 22px); line-height: 1.4; letter-spacing: -0.015em; max-width: 60ch; }
.proj__credits p { margin: 10px 0 0; white-space: pre-line; font-size: 14px; line-height: 1.55; color: var(--muted); }
.proj__more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: clamp(20px, calc(2.6 * var(--vw)), 36px); border-top: 1px solid var(--line); }
.proj__more a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); transition: background .2s; min-width: 0; }
.proj__more a:hover { background: #e8e8ed; }
.proj__more a:last-child { text-align: right; }
.proj__more b { font-size: clamp(16px, calc(0.5 * var(--vw) + 12px), 20px); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.proj__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.proj__foot a:hover { color: var(--fg); }

.more-wrap { display: none; }
.more { margin-top: 16px; width: 100%; height: 46px; border-radius: 12px; background: var(--bg-soft); font-size: 15px; font-weight: 500; }

/* =====================================================================
   PHONE LAYOUT (up to 700px): its own design, not a shrunken desktop.
   ===================================================================== */
@media (max-width: 520px) { .hero__members .label { display: none; } }
@media (max-width: 360px) { .imdb__arrow { display: none; } .hero__members img { height: 17px; } .hero__meta { gap: 10px; } }
@media (max-width: 700px) {
  /* Header: bigger name and title, more air above and below */
  .hero { padding-block: 84px 68px; }
  .hero__name { font-size: clamp(18px, calc(5.4 * var(--vw)), 26px); }
  .hero__title { font-size: calc(12.4 * var(--vw)); }
  .hero__heading { gap: 6px; }
  .hero__lede { font-size: 13px; line-height: 1.38; margin-top: 8px; }

  .sec-head { margin-bottom: 14px; }
  .sec-note { font-size: 13px; }
  .work .arrows { display: none; }

  /* Work: big projects full width, the rest two per row, titles always visible */
  .wall {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-columns: auto;
    gap: 8px;
    overflow: visible;
    cursor: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .wall .tile { aspect-ratio: 16 / 9; order: var(--m); border-radius: 10px; }
  .wall .tile--m, .wall .tile--l { grid-column: span 2; grid-row: auto; border-radius: 14px; }
  .wall .tile .tile__cap { opacity: 1; transform: none; padding: 24px 9px 7px; }
  .wall .tile .tile__t { font-size: 12px; }
  .wall .tile .tile__s, .wall .tile .tile__play { display: none; }
  .wall .tile--m .tile__cap, .wall .tile--l .tile__cap { padding: 40px 14px 12px; }
  .wall .tile--m .tile__t, .wall .tile--l .tile__t { font-size: 17px; }
  .wall .tile--m .tile__s, .wall .tile--l .tile__s { display: block; font-size: 13px; }
  .wall .tile--m .tile__play, .wall .tile--l .tile__play { display: grid; width: 36px; height: 36px; }
  .wall .tile.tile--mob-s { grid-column: auto; border-radius: 10px; }
  .wall .tile.tile--mob-s .tile__cap { padding: 24px 9px 7px; }
  .wall .tile.tile--mob-s .tile__t { font-size: 12px; }
  .wall .tile.tile--mob-s .tile__s, .wall .tile.tile--mob-s .tile__play { display: none; }
  .wall:not(.is-open) .tile--more { display: none; }
  .work .more-wrap { display: block; }
  .work:has(.wall.is-open) .more-wrap { display: none; }

  /* Filmography: same two-row shelf as desktop, just smaller; no play badges */
  .sec-note { display: none; }
  .poster__title, .poster__watch, .poster__play { display: none; }
  .poster__meta { font-size: 11px; line-height: 1.25; }
  .poster__img { margin-bottom: 5px; }
  .posters { gap: 14px 10px; }

  /* About: title, a compact card (photo left, name and memberships right), then plain full-width text */
  .about { display: block; }
  .about__title { margin-bottom: 18px; }
  .about__side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px; row-gap: 10px;
    margin-bottom: 22px;
  }
  .about__photo { grid-column: 1; grid-row: 1; border-radius: 12px; }
  .about__members { display: none; }
  .about__info { grid-column: 2; grid-row: 1; align-self: start; padding-top: 2px; display: grid; gap: 14px; min-width: 0; }
  .about__id { display: grid; gap: 3px; }
  .about__id strong { font-size: clamp(22px, calc(6.4 * var(--vw)), 30px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
  .about__id span { font-size: 14px; color: var(--muted); }
  .about__awards { display: grid; gap: 8px; }
  .about__awards .label { font-size: 10px; }
  .about__awards p { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
  .about__awards b { display: block; font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 1px; }
  .about__text { display: block; }
  .about__text p { margin: 0 0 14px; max-width: none; font-size: 16px; line-height: 1.5; }
  .about__text .about__lede { font-size: 18px; line-height: 1.4; margin-bottom: 16px; }
  .about__name { font-weight: 600; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; padding-top: 22px; }
  .facts__col:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
