/* ---------- tokens: a tungsten-and-teal grade, taken from the films ---------- */
:root {
  --bg: #0a0a0b; --bg-2: #131314; --line: #2a2826;
  --paper: #ece6da; --muted: #a59f94;
  --amber: #e3a35a; --teal: #4f9b94;
  --serif: "Bodoni Moda", Didot, Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 400 17px/1.6 var(--sans); font-stretch: 100%; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--paper); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* film grain over everything */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

/* type */
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--amber); font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 6.4vw, 104px); line-height: .98; text-wrap: balance; }
h2 em, h1 em { font-style: italic; color: var(--amber); }
.wrap { padding-inline: var(--pad); max-width: 1600px; margin-inline: auto; }
section { position: relative; }

/* reveal: lines rise once when they come on screen */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: .01em;
  transition: background-color .25s, color .25s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--amber { background: var(--amber); color: #111; }
.btn--amber:hover { background: var(--paper); }
.btn--ghost { border: 1px solid rgba(236,230,218,.35); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--bg); }
.btn .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); transition: background-color .4s, backdrop-filter .4s; }
.nav.solid { background: rgba(10,10,11,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__name { font: 500 19px/1 var(--serif); white-space: nowrap; }
.nav__name em { color: var(--amber); }
.nav__links { display: flex; gap: 28px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav__links a { color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--amber); transition: right .3s var(--ease); }
.nav__links a:hover { color: var(--paper); } .nav__links a:hover::after { right: 0; }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- hero: the films play behind the name, framed like a camera monitor ---------- */
.hero { height: 100svh; min-height: 620px; overflow: hidden; display: grid; align-items: end; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: push 20s ease-in-out infinite alternate; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.15) 35%, rgba(10,10,11,.35) 62%, rgba(10,10,11,.96) 100%); }
/* letterbox bars and the viewfinder */
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 4.5vh; background: var(--bg); z-index: 2; }
.bars::before { top: 0; } .bars::after { bottom: 0; }
.vf { position: absolute; inset: calc(4.5vh + 18px) var(--pad); z-index: 3; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 1px solid rgba(236,230,218,.6); }
.vf i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf__top { position: absolute; top: 4px; left: 40px; right: 40px; display: flex; justify-content: space-between; }
.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5483b; margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__content { position: relative; z-index: 4; padding: 0 var(--pad) calc(4.5vh + 56px); width: 100%; }
.hero h1 { font-size: clamp(54px, 10.5vw, 188px); line-height: .9; letter-spacing: -.03em; }
.hero h1 .l { display: block; overflow: hidden; }
.hero h1 .l > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .l:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-top: 28px; }
.hero__lead { max-width: 520px; margin: 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--paper); }
.hero__lead strong { font-weight: 600; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fade-in { opacity: 0; animation: fadein 1s .5s var(--ease) forwards; }
@keyframes fadein { to { opacity: 1; } }

/* ---------- clients marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: italic 400 clamp(24px, 2.6vw, 38px)/1 var(--serif); color: var(--paper); padding: 0 28px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .45em; color: var(--amber); margin-left: 56px; vertical-align: .5em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 88px); }
.head .label { margin-bottom: 18px; }
.sec { padding-block: clamp(96px, 13vw, 200px); }

/* ---------- showreel ---------- */
.reel__frame { position: relative; display: block; width: 100%; aspect-ratio: 2.39 / 1; overflow: hidden; border-radius: 4px; background: #000; cursor: pointer; border: 0; padding: 0; color: inherit; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: brightness(.78); }
.reel__frame:hover img { transform: scale(1.03); filter: brightness(.9); }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; }
.reel__disc { width: clamp(88px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--amber); color: #111; display: grid; place-items: center; transition: transform .4s var(--ease); }
.reel__disc::before { content: ""; border-left: 22px solid currentColor; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.reel__frame:hover .reel__disc { transform: scale(1.08); }
.reel__meta { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; }
.reel__meta .label { color: var(--paper); }

/* ---------- work: a credits list; the frame follows the cursor ---------- */
.works { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work { border-bottom: 1px solid var(--line); }
.work a { display: grid; grid-template-columns: 70px 1.5fr 1fr 1fr 40px; align-items: center; gap: 24px; padding: 30px 0; position: relative; transition: padding .4s var(--ease), color .3s; }
.work__n { font: 500 13px var(--mono); color: var(--muted); }
.work__t { font: 400 clamp(28px, 3.4vw, 56px)/1.02 var(--serif); }
.work__c, .work__r { font-size: 15px; color: var(--muted); }
.work__r { color: var(--paper); }
.work .arrow { justify-self: end; color: var(--amber); }
.work__img { display: none; }
.works:hover .work a { color: rgba(236,230,218,.4); }
.works:hover .work a:hover { color: var(--paper); padding-left: 18px; }
.peek { position: fixed; z-index: 40; top: 0; left: 0; width: 420px; aspect-ratio: 16 / 10; pointer-events: none; border-radius: 4px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.peek img.on { opacity: 1; }
.more { margin-top: 36px; display: inline-flex; gap: 10px; align-items: center; color: var(--amber); font-weight: 600; }

/* ---------- process: three scenes, each frame wipes open ---------- */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.scene:nth-child(2) { margin-top: 80px; } .scene:nth-child(3) { margin-top: 160px; }
.scene__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.scene.in .scene__img { clip-path: inset(0 0 0 0); }
.scene__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.scene.in .scene__img img { transform: scale(1); }
.scene h3 { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.05; margin: 22px 0 10px; }
.scene p { margin: 0; color: var(--muted); max-width: 40ch; }
.scene .label { display: block; margin-top: 22px; }

/* ---------- tools ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: clamp(64px, 8vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.tools .label { margin-right: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; font: 500 15px var(--sans); color: var(--paper); }
.tool img { width: 26px; height: 26px; }

/* ---------- recognition ---------- */
.awards { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.awards__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.awards__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform 1.2s var(--ease); }
.awards__photo:hover img { transform: scale(1.03); }
.award { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.award:first-of-type { border-top: 1px solid var(--line); }
.award__big { font: italic 400 clamp(44px, 5vw, 84px)/.9 var(--serif); color: var(--amber); grid-row: span 2; min-width: 2.2ch; }
.award__t { font: 400 clamp(22px, 2vw, 30px)/1.15 var(--serif); }
.award__s { color: var(--muted); font-size: 15px; }
.awards p.note { color: var(--muted); margin: 28px 0 0; max-width: 56ch; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc > div { padding: 34px 28px 40px 0; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.svc > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.svc > div:not(:nth-child(3n+1)) { padding-left: 28px; }
.svc h3 { font-size: clamp(24px, 2.2vw, 34px); margin: 14px 0 10px; }
.svc p { margin: 0; color: var(--muted); }
.svc > div:hover h3 { color: var(--amber); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.about__text p { font: 400 clamp(22px, 2.2vw, 34px)/1.35 var(--serif); margin: 0 0 22px; }
.about__text p.small { font: 400 17px/1.6 var(--sans); color: var(--muted); }
.about__photo { aspect-ratio: 1; overflow: hidden; border-radius: 50%; max-width: 440px; justify-self: end; width: 100%; border: 1px solid var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(64px, 8vw, 120px) 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 28px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: italic 400 clamp(48px, 5.5vw, 88px)/1 var(--serif); color: var(--amber); }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div { padding-bottom: 24px; } }
/* ---------- contact ---------- */
.contact { text-align: left; padding-block: clamp(120px, 16vw, 260px) 60px; overflow: hidden; }
.contact h2 { font-size: clamp(56px, 11vw, 200px); line-height: .9; letter-spacing: -.03em; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-top: 48px; }
.mail { font: italic 400 clamp(26px, 3.4vw, 54px)/1.1 var(--serif); border-bottom: 1px solid rgba(227,163,90,.5); color: var(--amber); transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.mail:hover { color: var(--paper); border-color: var(--paper); }
.socials { display: flex; gap: 26px; flex-wrap: wrap; }
.socials a { font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--paper); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--pad) 90px; border-top: 1px solid var(--line); max-width: 1600px; margin: 0 auto; }

/* ---------- the edit timeline: scroll position as timecode ---------- */
.timeline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 38px; display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  background: linear-gradient(0deg, rgba(10,10,11,.9), rgba(10,10,11,0)); pointer-events: none; }
.timeline__bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.timeline__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--amber); }
.timeline__fill::after { content: ""; position: absolute; right: -1px; top: -6px; width: 1px; height: 13px; background: var(--amber); }
.timeline .label { color: var(--paper); min-width: 9ch; }

/* ---------- showreel player ---------- */
.player { position: fixed; inset: 0; z-index: 95; background: rgba(5,5,6,.96); display: none; place-items: center; padding: 4vw; }
.player.open { display: grid; }
.player__title { position: absolute; top: 30px; left: var(--pad); margin: 0; color: var(--paper); }
.player video { width: min(100%, 1400px); max-height: 86vh; background: #000; }
.player__close { position: absolute; top: 18px; right: var(--pad); height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(236,230,218,.35); background: none; color: var(--paper); font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.player__close:hover { background: var(--paper); color: var(--bg); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .work a { grid-template-columns: 50px 1fr 30px; }
  .work__c, .work__r { display: none; }
  .scenes { grid-template-columns: 1fr; }
  .scene:nth-child(n) { margin-top: 0; }
  .scene { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: end; margin-bottom: 48px; }
  .scene__img { grid-row: span 4; aspect-ratio: 4 / 5; }
  .awards, .about { grid-template-columns: 1fr; }
  .awards__photo { aspect-ratio: 4 / 5; max-width: 520px; width: 100%; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc > div:nth-child(n) { border-right: 0; padding-left: 0; }
  .svc > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .svc > div:nth-child(even) { padding-left: 24px; }
  .about__photo { justify-self: start; max-width: 280px; order: -1; }
  .peek { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding-block: 14px; }
  .nav__name { font-size: 17px; }
  .nav .btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .vf__top .hide-s { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .head { grid-template-columns: 1fr; }
  .work a { grid-template-columns: 1fr 24px; padding: 22px 0; gap: 12px; }
  .work__n { display: none; }
  .work__img { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; order: -1; }
  .work__img img { width: 100%; height: 100%; object-fit: cover; }
  .scene { grid-template-columns: 1fr; }
  .scene__img { grid-row: auto; }
  .svc { grid-template-columns: 1fr; }
  .svc > div:nth-child(n) { border-right: 0; padding: 26px 0 30px; }
  .reel__meta .hide-s { display: none; }
  .award { grid-template-columns: 1fr; }
  .award__big { grid-row: auto; }
}
/* any portrait screen (phone or tablet): the landscape films keep their real 16:9 frame above the name, never a tall crop */
@media (orientation: portrait) {
  .hero__bg { inset: 72px 0 auto 0; height: 56.25vw; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(10,10,11,.2) 0%, rgba(10,10,11,0) 45%, rgba(10,10,11,1) 100%); }
  .hero__bg video, .hero__bg img { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .fade-in { opacity: 1; transform: none; }
  .hero h1 .l > span { transform: none; }
  .scene__img { clip-path: none; } .scene__img img { transform: none; }
  .grain { display: none; }
}

/* =================== multi-page additions =================== */
.nav__links a[aria-current="page"] { color: var(--paper); }
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(236,230,218,.35); background: none; color: var(--paper); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

/* one rhythm for every section: the same gap above each head */
.sec { padding-block: clamp(88px, 10vw, 160px) 0; }
.sec:last-of-type { padding-bottom: clamp(88px, 10vw, 160px); }
.head { margin-bottom: clamp(36px, 5vw, 72px); }
.head .link { display: inline-flex; gap: 10px; align-items: center; color: var(--amber); font-weight: 600; white-space: nowrap; }
.head .link:hover { color: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* sub-page hero */
.page-hero { padding-block: clamp(150px, 18vw, 230px) clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(64px, 11vw, 188px); line-height: .9; letter-spacing: -.03em; }
.page-hero .lead { max-width: 640px; margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.page-hero .label { margin: 0 0 22px; }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }

/* film cards on the work page */
.films { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 2.4vw, 40px); }
.film { display: block; }
.film__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #000; }
.film__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; filter: brightness(.9); }
.film:hover .film__frame img { transform: scale(1.03); filter: brightness(1); }
.film__play { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(10,10,11,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.film__play::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.film:hover .film__play { background: var(--amber); color: #111; }
.film__meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; align-items: baseline; }
.film__t { font: 400 clamp(26px, 2.4vw, 38px)/1.05 var(--serif); }
.film__d { color: var(--muted); margin: 8px 0 0; max-width: 52ch; }
.film__n { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .1em; }

/* plain lists of rows (more projects, cv, awards) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 220px 1fr; gap: 12px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row__k { font: 500 13px/1.6 var(--mono); letter-spacing: .08em; color: var(--amber); text-transform: uppercase; }
.row__t { font: 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); margin: 0 0 8px; }
.row__t small { display: block; font: 400 15px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.row p, .row li { color: var(--muted); margin: 0; }
.row ul { margin: 10px 0 0; padding-left: 18px; }
.row li + li { margin-top: 6px; }

/* the cv page */
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.cv-grid .rows { border-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--paper); }
.profile { font: 400 clamp(22px, 2.2vw, 32px)/1.4 var(--serif); max-width: 34ch; margin: 0; }

/* teaser split on the home page */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.split--rev { grid-template-columns: 7fr 5fr; }
.split__media { overflow: hidden; border-radius: 4px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.03); }

/* the closing band */
.cta { padding-block: clamp(110px, 14vw, 220px) clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); margin-top: clamp(88px, 10vw, 160px); }
.cta h2 { font-size: clamp(56px, 10vw, 180px); line-height: .9; letter-spacing: -.03em; }

/* contact page */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.steps3 > div { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.steps3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.steps3 h3 { font-size: clamp(24px, 2.2vw, 32px); margin: 14px 0 10px; }
.steps3 p { margin: 0; color: var(--muted); }

@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .nav__right .btn { display: none; }
  .nav.menu-open { background: var(--bg); inset: 0; height: 100svh; align-items: flex-start; flex-wrap: wrap; align-content: flex-start; }
  .nav.menu-open .nav__links { display: flex; flex-direction: column; gap: 6px; width: 100%; order: 3; margin-top: 48px; font: 400 44px/1.15 var(--serif); letter-spacing: 0; text-transform: none; }
  .nav.menu-open .nav__links a { color: var(--paper); }
  .nav.menu-open .nav__right .btn { display: inline-flex; }
  .films { grid-template-columns: 1fr; }
  .split, .split--rev, .cv-grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 > div + div { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; padding: 24px 0; }
  .head { grid-template-columns: 1fr; }
  .nav.menu-open .nav__right .btn { order: 4; margin-top: 28px; }
}

/* clear section breaks: one gap, one hairline, never sections running into each other */
.sec { padding-block: clamp(72px, 8vw, 128px); border-top: 1px solid var(--line); }
.marquee + .sec, .page-hero + .sec { border-top: 0; }
.sec:last-of-type { padding-bottom: clamp(72px, 8vw, 128px); }
.cta { margin-top: 0; }
.scene:nth-child(2), .scene:nth-child(3) { margin-top: 0; }
.tools { margin-top: clamp(48px, 6vw, 88px); }
.facts { margin-top: clamp(48px, 6vw, 88px); }
.work .arrow { font-size: 12px; }
.contact__row { align-items: center; }

/* the cv page: experience on the left, the person on the right */
.cv { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 130px); padding-top: clamp(130px, 14vw, 190px); padding-bottom: clamp(72px, 8vw, 128px); align-items: start; }
.cv__h { font: 500 14px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.cv__h--s { margin-top: 44px; margin-bottom: 16px; }
.cvlist { list-style: none; margin: 0; padding: 0; }
.cvx { padding: 26px 0; border-bottom: 1px solid var(--line); }
.cvx__top { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.cvx h3 { font: 400 clamp(21px, 1.8vw, 27px)/1.25 var(--serif); }
.cvx h3 span { color: var(--muted); font: 400 15px/1.5 var(--sans); display: block; margin-top: 4px; }
.cvx__y { font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }
.cvx p { margin: 12px 0 0; color: var(--muted); max-width: 62ch; }
.cvx p.cvx__c { color: var(--paper); font-size: 15px; }
.cvx__c b { font-weight: 600; }
.cv__side { position: sticky; top: 96px; }
.cv__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; margin-bottom: 28px; }
.cv__photo img { width: 100%; height: 100%; object-fit: cover; }
.cv__name { font-size: clamp(34px, 3.2vw, 48px); line-height: 1; }
.cv__name em { font-style: italic; color: var(--amber); }
.cv__facts { color: var(--muted); margin: 0 0 22px; font-size: 15px; line-height: 1.8; }
.cv__facts a { color: var(--amber); border-bottom: 1px solid rgba(227,163,90,.4); }
.cv__bio { margin: 0 0 14px; color: var(--paper); font-size: 16px; }
.cv__edu { margin: 0 0 14px; color: var(--muted); font-size: 15px; } .cv__edu b { color: var(--paper); font-weight: 600; }
.bar { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.bar i { display: block; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--amber); border-radius: 3px; }
@media (max-width: 1024px) { .cv { grid-template-columns: 1fr; } .cv__side { position: static; order: -1; } .cv__photo { max-width: 360px; } }
@media (max-width: 640px) { .cvx__top { flex-direction: column; gap: 6px; } }

/* phone menu layout: name and Close on one row, the pages large, the email button at the foot */
@media (max-width: 1024px) {
  .nav.menu-open { transition: none; }
  .nav.menu-open .nav__right .btn { position: absolute; left: var(--pad); bottom: 64px; height: 52px; padding: 0 24px; font-size: 15px; }
  .nav.menu-open .nav__links a::after { display: none; }
}

/* tools, grouped by what they do */
.toolsets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.toolset { padding: 26px 22px 0 0; }
.toolset + .toolset { padding-left: 22px; border-left: 1px solid var(--line); }
.toolset .chips { margin-top: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip img { width: 18px; height: 18px; }
@media (max-width: 1024px) { .toolsets { grid-template-columns: 1fr 1fr; } .toolset:nth-child(n) { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid var(--line); } .toolset .chips { flex-direction: row; } }
@media (max-width: 640px) { .toolsets { grid-template-columns: 1fr; } }

/* the clients strip fades out at both sides */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }

/* the hero film starts at the very top of the page, behind the transparent header */
.bars::before { display: none; }
.hero__bg::after { background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.1) 22%, rgba(10,10,11,.3) 60%, rgba(10,10,11,.96) 100%); }
.vf { inset: 92px var(--pad) calc(4.5vh + 18px); }
@media (orientation: portrait) {
  .hero__bg { inset: 0 0 auto 0; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,0) 35%, rgba(10,10,11,0) 55%, rgba(10,10,11,1) 100%); }
  .vf { top: 80px; }
}

/* the clients strip: real logos in one colour, no ornaments */
.marquee { padding: 30px 0; }
.marquee__track { align-items: center; animation-duration: 48s; }
.marquee .client { display: inline-flex; align-items: center; padding: 0 clamp(28px, 3.4vw, 56px); font: inherit; }
.marquee .client::after { content: none; }
.marquee .client img { width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .82; transition: opacity .3s; }
.marquee .client:hover img { opacity: 1; }
.marquee .client--text { font: 500 clamp(18px, 1.6vw, 24px)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); opacity: .82; white-space: nowrap; }

/* the clients strip in the brands' own colours, on a light band so every mark reads */
.marquee { background: var(--paper); border: 0; }
.marquee .client img { filter: none; opacity: 1; }
.marquee .client--sharjah-tv img { filter: brightness(0); opacity: .8; }
.marquee .client--bazooka img, .marquee .client--ten-tv img { border-radius: 8px; }
/* Jazeera's mark is drawn for dark grounds: it keeps its own dark plate */
.marquee .client--jazeera-paints img { background: #1d1d1b; padding: 9px 16px; border-radius: 8px; box-sizing: content-box; }

/* the clients strip sits on the page's own dark ground: colour where a mark has it, white where the mark is one dark colour */
.marquee { background: transparent; border-block: 1px solid var(--line); }
.marquee .client--loreal img, .marquee .client--hassan-allam img, .marquee .client--egyptair img, .marquee .client--sharjah-tv img { filter: brightness(0) invert(1); opacity: .92; }
.marquee .client--jazeera-paints img { background: none; padding: 0; border-radius: 0; }
.marquee .client--bazooka img { border-radius: 0; }
