/* ==========================================================================
   Octavian Budișteanu | shared structure for the minimal variants (B and C)
   Colors, type and shapes come from the variant tokens (b.css / c.css).
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable, with Romanian ă ș ț) ---------- */
@font-face { font-family: "OB Serif"; src: url("../fonts/nsd-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "OB Serif"; src: url("../fonts/nsd-ro.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: "OB Serif"; src: url("../fonts/nsd-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; 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: "OB Serif"; src: url("../fonts/nsd-ro-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }
@font-face { font-family: "OB Sans"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "OB Sans"; src: url("../fonts/geist-ro.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+015E-015F, U+0162-0163, U+0218-021B; }

:root {
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.75, 0, .25, 1);
  --z-header: 50; --z-menu: 60; --z-sheet: 70; --z-ghost: 75; --z-cursor: 90; --z-curtain: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 3px; }
[hidden] { display: none !important; }
html.ob-locked, html.ob-locked body { overflow: hidden; }
.is-out { display: none !important; }

.ob-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ob-skip { position: fixed; left: 16px; top: 16px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 14px/1 var(--sans); transform: translateY(-160%); transition: transform .4s var(--ease); }
.ob-skip:focus { transform: none; }
.ob-num { font-variant-numeric: tabular-nums; }
.ob-mask { display: block; overflow: hidden; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.ob-mask > span { display: block; }
.ob-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Ghost frame (flight into the player) ---------- */
.ob-ghost { position: fixed; z-index: var(--z-ghost); overflow: hidden; pointer-events: none; margin: 0; background: #000; }
.ob-ghost img, .ob-ghost canvas { position: absolute; max-width: none; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Film sheet (dialog) ---------- */
.ob-sheet { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--sheet-bg); color: var(--sheet-ink); overflow: hidden; }
.ob-sheet__ambient { position: absolute; inset: -12%; pointer-events: none; }
.ob-sheet__ambient::before { content: ""; position: absolute; inset: 0; background: var(--amb) 50% 50% / cover no-repeat; filter: blur(70px) saturate(1.2); opacity: var(--ambient, .28); }
.ob-sheet__top { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); min-height: 76px; padding: 14px var(--gutter); }
.ob-sheet__title { margin-right: auto; font: var(--sheet-title-font); padding-bottom: .06em; }
.ob-sheet__meta { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.ob-sheet__meta div { display: grid; gap: 6px; }
.ob-sheet__meta dt { font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sheet-muted); }
.ob-sheet__meta dd { font: 500 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ob-sheet__close { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--sheet-line); transition: background-color .3s, color .3s, box-shadow .3s; }
.ob-sheet__close:hover { background: var(--sheet-ink); color: var(--sheet-bg); box-shadow: none; }
.ob-sheet__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.ob-sheet__player { position: relative; width: var(--pw, 80vw); height: var(--ph, 45vw); background: var(--player-bg, #000); border-radius: var(--player-radius, 0); overflow: hidden; cursor: pointer; }
.ob-sheet__poster, .ob-sheet__embed { position: absolute; inset: 0; }
.ob-sheet__poster img { width: 100%; height: 100%; object-fit: contain; }
.ob-sheet__poster { transition: opacity .9s var(--ease); }
.ob-sheet__player.is-playing .ob-sheet__poster { opacity: 0; pointer-events: none; }
.ob-sheet__embed { opacity: 0; transition: opacity .9s var(--ease); }
.ob-sheet__player.is-playing .ob-sheet__embed { opacity: 1; }
.ob-sheet__embed iframe, .ob-sheet__embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.ob-sheet__embed video { object-fit: contain; background: #000; }
/* a film's own muted clip inside a box: same crop as the poster under it (object-position = focal point) */
.ob-clip { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--fx, 50%) 50%; pointer-events: none; }
/* a clip starts on its own poster frame: a short fade is enough */
.ob-clipbox { transition-duration: .45s !important; }
.ob-sheet__msg { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; font: 500 12px/1.3 var(--sans); letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-sheet__msg:empty { display: none; }
.ob-sheet__msg a { text-decoration: underline; text-underline-offset: 3px; }
.ob-sheet__controls { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: clamp(14px, 2vw, 28px); padding: 18px var(--gutter) 6px; }
.ob-ctl { display: inline-flex; align-items: center; min-height: 40px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: opacity .3s; }
.ob-ctl:hover { opacity: .6; }
.ob-ctl[data-ctl="play"] { min-width: 5.4em; }
.ob-ctl[data-ctl="sound"][aria-pressed="false"] { text-decoration: line-through; text-decoration-thickness: 1px; }
.ob-ctl__time { font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--sheet-ink-2); white-space: nowrap; }
.ob-ctl__track { display: flex; align-items: center; height: 40px; }
.ob-ctl__track input { width: 100%; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --v: 0%; }
.ob-ctl__track input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--sheet-ink) var(--v), var(--sheet-line) var(--v)); }
.ob-ctl__track input::-moz-range-track { height: 2px; background: var(--sheet-line); }
.ob-ctl__track input::-moz-range-progress { height: 2px; background: var(--sheet-ink); }
.ob-ctl__track input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--sheet-ink); border: 0; }
.ob-ctl__track input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--sheet-ink); border: 0; }
.ob-sheet__foot { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
.ob-sheet__nav { display: grid; gap: 7px; justify-items: start; text-align: left; }
.ob-sheet__nav--next { justify-self: end; justify-items: end; text-align: right; }
.ob-sheet__navlabel { font: 500 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sheet-muted); }
.ob-sheet__navname { font: var(--sheet-nav-font); padding-bottom: .06em; transition: opacity .3s; }
.ob-sheet__nav:hover .ob-sheet__navname { opacity: .6; }
.ob-sheet__credit { display: grid; gap: 7px; justify-items: center; font-size: 14px; color: var(--sheet-ink-2); }
.ob-sheet.is-reel .ob-sheet__credit { visibility: hidden; }
@media (max-width: 1023px) {
  .ob-sheet__top { flex-wrap: wrap; row-gap: 10px; }
  .ob-sheet__meta { order: 3; width: 100%; }
  .ob-sheet__controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ob-ctl[data-ctl="fs"], .ob-sheet__credit { display: none; }
  .ob-sheet__foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ob-ctl__time { display: none; }
  .ob-sheet__msg { width: calc(100% - 28px); white-space: normal; text-align: center; border-radius: 16px; line-height: 1.45; }
}

/* ---------- Contact form ---------- */
.ob-form { position: relative; }
.ob-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.ob-field { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.ob-field--full { grid-column: 1 / -1; }
.ob-field label, .ob-field legend { display: block; margin-bottom: 4px; padding: 0; font: 500 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ob-opt { font-size: 11px; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.ob-field input:not([type="radio"]), .ob-field textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 0; border: 0; border-radius: 0;
  background: transparent linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  box-shadow: inset 0 -1px 0 var(--field-line);
  color: var(--ink); font: 400 17px/1.4 var(--sans);
  transition: background-size .6s var(--ease), box-shadow .3s;
}
.ob-field textarea { resize: vertical; min-height: 84px; }
.ob-field input::placeholder, .ob-field textarea::placeholder { color: var(--muted); opacity: 1; }
.ob-field input:focus, .ob-field textarea:focus { outline: none; background-size: 100% 1px; }
.ob-field input[type="date"] { color-scheme: var(--scheme, light); }
.ob-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .7; cursor: pointer; }
.ob-field.is-invalid input, .ob-field.is-invalid textarea { box-shadow: inset 0 -1px 0 var(--danger); }
.ob-field__err { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--danger); }
.ob-field__err:empty { display: none; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips legend { width: 100%; margin-bottom: 10px; }
.ob-chip { position: relative; display: inline-flex; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font: inherit; }
.ob-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ob-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 400 14px/1 var(--sans); color: var(--ink-2); transition: background-color .3s, color .3s, box-shadow .3s; }
.ob-chip input:hover + span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ob-chip input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.ob-chip input:focus-visible + span { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.ob-honey { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.ob-form__foot { display: grid; gap: 12px; margin-top: 34px; }
.ob-form__submit { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font: 500 15px/1 var(--sans); transition: transform .5s var(--ease), opacity .3s; }
.ob-form__submit:hover { opacity: .88; }
.ob-form__submit:active { transform: scale(.985); }
.ob-form__submit[disabled] { cursor: progress; }
.ob-form__submit.is-sending::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: currentColor; opacity: .5; animation: ob-sending 1.1s var(--ease-io) infinite; }
@keyframes ob-sending { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ob-form__privacy { font-size: 13px; color: var(--muted); }
.ob-form__status { font-size: 14px; color: var(--danger); }
.ob-form__status:empty { display: none; }
.ob-form__status a { text-decoration: underline; text-underline-offset: 3px; }
.ob-form__done { display: grid; align-content: center; gap: 14px; min-height: 360px; font-size: 17px; color: var(--ink-2); }
.ob-form__done-title { font: var(--done-font); color: var(--ink); }
@media (max-width: 600px) { .ob-form__grid { grid-template-columns: 1fr; } }

/* ---------- Direct contact links ---------- */
.ob-textlink { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; box-shadow: inset 0 -1px 0 var(--line); font: 400 16px/1 var(--sans); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.ob-textlink:hover { background-size: 100% 1px; }
.ob-textlink__v { font-size: 14px; color: var(--ink-2); }

/* ---------- Cursor pill (native cursor stays) ---------- */
.ob-cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; }
.ob-cursor span { display: block; padding: 10px 14px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transform: scale(0); transform-origin: 0 0; transition: transform .5s var(--ease); }
.ob-cursor.is-on span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .ob-cursor { display: none; } }

/* ---------- Curtain (language switch) ---------- */
.ob-curtain { position: fixed; inset: 0; z-index: var(--z-curtain); background: var(--curtain, var(--bg)); transform: translateY(100%); pointer-events: none; }
html.ob-curtain-in .ob-curtain { transform: none; }
.ob-failsafe.ob-curtain-in .ob-curtain { transform: translateY(-100%) !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
