@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Misha Graphics — portfolio design system
   Extracted from the "Claude design" comps. Dark, cinematic, purple accent.
   Edit the tokens in :root to re-theme the whole site at once.
   ========================================================================== */

:root {
  /* Brand accent (single action color). Change this one line to re-theme. */
  --accent: #9b7bff;
  --accent-2: #5a3aff;
  --accent-soft: rgba(155, 123, 255, 0.10);
  --accent-glow: rgba(124, 90, 255, 0.20);

  /* Surfaces */
  --bg: #0a0a0c;            /* near-black page background */
  --bg-alt: #08080a;        /* slightly darker band (e.g. "What I do") */
  --surface-menu: #141419;  /* dropdown / popover */
  --surface-tile: #101015;  /* gallery tile background */
  --card-from: #1d1d24;     /* card gradient start */
  --card-to: #131318;       /* card gradient end */
  --media-from: #23232b;    /* inner media placeholder gradient */
  --media-to: #15151b;

  /* Text */
  --text: #ececf0;
  --text-strong: #ffffff;
  --text-1: #f1f1f5;
  --muted: #9a9aa4;
  --muted-2: #8a8a95;
  --dim: #6f6f7a;
  --dim-2: #5a5a64;
  --placeholder: #3e3e47;

  /* Lines / borders */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Shape & rhythm */
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --maxw: none;                         /* full-width: content fills the screen */
  --gutter: clamp(20px, 5vw, 104px);    /* side breathing room, grows with screen */

  /* Gallery layout — editable live from the Studio (Design tab). site.js
     overrides these from SITE.layout; these are the fallback defaults. */
  --card-size: 260px;                   /* work-card width → height is 1.25× this (4/5) */
  --card-gap: 22px;                     /* horizontal spacing between cards in a row */
  --card-row-gap: 22px;                 /* vertical spacing between rows */
  --card-title-size: 16px;             /* work title under each card */
  --client-head-size: 22px;            /* "by client" section headings */
  --gallery-pad-x: 48px;               /* outer side margin of the work galleries (every page) */

  /* Type */
  --font-display: 'Space Grotesk', 'Assistant', sans-serif;
  --font-body: 'Manrope', 'Assistant', sans-serif;
  --font-mono: 'Space Mono', 'Assistant', monospace;
}

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: #26262d; border-radius: 6px; }
*::-webkit-scrollbar-track { background: transparent; }

::selection { background: var(--accent); color: #0a0a0c; }

/* Animated purple glow drifting in the background (injected by site.js) */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before {
  content: "";
  position: absolute;
  width: 65vmax; height: 65vmax; border-radius: 50%;
  left: 0; top: 0;
  background: radial-gradient(circle, rgba(155,123,255,0.26), rgba(124,90,255,0.12) 42%, transparent 70%);
  filter: blur(70px);
  will-change: transform;
  animation: glow-drift 26s ease-in-out infinite;
}
@keyframes glow-drift {
  0%   { transform: translate(-10vw, -12vh) scale(1); }
  25%  { transform: translate(38vw, 6vh) scale(1.18); }
  50%  { transform: translate(60vw, 30vh) scale(0.92); }
  75%  { transform: translate(20vw, 16vh) scale(1.1); }
  100% { transform: translate(-10vw, -12vh) scale(1); }
}

.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 18px var(--gutter);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); font-size: 15px; }
.nav__link { color: var(--muted); transition: color .2s; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: var(--accent); }

/* Work dropdown */
.work-menu { position: relative; }
.work-menu__toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.work-menu__caret { font-size: 10px; }
.work-drop {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 40;
}
.work-menu:hover .work-drop,
.work-menu:focus-within .work-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.work-drop__panel {
  background: var(--surface-menu);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-width: 330px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.work-drop__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background .15s;
}
.work-drop__item:hover { background: var(--accent-soft); }
.work-drop__item .t {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #e6e6ec;
}
.work-drop__item .k { font-size: 11px; color: var(--dim); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.socials { display: flex; gap: clamp(14px, 2vw, 22px); font-size: 13px; flex-wrap: wrap; }
.socials a { color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--accent); }
.copyright { font-family: Arial, sans-serif; font-size: 12px; color: var(--dim-2); }

/* ==========================================================================
   Shared page chrome
   ========================================================================== */
main { flex: 1 0 auto; }

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: clamp(30px, 5vw, 56px) var(--gutter) clamp(18px, 3vw, 26px);
}
.back-link {
  font-size: 13px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 12px 0 0;
}
.page-desc { font-size: 15px; color: var(--muted-2); margin-top: 10px; max-width: 52ch; line-height: 1.5; }

/* Brand case-study header */
.brand-head { display: flex; align-items: flex-start; gap: 22px; margin-top: 12px; flex-wrap: wrap; }
/* Project page: Grid / Stacked view toggle */
.brand-views { display: flex; gap: 8px; margin-bottom: 22px; }
.bview { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 20px; padding: 6px 18px; cursor: pointer; font-size: 13px; transition: all .2s; }
.bview:hover { color: #fff; }
.bview.is-on { background: #fff; color: #000; border-color: #fff; }
/* Behance-style single column */
.brand-stack { display: flex; flex-direction: column; gap: 26px; max-width: 1100px; margin: 0 auto; }
.brand-stack > .work { width: 100%; }
/* Grouped images → horizontal swipe strip */
.brand-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.brand-strip > .work, .brand-strip > .pg-img { flex: 0 0 82%; scroll-snap-align: center; }

/* Project page — Behance-style block queue */
.pg-stack { display: flex; flex-direction: column; gap: 26px; max-width: 1100px; margin: 0 auto; }
.pg-img { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: var(--card-from); cursor: zoom-in; }
.pg-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-text { max-width: none; margin: 6px 0; }
.pg-text__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: #fff; margin: 0 0 10px; }
.pg-text__p { font-size: 16px; color: #b3b3bf; line-height: 1.7; margin: 0; }
.pg-text a { color: var(--accent, #a78bfa); text-decoration: underline; }
.pg-text b, .pg-text strong { font-weight: 700; color: #fff; }
.cat-crumbs { font-size: 14px; color: #8a8a96; margin: 0 0 18px; }
.cat-crumbs a { color: var(--accent, #a78bfa); text-decoration: none; }
.cat-crumbs a:hover { text-decoration: underline; }
.cat-crumbs__sep { opacity: .5; margin: 0 2px; }
.cat-children { margin-bottom: 26px; }
.pg-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.pg-video iframe, .pg-video video { width: 100%; height: 100%; border: 0; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pg-grid .pg-img { height: 100%; }
/* Uniform grid — every tile the same square, image cropped to fill */
.pg-grid--uniform { display: grid; gap: 16px; }
.pg-grid--uniform .pg-img { aspect-ratio: 1 / 1; height: auto; }
.pg-grid--uniform .pg-img img { object-fit: cover; }
/* Masonry (Pinterest) — keep each image's real shape, no crop */
.pg-grid--masonry { column-gap: 16px; }
.pg-grid--masonry .pg-img { display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; }
.pg-grid--masonry .pg-img img { height: auto; object-fit: initial; }

/* ---- Project page: single-image extras (caption / width) ----------- */
.pg-figure { margin: 0; display: block; }
.pg-figure--wide { width: min(calc(100vw - 96px), 1400px); margin-left: 50%; transform: translateX(-50%); }
.pg-figure--full { width: min(calc(100vw - 48px), 1800px); margin-left: 50%; transform: translateX(-50%); }
/* Wide / full images: bound by width AND height, centered, never cropped */
.pg-figure--wide .pg-img, .pg-figure--full .pg-img { aspect-ratio: auto !important; height: auto; background: transparent; }
.pg-figure--wide .pg-img img, .pg-figure--full .pg-img img { width: auto; max-width: 100%; height: auto; max-height: 85vh; object-fit: contain; margin: 0 auto; }
.pg-figure--full .pg-img { border-radius: 0; border-left: 0; border-right: 0; }
.pg-imglink { display: block; }
.pg-cap { margin: 8px 2px 0; font-size: 13px; color: #8a8a96; text-align: center; line-height: 1.5; }

/* ---- Project page: mixed-media gallery ----------------------------- */
.pg-gallery { width: 100%; }
.pg-gallery--native { column-count: var(--cols, 3); column-gap: var(--gap, 8px); }
.pg-gallery--native .pg-gmedia { width: 100%; margin: 0 0 var(--gap, 8px); break-inside: avoid; }
/* Native gallery = true masonry (JS-positioned): respects column count + order */
.pg-gallery--masonry { position: relative; }
.pg-gallery--masonry .pg-gmedia { position: absolute; margin: 0; top: 0; left: 0; }
.pg-gallery--masonry .pg-gmedia img, .pg-gallery--masonry .pg-gmedia__poster, .pg-gallery--masonry .pg-gmedia__poster img { width: 100%; height: 100%; object-fit: cover; }
.pg-gallery--uniform { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap, 8px); }
.pg-gmedia { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: var(--card-from); cursor: pointer; }
.pg-gallery--uniform .pg-gmedia { aspect-ratio: var(--ar, 1 / 1); }
.pg-gmedia img { display: block; width: 100%; }
.pg-gallery--native .pg-gmedia img { height: auto; }
.pg-gmedia__poster { display: block; width: 100%; height: 100%; }
.pg-gallery--uniform .pg-gmedia img,
.pg-gallery--uniform .pg-gmedia__poster img { width: 100%; height: 100%; object-fit: cover; }
.pg-gmedia__iframe, .pg-gmedia__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: 2; }
.pg-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); z-index: 3; pointer-events: none; transition: opacity .15s; }
.pg-play::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.pg-gmedia--vid:hover .pg-play { opacity: 0; }
/* Page-level Grid view: titles & text span the full width so nothing hides */
.pg-gspan { grid-column: 1 / -1; column-span: all; break-inside: avoid; margin: 0 0 var(--gap, 8px); }
.pg-gspan .pg-text { margin-top: 6px; margin-bottom: 6px; }
.brand-cover { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--card-from); }
.brand-cover img { display: block; width: 100%; height: auto; }
.brand-logo { width: 84px; height: 84px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(150deg, var(--card-from), var(--card-to)); flex-shrink: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Media placeholder (shown until a real image/video is added) */
.ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  color: var(--placeholder);
}

/* Play badge */
.play {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.play::after {
  content: ""; width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.play--over { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* ==========================================================================
   Home — category grid
   ========================================================================== */
.home-main { padding: clamp(28px, 5vw, 52px) var(--gutter) clamp(40px, 6vw, 72px); }

/* Home hero — centered name block above the category grid */
.home-hero {
  max-width: var(--maxw);
  margin: clamp(18px, 4vw, 44px) auto clamp(34px, 5vw, 60px);
  text-align: center;
}
.home-hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}
.home-hero__by {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--muted);
  margin: 10px 0 0;
}
.home-hero__sub {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--accent);
  margin: 18px 0 0;
}
.home-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 8 tiles → 2 rows of 4, full-width */
  gap: 34px 24px;
}
.cat-card { display: block; transition: transform .28s ease; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--card-from), var(--card-to));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .28s ease, box-shadow .28s ease;
}
.cat-card:hover .cat-card__media {
  border-color: var(--accent);
  box-shadow: 0 18px 38px var(--accent-glow);
}
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 15px;
}
.cat-card__name { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text-1); }
.cat-card__kind { font-size: 14px; color: var(--muted-2); margin-top: 5px; }

/* ==========================================================================
   Category — gallery + by-client
   ========================================================================== */
.cat-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.count-label { font-size: 13px; color: var(--dim); }
.toggle {
  display: flex; border: 1px solid var(--line-2); border-radius: 22px;
  overflow: hidden; font-size: 13px;
}
.toggle button {
  padding: 8px 16px; cursor: pointer; border: 0; background: transparent;
  color: var(--muted); transition: all .2s;
}
.toggle button.is-on { background: #fff; color: #0a0a0c; }

/* Sub-category filter chips (Category page). Only shown when a category has
   2+ sub-categories defined on its works. "All" + one chip per sub. */
.subfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subfilter button {
  font: inherit; font-size: 13px; line-height: 1;
  padding: 8px 15px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 22px;
  background: transparent; color: var(--muted); transition: all .2s;
}
.subfilter button:hover { color: #fff; border-color: var(--dim); }
.subfilter button.is-on { background: #fff; color: #0a0a0c; border-color: #fff; }

.cat-body { padding: 8px var(--gallery-pad-x) clamp(48px, 6vw, 80px); }
.cat-body .wrap { max-width: var(--maxw); margin: 0 auto; }
/* Masonry container (Pinterest/Wix-style). Children are absolutely positioned
   into the shortest column by Gallery.masonryGrid (gallery.js / studio.js);
   the container height is set in JS. So cards of different heights pack with
   no gaps. --card-gap / --card-row-gap are the column / row spacing. */
.cat-grid { position: relative; }

.work {
  cursor: pointer;
  background: none; border: 0; padding: 0; text-align: left;
  /* Width is Studio-controlled (--card-size); masonry JS overrides it to a
     justified column width. The frame's height follows each piece's own aspect
     ratio (set per-card), so nothing gets cropped. */
  width: var(--card-size); max-width: 100%;
  color: inherit;
}
.work__frame {
  position: relative;
  /* aspect-ratio is set per-card inline = the media's real shape */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-tile);
  border: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.work:hover .work__frame {
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(124, 90, 255, 0.18);
}
.work__media {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--media-from), var(--media-to));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__ratio {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10px; color: #c9c2ff;
  background: rgba(20, 20, 25, 0.7);
  border: 1px solid rgba(155, 123, 255, 0.3);
  border-radius: 5px; padding: 2px 7px;
}
.work__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-top: 12px;
}
.work__title { font-family: var(--font-display); font-size: var(--card-title-size); font-weight: 600; color: #eef; }
.work__client { font-size: 13px; color: #7a7a85; margin-top: 3px; }

.client-groups { display: flex; flex-direction: column; gap: 46px; }
.client-group__head {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px;
}
.client-group__name { font-family: var(--font-display); font-size: var(--client-head-size); font-weight: 600; color: #fff; text-align: center; }
.client-group__link { display: inline-flex; align-items: baseline; gap: 10px; transition: color .2s; }
.client-group__link:hover { color: var(--accent); }
.client-group__link .cs { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.client-group__link:hover .cs { color: var(--accent); }
.client-group__rule { flex: 1; height: 1px; background: var(--line); }
.client-group__count { font-size: 13px; color: var(--dim); }

/* ==========================================================================
   Lightbox (the "Behance fix": player capped to viewport height)
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lb-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 34px); flex-shrink: 0;
}
.lb-counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.lb-close, .lb-nav {
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: #cfcfd6; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.lb-close { width: 38px; height: 38px; font-size: 17px; }
.lb-close:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; color: #fff; }
.lb-nav { width: 46px; height: 46px; font-size: 20px; }
.lb-nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.lb-stage {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 3vw, 30px); padding: 0 clamp(12px, 3vw, 30px);
}
.lb-player {
  height: 100%;
  max-height: 78vh;
  max-width: calc(100vw - 320px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #1b1b22, #101015);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-player video, .lb-player iframe, .lb-player img { width: 100%; height: 100%; border: 0; object-fit: contain; }
/* Click-to-zoom (Behance-style) for still images */
.lb-player--img img { cursor: zoom-in; }
/* Full-screen pannable image viewer */
.lb-zoom {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.97);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lb-zoom:active { cursor: grabbing; }
.lb-zoom img {
  position: absolute; top: 0; left: 0;
  max-width: none; max-height: none;
  user-select: none; -webkit-user-drag: none;
}
.lb-player__play {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(155, 123, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(155, 123, 255, 0.5);
}
.lb-player__play::after {
  content: ""; width: 0; height: 0;
  border-left: 19px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.lb-player__note {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
/* Fallback shown inside the player when the site is opened from disk (file://),
   where YouTube/Vimeo embeds can't initialise. Links out to the video. */
.lb-player .lb-watch {
  width: 100%; height: 100%; text-decoration: none; padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lb-watch__txt { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; }
.lb-watch__note { font-size: 12px; color: var(--muted); max-width: 280px; line-height: 1.5; }
.lb-info { width: 248px; flex-shrink: 0; display: flex; flex-direction: column; gap: 13px; }
.lb-info__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; line-height: 1.1; }
.lb-info__title-he { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 5px; }
.lb-info__client { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--dim); }
.lb-info__body { font-size: 14px; color: #b3b3bf; line-height: 1.6; margin: 0; }
.lb-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.lb-tag { border: 1px solid var(--line-strong); border-radius: 14px; padding: 4px 11px; font-size: 11px; color: #b3b3bf; }

.lb-strip {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  justify-content: center; padding: 16px; overflow-x: auto;
}
.lb-thumb {
  height: 42px; border-radius: 5px; background: #1b1b22;
  border: 1px solid var(--line-2); cursor: pointer; flex-shrink: 0;
  transition: border-color .2s; padding: 0; overflow: hidden;
}
.lb-thumb.is-on { border: 2px solid var(--accent); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero {
  padding: clamp(40px, 7vw, 86px) var(--gutter) clamp(8px, 2vw, 18px);
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 72px);
  font-weight: 700; line-height: 1.0; letter-spacing: -1px;
  color: #fff; margin: 0; max-width: 15ch;
}
.about-split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: start;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 96px);
}
.portrait { position: relative; max-width: 360px; }
.portrait__glow {
  position: absolute; inset: -12% -8% -4%;
  background: radial-gradient(60% 50% at 50% 25%, rgba(155, 123, 255, 0.30), transparent 70%);
  filter: blur(30px); z-index: 0;
}
.portrait__frame {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; width: 100%;
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(150deg, var(--card-from), #121217);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; align-items: center; justify-content: center;
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #fff; margin-top: 20px; }
.portrait__role { font-size: 14px; color: var(--muted-2); margin-top: 3px; }
.portrait__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 300px; }
.pill {
  border: 1px solid var(--line-2); border-radius: 22px;
  padding: 7px 14px; font-size: 13px; color: var(--text);
  transition: all .2s;
}
.pill:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }

.bio { display: flex; flex-direction: column; gap: 26px; max-width: 60ch; padding-top: clamp(0px, 1vw, 12px); }
.bio__name { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; color: #fff; letter-spacing: -0.6px; line-height: 1.05; margin: 0 0 -10px; }
.bio__lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.55; color: #ededf2; margin: 0; font-weight: 500; letter-spacing: -0.2px; }
.bio__lead .accent { color: var(--accent); }
.bio p { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0; }

.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.stat {
  flex: 1; min-width: 150px;
  background: linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.stat__num { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: #fff; line-height: 1; }
.stat__label { font-size: 14px; color: var(--muted-2); margin-top: 8px; }

.do-band { border-top: 1px solid var(--line); background: var(--bg-alt); }
.do-band__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 6vw, 84px) var(--gutter); }

/* About is a centered text block (its band backgrounds still span full width) */
.about-hero, .about-split, .do-band__inner { max-width: 1080px; padding-inline: clamp(20px, 4vw, 44px); }
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 46px); }
.do-col { display: flex; flex-direction: column; gap: 16px; }
.do-col__label { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.do-col__rule { height: 1px; background: rgba(255, 255, 255, 0.09); }
.do-col__items { display: flex; flex-direction: column; gap: 11px; }
.do-col__items span { font-size: 16px; color: #bdbdc6; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-controls {
  padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(22px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag {
  font-size: 13px; border: 1px solid var(--line-2); color: var(--muted);
  background: transparent; border-radius: 20px; padding: 6px 14px;
  cursor: pointer; transition: all .2s;
}
.tag.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.search {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-2); border-radius: 22px;
  padding: 9px 16px; min-width: 210px; color: var(--dim); font-size: 14px;
}
.search input {
  background: transparent; border: none; outline: none; color: var(--text);
  font-family: var(--font-body); font-size: 14px; width: 100%;
}
.blog-main { padding: clamp(16px, 2vw, 24px) var(--gutter) clamp(64px, 8vw, 110px); }
.blog-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(34px, 4vw, 56px) clamp(26px, 3vw, 40px);
}
.blog-grid > * { flex: 1 1 280px; max-width: 400px; min-width: 0; }
.post { display: block; }
.post__cover {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, #1c1c22, #131318);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--placeholder);
  transition: border-color .25s, transform .25s;
}
.post:hover .post__cover { border-color: var(--accent); }
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--accent); margin-top: 18px; }
.post__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #ededf2; margin-top: 10px; line-height: 1.34; }
.post__excerpt { font-size: 14px; color: var(--muted-2); margin-top: 10px; line-height: 1.6; }
.post__meta { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; font-family: var(--font-display);
}
.post__author { font-size: 12px; color: var(--muted); }
.post__date { font-size: 12px; color: var(--dim-2); }
.blog-empty { padding: 60px 0; text-align: center; color: var(--dim); font-size: 15px; }

/* ==========================================================================
   Single post (article)
   ========================================================================== */
.post-view { max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px) clamp(64px, 9vw, 120px); }
.post-view .back-link { margin-bottom: 22px; }
.post-view__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--accent); margin-top: 6px; }
.post-view__title { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); font-weight: 700; line-height: 1.12; letter-spacing: -0.5px; color: #fff; margin: 12px 0 0; }
.post-view__meta { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.post-view__cover { margin: 30px 0 8px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.post-view__cover:empty { display: none; }
.post-view__cover img { width: 100%; display: block; }

.post-view__body { margin-top: 10px; }
.post-view__body h2 { font-family: var(--font-display); font-size: clamp(21px, 3vw, 27px); font-weight: 600; color: #fff; line-height: 1.3; margin: 38px 0 0; }
.post-view__body p { font-size: 17px; line-height: 1.85; color: #c4c4cd; margin: 16px 0 0; }
.post-view__body p:first-child, .post-view__body h2:first-child { margin-top: 0; }
.post-view__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-view__body figure { margin: 28px 0 0; }
.post-view__body figure img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.post-view__body .pv-video { position: relative; aspect-ratio: 16 / 9; }
.post-view__body .pv-video iframe, .post-view__body .pv-video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: #000;
}
.post-view__body blockquote { margin: 26px 0 0; padding: 6px 0 6px 18px; border-left: 3px solid var(--accent); color: #d7d7de; font-size: 18px; line-height: 1.7; }
.post-view__body blockquote[dir="rtl"], .post-view__body blockquote:dir(rtl) { border-left: 0; border-right: 3px solid var(--accent); padding: 6px 18px 6px 0; }
.post-view__body .pv-file { margin-top: 14px; }
.post-view__body .pv-file a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 10px; padding: 10px 16px;
  background: var(--accent-soft); transition: all .18s;
}
.post-view__body .pv-file a:hover { background: var(--accent); color: #0a0a0c; }
.post-view__body .pv-file__ico { font-size: 15px; }
.post-view .pv-note { font-size: 16px; color: var(--muted); line-height: 1.7; margin-top: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  /* with the hamburger showing, pin brand left & menu right (not centered) */
  .site-header__inner { justify-content: space-between; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .work-drop { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 8px; }
  .work-drop__panel { box-shadow: none; min-width: 0; width: 100%; }
  .lb-info { display: none; }
  .lb-player { max-width: calc(100vw - 140px); }
}
@media (max-width: 820px) {
  .about-split { grid-template-columns: 1fr; }
  .do-grid { grid-template-columns: 1fr; }
}
/* Phones: let the video fill the screen, float the arrows over it */
@media (max-width: 640px) {
  .lb-top { padding: 12px 14px; }
  .lb-stage { gap: 0; padding: 0 6px; }
  .lb-player { max-width: 94vw; max-height: 74vh; }
  .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 6; width: 42px; height: 42px;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  #lb-prev { left: 8px; }
  #lb-next { right: 8px; }
  .lb-nav:active { background: var(--accent); border-color: var(--accent); color: #fff; }
}
@media (max-width: 560px) {
  /* free up room for the hamburger — drop the small tagline on phones */
  .brand__sub { display: none; }
  /* gallery columns adapt automatically via masonry (gallery.js) — no override
     needed; narrow phones simply get fewer columns. */
}

/* Home page: 4 tiles per row → 2 tidy rows of the 8 disciplines; collapses
   to 2 rows-worth on tablets and a single column on phones. */
@media (max-width: 860px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .home-grid { grid-template-columns: 1fr; } }

/* The category & blog galleries use auto-fit grids (defined above), so they
   add and drop columns fluidly at EVERY width — content always fills the
   screen, with no fixed column counts and no empty side margins. */

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .bg-glow::before { animation: none !important; }
}
