/* BIK.MOVIES · B1 "Negativ"
   Warm dark ground, amber-brown colour-negative film base, amber accent.
   Type: Michroma, thickened with a text stroke (titles, wordmark) · DM Mono (everything else).
         Both free (SIL OFL, Google Fonts). */


:root {
  --bg: #141210;
  --bg-2: #1C1915;
  --bg-3: #26211B;
  --fg: #EDE6DC;
  --muted: #A39A8E;
  --line: rgba(237, 230, 220, .18);
  --line-2: rgba(237, 230, 220, .32);
  --accent: #C9853F;
  --accent-hi: #E0A25E;
  --base: #7E3F1C;      /* film base */
  --base-2: #5E2C12;    /* film base, edge */
  --edge: #F2C27A;      /* edge print */
  --hole: #141210;

  --f-display: "Michroma", sans-serif;
  --stroke: .07em;  /* thickens Michroma (single weight) towards a bold */
  --f-mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --img: sepia(.22) saturate(.82) brightness(.86);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.65 var(--f-mono); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.d1, .d2, .d3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: -.01em; }
.d1 { font-size: clamp(26px, 8.4vw, 124px); line-height: .98; }
.d2 { font-size: clamp(22px, 4.4vw, 64px); line-height: 1.04; }
.d3 { font-size: clamp(18px, 1.9vw, 28px); line-height: 1.12; }
.label {
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.label.amber { color: var(--accent); }
.lead { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; color: var(--muted); max-width: 46ch; margin: 0; }
p { margin: 0; }

/* ---------- Display face: Michroma + stroke ---------- */
.d1, .d2, .d3, .wm, .ft-big, .vf-name, .about blockquote, .cv .h, .av .w,
.logo-note .big, .spec .alpha, .sw .n {
  -webkit-text-stroke: var(--stroke) currentColor;
  letter-spacing: .02em;
}

/* ---------- Wordmark: the dot is a perforation ---------- */
.wm {
  display: inline-flex; align-items: baseline; gap: .06em;
  font: 900 20px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--fg);
}
.wm i { width: .3em; height: .38em; border-radius: .07em; background: var(--accent); align-self: center; margin: 0 .06em; transform: translateY(.12em); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 22px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 2px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s var(--ease);
}
.btn::after { content: ""; width: 7px; height: 9px; border-radius: 1.5px; background: var(--accent); transition: transform .3s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn:hover::after { background: var(--bg); transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.ghost:hover::after { background: var(--accent); }

.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- 35mm film strip ---------- */
.film {
  position: relative;
  background: linear-gradient(180deg, var(--base-2), var(--base) 22%, var(--base) 78%, var(--base-2));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 210, 160, .08);
}
.film::after { /* faint base sheen + dust */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 180, .05) 50%, transparent 70%);
}
.perfs {
  height: 26px;
  background: linear-gradient(90deg, var(--hole) 0 11px, transparent 11px) 7px 8px / 24px 11px repeat-x;
}
.perfs i { display: none; }
.edge-print {
  display: flex; height: 16px; align-items: center; overflow: hidden; white-space: nowrap;
  font: 500 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--edge); opacity: .9;
}
.edge-print span { flex: 0 0 auto; padding-right: 120px; }

/* ---------- Decode label (scramble in) ---------- */
[data-decode] { white-space: nowrap; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
