@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/jost-latin-600-normal.woff2") format("woff2"); }

:root {
  --font: "futura-pt", "Futura PT", "Futura", "Jost", "Century Gothic", sans-serif;
  --ink: #111;
  --muted: #8a8a8a;
  --line: #ececec;
  --bg: #fff;
  --pad: clamp(14px, 2.4vw, 32px);
  --gap: 2px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  /* Apple-style frosted glass */
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.logo { display: block; line-height: 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav a {
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink); transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 680px) {
  :root { --header-h: 50px; }
  .menu-btn { display: block; }
  .logo img { height: 26px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(0,0,0,.07);
    transform: translateY(-120%); transition: transform .3s ease;
    z-index: -1;
  }
  .nav a { padding: 16px var(--pad); font-size: 14px; border-top: 1px solid rgba(0,0,0,.06); }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

main { padding: var(--pad); min-height: calc(100vh - var(--header-h) - 80px); }

/* ---------- Intro (white, glitch "broken monitor") ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: #fff; color: #111;
  display: grid; place-items: center;
  cursor: pointer; overflow: hidden;
  transform-origin: 50% 50%;
}
.intro::before { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.045) 0 1px, transparent 1px 3px);
  animation: flick .12s steps(2) infinite;
}
.intro::after { /* rolling interference band */
  content: ""; position: absolute; left: 0; right: 0; height: 18vh; top: -20vh; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.06) 45%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.06) 55%, transparent);
  animation: roll 1.9s linear infinite;
}
@keyframes flick { 0% { opacity: .55; } 100% { opacity: 1; } }
@keyframes roll { to { top: 105vh; } }

.intro-word {
  position: relative;
  font-weight: 600; text-transform: lowercase;
  font-size: clamp(26px, 6vw, 64px);
  letter-spacing: 0.5em; margin-right: -0.5em;
  white-space: nowrap; padding: 0 16px;
}
.intro-word span { display: inline-block; opacity: 0; animation: glitch-in .7s steps(1) forwards; }
@keyframes glitch-in {
  0%   { opacity: 0; }
  12%  { opacity: 1; transform: translate(-7px, 0) skewX(-18deg); }
  24%  { opacity: 0; }
  38%  { opacity: 1; transform: translate(5px, -2px); }
  52%  { opacity: .25; transform: translate(-2px, 1px); }
  66%  { opacity: 1; transform: translate(2px, 0) scaleY(1.25); }
  80%  { opacity: .6; transform: none; }
  100% { opacity: 1; transform: none; }
}
.intro-word .layer { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; }
.intro-word .layer.r { color: #ff1f4b; animation: slice-a 1.1s steps(1) infinite; }
.intro-word .layer.c { color: #00d8ff; animation: slice-b 1.35s steps(1) infinite; }
@keyframes slice-a {
  0%   { clip-path: inset(0 0 82% 0);  transform: translate(-6px, 0); }
  8%   { clip-path: inset(35% 0 48% 0); transform: translate(9px, 0); }
  16%  { clip-path: inset(70% 0 8% 0);  transform: translate(-4px, 0); }
  24%  { clip-path: inset(100% 0 0 0); }
  52%  { clip-path: inset(12% 0 70% 0); transform: translate(14px, 0); }
  58%  { clip-path: inset(100% 0 0 0); }
  86%  { clip-path: inset(55% 0 20% 0); transform: translate(-10px, 0); }
  92%  { clip-path: inset(100% 0 0 0); }
}
@keyframes slice-b {
  0%   { clip-path: inset(60% 0 25% 0); transform: translate(6px, 1px); }
  10%  { clip-path: inset(10% 0 75% 0); transform: translate(-8px, 0); }
  20%  { clip-path: inset(100% 0 0 0); }
  44%  { clip-path: inset(40% 0 40% 0); transform: translate(11px, -1px); }
  50%  { clip-path: inset(100% 0 0 0); }
  74%  { clip-path: inset(80% 0 2% 0);  transform: translate(-13px, 0); }
  80%  { clip-path: inset(100% 0 0 0); }
}
/* random strong hits, toggled from JS */
.intro.burst .intro-word { animation: hit .22s steps(2) 1; }
.intro.burst { filter: contrast(1.6); }
@keyframes hit {
  0%   { transform: translate(-12px, 0) skewX(14deg); clip-path: inset(0 0 45% 0); }
  50%  { transform: translate(10px, 3px) skewX(-10deg); clip-path: inset(40% 0 0 0); }
  100% { transform: none; clip-path: none; }
}
/* the "monitor" switching off: collapses to a line, then a dot */
.intro.off { animation: crt-off .6s cubic-bezier(.7,0,.3,1) forwards; pointer-events: none; }
@keyframes crt-off {
  0%   { transform: scale(1, 1); filter: brightness(1); }
  45%  { transform: scale(1, .006); filter: brightness(3); background: #111; }
  100% { transform: scale(0, .006); opacity: 0; background: #111; }
}
@media (max-width: 680px) { .intro-word { letter-spacing: 0.28em; margin-right: -0.28em; font-size: 7.2vw; } }

/* ---------- Justified gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); }
.tile {
  position: relative; overflow: hidden;
  background: #f3f3f3; flex: none;
  cursor: zoom-in;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease, transform .6s ease;
}
.tile img.loaded { opacity: 1; }
.tile .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 12px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; line-height: 1.35;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .3s;
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.02); }
  .tile:hover .cap { opacity: 1; }
}

/* ---------- Lightbox (fills the window, whole image always visible) ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: #fff; display: none; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 44px 8px 46px; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 20px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-cap small { color: var(--muted); margin-top: 2px; }
.lb button {
  position: absolute; z-index: 2; background: none; border: 0; cursor: pointer;
  font-family: var(--font); color: var(--ink); padding: 12px 14px;
}
.lb-close { top: 2px; right: 6px; font-size: 12px; letter-spacing: .12em; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; background: rgba(255,255,255,.7) !important; }
.lb-prev { left: 0; } .lb-next { right: 0; }
@media (max-width: 680px) {
  .lb-stage { inset: 40px 0 56px; }
  .lb-cap { height: 56px; white-space: normal; text-align: center; font-size: 10px; line-height: 1.35; }
  .lb-prev, .lb-next { display: none; }
}

/* ---------- Video page ---------- */
.videos { max-width: 1200px; margin: 0 auto; display: grid; gap: clamp(36px, 6vw, 72px); padding: 12px 0 40px; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vid-frame video, .vid-frame iframe, .vid-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-frame video { object-fit: contain; }
.yt-play {
  position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.yt-play::after {
  content: ""; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 7l8 5-8 5z' fill='%23111'/></svg>") center/34px no-repeat;
  transition: transform .2s;
}
.yt-play:hover::after { transform: scale(1.08); }
.vid-meta { margin-top: 14px; text-align: center; }
.vid-meta h2 { margin: 0; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.vid-meta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Text pages ---------- */
.page { max-width: 980px; margin: clamp(10px, 5vw, 60px) auto; }
.about { max-width: 680px; margin: 0 auto; text-align: center; }
.about img { width: min(360px, 80vw); height: auto; margin: 0 auto 34px; }
.page h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: .04em; }
.role { margin: 2px 0 28px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.lang { font-size: 11px; letter-spacing: .16em; color: var(--muted); margin: 22px 0 6px; }
.page p { margin: 0 0 10px; white-space: pre-line; }
.contact-page { max-width: 820px; margin: 0 auto; text-align: center; }
.c-sec { margin: 0 0 clamp(40px, 6vw, 64px); }
.c-sec h2 { margin: 0 0 18px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 500; letter-spacing: .01em; }
.c-sec p { margin: 0 0 14px; }
.c-list, .c-indent { padding: 0; }
.c-row { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 16px; }
.c-label { color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.c-row a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.c-row a:hover { border-color: currentColor; }
ul.c-indent { list-style: none; margin: 0 0 14px; }
ul.c-indent li { margin-bottom: 6px; }
.c-map { margin-top: 22px; aspect-ratio: 16 / 6; min-height: 240px; background: #eee; overflow: hidden; }
.c-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.label { font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin: 0 0 6px; }
.big-link { font-size: clamp(18px, 2.4vw, 24px); border-bottom: 1px solid currentColor; }
@media (max-width: 680px) {
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 26px var(--pad) 32px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer a:hover { color: var(--ink); }

.empty { color: var(--muted); text-align: center; padding: 60px 0; }
