@font-face { font-family: 'VCR OSD'; src: url('./assets/fonts/vcr-osd-mono.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; font-family: 'VCR OSD', 'Courier New', monospace; background: #000; color: #c3f77c; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { display: grid; place-items: center; overflow: hidden; }
.entrance { position: relative; width: min(100vw, 177.7778vh); width: min(100vw, 177.7778dvh); aspect-ratio: 16 / 9; }
.homepage-media, .background-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#broadcastVideo { background: #000; }
.digital, button { font-family: inherit; font-weight: 400; letter-spacing: 0; color: #c3f77c; text-shadow: 0 0 4px #a6ee6266, 1px 1px 2px #000, -1px -1px 2px #000; }
button { border: 0; border-radius: 0; background: transparent; padding: 8px; min-height: 44px; cursor: pointer; }
button:hover { color: #e4ffb6; }
button:disabled { opacity: .35; cursor: default; }
.entrance.in-grid { width: 100vw; height: 100dvh; aspect-ratio: auto; background: #060806; }
.portfolio-grid { position: absolute; inset: 0 0 100px; background: #060806; padding: 3% 5% 24px; overflow-y: auto; scrollbar-color: #c3f77c #111; }
.portfolio-grid h1 { margin: 0 0 16px; font-size: 15px; font-weight: 400; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.project-tile { display: block; width: 100%; min-width: 0; padding: 0; text-align: left; }
.project-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.project-tile span { display: block; min-height: 32px; padding: 8px 0; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.portfolio-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.portfolio-heading h1 { margin: 0; }
#shuffleProjects { display: flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-width: 44px; max-width: 48%; height: 44px; flex-shrink: 0; opacity: .45; font-size: 8px; }
#shuffleProjects .shuffle-label { min-width: 0; overflow-wrap: anywhere; text-align: right; }
#shuffleProjects svg { flex-shrink: 0; }
#shuffleProjects:hover, #shuffleProjects:focus-visible { opacity: 1; }
.project-thumbnail { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.project-thumbnail img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.project-thumbnail .branded-thumbnail { opacity: 0; }
.project-thumbnail .brand-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: #0005; color: #fff; font-size: 24px; text-align: center; text-shadow: 0 0 12px #fff8; opacity: 0; }
.project-tile:focus-visible .branded-thumbnail, .project-tile:focus-visible .brand-fallback { opacity: 1; }
@media (hover: hover) { .project-tile:hover .branded-thumbnail, .project-tile:hover .brand-fallback { opacity: 1; } }
.project-dialog { width: min(1100px, 94vw); max-height: 94dvh; border: 1px solid #c3f77c60; background: #080a08; color: #c3f77c; padding: 16px; border-radius: 4px; }
.project-dialog::backdrop { background: #000e; }
.project-player-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-player-header h2 { margin: 0; font-size: 14px; font-weight: 400; overflow-wrap: anywhere; }
#projectPlayer { display: block; width: 100%; max-height: 75dvh; background: #000; }
#projectError { font-size: 12px; }
.in-grid .back-phrase { background: #000b; }
.in-grid .back-phrase { bottom: 45px; }
.in-grid .playback-controls { bottom: 45px; }
@media (max-width: 700px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .portfolio-grid h1 { font-size: 12px; } .portfolio-grid { padding-bottom: 70px; } .project-tile span { font-size: 10px; } }
@media (max-width: 420px) { .project-grid { grid-template-columns: 1fr; } }
button:focus-visible { outline: 1px solid #c3f77c; outline-offset: 3px; }
.portfolio-link { position: absolute; top: 5%; right: 5.5%; max-width: 47%; font-size: 22px; text-align: right; }
.skip-intro { position: absolute; top: 86%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; min-height: 34px; max-width: 85%; font-size: 12px; padding: 6px 14px; border-radius: 20px; background: rgba(0,0,0,.76); border: 1px solid #c3f77c66; box-shadow: 0 3px 16px #0006; overflow-wrap: anywhere; }
.skip-intro svg { flex-shrink: 0; width: 16px; height: 16px; }
.skip-intro:hover { background: rgba(0,0,0,.9); border-color: #c3f77c; }
@media (max-width: 700px) { .skip-intro { top: 76%; font-size: 10px; min-width: 100px; min-height: 28px; padding: 4px 10px; gap: 6px; } }
.home-caption { position: fixed; left: 16px; bottom: 18px; max-width: min(320px, calc(50vw - 180px)); font-size: 11px; line-height: 1.3; white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; }
.entrance-controls { position: absolute; inset: 0; pointer-events: none; }
.entrance-controls button { pointer-events: auto; }
.back-phrase { position: absolute; left: 4.5%; bottom: 6%; max-width: 70%; text-align: left; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.start-panel { position: absolute; left: 50%; bottom: 19%; transform: translateX(-50%); }
.start-panel button { font-size: 18px; }
.status { position: absolute; bottom: 26%; left: 10%; right: 10%; text-align: center; font-size: 12px; }
.is-hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.corporate-launcher { position: fixed; right: 16px; bottom: 10px; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 8px; height: 36px; min-height: 36px; font-size: 9px; opacity: .65; background: #000b; }
.corporate-launcher:hover, .corporate-launcher:focus-visible { opacity: 1; }
.corporate-dialog { position: fixed; inset: auto 16px 60px auto; margin: 0; width: min(470px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 90px)); max-height: calc(100dvh - 90px); padding: 0; border: 1px solid #c3f77c70; border-radius: 4px; background: #080c08; color: #c3f77c; overflow: hidden; }
.corporate-dialog[open] { display: flex; flex-direction: column; }
.corporate-dialog::backdrop { background: #0009; }
.corporate-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; padding: 10px 12px; border-bottom: 1px solid #c3f77c30; }
.corporate-header h2 { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 400; }
.corporate-tools { display: flex; flex-shrink: 0; }
.corporate-tools button { display: grid; place-items: center; width: 36px; height: 44px; padding: 4px; }
.corporate-transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; scrollbar-color: #6b9147 #080c08; }
.corporate-entry { margin-bottom: 24px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.corporate-author { color: #c3f77c80; font-size: 9px; }
.corporate-entry p { margin: 6px 0 10px; white-space: pre-wrap; }
.visitor-entry { color: #efefeb; padding-left: 14px; border-left: 1px solid #efefeb40; }
.corporate-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.corporate-actions button, .corporate-actions a { padding: 6px 0; font: inherit; font-size: 10px; line-height: 1.5; min-height: 32px; color: #c3f77c; text-decoration: underline; text-underline-offset: 4px; text-align: left; overflow-wrap: anywhere; }
.corporate-actions button:disabled { text-decoration: none; }
.corporate-contact { color: #fff; }
.corporate-privacy { flex-shrink: 0; margin: 0; padding: 0 12px 8px; font-size: 9px; line-height: 1.4; color: #a1b28c; }
.corporate-error { color: #efefeb; }
.corporate-error button { font-size: 10px; text-decoration: underline; padding: 6px 0; }
.portfolio-link { overflow-wrap: anywhere; }
.corporate-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #c3f77c30; flex-shrink: 0; }
.corporate-composer textarea, .corporate-lead textarea, .corporate-lead input { width: 100%; min-width: 0; font: inherit; font-size: 12px; line-height: 1.5; color: #efefeb; background: #111711; border: 1px solid #c3f77c40; border-radius: 2px; padding: 10px; outline-offset: 2px; }
.corporate-composer textarea { resize: none; height: 64px; }
.corporate-composer textarea::placeholder { color: #a1b28c; font-size: 10px; }
.corporate-composer button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; }
.corporate-lead { overflow-y: auto; max-height: 65%; padding: 12px 18px; border-top: 1px solid #c3f77c30; flex-shrink: 0; }
.corporate-lead label { display: block; font-size: 10px; margin: 8px 0 4px; }
.corporate-lead textarea { resize: vertical; min-height: 70px; max-height: 130px; }
.corporate-lead-actions { display: flex; justify-content: space-between; gap: 8px; }
.corporate-lead-actions button { padding: 8px 0; font-size: 10px; }
@media (max-width: 700px) { .corporate-launcher span { display: none; } .corporate-launcher { width: 36px; justify-content: center; } }
@media (max-width: 480px) { .corporate-dialog { inset: auto 8px 56px; width: calc(100vw - 16px); height: min(640px, calc(100dvh - 72px)); max-height: calc(100dvh - 72px); } .corporate-header h2 { font-size: 11px; } .corporate-transcript { padding: 14px; } }
.language-selector { position: absolute; bottom: 1%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; white-space: nowrap; font-size: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.72); border: 1px solid #c3f77c2e; }
.language-selector button { font-size: 10px; padding: 4px; min-height: 28px; opacity: .8; }
.language-selector button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
#languageRandom { min-width: 104px; text-align: center; }
.playback-controls { position: absolute; bottom: 7%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0; width: min(440px, 68%); height: 44px; padding: 4px 6px; border-radius: 24px; background: rgba(0,0,0,.76); border: 1px solid #c3f77c40; box-shadow: 0 2px 10px #0005; }
.playback-controls button { flex: 0 0 38px; height: 34px; min-height: 34px; padding: 6px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.playback-controls button + button { border-left: 1px solid #c3f77c26; }
.playback-controls button:hover { background: #c3f77c12; }
.playback-controls button[aria-pressed="true"] { color: #fff; }
.playback-controls .next-link { flex: 1 1 auto; min-width: 0; gap: 6px; padding: 4px 10px; font-size: 15px; line-height: 1.1; overflow-wrap: anywhere; }
.in-portfolio .playback-controls { left: 50%; right: auto; bottom: calc(1% + 44px); transform: translateX(-50%); width: 40px; height: 36px; padding: 2px 4px; }
.in-portfolio .playback-controls button { flex-basis: 30px; height: 30px; min-height: 30px; padding: 5px; }
.in-portfolio .playback-controls svg { width: 16px; height: 16px; }
.in-portfolio .back-phrase { max-width: calc(45.5% - 28px); }
.in-portfolio .skip-intro { top: auto; bottom: calc(1% + 90px); transform: translateX(-50%); }
@media (max-width: 700px) {
  .portfolio-link { font-size: 12px; line-height: 1.2; top: 3%; right: 5%; }
  .home-caption { font-size: 8px; max-width: min(260px, calc(100vw - 80px)); bottom: 54px; }
  .back-phrase { font-size: 10px; bottom: 6%; }
  .playback-controls { left: 4.5%; transform: none; width: 72%; height: 36px; bottom: 17%; padding: 2px 4px; }
  .playback-controls button { flex-basis: 30px; height: 28px; min-height: 28px; padding: 3px; font-size: 10px; }
  .playback-controls .next-link { font-size: 10px; padding: 2px 5px; }
  .language-selector, .language-selector button { font-size: 8px; }
  .language-selector { bottom: 1%; padding: 0 5px; }
  #languageRandom { min-width: 86px; }
  .in-portfolio .playback-controls { left: 50%; width: 40px; bottom: calc(1% + 38px); transform: translateX(-50%); }
}

/* Phone controls use the viewport, independently of the film's aspect ratio. */
@media (max-width: 700px), (max-width: 950px) and (max-height: 480px) {
  .portfolio-link { position: fixed; top: max(20px, calc(50dvh - 28.125vw - 64px)); right: 16px; max-width: calc(100vw - 32px); min-height: 44px; font-size: 14px; line-height: 1.35; }
  .playback-controls { position: fixed; left: 16px; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; height: 52px; transform: none; padding: 3px; border-radius: 8px; }
  .playback-controls button { flex-basis: 44px; height: 44px; min-height: 44px; padding: 8px; font-size: 12px; }
  .playback-controls .next-link { font-size: 11px; line-height: 1.3; padding: 4px 8px; }
  .playback-controls .next-link svg, .playback-controls .next-link > span:last-child { flex-shrink: 0; }
  .language-selector { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; max-width: calc(100vw - 76px); min-height: 44px; padding: 0 4px; border-radius: 8px; }
  .language-selector, .language-selector button { font-size: 10px; }
  .language-selector button { min-height: 44px; padding: 6px; }
  #languageRandom { min-width: 0; width: 90px; white-space: normal; overflow-wrap: anywhere; }
  .corporate-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid #c3f77c30; border-radius: 8px; opacity: .85; }
  .corporate-launcher span { display: none; }
  .home-caption { left: 20px; bottom: calc(140px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); font-size: 11px; line-height: 1.5; }
  .start-panel { position: fixed; bottom: calc(190px + env(safe-area-inset-bottom)); }
  .start-panel button { min-width: 100px; min-height: 48px; font-size: 16px; }
  .status { position: fixed; bottom: calc(244px + env(safe-area-inset-bottom)); font-size: 11px; }
  .back-phrase, .in-grid .back-phrase { position: fixed; left: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: calc(100vw - 96px); min-height: 48px; font-size: 12px; padding: 8px; line-height: 1.4; }
  .in-portfolio .back-phrase { max-width: calc(100vw - 96px); }
  .in-portfolio .playback-controls { left: auto; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); transform: none; width: 48px; height: 48px; padding: 1px; }
  .in-portfolio .playback-controls button { flex-basis: 44px; height: 44px; min-height: 44px; padding: 10px; }
  .skip-intro, .in-portfolio .skip-intro { position: fixed; top: auto; bottom: calc(136px + env(safe-area-inset-bottom)); min-height: 44px; font-size: 12px; padding: 8px 16px; }
  .portfolio-grid { bottom: calc(136px + env(safe-area-inset-bottom)); padding-bottom: 24px; }
  .portfolio-heading { gap: 12px; }
  #shuffleProjects { font-size: 9px; opacity: .7; }
  .project-dialog { width: calc(100vw - 16px); padding: 8px; }
  .project-player-header h2 { font-size: 12px; line-height: 1.4; }
  #closeProject { width: 44px; flex-shrink: 0; }
  .corporate-dialog { inset: auto 8px calc(68px + env(safe-area-inset-bottom)); width: calc(100vw - 16px); height: min(640px, calc(100dvh - 92px - env(safe-area-inset-bottom))); max-height: calc(100dvh - 92px - env(safe-area-inset-bottom)); }
  .corporate-composer textarea, .corporate-lead textarea, .corporate-lead input { font-size: 16px; }
}
@media (max-width: 950px) and (max-height: 480px) {
  .portfolio-link { top: max(8px, env(safe-area-inset-top)); font-size: 12px; }
  .home-caption { display: none; }
  .playback-controls, .back-phrase, .in-grid .back-phrase, .in-portfolio .playback-controls { bottom: calc(56px + env(safe-area-inset-bottom)); }
  .language-selector, .corporate-launcher { bottom: calc(4px + env(safe-area-inset-bottom)); }
  .skip-intro, .in-portfolio .skip-intro { bottom: calc(116px + env(safe-area-inset-bottom)); }
  .portfolio-grid { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .start-panel { bottom: calc(116px + env(safe-area-inset-bottom)); }
}
