/* acific.com home: the teaser. Inter is self-hosted (same faces as style.css). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root { --glow: 255, 122, 32; --fg: #f2eee9; --bar: clamp(5vh, calc((100vh - 100vw / 2.39) / 2), 11vh); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--fg); overflow: hidden; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

.stage { position: fixed; inset: 0; background: #000; overflow: hidden; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 50% 48%, transparent 50%, rgba(0, 0, 0, .4) 82%, rgba(0, 0, 0, .75) 100%); }
.bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #000; z-index: 4; }
.bar.t { top: 0; } .bar.b { bottom: 0; }

/* place captions (No signal) */
.chy { position: absolute; left: clamp(20px, 4vw, 56px); bottom: calc(var(--bar) + clamp(16px, 3vh, 32px)); z-index: 3; display: flex; align-items: center; gap: 12px;
  font-weight: 400; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(242, 238, 233, .78); opacity: 0; pointer-events: none; }
.chy i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 8px rgba(var(--glow), .8); }
.chy em { font-style: normal; color: rgba(242, 238, 233, .42); }

/* end card, drawn on black */
.end { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 24px; pointer-events: none; }
.end > * { opacity: 0; }
.mark { width: clamp(52px, 6vw, 80px); height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(var(--glow), .55)) drop-shadow(0 0 40px rgba(var(--glow), .22)); }
.name { margin: 26px 0 0; font-weight: 400; font-size: clamp(13px, 1.25vw, 16px); letter-spacing: .62em; padding-left: .62em; }
.line { margin: 18px 0 0; font-weight: 300; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .01em; color: rgba(242, 238, 233, .62); }
.date { margin: 44px 0 0; display: grid; justify-items: center; gap: 10px; }
.proto { margin: 0; font-weight: 500; font-size: 10px; letter-spacing: .55em; padding-left: .55em; text-transform: uppercase; color: rgba(var(--glow), .95); }
.year { margin: 0; font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: .14em; padding-left: .14em; font-variant-numeric: tabular-nums; }
.credit { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); z-index: 5; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px;
  font-weight: 500; font-size: 9.5px; letter-spacing: .44em; text-transform: uppercase; color: rgba(242, 238, 233, .55); opacity: 0; pointer-events: none; }
.credit span { white-space: nowrap; padding-left: .44em; }
.credit i { display: block; width: 44px; height: 1px; background: rgba(242, 238, 233, .25); }

/* AI disclosure: quiet, but there from the first frame to the last */
.ai { position: absolute; z-index: 5; top: 0; right: 0; height: var(--bar); display: flex; align-items: center; padding: 0 clamp(16px, 3vw, 40px);
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(242, 238, 233, .4); pointer-events: none; }

/* ---------------------------------------------------------------- the opening screen */
.gate { position: fixed; inset: 0; z-index: 8; background: #000; transition: opacity 1.4s ease, visibility 1.4s; overflow: hidden; }
.gate[hidden] { display: none; }
.gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }
/* the film itself, silent and slowed, drifting behind the title */
.gate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.9) brightness(.62); transform: scale(1.08);
  transition: opacity 2.4s ease; animation: drift 26s ease-in-out infinite alternate; }
.gate video.on { opacity: 1; }
@keyframes drift { from { transform: scale(1.08) translate(-1%, .5%); } to { transform: scale(1.16) translate(1%, -.5%); } }
.gate .shade { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .78) 100%), linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.gate .grain { position: absolute; inset: -50%; opacity: .06; mix-blend-mode: screen; pointer-events: none;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-5%, 4%); } 66% { transform: translate(4%, -6%); } 100% { transform: translate(0, 0); } }
.gate .bar { z-index: 2; }
.title { position: absolute; z-index: 3; inset: var(--bar) 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 24px; }
.title .glyph { width: clamp(46px, 5vw, 66px); height: auto; filter: drop-shadow(0 0 10px rgba(var(--glow), .6)) drop-shadow(0 0 44px rgba(var(--glow), .25)); }
.title .glyph.in { animation-name: rise, breathe; animation-duration: 1.6s, 5s; animation-timing-function: cubic-bezier(.2, .7, .2, 1), ease-in-out; animation-iteration-count: 1, infinite; animation-delay: .3s, 2s; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 10px rgba(var(--glow), .6)) drop-shadow(0 0 44px rgba(var(--glow), .25)); } 50% { filter: drop-shadow(0 0 14px rgba(var(--glow), .8)) drop-shadow(0 0 70px rgba(var(--glow), .38)); } }
.title h2 { margin: 26px 0 0; font-weight: 300; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: .62em; padding-left: .62em; line-height: 1; text-transform: uppercase; }
.title .kicker { margin: 18px 0 0; font-size: 10.5px; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: rgba(242, 238, 233, .55); }
.title .kicker b { color: rgba(var(--glow), .95); font-weight: 500; }
.play { margin-top: clamp(34px, 6vh, 56px); position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: background .5s, transform .5s; }
.play:hover { background: rgba(255, 255, 255, .12); transform: scale(1.04); }
.play svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play .tri { width: 0; height: 0; margin-left: 5px; border-left: 17px solid var(--fg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.title .runtime { margin: 18px 0 0; font-size: 10px; letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: rgba(242, 238, 233, .55); }
.title .runtime b { color: var(--fg); font-weight: 500; }
.quiet { margin-top: 14px; padding: 6px; background: none; border: 0; font: 400 10px/1 Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(242, 238, 233, .38);
  text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.quiet:hover { color: var(--fg); }
.gate .foot { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: rgba(242, 238, 233, .45); }
.gate .foot i { width: 36px; height: 1px; background: rgba(242, 238, 233, .25); }
.gate .ai { z-index: 3; }
/* the AI line: hidden on the opening screen; when a film starts it fades in softly once, holds a few
   seconds and fades away (teaser.js adds .go on play and replay) */
.ai { opacity: 0; }
.ai.go { animation: onceAi 9s ease-in-out 1s 1 forwards; }
@keyframes onceAi { 0% { opacity: 0; } 22% { opacity: .85; } 70% { opacity: .85; } 100% { opacity: 0; } }
/* the legal links, small, in the bottom bar's right corner (left on phones, clear of the centred line) */
.legal { position: absolute; z-index: 4; right: 0; bottom: 0; height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 3vw, 40px); }
.legal a { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(242, 238, 233, .4); text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--fg); }
/* everything on the title card arrives in sequence */
.gate .in { opacity: 0; transform: translateY(8px); animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .3s !important; } .d2 { animation-delay: .7s !important; } .d3 { animation-delay: 1.1s !important; } .d4 { animation-delay: 1.5s !important; } .d5 { animation-delay: 1.9s !important; }
.play:focus-visible, .quiet:focus-visible, .ctl button:focus-visible { outline: 1px solid rgba(255, 255, 255, .8); outline-offset: 5px; }

/* controls during the film */
.ctl { position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 6; opacity: 0; transition: opacity 1.4s; }
.ctl.l { left: 16px; } .ctl.r { right: 16px; }
.ready .ctl { opacity: .45; } .ctl:hover, .ctl:focus-within { opacity: 1; }
.ctl button { font: 400 10px/1 Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--fg); background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.ctl s { text-decoration: none; } .ctl [aria-pressed="false"] s { text-decoration: line-through; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .credit { flex-direction: column; gap: 8px; font-size: 8.5px; } .credit i { display: none; } .chy { font-size: 9.5px; }
  .gate .foot { font-size: 8.5px; letter-spacing: .3em; } .gate .foot i { display: none; }
  .ai { left: 0; justify-content: center; font-size: 8px; letter-spacing: .22em; }
  .gate .foot { justify-content: flex-start; padding-left: 16px; } .legal { gap: 14px; padding-right: 16px; }
  .title h2 { letter-spacing: .5em; padding-left: .5em; }
}
@media (prefers-reduced-motion: reduce) { .gate video, .play svg.ring, .gate .grain { animation: none; } .gate .in { animation-duration: .01s; } .ai.go { animation: none; opacity: .85; } }

/* ---------------------------------------------------------------- Privacy and Terms as a sheet over the video */
.sheet { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: none; max-height: none; width: 100%; height: 100%; }
.sheet[open] { display: grid; place-items: center; }
.sheet::backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet-in { position: relative; width: min(640px, calc(100% - 32px)); max-height: min(78vh, 720px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px); border-radius: 22px; background: rgba(14, 14, 15, .82); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; animation: sheetIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sheet-x { position: sticky; top: 0; float: right; margin: -8px -8px 0 12px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(14, 14, 15, .9);
  color: var(--fg); font: 400 10px/1 Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.sheet-x:hover { border-color: rgba(255, 255, 255, .5); }
.sheet-in:focus { outline: none; }   /* the panel takes focus when it opens, so Close shows no ring until you tab to it */
.sheet-x:focus { outline: none; } .sheet-x:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 3px; }
.sheet-body .chip { display: inline-block; margin: 0 0 18px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--glow), .95); }
.sheet-body h1 { margin: 0; font-weight: 300; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: .3em; text-transform: uppercase; }
.sheet-body .by { margin: 10px 0 0; color: rgba(242, 238, 233, .6); font-size: 15px; }
.sheet-body .sect { margin-top: 28px; }
.sheet-body .label { margin: 0 0 10px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: rgba(242, 238, 233, .5); }
.sheet-body .lede { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 300; }
.sheet-body .muted, .sheet-body p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(242, 238, 233, .72); }
.sheet-body .rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sheet-body .row { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; font-size: 14.5px; line-height: 1.6; }
.sheet-body .num { grid-row: span 2; color: rgba(var(--glow), .9); font-size: 11px; letter-spacing: .1em; padding-top: 3px; font-variant-numeric: tabular-nums; }
.sheet-body .row-title { font-weight: 500; }
.sheet-body .row-text { color: rgba(242, 238, 233, .72); }
.sheet-body a { color: var(--fg); text-underline-offset: 3px; }
.sheet-page { display: inline-block; margin-top: 30px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(242, 238, 233, .45); text-underline-offset: 5px; }
.sheet-page:hover { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .sheet-in { animation: none; } }
