/* SIUIZ — breakdown videos + Cinematic AI section */

/* Credit cards */
.poster-image { position: relative; }
.poster-play {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font: 500 9px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 6px 9px; border-radius: 2px;
  pointer-events: none;
}
[dir="rtl"] .poster-play { left: auto; right: 10px; }
.poster-from-video { object-fit: cover; }

/* Credit dialog with video */
dialog.has-video[open] { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
dialog.has-video > img { max-height: 520px; align-self: stretch; }
.dialog-video { grid-column: 1 / -1; padding: 46px 38px 0; }
.dialog-stage { position: relative; aspect-ratio: 16 / 9; background: #090e14; }
.dialog-stage iframe, .ai-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dialog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.dialog-tab, .ai-toggle-btn {
  font: 500 10px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--paper); background: transparent; border: 1px solid var(--line);
  padding: 9px 14px; cursor: pointer;
}
.dialog-tab[aria-selected="true"], .ai-toggle-btn[aria-selected="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.dialog-video-label { display: block; margin-bottom: 12px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.dialog-video-note { margin: 10px 0 0; font-size: 12px; color: #8e98a3; }

/* Cinematic AI section */
.cinematic-ai { border-top: 1px solid var(--line); }
.ai-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin: 34px 0 64px; }
.ai-heading h2 { margin: 0; }
.ai-intro { margin: 0; color: #b7bec4; max-width: 520px; }
.ai-block { margin-top: 72px; }
.ai-kicker { display: block; font-size: 10px; letter-spacing: 1.7px; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.ai-copy h3 { font: 400 34px/1.1 var(--serif); margin: 0 0 14px; color: var(--paper); }
.ai-copy p { margin: 0 0 10px; color: #b7bec4; }
.ai-credit { font-size: 12px; color: #8e98a3 !important; }

.ai-ba { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-after .ba-cap { color: var(--gold); }
.ai-toggle { display: flex; gap: 8px; margin-bottom: 12px; }

.ai-frame { position: relative; width: 100%; background: #0c0e14; overflow: hidden; }
.ai-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ai-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s; }
.ai-facade:hover img { transform: scale(1.03); }
.ai-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border: 1px solid rgba(199,169,107,.6); border-radius: 50%; background: rgba(16,17,22,.55);
  display: grid; place-items: center; transition: background .25s, transform .25s;
}
.ai-play::before { content: ""; margin-left: 4px; border-left: 14px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.ai-facade:hover .ai-play { background: rgba(199,169,107,.18); transform: scale(1.06); }
.ai-dur { position: absolute; left: 12px; bottom: 10px; font-size: 10px; letter-spacing: 1px; background: rgba(16,17,22,.75); padding: 3px 7px; color: var(--paper); }
.ai-facade:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.ai-film { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; }
.ai-film-title { font-size: 64px !important; letter-spacing: 2px; }
.ai-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ai-part { margin: 0; }
.ai-part figcaption { margin-top: 9px; font-size: 11px; letter-spacing: 1.2px; color: #b7bec4; text-transform: uppercase; }

.ai-more-row { display: grid; grid-template-columns: 1fr 0.316fr; gap: 18px; align-items: start; }

@media (max-width: 960px) {
  .ai-heading, .ai-ba, .ai-film { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .dialog-video { padding: 52px 18px 0; }
  .ai-parts, .ai-more-row, .ba-pair { grid-template-columns: 1fr; }
  .ai-more-row .is-vertical { max-width: 320px; }
  .ai-film-title { font-size: 48px !important; }
  .ai-block { margin-top: 52px; }
}

/* Selected Work */
.selected-work { border-top: 1px solid var(--line); }
.sw-layout { display: grid; grid-template-columns: 1.75fr 1fr; gap: 28px; align-items: start; }
.sw-stage { background: #090e14; }
.sw-caption { padding-top: 18px; }
.sw-caption h3 { font: 400 34px/1.1 var(--serif); margin: 0 0 12px; color: var(--paper); }
.sw-meta { margin: 0 0 6px; font-size: 13px; color: #b7bec4; }
.sw-meta b { font-weight: 500; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-inline-end: 6px; }
.sw-dim { color: #8e98a3; font-size: 12px; }
.sw-list { display: flex; flex-direction: column; gap: 2px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sw-item { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center; padding: 8px; background: transparent; border: 0; border-inline-start: 2px solid transparent; color: var(--paper); text-align: start; cursor: pointer; transition: background .25s, border-color .25s; }
.sw-item:hover { background: rgba(255,255,255,.04); }
.sw-item[aria-current="true"] { border-inline-start-color: var(--gold); background: rgba(199,169,107,.08); }
.sw-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw-thumb { aspect-ratio: 16 / 9; background: #0c0e14; overflow: hidden; }
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: opacity .25s; }
.sw-item:hover .sw-thumb img, .sw-item[aria-current="true"] .sw-thumb img { opacity: 1; }
.sw-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sw-num { font-size: 10px; letter-spacing: 1.4px; color: var(--gold); }
.sw-name { font: 400 19px/1.15 var(--serif); }
.sw-sub { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #8e98a3; }
@media (max-width: 960px) {
  .sw-layout { grid-template-columns: 1fr; }
  .sw-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 10px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .sw-item { grid-template-columns: 1fr; width: 200px; flex: 0 0 auto; border-inline-start: 0; border-top: 2px solid transparent; scroll-snap-align: start; }
  .sw-item[aria-current="true"] { border-top-color: var(--gold); }
}

/* Header nav: five links */
.desktop-nav { grid-template-columns: repeat(5, auto); column-gap: 26px; }

/* ===== Motion layer ===== */
/* Hero: reel, letterbox intro, grain, timecode */
.hero-reel { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.8s ease; pointer-events: none; }
.hero-reel iframe { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); border: 0; }
.hero-art.reel-on .hero-reel { opacity: 1; }
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); animation: siuiz-grain .9s steps(5) infinite; }
@keyframes siuiz-grain { 0% { background-position: 0 0; } 20% { background-position: -40px 22px; } 40% { background-position: 30px -50px; } 60% { background-position: -18px 60px; } 80% { background-position: 52px 14px; } 100% { background-position: 0 0; } }
.hero-bar { position: absolute; left: 0; right: 0; height: 16vh; background: #05060a; pointer-events: none; z-index: 2; animation: siuiz-bar 1.7s cubic-bezier(.75,0,.2,1) .2s forwards; }
.hero-bar.t { top: 0; transform-origin: top; }
.hero-bar.b { bottom: 0; transform-origin: bottom; }
@keyframes siuiz-bar { to { transform: scaleY(0); } }
.hero-tc { position: absolute; top: 104px; right: 36px; z-index: 2; display: flex; align-items: center; gap: 9px; font: 500 10px/1 var(--sans); letter-spacing: 2px; color: rgba(244,240,232,.78); opacity: 0; transition: opacity .8s ease; pointer-events: none; font-variant-numeric: tabular-nums; }
.hero-tc.on { opacity: 1; }
.hero-tc i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: siuiz-blink 1.2s steps(2) infinite; }
.hero-tc b { font-weight: 500; color: var(--gold); }
@keyframes siuiz-blink { 50% { opacity: .15; } }

/* Before / after wipe */
.ba-wipe { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0e14; user-select: none; touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; }
.ba-poster, .ba-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; pointer-events: none; }
.ba-frame { opacity: 0; transition: opacity .7s ease; }
.ba-wipe.is-live .ba-frame { opacity: 1; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--gold); box-shadow: 0 0 18px rgba(199,169,107,.55); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(16,17,22,.72); border: 1px solid var(--gold); backdrop-filter: blur(4px); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ba-knob::before { left: 11px; border-right: 7px solid var(--gold); }
.ba-knob::after { right: 11px; border-left: 7px solid var(--gold); }
.ba-tag { position: absolute; top: 14px; font: 500 10px/1 var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--paper); background: rgba(16,17,22,.6); padding: 7px 10px; pointer-events: none; }
.ba-tag-b { left: 14px; }
.ba-tag-a { right: 14px; color: var(--gold); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-wipe:focus-within .ba-knob { box-shadow: 0 0 0 3px rgba(199,169,107,.45); }
.ai-hint { font-size: 11px !important; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold) !important; margin-top: 16px !important; }

/* Scroll reveals */
.m-r { opacity: 0; transform: translateY(34px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.m-r.m-in { opacity: 1; transform: none; }
.ai-heading > .m-r:nth-child(2) { transition-delay: .15s; }
.section-label.m-r { transform: none; clip-path: inset(0 100% 0 0); transition: opacity .6s ease, clip-path 1.3s cubic-bezier(.7,0,.2,1); }
.section-label.m-r.m-in { clip-path: inset(0 0 0 0); }

/* Selected work hover */
.sw-thumb img { transition: opacity .25s, transform .8s cubic-bezier(.2,.7,.2,1); }
.sw-item:hover .sw-thumb img { transform: scale(1.07); }

/* Play cursor */
.play-cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(199,169,107,.94); color: #101116; display: grid; place-items: center; font: 600 10px/1 var(--sans); letter-spacing: 1.8px; text-transform: uppercase; pointer-events: none; opacity: 0; scale: .3; transition: opacity .25s ease, scale .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.play-cursor.on { opacity: 1; scale: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none; }
  .m-r { opacity: 1; transform: none; clip-path: none; }
}

/* End card (replaces Vimeo's end screen) */
.end-card { position: absolute; inset: 0; display: grid; place-items: center; background: #05060a; overflow: hidden; }
.end-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.end-replay { position: relative; font: 500 11px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 0; padding: 13px 20px; cursor: pointer; }
.end-replay:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* Hide the 1px edge line on the hero image/video */
.hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px); mask-image: linear-gradient(90deg, transparent 0, #000 10px); }
