/* GRAYCUT film studio / website v1
   Brand guide v1.0 + Brand guidelines v3.0
   Colours: Grey #282828 / Yellow #EFB31D / Black #1A1A1A / Mid Grey #9A9A9A / White #FFFFFF
   Type: Helvetica Neue LT Pro (WOFF2 in /fonts), fallback Helvetica, Arial */

/* ---------- Fonts (Helvetica Neue LT Pro, WOFF2) ---------- */
@font-face { font-family: "GC Black Ext"; src: url("../../fonts/HelveticaNeueLTProBlkEx.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "GC Heavy Ext"; src: url("../../fonts/HelveticaNeueLTProHvEx.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "GC Medium Ext"; src: url("../../fonts/HelveticaNeueLTProMdEx.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GC Roman"; src: url("../../fonts/HelveticaNeueLTProRoman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GC Roman"; src: url("../../fonts/HelveticaNeueLTProBd.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grey: #282828;
  --yellow: #EFB31D;
  --black: #1A1A1A;
  --mid: #9A9A9A;
  --white: #FFFFFF;
  --line: rgba(255,255,255,0.12);

  --f-head: "GC Black Ext", "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sect: "GC Heavy Ext", "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-label: "GC Medium Ext", "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "GC Roman", "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --side: clamp(20px, 5vw, 96px);
  --gutter: 24px;
  --nav-h: 96px; /* horizontal logo 200 px: 1 X (25 px) clear above and below */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--grey);
  color: var(--white);
  font-family: var(--f-body);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--side); }

/* ---------- Type ---------- */
.h1, .h2 { font-family: var(--f-head); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: 0; }
.h1 { font-size: clamp(44px, 8vw, 128px); line-height: 1; }
.h2 { font-size: clamp(32px, 4.6vw, 68px); line-height: 1.02; }
.h3 { font-family: var(--f-sect); font-weight: 800; font-size: clamp(19px, 1.4vw, 24px); line-height: 1.17; margin: 0 0 12px; text-transform: uppercase; }
.label {
  font-family: var(--f-label); font-weight: 500; text-transform: uppercase;
  font-size: clamp(12px, 0.85vw, 16px); letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 20px;
}
.label--grey { color: var(--mid); }
.caption {
  font-family: var(--f-label); font-weight: 500; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.08em; color: var(--mid); margin-top: 14px;
}
.signature { font-family: var(--f-label); font-weight: 500; text-transform: uppercase; font-size: 13px; letter-spacing: 0.14em; color: var(--mid); }
.accent { color: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-label); font-weight: 500; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.14em; text-decoration: none;
  padding: 16px 26px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--solid { background: var(--yellow); color: var(--grey); }
.btn--solid:hover { background: var(--white); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--grey); }
.btn--lg { padding: 20px 34px; font-size: 14px; }

/* ---------- Nav (solid grey panel, so the logo never sits on the video) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--side); background: var(--grey); border-bottom: 1px solid var(--line);
}
.nav__brand { display: block; flex-shrink: 0; }
.nav__brand picture { display: block; }
.nav__logo { width: 200px; height: auto; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  font-family: var(--f-label); font-weight: 500; text-transform: uppercase; font-size: 13px;
  letter-spacing: 0.14em; text-decoration: none; color: var(--white); transition: color .2s;
}
.nav__links a:hover { color: var(--yellow); }
.nav__cta { padding: 12px 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--black);
  padding: calc(var(--nav-h) + 48px) 0 clamp(48px, 8vh, 96px);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder {
  position: absolute; inset: 0; display: none;
  background: radial-gradient(ellipse at 70% 30%, #3a3a3a 0%, var(--black) 70%);
}
.hero__placeholder span {
  position: absolute; right: var(--side); top: calc(var(--nav-h) + 32px);
  font-family: var(--f-label); font-size: 12px; letter-spacing: 0.14em; color: var(--mid);
  border: 1px dashed var(--mid); padding: 10px 14px;
}
.hero.no-video .hero__video { display: none; }
.hero.no-video .hero__placeholder { display: block; }
.hero__placeholder img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,26,.85) 0%, rgba(26,26,26,.35) 60%, rgba(26,26,26,.15) 100%); }
.hero__content { position: relative; z-index: 1; }
.hero__sub { max-width: 34em; margin-top: 28px; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Logo rows (one colour for every logo: all white) ---------- */
.logos { padding: 56px 0; border-bottom: 1px solid var(--line); }
.logos--cameras { background: var(--black); border-top: 1px solid var(--line); }
.logowall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px var(--gutter); align-items: center;
}
.logowall li { display: flex; align-items: center; justify-content: center; height: 96px; }
.logowall img { opacity: .82; transition: opacity .2s; max-width: 100%; }
.logowall img:hover { opacity: 1; }
.logowall--cameras { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.logowall--cameras li { justify-content: flex-start; }
.fallback {
  font-family: var(--f-label); font-weight: 500; text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.14em; color: var(--mid);
}

/* Client logo cloud: a wall of logos that settles into focus one by one */
.logocloud { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px var(--gutter); align-items: center; }
.logocloud li { display: flex; align-items: center; justify-content: center; height: 84px; opacity: 0; transform: translateY(20px); filter: blur(12px);
  transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1), filter 1.2s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 45ms); }
.logocloud.is-in li { opacity: 1; transform: none; filter: blur(0); }
.logocloud img { opacity: .82; transition: opacity .2s; max-width: 100%; height: auto; }
.logocloud img:hover { opacity: 1; }
@media (max-width: 1100px) { .logocloud { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .marquees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; align-items: center; }
  .marquees .marquee, .marquees .marquee__track { display: contents; }
  .marquees .marquee__track li { height: 56px; padding-right: 0; justify-content: center; }
  .marquees .marquee__track li[aria-hidden="true"] { display: none; }
  .marquees img { width: auto; height: auto; max-width: 100%; max-height: 34px; }
}
@media (max-width: 820px) { .logocloud { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 14px; } .logocloud li { height: 64px; } }
@media (prefers-reduced-motion: reduce) { .logocloud li { opacity: 1; transform: none; filter: none; transition: none; } }

/* Client wall: five scrolling rows; each logo settles into focus as the wall comes into view */
.reveal li { opacity: 0; transform: translateY(20px); filter: blur(12px);
  transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1), filter 1.2s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal.is-in li { opacity: 1; transform: none; filter: blur(0); }
.reveal.is-done li { filter: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal li { opacity: 1; transform: none; filter: none; transition: none; } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee var(--marquee-duration, 120s) linear infinite; }
.marquees { display: grid; gap: 4px; }
.marquees:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__track li { flex: none; display: flex; align-items: center; height: 76px; padding-right: clamp(40px, 5vw, 80px); }
.marquee__track img { opacity: .82; transition: opacity .2s; }
.marquee__track img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Work */
.grid-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gutter); }
.card { text-decoration: none; display: block; }
.card__media { aspect-ratio: 16 / 9; background: var(--black); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media .fallback { position: absolute; left: 20px; bottom: 18px; }
.card:hover .caption { color: var(--white); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,0) 45%); opacity: 0; transition: opacity .3s; }
.card__play { position: absolute; left: 20px; bottom: 16px; z-index: 1; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.card__play::after, .btn--play::after { content: "\25B6"; margin-left: .6em; }
.card:hover .card__media::after, .card:focus-visible .card__media::after { opacity: 1; }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; }
.work__more { display: inline-block; margin-top: 56px; text-decoration: none; border-bottom: 1px solid var(--yellow); padding-bottom: 6px; }
.work__more::after { content: "\2197"; margin-left: .5em; }
.work__more:hover { color: var(--white); }

/* Full-bleed cinema stills between sections (kept at 2.39:1, never cropped to fill) */
.still { margin: 0; background: var(--black); }
.still img { display: block; width: 100%; height: auto; aspect-ratio: 2.39 / 1; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.still.is-in img { opacity: 1; }

/* Film player */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100svh; overflow: hidden; }
.player::backdrop { background: rgba(26,26,26,.94); }
.player[open] { display: flex; align-items: center; justify-content: center; }
.player__frame { position: relative; width: min(92vw, calc((100svh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: var(--black); }
.player--vertical .player__frame { width: min(92vw, calc((100svh - 140px) * 9 / 16)); aspect-ratio: 9 / 16; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__close { position: absolute; top: 24px; right: var(--side); background: transparent; border: 0; cursor: pointer; padding: 10px 0; }
.player__close:hover { color: var(--white); }

/* Iris: a circle set in the line opens onto a full-screen frame */
.iris { position: relative; height: 300vh; height: 300svh; background: var(--grey); }
.iris__frame { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.iris__line { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--nav-h) var(--side) 0; margin: 0; color: var(--white); }
.iris__line--light { color: var(--white); }
.iris__text { max-width: 13ch; font-family: var(--f-head); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 6.4vw, 112px); line-height: 1; }
.iris__dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; vertical-align: -0.04em; }
.iris__layer { position: absolute; inset: 0; clip-path: circle(0px at 50% 50%); }
.iris__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.iris__hint { position: absolute; left: var(--side); bottom: 5vh; margin: 0; font-family: var(--f-label); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.iris__outro { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--side) 9vh; background: linear-gradient(0deg, rgba(26,26,26,.75), rgba(26,26,26,0) 55%); opacity: 0; pointer-events: none; transition: opacity .7s cubic-bezier(.22,1,.36,1); }
.iris__outro > * { transform: translateY(28px); opacity: 0; transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .9s cubic-bezier(.22,1,.36,1); }
.iris__outro.is-in { opacity: 1; }
.iris__outro.is-in > * { transform: none; opacity: 1; }
.iris__outro.is-in > *:nth-child(2) { transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .iris__outro, .iris__outro > * { transition: none; } }

/* Film studio */
.craft__intro { display: grid; grid-template-columns: 5fr 6fr; gap: var(--gutter) clamp(24px, 6vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.craft__intro .section__head { margin-bottom: 0; }
.craft__text { display: grid; gap: 20px; max-width: 70ch; }
.craft__text p:last-child { color: var(--mid); }
.craft__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); }
.craft__list li { padding-top: 0; }
.craft__img { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--black); }
.craft__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.craft__list li:hover .craft__img img { transform: scale(1.04); }
.craft__list .label { display: block; margin-bottom: 14px; }
.craft__list p { color: var(--mid); font-size: clamp(15px, 1vw, 18px); }

/* Statement */
.statement { background: var(--black); padding: clamp(80px, 12vw, 180px) 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.service { border-top: 1px solid var(--line); padding-top: 28px; }
.service p, .base p, .steps p { color: var(--mid); max-width: 70ch; }
.service__num {
  display: block; font-family: var(--f-head); font-weight: 900; color: var(--yellow);
  font-size: clamp(28px, 2.6vw, 44px); line-height: 1; margin-bottom: 28px;
}

/* Studio */
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-bottom: clamp(64px, 8vw, 120px); }
.base { background: var(--black); display: grid; grid-template-columns: 2fr 3fr; }
.base__photo { aspect-ratio: 4 / 5; background: #222; position: relative; overflow: hidden; }
.base__photo img { width: 100%; height: 100%; object-fit: cover; }
.base__photo .fallback { position: absolute; left: 20px; bottom: 18px; }
.base__text { padding: clamp(24px, 3vw, 48px); align-self: end; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.steps li { border-top: 1px solid var(--line); padding-top: 28px; }

/* Contact */
.contact { padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.contact__list { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 24px 72px; margin: 56px 0; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list .label { margin-bottom: 10px; }
.contact__list a { text-decoration: none; font-size: clamp(18px, 1.5vw, 26px); transition: color .2s; }
.contact__list a:hover { color: var(--yellow); }

/* Footer */
.footer { background: var(--black); padding: 72px 0 56px; }
.footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__logo { width: 200px; height: auto; margin: 28px 28px 0 0; }
/* Hidden detail: the cat says hello on hover, focus or tap */
.footer__cat { position: relative; display: inline-block; outline: none; -webkit-tap-highlight-color: transparent; }
.footer__meow {
  position: absolute; left: 214px; top: -6px; pointer-events: none;
  font-family: var(--f-head); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; color: var(--yellow);
  opacity: 0; transform: translate(-6px, 8px) rotate(-8deg); transform-origin: left bottom;
  transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.footer__cat:hover .footer__meow, .footer__cat:focus-visible .footer__meow, .footer__cat.is-meow .footer__meow { opacity: 1; transform: rotate(-8deg); }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--side) 48px; }
.notfound__logo { width: 140px; height: auto; }
.notfound__body .h1 { margin: 20px 0 28px; }
.notfound__body p { max-width: 30em; margin-bottom: 40px; }
.footer__meta { display: grid; gap: 10px; }
.footer__legal { font-size: 13px; color: var(--mid); }
.footer__social { font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.footer__social a { text-decoration: none; color: var(--white); transition: color .2s; }
.footer__social a:hover { color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .grid-work { grid-template-columns: 1fr 1fr; }
  .craft__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .craft__intro { grid-template-columns: 1fr; align-items: start; }
  .contact__list { grid-template-columns: repeat(2, auto); }
}
@media (hover: none) {
  .card__play { opacity: 1; transform: none; }
  .card__media::after { opacity: 1; }
}
@media (max-width: 820px) {
  :root { --nav-h: 64px; } /* wordmark 140 px: X = 17.5 px */
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; padding: 10px 14px; font-size: 11px; }
  .nav__logo { width: 140px; }
  .grid-work, .bases, .steps { grid-template-columns: 1fr; }
  .marquee__track li { height: 58px; }
  .craft__list { grid-template-columns: 1fr 1fr; }
  .steps { row-gap: 40px; }
  .contact__list { grid-template-columns: 1fr; }
  .logowall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
  .logowall--cameras { grid-template-columns: 1fr 1fr; }
  .logowall li { height: 64px; }
  .logowall--cameras img { width: auto; height: auto; max-width: 78%; max-height: 30px; }
  .player__close { top: 12px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .nav__cta { display: none; }
  .hero .h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__media img, .card__play, .card__media::after { transition: none; }
  .still img { opacity: 1; transition: none; }
}
