/* Composition from the user's approved reference: full-width optical frame. */
:root {
  --gutter: 4vw;
  --top-frame-height: clamp(78px, 13.2vh, 104px);
  --bottom-frame-height: clamp(100px, 16vh, 140px);
}
.frame-glass.glass-surface {
  position: fixed;
  inset-inline: 0;
  z-index: 8;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  background: linear-gradient(105deg,rgba(255,255,255,.025),rgba(255,255,255,.005) 55%,rgba(255,255,255,.035)), rgba(11,13,15,.16);
  -webkit-backdrop-filter: var(--glass-refraction, blur(4px)) blur(.55px) saturate(1.1);
  backdrop-filter: var(--glass-refraction, blur(4px)) blur(.55px) saturate(1.1);
  box-shadow: none;
}
.frame-glass::before { opacity: .12; }
.frame-glass::after { display: none; }
.frame-glass-top {
  top: 0;
  height: var(--top-frame-height);
  clip-path: polygon(0 0,100% 0,100% 96%,80% 96%,77.5% 75%,22% 75%,19.5% 98%,0 98%);
}
.frame-glass-bottom {
  bottom: 0;
  height: var(--bottom-frame-height);
  clip-path: polygon(0 25.5%,16.6% 25.5%,20.1% 43%,81.8% 43%,85.7% 0,100% 0,100% 100%,0 100%);
}
.frame-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.masthead {
  inset: 0 var(--gutter) auto;
  height: calc(var(--top-frame-height) * .8);
  gap: 32px;
  padding-top: 12px;
}
.masthead .brand { width: 154px; }
.masthead .header-descriptor {
  display: block;
  padding-left: 28px;
  border-left: 1px solid rgba(255,255,255,.23);
  font-size: 11px;
  letter-spacing: 1.7px;
  color: #aaa9a5;
}
.masthead .header-actions { gap: 34px; font-size: 14px; letter-spacing: 1.5px; }
#header-reel { display: none; }
.masthead .languages { gap: 14px; padding-right: 32px; border-right: 1px solid rgba(255,255,255,.23); }
.masthead .contact-top { border: 0; padding: 10px 0; gap: 24px; border-radius: 0; }
.masthead .contact-top span:last-child { font-size: 25px; }
.stage video, .poster { object-position: 50% 50%; transform: translateX(-2.2%) scale(1.045); filter: brightness(.88) saturate(.9); }
.vignette {
  background: linear-gradient(90deg,rgba(4,5,5,.8),rgba(4,5,5,.48) 20%,rgba(4,5,5,.1) 40%,transparent 62%,rgba(4,5,5,.1)),linear-gradient(0deg,rgba(4,5,5,.36),transparent 24%,transparent 80%,rgba(4,5,5,.16));
}
.brand-lines { opacity: .14; }
.chapter { inset: calc(var(--top-frame-height) + 24px) var(--gutter) calc(var(--bottom-frame-height) * .72); }
.hero { padding-top: 5px; padding-bottom: 12px; }
.hero-copy { width: 56%; max-width: 1100px; }
.hero .eyebrow { margin-bottom: 24px; font-size: 12px; letter-spacing: 3px; }
.hero h1 { font-size: clamp(76px,7.4vw,130px); line-height: .89; letter-spacing: -.045em; }
.hero .outline { -webkit-text-stroke: 1px #c1bdb5; }
.hero .red-dot { margin-left: 16px; font-size: 19px; }
.hero-bottom { margin-top: 21px; gap: 80px; }
.hero-bottom p { font-size: clamp(16px,1.15vw,22px); line-height: 1.55; letter-spacing: .2px; color: #c4bfb6; }
.hero .round-play { width: 58px; height: 58px; }
.hero .play-caption { left: 78px; top: 23px; font-size: 11px; letter-spacing: 1.2px; }
.side-caption {
  position: fixed;
  z-index: 10;
  right: var(--gutter);
  bottom: calc(var(--bottom-frame-height) * .62);
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1.6px;
}
.experience-footer {
  inset: auto var(--gutter) 0;
  height: calc(var(--bottom-frame-height) * .70);
  font-size: 11px;
  letter-spacing: 1.5px;
}
.experience-footer .scroll-hint { gap: 16px; padding: 10px 0; font-size: 12px; letter-spacing: 1.4px; }
.experience-footer .scroll-glyph { font-size: 32px; }
.experience-footer .footer-center {
  display: flex;
  gap: 30px;
  padding: 0;
  min-height: 0;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #e3dfd8;
}
.experience-footer .progress-track { width: 145px; height: 2px; background: rgba(255,255,255,.28); }
.experience-footer #percent { min-width: 25px; font-size: 12px; }
.experience-footer .experience-controls { gap: 30px; }
.experience-footer .experience-controls button { padding: 10px 0; color: #d8d4ce; font-size: 12px; letter-spacing: 1.4px; }
.experience-footer .experience-controls button[aria-pressed=true] { color: #ff7e88; }
.chapter-rail.glass-surface { right: 10px; }
/* Content masks are driven by the same continuous clock as the background.
   Do not promote opacity: that would isolate the optical frame's backdrop. */
.chapter, .reduced-motion .chapter { transition: none; will-change: transform; }
.project-card {
  position: absolute;
  left: 30%; right: 5%; top: 8%; bottom: 6%;
  display: flex; flex-direction: column;
  background: none; border: 0; box-shadow: none; padding: 0;
}
.project-card .project-image {
  position: relative; inset: auto; width: 100%; height: auto;
  flex: 1; min-height: 0; padding: 0; overflow: visible;
  background: none; transform: none; will-change: auto;
}
.project-card .project-image::after { display: none; }
.project-artwork { position: absolute; inset: 0 0 var(--project-action-reserve,54px); display: block; overflow: hidden; clip-path: polygon(22% 0,100% 0,100% 60%,72% 100%,0 100%,0 30%); }
.project-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.4,0,.2,1); }
.project-card .project-rim.glass-surface {
  position: absolute; inset: 0; border: 0; border-radius: 0;
  background: linear-gradient(135deg,rgba(255,255,255,.12),transparent 25%,rgba(255,255,255,.025) 64%,rgba(255,255,255,.12));
  -webkit-backdrop-filter: var(--glass-refraction, blur(2px)) saturate(1.12);
  backdrop-filter: var(--glass-refraction, blur(2px)) saturate(1.12);
  box-shadow: none; pointer-events: none;
}
.project-rim::before, .project-rim::after { display: none; }
.project-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 3px rgba(224,237,255,.5)); }
.project-card .project-watch {
  display: flex; align-items: center; justify-content: center;
  right: 0; bottom: 0; width: max-content; min-width: 132px; height: 40px;
  padding: 9px 12px; border: 1px solid rgba(238,239,238,.42);
  border-radius: 999px; background: rgba(8,10,11,.18);
  backdrop-filter: blur(3px); font-size: 10px; letter-spacing: 1.4px;
}
.project-image[data-project-action="wedge"] .project-watch { right: 12px; bottom: 12px; }
.project-card .project-watch > span:first-child { color: var(--red); font-size: 19px; margin-right: 10px; }
.project-card .project-information { position: relative; inset: auto; flex: 0 0 auto; gap: 20px; padding: 18px 10px 0; min-width: 0; }
.project-card .project-information > div:first-child { flex: 1; min-width: 0; }
.project-card .project-category { color: #fb3545; }
.project-card .project-credit { color: #bdb8b2; line-height: 1.4; }
.project-card .project-navigation { flex-shrink: 0; gap: 15px; }
.project-card .project-navigation button { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.3); }
.project-card .project-navigation button:hover { background: rgba(231,36,50,.3); }
.project-card .project-image:focus-visible { outline: none; }
.project-card .project-image:focus-visible .project-watch { outline: 2px solid var(--red); outline-offset: 5px; }
@media (min-width: 761px) and (max-width: 1000px) { .project-card { left: 23%; right: 4%; } }
@media (max-width: 760px) {
  .project-card { left: 0; right: 0; top: 30%; bottom: 0; }
  .project-card .project-information { padding: 15px 1px 0; gap: 10px; align-items: center; }
  .project-card .project-navigation { gap: 8px; }
  .project-card .project-credit { max-width: 185px; font-size: 10px; }
  .project-card .project-watch { min-width: 110px; height: 36px; padding: 7px; font-size: 8px; letter-spacing: .7px; }
  .project-card .project-watch > span:first-child { font-size: 16px; margin-right: 5px; }
}
@media (min-aspect-ratio: 2/1) and (min-width: 1001px) {
  .hero h1 { font-size: clamp(76px,5.48vw,124px); line-height: .845; }
  .hero-copy { width: 52%; }
}
@media (max-width: 1350px) and (min-width: 761px) {
  .masthead { gap: 24px; }
  .masthead .brand { width: 142px; }
  .masthead .header-descriptor { padding-left: 22px; font-size: 10px; }
  .masthead .header-actions { gap: 26px; font-size: 12px; }
  .hero-bottom { gap: 48px; }
  .experience-footer .footer-center { gap: 18px; font-size: 9px; }
  .experience-footer .progress-track { width: 100px; }
  .experience-footer .experience-controls { gap: 22px; }
  .experience-footer .experience-controls button, .experience-footer .scroll-hint { font-size: 10px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .masthead .header-descriptor { display: none; }
  .experience-footer .footer-center { display: none; }
  .hero-copy { width: 76%; }
}
@media (max-width: 760px) {
  :root { --gutter: 7vw; --top-frame-height: 86px; --bottom-frame-height: 114px; }
  .masthead { inset: 0 var(--gutter) auto; height: 70px; gap: 14px; }
  .masthead .brand { width: 116px; }
  .masthead .header-descriptor, .masthead .contact-top { display: none; }
  .masthead .header-actions { gap: 20px; }
  .masthead .languages { padding-right: 0; border: 0; gap: 7px; }
  .frame-glass-top { clip-path: polygon(0 0,100% 0,100% 96%,80% 96%,77.5% 75%,22% 75%,19.5% 98%,0 98%); }
  .chapter { inset: 112px 9vw 116px 7vw; }
  .hero { align-items: flex-end; padding-top: 0; padding-bottom: 14px; }
  .hero-copy { width: 100%; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 9px; letter-spacing: 2px; }
  .hero h1 { font-size: clamp(54px,13.3vw,100px); line-height: .86; letter-spacing: -.035em; }
  .hero .red-dot { margin-left: 8px; font-size: 12px; }
  .hero-bottom { margin-top: 27px; gap: 30px; }
  .hero-bottom p { font-size: 14px; line-height: 1.6; max-width: 60%; }
  .hero .round-play { width: 46px; height: 46px; }
  .hero .play-caption { left: 50%; top: 57px; font-size: 8px; transform: translateX(-50%); }
  .side-caption { display: none; }
  .stage video, .poster { object-position: 64% center; transform: none; }
  .vignette { background: linear-gradient(0deg,#050505 0%,#050505c9 23%,#05050533 54%,#05050533 75%,#05050580 100%); }
  .experience-footer { bottom: env(safe-area-inset-bottom); height: 60px; }
  .experience-footer .footer-center { display: none; }
  .experience-footer .scroll-hint { font-size: 9px; letter-spacing: .8px; gap: 8px; }
  .experience-footer .scroll-glyph { font-size: 26px; }
  .experience-footer .experience-controls { gap: 12px; }
  .experience-footer .experience-controls button { min-height: 44px; font-size: 9px; letter-spacing: .6px; }
  .chapter-rail.glass-surface { right: 3px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .chapter { inset: 96px 9vw 100px 7vw; }
  .hero h1 { font-size: 12vw; }
  .hero .eyebrow { margin-bottom: 15px; }
  .hero-bottom { margin-top: 22px; }
  .hero-bottom p { font-size: 12px; }
}
@media (prefers-reduced-transparency: reduce) {
  .frame-glass.glass-surface { background-color: rgba(10,12,15,.30); }
}
@media (prefers-contrast: more) {
  .frame-glass.glass-surface { background: rgba(8,9,12,.95); }
}
@media (forced-colors: active) {
  .frame-glass.glass-surface { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .frame-edge path { stroke: CanvasText; }
}

body:not([data-chapter="0"]) > .side-caption { visibility: hidden; opacity: 0; }

.frame-edge .frame-edge-base { opacity: .42; }
.frame-edge .frame-edge-specular { opacity: var(--frame-light-strength,.35); }

.masthead .header-actions, .experience-footer { text-shadow: 0 1px 5px rgba(0,0,0,.8); }

/* Landscape phones need a compact composition, rather than the tall desktop
   card compressed between the two framing panes. */
@media (max-height: 500px) and (min-width: 600px) {
  :root { --top-frame-height: 62px; --bottom-frame-height: 72px; }
  .masthead { height: 52px; padding-top: 6px; }
  .masthead .brand { width: 106px; }
  .masthead .header-descriptor { display: none; }
  .masthead .header-actions { font-size: 10px; }
  .masthead .contact-top { display: flex; }
  .chapter { inset: 85px 8vw 73px 4vw; }
  .work-head { position: absolute; left: 0; top: 8px; max-width: 28%; }
  .work-head .eyebrow { margin-bottom: 14px; font-size: 8px; letter-spacing: 1.3px; }
  .work-head h2 { font-size: clamp(32px,5.2vw,48px); }
  .project-card { left: 31%; right: 0; top: 0; bottom: 4%; }
  .project-card .project-information { padding: 10px 3px 0; gap: 10px; }
  .project-card .project-information h3 { font-size: 24px; margin-bottom: 3px; }
  .project-card .project-category { font-size: 8px; letter-spacing: 1px; margin-bottom: 4px; }
  .project-card .project-credit { font-size: 9px; max-width: none; }
  .project-card .project-navigation { gap: 8px; }
  .project-card .project-navigation button { width: 32px; height: 32px; font-size: 20px; }
  .project-card .project-watch { min-width: 110px; height: 32px; font-size: 8px; padding: 6px 8px; }
  .project-card #project-count { font-size: 11px; }
  .experience-footer { height: 48px; }
  .experience-footer .footer-center, .side-caption { display: none; }
  .experience-footer .experience-controls button, .experience-footer .scroll-hint { font-size: 9px; }
  .chapter-rail.glass-surface { padding: 10px 8px; gap: 18px; }
  .hero { padding: 0; align-items: center; }
  .hero h1 { font-size: 52px; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 13px; }
  .hero-bottom { margin-top: 15px; gap: 42px; }
  .hero-bottom p { font-size: 12px; }
  .hero .round-play { width: 40px; height: 40px; }
  .hero .play-caption { top: 14px; left: 55px; font-size: 9px; transform: none; }
  .editorial { width: 85%; max-width: 680px; }
  .editorial h2 { font-size: 34px; margin-bottom: 14px; }
  .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .body-copy { font-size: 12px; margin-bottom: 12px; max-width: 580px; }
  .service-line { margin-top: 12px; padding-top: 10px; font-size: 8px; }
  .reel h2 { font-size: 60px; margin: 10px 0 18px; }
  .reel-cta { font-size: 10px; }
  .reel-play { width: 40px; height: 40px; }
  .reel-domain { margin-top: 10px; }
  .contact .editorial h2 { font-size: 34px; margin-bottom: 14px; }
  .email { font-size: 18px; }
  .contact-copy { font-size: 12px; margin: 12px 0; }
  .contact-links { font-size: 9px; }
}

/* Project galleries: media loads only on demand, with its original soundtrack. */
#film-dialog { width:min(1180px,94vw);max-height:94dvh;overflow-y:auto;overscroll-behavior:contain; }
#film-player { display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;min-height:0;background:#080908;overflow:hidden; }
#film-player>video,#film-player>img,#film-player>iframe { display:block;width:100%;height:100%;max-height:60dvh;object-fit:contain;border:0; }
.gallery-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 14px; }
#project-picker { min-width:0;max-width:75%;padding:12px 14px;color:var(--paper);background:#171919;border:1px solid #ffffff30;border-radius:12px;font:600 15px Rajdhani,Arial,sans-serif; }
.gallery-navigation { display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums; }
.gallery-navigation button { width:38px;height:38px;border:1px solid #ffffff40;border-radius:50%;font-size:24px; }
.gallery-media { display:flex;gap:12px;overflow-x:auto;padding:4px 3px 12px;scrollbar-width:thin;overscroll-behavior:contain; }
.gallery-media button { flex:0 0 124px;padding:5px;border:1px solid #ffffff20;border-radius:12px;overflow:hidden;text-align:left; }
.gallery-media button[aria-pressed=true] { border-color:var(--red);background:#e7243212; }
.gallery-media img { display:block;width:112px;height:65px;object-fit:cover;border-radius:7px; }
.gallery-media span { display:block;margin:7px 3px 3px;font-size:11px;letter-spacing:.5px; }
#project-credit:empty { display:none; }
@keyframes gallery-appear { from { opacity:0;filter:blur(3px);transform:translateY(6px); } to { opacity:1;filter:none;transform:none; } }
#film-player>* { animation:gallery-appear .8s cubic-bezier(.22,1,.36,1) both; }
@media(max-width:600px){#film-dialog{padding:18px 14px}.gallery-toolbar{gap:8px}#project-picker{font-size:12px;padding:10px;max-width:65%}.gallery-navigation{gap:7px;font-size:11px}.gallery-navigation button{width:29px;height:29px;font-size:20px}#film-player{aspect-ratio:4/3}.gallery-media button{flex-basis:106px}.gallery-media img{width:94px;height:57px}.film-dialog-header h2{font-size:23px;line-height:1.05;overflow-wrap:anywhere}}

#project-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.scroll-mouse { display: none; }
body[data-chapter="0"] .experience-footer .scroll-hint {
  color: #fff;
  background: rgba(14, 12, 14, .9);
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 2rem;
  padding: .55rem .95rem;
  min-height: 44px;
  gap: .6rem;
}
body[data-chapter="0"] .scroll-mouse {
  position: relative;
  display: block;
  width: 16px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
}
.scroll-mouse::after {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: #ff4855;
}
body[data-chapter="0"] .scroll-glyph { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body[data-chapter="0"]:not(.reduced-motion) .scroll-mouse::after {
    animation: wheel-down 1.6s ease-in-out infinite;
  }
  @keyframes wheel-down { 65%, 100% { transform: translateY(6px); opacity: .25; } }
}
@media (pointer: coarse) {
  body[data-chapter="0"] .scroll-mouse { display: none; }
  body[data-chapter="0"] .scroll-glyph { display: inline; }
}

#opening-scroll {
  position: fixed;
  z-index: 8;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.45rem;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 3rem;
  background: rgba(13,12,14,.93);
  color: #fff;
  box-shadow: 0 5px 32px #0007;
  font: inherit;
  font-size: clamp(1rem,1.4vw,1.4rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .24s, visibility .24s;
}
#opening-scroll.dismissed, body[data-chapter]:not([data-chapter="0"]) #opening-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cue-icon {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 14px;
}
.cue-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 9px;
  left: 7px;
  top: 5px;
  background: #ff4654;
  border-radius: 5px;
}
@media (pointer: coarse) {
  .cue-icon { border: 0; }
  .cue-icon::after { content: "↑"; inset: 0; background: none; width: auto; height: auto; color: #ff4654; font: 700 27px/34px sans-serif; }
}
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  body:not(.reduced-motion) .cue-icon::after { animation: wheel-down 1.35s ease-in-out infinite; }
}

.project-artwork[data-projecting] {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: #090909;
  max-width: none;
  max-height: none;
  box-shadow: inset 0 0 0 1px #fff5;
  cursor: pointer;
}
.project-artwork[data-projecting] .project-rim { opacity: 0; }
.project-artwork[data-projecting]::after {
  content: ""; position: absolute; inset: 0; border: 1px solid #fff5; pointer-events: none;
}
.project-artwork[data-projecting]::backdrop {
  background: rgb(7 6 8 / 49%);
  backdrop-filter: blur(9px);
  animation: reel-background 2.4s cubic-bezier(.45,0,.35,1) both;
}
@keyframes reel-background {
  from { background: transparent; backdrop-filter: blur(0); }
}
#reel-tools:popover-open {
  position: fixed; inset: auto; left: 50%; transform: translateX(-50%);
  margin: 0; display: flex; align-items: center; gap: .75rem;
  padding: 0 .9rem; border: 1px solid #fff4; border-radius: 28px;
  background: #141316ed; color: #fff;
  animation: reel-tools-in .7s ease 1.25s both;
}
#reel-tools button { color: inherit; min-height: 44px; font-weight: 600; }
#reel-level { width: clamp(80px,12vw,140px); accent-color: #ef344b; touch-action: none; }
#reel-return { border-left: 1px solid #fff4; padding-left: .8rem; }
@keyframes reel-tools-in { from { opacity: 0; } }
@media(prefers-reduced-motion:reduce) {
  #reel-tools:popover-open,.project-artwork[data-projecting]::backdrop { animation: none; }
}

.contact-links { flex-wrap: wrap; gap: .65rem; }
.contact-links a {
  display: grid; gap: .15rem; padding: .5rem .85rem;
  border: 1px solid #ffffff55; border-radius: .65rem; background: #141416b8;
  font-size: .8rem; line-height: 1.15; letter-spacing: .035em;
}
.contact-links a span { font-variant-numeric: tabular-nums; }

#reel-tools:popover-open {
  width: min(28rem, calc(100vw - 1.5rem));
  height: 92px;
  grid-template-rows: 45px 45px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 .75rem;
  border-radius: 1rem;
}
.reel-timeline {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .65rem;
  border-bottom: 1px solid #fff3;
}
#reel-playback { min-width: 4.4rem; text-align: left; }
#reel-seek { flex: 1; min-width: 0; height: 30px; touch-action: none; accent-color: #ef344b; }
#reel-clock { font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
#reel-level { width: 100%; }

#reel-tools::backdrop { background: transparent; backdrop-filter: none; pointer-events: none; }
body:has(.project-artwork[data-projecting]) #privacy-dialog { visibility: hidden; }
