/* self-hosted Barlow (SIL OFL) — no third-party font requests */
@font-face { font-family: "TK Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-condensed-latin-400-normal.woff2) format("woff2");
  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: "TK Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-condensed-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "TK Body"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-400-normal.woff2) format("woff2");
  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: "TK Body"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/barlow-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #0b0c0d;
  --surface: #141618;
  --line: #24272a;
  --text: #e8e6e1;
  --muted: #8f918f;
  --accent: #62f08f;          /* green of the 3D ligature */
  --accent-glow: rgba(70, 230, 120, .55);
  --cool: #bfe7ff;            /* blue-white of the name tubes */
  --cool-glow: rgba(60, 170, 255, .55);
  /* DIN family; Barlow is the free look-alike fallback until the web licence is sorted */
  --display: "TK Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "TK Body", "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; margin: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(11,12,13,.85), rgba(11,12,13,0));
  transition: background .3s;
}
.topbar.solid { background: rgba(11,12,13,.92); backdrop-filter: blur(8px); }
.mark {
  font-family: var(--display); font-weight: 400; font-size: 22px; --ls: .03em; letter-spacing: var(--ls);
  text-decoration: none; display: inline-flex; align-items: baseline;
  white-space: nowrap; flex-shrink: 0; margin-right: 16px;
  opacity: 0; transition: opacity .4s;
}
.topbar.solid .mark { opacity: 1; }
.nav { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { font-size: 13px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) {
  .nav { gap: 12px; font-size: 11px; letter-spacing: .06em; }
  .lang { font-size: 11px; letter-spacing: .06em; }
  .mark { font-size: 20px; }
  .topbar:not(.solid) .mark { display: none; }
  /* captions: title on its own line, category under it */
  .grid .tile .cap { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 370px) {
  .nav a[href="#clients"] { display: none; }
}
.lang [data-l].on { color: var(--accent); }

/* ---------- the flipped "3D" ligature ---------- */
.de { display: inline-block; perspective: 400px; color: var(--accent); }
.de-in {
  display: inline-block;
  transform: scaleX(-1);          /* 3D mirrored reads as "DE" */
  transition: transform .9s cubic-bezier(.6, 0, .2, 1);
  /* mirroring moves the trailing tracking to the left side; shift it back */
  letter-spacing: var(--ls, 0); margin-left: calc(-1 * var(--ls, 0)); margin-right: var(--ls, 0);
}
.de:hover .de-in, .de:focus-visible .de-in { transform: scaleX(-1) rotateY(180deg); }
@media (hover: none) { .de.flip .de-in { transform: scaleX(-1) rotateY(180deg); } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; background: radial-gradient(ellipse at 60% 50%, #0f2a22, #050607 70%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.on { opacity: 1; }
.hero-video { filter: brightness(var(--dim, 1)); }
.now-playing { cursor: pointer; }
/* shade only where the text sits, so the work itself stays clean */
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5,6,7,.75), rgba(5,6,7,0) 45%), linear-gradient(to bottom, rgba(5,6,7,.5), rgba(5,6,7,0) 18%); }
.hero-inner { position: relative; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.neon-name {
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 400; --ls: .03em; letter-spacing: var(--ls);
  color: var(--text);
  text-shadow: 0 0 4px rgba(150, 200, 255, .35), 0 0 18px rgba(60, 170, 255, .18);
  display: flex; flex-wrap: wrap; column-gap: .2em;
}
.neon-name .w { display: inline-block; }
.neon-name .de { text-shadow: 0 0 5px var(--accent-glow), 0 0 18px rgba(70,230,120,.3); cursor: default; }
.tagline { margin: 14px 0 0; font-size: clamp(12px, 1.1vw, 14px); letter-spacing: .26em; text-transform: uppercase; color: #b5b6b3; }
.now-playing { margin: 18px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-height: 1.2em; transition: opacity .6s; }
.now-playing::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--accent); }
.now-playing:empty { opacity: 0; }

/* neon switch-on on load */
.neon-name .w, .neon-name .de { animation: neonOn 1.6s steps(1, end) both; }
.neon-name .w:nth-child(2) { animation-delay: .25s; }
.neon-name .de { animation-name: neonOnGreen; animation-delay: 1.1s; }
.tagline { animation: fadeUp 1s 1.8s both; }
@keyframes neonOn {
  0% { opacity: 0; } 10% { opacity: .9; } 14% { opacity: .1; } 22% { opacity: 1; }
  26% { opacity: .3; } 34%, 100% { opacity: 1; }
}
@keyframes neonOnGreen {
  0% { opacity: 0; } 20% { opacity: 1; } 24% { opacity: .15; } 40% { opacity: 1; } 44% { opacity: .5; } 52%, 100% { opacity: 1; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(232,230,225,.4); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--text); border-radius: 1px; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vw, 140px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(30px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .08em; color: var(--muted); transition: all .2s; }
.filters button:hover { color: var(--text); border-color: #3a3e42; }
.filters button.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* ---------- grid ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.4vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.tile { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-radius: 3px; cursor: pointer; }
.tile.hide { display: none; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s cubic-bezier(.2,.6,.2,1); }
.tile video { opacity: 0; }
.tile.playing video { opacity: 1; }
.tile.playing img, .tile:hover img { transform: scale(1.03); }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #3a3e42; font-family: var(--display); font-size: 28px; letter-spacing: .1em;
  background: repeating-linear-gradient(135deg, #121416 0 14px, #15181a 14px 28px); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 14px; background: linear-gradient(to top, rgba(5,6,7,.85), rgba(5,6,7,0)); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile .cap h3 { font-size: 22px; font-weight: 400; letter-spacing: .05em; }
.tile .cap span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tile::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; border-radius: 3px; transition: border-color .3s, box-shadow .3s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { border-color: rgba(98,240,143,.6); box-shadow: inset 0 0 30px rgba(98,240,143,.12); }
.tile:focus-visible { outline: none; }
.tile.soon { cursor: default; }
.tile.soon img { filter: grayscale(1) brightness(.35) blur(3px); transform: scale(1.06); }
.tile.soon:hover img { transform: scale(1.06); }
.tile.soon:hover::after { border-color: transparent; box-shadow: none; }
.tile .reveal { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 20px; }
/* keep the reveal date clear of the caption at the bottom */
.tile.soon .reveal { place-content: start center; padding-top: clamp(18px, 9%, 48px); }
.tile .reveal small { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.tile .reveal b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: .08em; color: var(--text); }

/* ---------- clients ---------- */
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 48px; }
.client-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.client-list strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .04em; }
.client-list span { color: var(--muted); font-size: 15px; }

/* ---------- stats ---------- */
.stats { padding-top: clamp(40px, 6vw, 72px); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(20px, 3vw, 32px) 0; }
.stat-list li { display: grid; gap: 6px; align-content: start; }
.stat-list strong { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; color: var(--accent); letter-spacing: .02em; }
.stat-list span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.stat-list small { color: #5f6361; font-size: 12px; letter-spacing: .04em; }
@media (max-width: 900px) { .stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cap-title { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 400; margin: clamp(28px, 4vw, 44px) 0 18px; }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cap-list li { border-left: 2px solid var(--accent); padding-left: 16px; }
.cap-list h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; margin: 0 0 8px; color: var(--text); }
.cap-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .cap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cap-list { grid-template-columns: 1fr; } }

/* ---------- about / contact ---------- */
.about { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 640px); gap: clamp(24px, 5vw, 72px); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about p { color: #c9c7c2; }
.tools { font-size: 14px; letter-spacing: .1em; color: var(--muted) !important; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 200px; } }

.contact { text-align: center; padding-bottom: clamp(64px, 10vw, 140px); }
.big-link { display: block; margin-top: 28px; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 72px); letter-spacing: .04em; text-decoration: none; transition: color .2s, text-shadow .2s; overflow-wrap: anywhere; }
.big-link.small { margin-top: 8px; font-size: clamp(22px, 3vw, 34px); color: var(--muted); }
.big-link:hover { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--text); }

.footer { border-top: 1px solid var(--line); padding: 24px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.footer p { margin: 0; }

/* ---------- project dialog ---------- */
.project { width: min(1400px, 100vw - 2 * var(--gutter)); max-height: calc(100svh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text);
  display: none; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); overflow: hidden; }
.project[open] { display: grid; animation: dlgIn .35s cubic-bezier(.2,.7,.2,1); }
.project::backdrop { background: rgba(3,4,5,.82); backdrop-filter: blur(6px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
.p-media { background: #000; display: flex; flex-direction: column; min-height: 0; }
.p-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.p-stage > img, .p-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.p-stage { touch-action: pan-y; }
.gal-arrow { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; padding-bottom: 3px; font-size: 30px; line-height: 1; color: var(--text); background: rgba(11,12,13,.55); opacity: .75; transition: opacity .2s, color .2s; }
.gal-arrow.prev { left: 10px; }
.gal-arrow.next { right: 10px; }
.gal-arrow:hover, .gal-arrow:focus-visible { opacity: 1; color: var(--accent); }
@media (hover: none) { .gal-arrow { opacity: .55; } }
.p-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-stage .ext { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; color: var(--text); text-decoration: none; background: rgba(11,12,13,.75); border-radius: 999px; }
.p-stage .ext:hover { color: var(--accent); }
.p-stage .yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
.p-stage .yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.p-stage .yt span { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px; font-size: 26px; color: var(--accent); background: rgba(11,12,13,.7); border: 1px solid var(--accent); box-shadow: 0 0 24px rgba(98,240,143,.25); transition: transform .2s; }
.p-stage .yt:hover img, .p-stage .yt:focus-visible img { opacity: 1; }
.p-stage .yt:hover span, .p-stage .yt:focus-visible span { transform: scale(1.08); }
.p-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #08090a; }
.p-thumbs button { flex: 0 0 auto; width: 96px; aspect-ratio: 16/9; border: 1px solid transparent; opacity: .55; padding: 0; overflow: hidden; border-radius: 2px; position: relative; }
.p-thumbs button.on { opacity: 1; border-color: var(--accent); }
.p-thumbs img, .p-thumbs video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.p-thumbs .vid::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; text-shadow: 0 0 6px #000; }
.p-text { padding: clamp(20px, 3vw, 40px); overflow-y: auto; }
.p-cat { margin: 0 0 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.p-text h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.p-text > p:not(.p-cat) { color: #c9c7c2; }
.p-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.p-meta dt { color: var(--muted); letter-spacing: .08em; }
.p-meta dd { margin: 0; }
.close { position: absolute; top: 8px; right: 12px; z-index: 2; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--text); background: rgba(11,12,13,.6); border-radius: 50%; }
.close:hover { color: var(--accent); }
@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; overflow-y: auto; max-height: calc(100svh - 24px); width: calc(100vw - 16px); }
  .p-text { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* filters hidden while the selection is small - delete this rule to bring them back */
.work .filters { display: none; }
