/* Artëm Pyantkovskyy · Lighting & AV Design — shared base
   Tokens, reset, the menu and the footer. Used by the homepage and every project page. */

:root {
  --u: calc(100vw / 1188);          /* one "design pixel" of the original 1188px canvas (used by the hero) */
  --black: #000;
  --white: #fff;
  --ink: #1c1c1c;
  --grey: #6a6a6a;
  --grey-on-dark: #a6a6a6;
  --line: #666;
  --red: #6e0000;
  --red-hot: #ff2a12;             /* only for the keyboard focus ring, which has to stay visible on black */
  --accent: var(--red);           /* the touch of colour: the red of the menu circle. On black it is used as a fill
                                     behind white text (it is too dark to read as text on black) */
  --accent-ink: var(--red);
  --foot: #c3c3c3;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Source Code Pro", ui-monospace, monospace;
  --pad: clamp(20px, 3.4vw, 56px);                 /* page side padding */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* textures, generated by the browser (no image files) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --smoke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .013' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.1 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 600px) { :root { --u: calc(100vw / 320); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--pad), 1560px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 4px; }

/* ---------- film grain over the whole site ---------- */
body::after { content: ""; position: fixed; z-index: 90; inset: 0; background: var(--grain) 0 0 / 240px 240px; opacity: .17; mix-blend-mode: hard-light; pointer-events: none; }

/* ---------- menu ----------
   White type with mix-blend-mode: difference, so it reads on black and on white
   without a background bar. The red dot sits outside the blend to keep its colour. */
.nav-dot {
  position: fixed; z-index: 61; left: var(--pad); top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); transition: transform .35s var(--ease-out), background-color .3s ease;
}
.nav-dot:hover { transform: scale(1.18); background: #9a0000; }
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 74px; padding: 0 var(--pad) 0 calc(var(--pad) + 46px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-name { font: 500 15px / 1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.nav-name span { opacity: .62; margin-left: .7em; font: 400 12px / 1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 44px); }
.nav-links a {
  position: relative; padding: 12px 0; font: 500 13px / 1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.nav-links a i { font-style: normal; opacity: .62; margin-right: .7em; }
.nav-links a::after {                         /* a line of light under the link */
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-burger { display: none; }
.nav-panel { display: none; }

/* language switch: two small round flags, top right (outside the blended menu so the colours stay true) */
.lang { position: fixed; z-index: 61; top: 22px; right: var(--pad); display: flex; gap: 6px; }
.lang button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px 0 5px; border: 1px solid rgba(140, 140, 140, .55); border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; font: 600 11px / 1 var(--mono); letter-spacing: .06em; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.lang button svg { width: 20px; height: 20px; border-radius: 50%; display: block; }
.lang button:hover { opacity: .85; }
.lang button[aria-pressed="true"] { opacity: 1; border-color: #fff; }
@media (min-width: 761px) { .nav { padding-right: calc(var(--pad) + 150px); } }

@media (max-width: 760px) {
  .nav { height: 64px; }
  .nav-dot { top: 17px; }
  .nav-name span, .nav-links { display: none; }
  .nav-name { font-size: 14px; }
  .lang { top: 17px; right: calc(var(--pad) + 46px); gap: 4px; }
  .lang button { padding: 0 4px; height: 30px; } .lang button span { display: none; }
  .nav-burger {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer;
  }
  .nav-burger span { display: block; width: 28px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-panel {
    position: fixed; z-index: 55; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 90px var(--pad) 40px;
    background: #000 radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .34), rgba(110, 0, 0, .5) 45%, transparent 72%);
    color: #fff; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .nav-panel.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
  .nav-panel a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; font: 700 clamp(40px, 13vw, 64px) / 1.05 var(--sans); letter-spacing: -.02em; text-decoration: none; transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s ease; }
  .nav-panel a i { font: 500 13px / 1 var(--mono); font-style: normal; color: var(--grey-on-dark); }
  .nav-panel.open a { transform: none; opacity: 1; }
  .nav-panel.open a:nth-child(2) { transition-delay: .06s; } .nav-panel.open a:nth-child(3) { transition-delay: .12s; }
  .nav-panel p { margin-top: 36px; font: 400 13px / 1.5 var(--mono); color: var(--grey-on-dark); }
  .nav-panel p a { display: inline; padding: 0; font: inherit; color: #fff; transform: none; opacity: 1; }
}

/* ---------- footer ---------- */
.foot { position: relative; background: var(--foot); padding: clamp(28px, 3.4vw, 56px) var(--pad) clamp(16px, 1.6vw, 26px); }
.foot-cols { display: flex; justify-content: center; gap: clamp(28px, 4vw, 70px); }
.foot h3 { margin-bottom: 6px; font: 600 clamp(17px, 1.6vw, 24px) / 1 var(--sans); letter-spacing: .1px; color: #3c3c3c; }
.foot-cols a { display: block; width: fit-content; padding: 2px 0; font: 400 clamp(14px, 1.2vw, 18px) / 1.35 var(--sans); color: #333; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot-cols a:hover { color: #000; text-decoration: none; }
.foot-copy { margin-top: clamp(24px, 3vw, 48px); font: 400 clamp(12px, 1.1vw, 16px) / 1 Georgia, "Times New Roman", serif; color: #1e1e1e; }
@media (max-width: 600px) { .foot-cols { flex-direction: column; gap: 22px; } }

/* ---------- "lights up" reveal: media starts dim and fades up like a lighting cue ---------- */
.cue-in { filter: brightness(.16) saturate(.4); transition: filter 1.3s ease-out; }
.cue-in.lit { filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue-in { filter: none; transition: none; }
  .nav-panel, .nav-panel a, .nav-links a::after { transition: none; }
}
