/*
Theme Name: Turajlic
Theme URI: https://turajlic.com
Author: Dusan Turajlic
Author URI: https://turajlic.com
Description: Custom editorial portfolio theme — dark canvas, gold accent, comic-panel scroll. Visual Problem Solver. From Brand to Screen.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: turajlic
*/

/* ==========================================================================
   TOKENI  —  jedno mesto za sve boje, tipografiju i razmake
   ========================================================================== */
:root {
  /* Boje */
  --ink:        #0c0b0a;   /* pozadina — gotovo crna, blago topla */
  --ink-2:      #141311;   /* panel / kartica */
  --ink-3:      #1c1a17;   /* hover / uzdignuta povrsina */
  --paper:      #ece9e1;   /* glavni tekst — topla bela */
  --paper-dim:  #9b978c;   /* priguseni tekst, captioni */
  --gold:       #fbc000;   /* POTPIS — akcenat */
  --gold-deep:  #c9991f;
  --line:       #26241f;   /* hairline linije */
  --line-2:     #332f28;   /* hairline na tamnoj traci, malo svetlije (card border, arrow circle) */
  --pline:      #d3cdbf;   /* hairline na kremastoj traci (case-band) */
  --pline-2:    #c4bdab;   /* malo izrazenija varijanta za kremastu traku */

  /* Tipografija */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  /* Type scale (fluid) */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2:  clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --step-3:  clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  --step-4:  clamp(3.4rem, 2rem + 6.5vw, 8.5rem);

  /* Razmaci */
  --gutter: clamp(1.2rem, 4vw, 4rem);
  --bay:    clamp(4rem, 9vw, 9rem);   /* vertikalni razmak izmedju sekcija */
  --maxw:   1320px;

  --radius: 2px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);

  --safe: 17px; /* fiksni nav padding */
  --nav-h: calc(var(--safe) * 2 + 30px); /* stvarna visina #topnav (padding + 30px logo) */

  /* /work arhiva — masonry gutter/gap (archive-project.php, .work-grid) */
  --gut: clamp(17px,4vw,64px);
  --gap: clamp(14px,1.6vw,26px);
}

/* ==========================================================================
   RESET / BAZA
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; font-family: var(--font-mono); z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==========================================================================
   LAYOUT PRIMITIVI
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
/* fiksni top nav — boja se menja po pozadini sekcije ispod (data-theme + .on-light, vidi app.js):
   podrazumevano (tamna sekcija ispod) = gold; .on-light (zuta sekcija ispod, npr hero/cover/cta-band) = ink. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--safe) calc(var(--safe) + 3px);
  color: var(--gold); transition: color .3s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.nav.on-light { color: var(--ink); }

.brand { display: inline-flex; color: inherit; line-height: 0; }
.brand svg { height: 30px; width: auto; display: block; }

.burger { background: none; border: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { display: block; width: 30px; height: 3px; background: currentColor; border-radius: 2px; }

/* fullscreen meni */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  font-family: 'Inter', system-ui, sans-serif;
}
.menu.open { opacity: 1; visibility: visible; }
.menu .mscrim {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 75% 22%, rgb(201 153 31 / .10), transparent 55%),
              linear-gradient(rgb(12 11 10 / .9), rgb(8 7 6 / .96));
}
.menu .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--safe) calc(var(--safe) + 3px);
}
.menu .brand { color: var(--paper); }
.menu-x { background: none; border: 0; color: var(--paper); font-size: 2.8rem; font-weight: 300; line-height: .6; cursor: pointer; }
.menu-x:hover { color: var(--gold); }

.menu-nav { position: absolute; left: calc(var(--safe) + 1.4rem); bottom: 9vh; z-index: 2; display: flex; flex-direction: column; }
.menu-nav a {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--paper); text-decoration: none; text-transform: uppercase; font-weight: 900;
  font-size: clamp(2.8rem,7vw,5.6rem); line-height: 1.1; letter-spacing: -.01em; transition: color .2s ease;
}
.menu-nav a:hover, .menu-nav a.active { color: var(--gold); }

.menu-side { position: absolute; right: 7vw; bottom: 9vh; z-index: 2; display: flex; flex-direction: column; gap: 2rem; font-family: 'Inter', system-ui, sans-serif; }
.menu-side h4 { color: var(--paper); font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; font-weight: 700; }
.menu-side a.email { color: var(--paper); font-size: 1.05rem; text-decoration: none; }
.menu-side a.email:hover { color: var(--gold); }
.soc {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1.5px solid var(--paper); border-radius: 50%; color: var(--paper); transition: all .2s ease;
}
.soc svg { width: 22px; height: 22px; }
.soc:hover { color: var(--gold); border-color: var(--gold); }


/* ==========================================================================
   HERO — zlatno polje, logo = video prozor, sticky da ga cover prekrije.
   .hero-stack sadrži hero+cover; hero se pinuje SAMO unutar njega (ne na
   nivou cele strane), pa se posle .mf nastavlja normalan tok (Work/Motion).
   ========================================================================== */
.hero-stack { position: relative; z-index: 0; }
.hero { position: sticky; top: 0; height: 100vh; min-height: 600px; background: var(--gold); overflow: hidden; z-index: 0; }
.window {
  position: absolute; inset: 0; background: #070708; /* fallback dok nema videa */
  -webkit-mask: url(assets/logo.svg) center 17px / 70vmin no-repeat;
  mask: url(assets/logo.svg) center 17px / 70vmin no-repeat;
  animation: hero-window-enter 1.9s cubic-bezier(.16,.8,.24,1) both;
}
.window .footage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes hero-window-enter {
  from { -webkit-mask-size: 230vmin; mask-size: 230vmin; }
  to   { -webkit-mask-size: 70vmin;  mask-size: 70vmin; }
}
@media (prefers-reduced-motion: reduce) {
  .window { animation: none; -webkit-mask-size: 70vmin; mask-size: 70vmin; }
}

/* hero-d: positioning context for .vlabel. Full-coverage on desktop so top:50%
   lands at the same 50vh as before. On mobile, mirrors the D mask bounds
   (top: var(--safe) = 17px, height: 70vmin) so vlabel top:50% = D's midpoint. */
.hero-d { position: absolute; inset: 0; pointer-events: none; }

/* sitewide utility label konvencija (mono, eyebrow-stil) — vidi .eyebrow */
.vlabel {
  position: absolute; left: var(--safe); top: 50%; z-index: 15; transform: translateY(-50%) rotate(-90deg); transform-origin: left center;
  color: var(--ink); font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: .76rem; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap;
}

.tagline { position: absolute; left: 0; right: 0; bottom: 5.5vh; z-index: 15; text-align: center; color: var(--ink); }
.tagline .eye { font-family: 'Inter', system-ui, sans-serif; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; opacity: .72; margin-bottom: .55rem; }
.tagline h1 { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: clamp(2.1rem,5.4vw,4.2rem); line-height: .96; letter-spacing: -.02em; }

@media (max-width: 640px) {
  /* === Header: solid section-aware bar (no transparency on mobile) ========= */
  /* The existing JS already reads [data-theme] and toggles .on-light on #topnav.
     Desktop nav has no background (transparent over content). Mobile gets a solid
     bar: ink over dark sections (default), gold over light sections (.on-light).
     Logo is inline SVG fill="currentColor" and burger bars are background:currentColor
     — both follow color automatically, no extra rules needed. */
  .nav {
    background-color: var(--ink);
    transition: color .3s ease, background-color .35s ease;
  }
  .nav.on-light {
    background-color: var(--gold);
  }

  /* === hero mobile ========================================================= */

  /* 1. D full-bleed: in-flow so hero height is content-driven.
        Animation off on mobile — fill-mode:both + @keyframes-in-media is unreliable.
        Overscale: viewBox is 150 units wide; D path spans only 145.5 units (83.9–229.4).
        Scale 100vw × (150/145.5) = 103.09vw so the D path width fills exactly 100vw.
        Left-shift: D's flat side is 2.27 units inset → 2.27/150 × 103.09vw = 1.56vw,
        so mask-position-x = -1.56vw brings that flat edge to x:0.
        Y: nav height = calc(var(--safe)*2 + 30px) = 64px; D starts just below nav.
        Window height: D rendered height (103.09vw × 162.19/150) + Y offset. */
  .window {
    position: relative;
    inset: auto;
    width: 100%;
    height: calc(162.19 / 150 * 103.09vw + var(--nav-h));
    animation: none;
    -webkit-mask: url(assets/logo.svg) -1.56vw var(--nav-h) / 103.09vw auto no-repeat;
    mask: url(assets/logo.svg) -1.56vw var(--nav-h) / 103.09vw auto no-repeat;
  }

  /* 2. Hero height driven by content (D + tagline) — no 100vh gold void. */
  .hero { height: auto; min-height: 0; }

  /* 3. Tagline in-flow directly below D, sits on gold. */
  .tagline {
    position: relative;
    bottom: auto; left: auto; right: auto;
    margin-top: 36px;
    padding-inline: var(--safe);
    padding-bottom: 32px;
  }

  /* 4. vlabel wrapper: mirrors new D bounds.
        top tracks mask-position-y (nav height). height tracks D at overscaled width. */
  .hero-d { top: var(--nav-h); bottom: auto; height: calc(162.19 / 150 * 103.09vw); }
  .vlabel {
    left: 4px;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    transform-origin: center center;
    z-index: 3;
  }

  /* === Cover (.mf) mobile ================================================== */
  /* Replace large vh padding with compact fixed values so the cover sits
     between the hero and WORK without creating a gold canyon. */
  /* !important: @media (max-width:760px) at line ~422 sets padding:16vh 7vw 12vh
     and comes after this block, so its 12vh bottom wins without !important. */
  .mf { padding: clamp(2rem, 8vw, 3rem) var(--safe) !important; }
  /* Let flex items go full-width instead of enforcing their large bases. */
  .mf-left,
  .mf-right { flex: none; width: 100%; min-width: 0; }

  /* === WORK section mobile ================================================= */

  /* Container for cqw font-size on the WORK heading. */
  .work { container-type: inline-size; }

  /* Stack vcol (title) above grid instead of left column. */
  .work .row { flex-direction: column; }

  /* vcol goes full-width, block layout.
     !important on display: desktop .work .vcol (line ~782) is later in source,
     same specificity — justify-content:center would win and left-shift the WORK
     heading off screen. Block layout removes all flex alignment questions. */
  .work .vcol {
    width: 100%;
    display: block !important;
    padding-left: var(--safe);
  }

  /* WORK heading: horizontal, gold, Inter 900, sized to fit the section.
     !important needed: global .work .vmark rule sits after this @media block
     in source order (same specificity, later wins) — must force these three. */
  .work .vmark {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 26cqw !important;
    white-space: nowrap;
    line-height: .82;
    margin-bottom: 26px;
  }

  /* Grid: full-width, single column, --safe gutter on both sides. */
  .work .grid {
    column-count: 1;
    padding-inline: var(--safe);
    padding-right: var(--safe);
  }

  /* Cards: 34px vertical gap, square thumb. */
  .work-tiles .item { margin-bottom: 34px; }
  .work-tiles .proj .thumb { aspect-ratio: 1 / 1.02; }

  /* Meta: stack name → cat so long project titles can wrap. */
  .work-tiles .proj .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }

  /* === Fullscreen menu mobile ============================================== */

  /* Convert from absolute-children layout to flex column filling viewport. */
  .menu {
    display: flex;
    flex-direction: column;
    padding: var(--safe) calc(var(--safe) + 3px) calc(var(--safe) + 16px);
  }

  /* Topbar: pull out of absolute flow, become first flex child. */
  .menu .topbar {
    position: relative;
    top: auto; left: auto; right: auto;
    padding: 0;
    flex-shrink: 0;
  }

  /* Nav body: fills remaining space; flex-end pushes the links to the
     lower half (thumb-reachable), leaving the top area clean. */
  .menu-nav {
    position: static;
    left: auto; bottom: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 40px;
  }

  /* Nav links: large, left-aligned, generous tap target via padding-block. */
  .menu-nav a {
    font-size: clamp(46px, 14vw, 62px);
    line-height: 1.04;
    letter-spacing: -.02em;
    padding-block: 6px;
  }

  /* Contact band: two-column flex, hairline top border. */
  .menu-side {
    position: static;
    right: auto; bottom: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-top: 1px solid rgba(244, 241, 234, .18);
    padding-top: 22px;
    flex-shrink: 0;
  }

  /* Labels: mono, gold, small, letter-spaced. */
  .menu-side h4 {
    font-family: var(--font-mono);
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 400;
    margin-bottom: .5rem;
  }

  /* Email value: paper, 15px, bold. */
  .menu-side a.email { font-size: 15px; font-weight: 700; }
}

/* COVER — zuto, klizi preko heroja, BEZ senke */
.mf { position: relative; z-index: 1; background: var(--gold); padding: 22vh 6vw 14vh; }
.mf-grid { display: flex; gap: clamp(2.5rem,5vw,6rem); align-items: flex-start; flex-wrap: wrap; }
.mf-left { flex: 1 1 460px; min-width: 300px; }

.wh-text { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: clamp(2.3rem,5.6vw,4.7rem); line-height: 1.16; letter-spacing: -.02em; }
.wh-text .w { color: rgb(12 11 10 / .28); transition: color .25s ease; }
.wh-text .w.lit { color: var(--ink); }
.wh-text .w.lit.accent { color: var(--paper); }

.mf-right { flex: 1 1 360px; min-width: 300px; display: flex; flex-direction: column; gap: 1.7rem; }
.mf-img { aspect-ratio: 4/3; position: relative; border: 1px solid rgb(12 11 10 / .45); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.mf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-cta .lead { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin-bottom: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.8rem;
  border: 1.5px solid var(--ink); border-radius: 100px; color: var(--ink); text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: .98rem; transition: all .22s ease;
}
.pill:hover { background: var(--ink); color: var(--gold); }
.pill .arr { transition: transform .22s ease; }
.pill:hover .arr { transform: translateX(3px); }

@media (max-width: 760px) { .mf { padding: 16vh 7vw 12vh; } }


/* ==========================================================================
   SIGNATURE: COMIC PANELS
   Svaka stavka je "panel" sa hairline okvirom i indeksom — kao tabla stripa.
   ========================================================================== */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line); padding-bottom: 1.2rem;
}
.section-head h2 { font-size: var(--step-2); }
.section-head__count { font-family: var(--font-mono); color: var(--paper-dim); font-size: var(--step--1); }

.panels { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }

.panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.panel:hover { border-color: var(--gold); transform: translateY(-2px); }

.panel__media {
  position: relative; aspect-ratio: 16/10; background: var(--ink-3);
  overflow: hidden;
}
.panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.panel:hover .panel__media img { transform: scale(1.04); }
.panel__index {
  position: absolute; top: 0.8rem; left: 0.9rem; z-index: 2;
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--gold); letter-spacing: 0.1em;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  padding: 0.2rem 0.55rem; border-radius: var(--radius);
}
.panel__body { padding: clamp(1.3rem, 2.5vw, 2.1rem); }
.panel__client { font-family: var(--font-mono); font-size: var(--step--1); color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.panel__title { font-size: var(--step-1); margin-top: 0.6rem; }
.panel__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1rem; font-family: var(--font-mono); font-size: var(--step--1); color: var(--paper-dim); }
.panel__result { color: var(--gold); }

@media (min-width: 820px) {
  .panel { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .panel__media { aspect-ratio: auto; height: 100%; min-height: 280px; }
}

/* Empty state — poziv na akciju, ne tuzna prazna strana */
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 5rem); text-align: center;
}
.empty h3 { font-family: var(--font-display); font-size: var(--step-2); }
.empty p { color: var(--paper-dim); margin-top: 0.8rem; }
.empty .btn { margin-top: 1.8rem; }

/* ==========================================================================
   SINGLE PROJECT
   ========================================================================== */
.project-hero { padding: var(--bay) var(--gut) clamp(2rem,5vw,3.5rem); }
.project-hero h1 { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: var(--step-3); max-width: 18ch; margin-top: 1.2rem; }
.project-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.2rem;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.project-meta dt { font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper-dim); }
.project-meta dd { font-size: var(--step-0); margin-top: 0.25rem; }
.project-meta dd.result { color: var(--gold); }

.project-body { max-width: 70ch; margin-inline: auto; }
.project-body > * + * { margin-top: 1.4rem; }
.project-body h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.project-body h3 { font-size: var(--step-1); margin-top: 2rem; }
.project-body img { border-radius: var(--radius); border: 1px solid var(--line); }
.project-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.project-body .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; }
.project-body .alignwide {
  width: min(1100px, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}
.project-body .alignfull {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: none;
}
.project-body .alignwide img,
.project-body .alignfull img { width: 100%; height: auto; }

/* ==========================================================================
   CASE-BAND — cream band wrapping the project cover + body (single-project.php).
   data-theme="light" flips the fixed nav dark over it (same observer as the
   home/About sections and the yellow CTA band — see app.js). Universal now:
   every project (case-study or motion) renders through this one band, not
   just case studies — never forked, see AGENTS.md.
   ========================================================================== */
.case-band { background: var(--paper); color: var(--ink); padding-inline: var(--gut); }

/* Reveal — početno stanje; case.js dodaje .is-in na scroll */
.case-body > * {
  opacity: 0;
  transform: translateY(48px) scale(.97);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1),
              transform .9s cubic-bezier(.2,.7,.3,1);
}
.case-body > *.is-in { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .case-body > * { opacity: 1; transform: none; transition: none; }
  /* Wash postoji statično, bez tranzicije */
  .case-body figure[class*="accent-"]::before { opacity: 1; transition: none; }
}

/* Accent wash — utility klase; dodaj ručno u Gutenberg → Advanced → CSS class.
   Per-figura klase u .case-body (npr. <figure class="cs-section__media accent-red">). */
.accent-red    { --accent: 196 23 34; }
.accent-yellow { --accent: 251 192 0; }
.accent-purple { --accent: 120 80 200; }
.accent-blue   { --accent: 0 90 169; }

.case-body figure[class*="accent-"] { position: relative; isolation: isolate; }
.case-body figure[class*="accent-"]::before {
  content: '';
  position: absolute;
  inset: -2rem -2.5rem;
  z-index: -1;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center,
    rgb(var(--accent) / 0.16) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .9s var(--ease);
  pointer-events: none;
}
.case-body figure[class*="accent-"].is-in::before { opacity: 1; }

.case-label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep); }

.case-body {
  width: min(1180px, 92vw);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.case-body > * { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; }
.case-body > * + * { margin-top: clamp(2rem, 5vw, 4rem); }
.case-body figure.wp-block-image { width: 100% !important; max-width: 100% !important; margin: 0; }
.case-body figure.wp-block-image img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.case-body .wp-block-paragraph { width: 100%; max-width: 100%; text-align: left; }
.case-body img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.case-body p, .case-body ul, .case-body ol { font-size: var(--step-0); line-height: 1.7; }
.case-body h2 { font-size: var(--step-2); margin-top: clamp(3rem, 7vw, 5rem); }
.case-body h3 { font-size: var(--step-1); margin-top: clamp(2rem, 5vw, 3rem); }
.case-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.case-body .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1rem; }
.case-body .alignwide { width: min(1100px, 96vw); margin-inline: auto; max-width: none; }
/* Anchor-left, not the classic centering trick (width:100vw; margin-left:50%;
   transform:translateX(-50%)) — that formula assumes its parent's own
   horizontal center sits on the viewport's center, which is only true for a
   centered parent. .case-body is left-aligned (see AGENTS.md), so it left a
   visible cream gap on the right, scaling with how far case-body's width
   falls short of case-band's full content box (not just a scrollbar pixel
   or two). Anchoring from the known, fixed --gut offset sidesteps the
   centering assumption entirely. */
.case-body .alignfull { width: 100vw; max-width: none; margin-left: calc(-1 * var(--gut)); margin-right: 0; }
.case-body .alignwide img,
.case-body .alignfull img { border-radius: 0; }

/* Full-bleed break within the cream case-band — spans the band's own
   --gut gutter (not true viewport-edge like .alignfull). Works because
   .case-body is left-aligned, not centered (see AGENTS.md), so its left
   edge already sits flush with .case-band's padded content box — only
   the right edge needs to extend. */
.case-body .cs-break { width: calc(100vw - 2 * var(--gut)); max-width: none; }
.case-body .cs-break img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  /* Crop, don't shrink — default mobile behaviour for a wide/short break
     image (e.g. CoolPlay's box collage): a fixed band height +
     object-fit:cover keeps the readable center at a legible scale instead
     of squashing the whole strip. Not right for every break image (see
     .cs-break--contain below) — this is the DEFAULT, not the only option. */
  .case-body .cs-break { height: clamp(180px, 45vw, 260px); overflow: hidden; }
  .case-body .cs-break img { height: 100%; object-fit: cover; object-position: center; }
  /* .cs-break is shared with CoolPlay's collage, which wants the crop
     above — don't carve a silent exception into the base rule for La
     Fella (see AGENTS.md Key learnings: shared-class drift). Opt in with
     this modifier instead: show the full composition + shadow, scaled to
     width, no cropping. Specificity (0,3,0)/(0,3,1) beats the base rule
     outright rather than relying on source order. */
  .case-body .cs-break.cs-break--contain { height: auto; overflow: visible; }
  .case-body .cs-break.cs-break--contain img { height: auto; object-fit: contain; }
}

/* Lead moment — first sentence stands alone, big. Reuses the case.js
   .case-body > * reveal, just swaps its transform for a left-slide (see
   the override at the end of this block). */
.case-body > .cs-lead-xl {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 20ch;
}
.cs-lead-xl em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; color: var(--gold-deep); }

/* Labeled sections (THE JOB / THE CATCH / THE FIX, THE DESIGN / THE
   PHOTOGRAPHY) — same mono-label-left, copy-right idea as the About page,
   reusable by any case study. Column measured (not guessed) against every
   label in use: 140px fit "THE CATCH" but not "THE DESIGN" (149px) or
   "THE PHOTOGRAPHY" (224px, and still ~174px even near-zero letter-spacing
   — a single word, can't be helped by spacing alone). 160px + a lighter
   .15em letter-spacing fits every current one- and two-word label except
   "THE PHOTOGRAPHY" itself, which wraps to "THE" / "PHOTOGRAPHY" — that's
   an accepted outcome (see align-items below), not a bug to chase further;
   ballooning the column to fit one long label on a single line would just
   reopen the label/text slack problem for every short label. */
.cs-labeled { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 62ch); gap: clamp(.6rem, 1.2vw, 1rem); align-items: start; }
.cs-labeled__label {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold-deep); padding-top: .3em;
  overflow-wrap: break-word; word-break: break-word;
}
.cs-labeled__text p { max-width: 62ch; }
@media (max-width: 900px) {
  .cs-labeled { grid-template-columns: 1fr; gap: .6rem; }
}

/* Dark band — glyphs, gallery "shelf", and client quote. Full-bleed via the
   .alignfull utility (markup: class="alignfull cs-dark-band"), data-theme
   flips the nav back. Any case study can drop this block in; nothing here
   is CoolPlay-specific. */
.cs-dark-band {
  background: var(--ink);
  color: var(--paper);
  /* Top padding matches the cream band's own padding-block (clamp(2rem,5vw,4rem)
     on .case-body) so every dark band — glyphs or not — opens at the same
     rhythm as OVERVIEW. Previously clamp(7rem,13vw,11rem) for the glyph
     moment specifically (measured 176px vs. cream's 64px); the per-case
     exception is gone now that both sides use the same value. */
  padding: clamp(2rem, 5vw, 4rem) var(--gut) clamp(3rem, 6vw, 5rem);
}
.cs-dark-band > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }
/* Zero the cream band's own bottom padding when it ends in a dark band, so
   the ink carries straight through into More Work with no cream seam. */
.case-body:has(> .cs-dark-band:last-child) { padding-bottom: 0; }
/* Shorten the cream→dark handoff itself — the generic clamp(2rem,5vw,4rem)
   sibling gap plus this band's own big top padding read as a stall. */
.case-body > .cs-dark-band { margin-top: clamp(1rem, 2vw, 1.5rem); }
/* Multiple dark bands back-to-back (e.g. a case study with several distinct
   dark "moments" — logo anatomy, gallery, proof) need to stay separate
   .case-body > * elements so each gets its own IntersectionObserver reveal
   (case.js's threshold:0.2 can't fire until 20% of the WHOLE element is
   visible — bundling several moments into one giant div made that
   unreachable near the top and left the section invisible for a long
   scroll). Zero the generic sibling margin between them instead, so the
   ink carries through with no cream seam; each band's own padding still
   provides breathing room between moments. */
.case-body > .cs-dark-band + .cs-dark-band { margin-top: 0; }

.cs-glyphs { text-align: center; }
.cs-glyphs__row { display: flex; justify-content: center; color: var(--gold); }
/* Live-text fallback (used only if coolplay-glyphs.svg-style content is
   ever missing) — flex row of individual glyph characters, hero scale. */
.cs-glyphs__row span {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: var(--step-4); line-height: 1;
}
.cs-glyphs__row span + span { margin-left: clamp(.4rem, 2vw, 1.2rem); }
/* Inlined coolplay-glyphs.svg — fill:currentColor picks up the color above;
   height matches the hero-title scale, width follows the svg's own ratio. */
.cs-glyphs__svg { height: clamp(70px, 14vw, 170px); width: auto; display: block; }
.cs-glyphs__title { font-family: 'Inter', system-ui, sans-serif; font-weight: 800;
  color: var(--paper); font-size: var(--step-1); margin-top: 1.2rem; }
.cs-glyphs__sub { color: var(--paper-dim); font-size: var(--step-0); margin-top: .4rem; }

/* row-gap set wider than the 56px stagger below so shifted even items never
   collide with the row underneath — transform doesn't affect grid track
   sizing, so the gap has to absorb the whole offset on its own. */
.cs-shelf { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: clamp(1rem, 2.5vw, 2rem); row-gap: clamp(4.5rem, 7vw, 6rem); }
.cs-shelf figure { margin: 0; }
.cs-shelf img { width: 100%; height: auto; display: block; }
/* Deliberate stagger (not the earlier 18px, which read as accidental
   misalignment) — big enough on even items to register as an intentional
   rhythm across the row. */
.cs-shelf figure:nth-child(even) { transform: translateY(56px); }
@media (max-width: 640px) {
  /* Stagger off, so row-gap no longer needs to absorb the 56px offset.
     !important is required here, not just for cascade order: case.js's
     GSAP stagger sets `transform` as an inline style on these figures
     (gsap.from's y/scale pop), and inline styles beat any plain CSS
     selector regardless of specificity — only an !important rule in the
     stylesheet can still override it. Without this, the desktop offset
     re-appears via the animation even though the plain (non-!important)
     override below matched fine on paper. */
  .cs-shelf { grid-template-columns: repeat(2, 1fr); row-gap: clamp(1.5rem, 5vw, 2rem); }
  .cs-shelf figure:nth-child(even) { transform: none !important; }
}

.cs-quote { background: var(--ink-2); border: 1px solid var(--line-2); border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 2.1rem 2.3rem 1.9rem; position: relative; max-width: 62rem; }
.cs-quote::before { content: "\201C"; position: absolute; top: .5rem; right: 1.3rem;
  font-family: 'Fraunces', serif; font-size: 4rem; line-height: 1; color: var(--gold); opacity: .22; }
.cs-quote p { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5; color: var(--paper); }
.cs-quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-family: var(--font-mono);
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--paper-dim); }

/* Generic placeholder for a photo slot whose file hasn't been delivered yet
   — sized/positioned like the real thing so it's a straight content-level
   swap later (drop in a real <img>, remove these two classes). --light for
   cream-band contexts, --dark for dark-band contexts (see AGENTS.md: never
   mix the two tone sets). */
.cs-media-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .05em; padding: 1rem;
}
.cs-media-placeholder--light { background: var(--pline); border: 1px dashed var(--pline-2); color: var(--gold-deep); }
.cs-media-placeholder--dark { background: var(--ink-2); border: 1px dashed var(--line-2); color: var(--paper-dim); }
.case-body .cs-break.cs-media-placeholder { height: clamp(320px, 32vw, 480px); }
@media (max-width: 640px) {
  .case-body .cs-break.cs-media-placeholder { height: clamp(180px, 45vw, 260px); }
}

/* Closing two-photo row (dark band). */
.cs-photo-row { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.cs-photo-row .cs-media-placeholder,
.cs-photo-row img { flex: 1 1 0; aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; display: block; }
@media (max-width: 640px) { .cs-photo-row { flex-direction: column; } }

/* Photography credit — tucked close under the photo row it describes, not
   the generic sibling gap (see AGENTS.md: one element owns a given gap). */
.cs-band-credit { font-family: var(--font-mono); font-size: var(--step--1); color: var(--paper-dim);
  text-align: center; letter-spacing: .02em; }
.cs-photo-row + .cs-band-credit { margin-top: .75rem; }

/* Colour-panel full-bleed strip ("One brand. Four colours.") — reuses the
   .cs-break full-bleed width. Panels take a background colour (placeholder)
   or, once pack shots exist, an <img> filling the panel via object-fit. */
.case-body .cs-break.cs-panels { display: flex; gap: 0; height: clamp(280px, 32vw, 460px); }
.cs-panel { flex: 1 1 0; overflow: hidden; }
/* .case-body .cs-break img (height:auto, specificity 0,2,1) also matches
   these images, since the panel strip reuses .cs-break for its full-bleed
   width — it was winning over the plain .cs-panel img rule (0,1,1) below,
   leaving each panel image at its own aspect-ratio height (~244px) inside
   a 453px-tall cell with nothing filling the rest. The empty cream showing
   through underneath read as "the gap to the paragraph is huge" — it
   wasn't a margin/padding value at all. Scope through .cs-panels for
   higher specificity (0,3,1) so it wins outright, not on source order. */
.case-body .cs-panels .cs-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .case-body .cs-break.cs-panels { flex-wrap: wrap; height: auto; }
  .cs-panel { flex: 1 1 50%; aspect-ratio: 1 / 1; }
}
/* Colour block → body copy reads as a harder cut than text → photo, so it
   wants a tighter gap than the generic .case-body > * + * clamp(2rem,5vw,4rem)
   (measured 64px at 1440w) — roughly half, ~32px at the same width. */
.cs-panels + * { margin-top: clamp(1rem, 2.5vw, 2rem); }

/* Centered mono-label + Inter-800 headline — generic "moment" caption, used
   on both the cream band (e.g. "The Range") and a dark band (e.g.
   "Production"). --gold-deep reads fine on either tone, but the headline
   and copy need per-band colour (see AGENTS.md: never mix the two sets),
   so .cs-band-title/.cs-band-copy default to cream-band ink and get
   overridden inside .cs-dark-band. On the cream band, .cs-band-head is a
   plain .case-body child (centers within the ~1180px reading column); the
   panel strip below it is full-bleed (~1300px+), so their centers didn't
   match (measured 61px off at 1440w). Give the cream instance the same
   full-bleed width as .cs-break so both share one center. Not needed
   inside .cs-dark-band — that's already full-bleed, so its own
   .cs-band-head already lines up with the dieline/photo-row beneath it. */
.case-body > .cs-band-head { width: calc(100vw - 2 * var(--gut)); max-width: none; }
.cs-band-label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep); text-align: center; }
.cs-band-title { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; color: var(--ink);
  font-size: var(--step-1); text-align: center; margin-top: .6rem; }
.cs-band-copy { color: var(--ink); max-width: 52ch; margin: 1.4rem auto 0; text-align: center; }
.cs-dark-band .cs-band-title { color: var(--paper); }
.cs-dark-band .cs-band-copy { color: var(--paper-dim); }

/* Dieline on a dark band — a cream card, not mix-blend-mode (AGENTS.md:
   case-study renders stay transparent PNG / no JPEG+blend hacks). */
.cs-dieline--card { background: var(--paper); padding: clamp(1rem, 3vw, 1.75rem); border-radius: var(--radius); }
.cs-dieline--card img { border-radius: calc(var(--radius) / 2); }

/* Centered small mark/symbol callout (e.g. a "logo anatomy" moment) — reusable
   by any case study, not DB-specific. Scales mobile → desktop; pair with an
   accent-* utility class (see above) for a brand-colour drop-shadow, which
   reads as a literal shadow rather than the wider ::before ambient wash
   those utilities also drive on figure[class*="accent-"] elsewhere — this
   selector targets the <img> directly so both effects can coexist without
   collision. */
/* .case-body-scoped (0,2,0) to beat .case-body img's own width:100% rule
   (0,1,1) — plain .cs-mark (0,1,0) alone loses that fight and renders at
   full container width instead of its intended cap. */
.case-body .cs-mark { width: clamp(220px, 46vw, 340px); margin-inline: auto; display: block; }
.cs-mark[class*="accent-"] { filter: drop-shadow(0 14px 34px rgb(var(--accent) / .3)); }

/* Three-item info grid (label + copy each) — generic "moment" companion to
   .cs-glyphs/.cs-shelf, for case studies that want three short callouts
   instead of a photo gallery. Centered, gold mono labels (matches
   .cs-glyphs__row's on-dark treatment), muted paper-dim copy. */
.cs-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.cs-trio__label { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.cs-trio__copy { color: var(--paper-dim); font-size: var(--step-0); line-height: 1.6; max-width: 32ch; margin-inline: auto; }
@media (max-width: 760px) {
  .cs-trio { grid-template-columns: 1fr; gap: 2rem; }
}

/* Two-column dark-band gallery grid — generic, reusable by any case study
   that wants a mix of full-width and half-width plates (e.g. a brand-book
   spread). Default item is a half-width column; .cs-gallery__item--full
   spans both. Single column on mobile (full-width items just stop
   spanning, no other change needed). */
.cs-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.cs-gallery img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.cs-gallery__item--full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery__item--full { grid-column: auto; }
}

/* Lead-sentence slide-in override (see case.js / .case-body > * base rule). */
.case-body > .cs-lead-xl { transform: translateX(-40px); }
.case-body > .cs-lead-xl.is-in { transform: translateX(0); }

.cs-lead { font-size: clamp(1.7rem,3.6vw,3rem); line-height: 1.2; color: var(--gold-deep);
  font-weight: 600; max-width: 20ch; margin: clamp(.5rem,1.5vw,1rem) 0 1.1rem; }
.cs-overview { font-size: clamp(1rem,1.3vw,1.2rem); line-height: 1.7; color: #37322a;
  max-width: 62ch; margin-bottom: clamp(2rem,4.5vw,3.25rem); }

.cs-section { display: grid; grid-template-columns: 0.85fr 1px 1.15fr; align-items: start;
  gap: clamp(1.5rem,3.5vw,3.5rem); padding-block: clamp(2.25rem,4.5vw,4rem); }
.cs-section--flip { grid-template-columns: 1.15fr 1px 0.85fr; }
.cs-section__text { order: 1; }
.cs-section__rule { order: 2; width: 1px; align-self: stretch;
  background: linear-gradient(to bottom,
    transparent,
    var(--pline-2) 18%,
    var(--pline-2) 82%,
    transparent); }
.cs-section__media { order: 3; margin: 0; }
.cs-section__media img { width: 100%; height: auto; display: block; }
.cs-section__text h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .28em;
  font-weight: 600; color: var(--gold-deep); margin: 0 0 1.25rem; }
.cs-section__text p { font-size: clamp(1rem,1.25vw,1.18rem); line-height: 1.7;
  color: #37322a; margin: 0; max-width: 46ch; }
.cs-section--flip .cs-section__text { order: 3; }
.cs-section--flip .cs-section__media { order: 1; }

.cs-section--full { padding-block: clamp(2.25rem,4.5vw,4rem); text-align: center; }
.cs-section--full .cs-section__text { max-width: 52ch; margin: 0 auto clamp(1.75rem,4vw,2.75rem); }
.cs-section--full h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .28em;
  font-weight: 600; color: var(--gold-deep); margin: 0 0 1.25rem; }
.cs-section--full p { font-size: clamp(1rem,1.25vw,1.18rem); line-height: 1.7;
  color: #37322a; margin: 0 auto; max-width: 52ch; }
.cs-dieline { max-width: 460px; margin-inline: auto; }

@media (max-width: 820px) {
  .cs-section { grid-template-columns: 1fr; gap: 1.5rem; padding-block: clamp(2.5rem,9vw,4rem); }
  .cs-section__rule { display: none; }
  .cs-section__text { order: 1 !important; }
  .cs-section__media { order: 2 !important; }
  .cs-lead { max-width: none; }
}

/* ==========================================================================
   MORE WORK — dark band, horizontal snap slider at the end of every project
   (single-project.php). .scroller gets trailing room equal to the card width
   so the LAST card's start position is reachable; without it, scroll-snap-type:
   x mandatory yanks past it (reads as an auto-jump). scroll-snap-stop:always
   on .card stops a fast swipe/scroll from skipping a card entirely.
   ========================================================================== */
.more-work { padding: clamp(3rem,6vw,5.5rem) var(--gut) var(--bay); }
.more-row { display: flex; gap: clamp(1.25rem,3vw,3rem); align-items: flex-start; }
.more-vcol { flex: none; }
.more-vcol .vmark {
  writing-mode: vertical-rl; transform: rotate(180deg); text-align: right;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 900; line-height: .85;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--paper);
  font-size: clamp(2rem,4.5vw,4.25rem); user-select: none;
}
.more-col { flex: 1 1 0; min-width: 0; }
.scroller {
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-inline-end: max(0px, calc(100% - clamp(340px,46vw,640px)));
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
/* Cards are typographic on purpose — the project NAME is the visual, not a
   featured image. Keeps every card the same fixed size regardless of what
   art (or none) a given project has. */
.card {
  flex: 0 0 clamp(340px,46vw,640px);
  scroll-snap-align: start; scroll-snap-stop: always;
  aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--ink-3), var(--ink));
  padding: clamp(1.1rem,2vw,1.9rem);
  transition: border-color .25s ease, background .25s ease;
}
.card::before {
  content: ''; position: absolute; top: 14px; left: 14px; width: 16px; height: 16px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
  opacity: .5; transition: opacity .25s ease;
}
.card .nm { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: clamp(1.9rem,3.4vw,3.25rem);
  line-height: .94; letter-spacing: -.02em; color: var(--paper); transition: color .25s ease; }
.card .line { width: 38px; height: 2px; background: var(--gold); margin: 1rem 0 .75rem; transition: width .3s cubic-bezier(.2,.7,.2,1); }
.card .cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-dim); }
.card:hover { border-color: var(--gold-deep); background: linear-gradient(160deg, var(--ink-2), var(--ink-3)); }
.card:hover::before { opacity: 1; }
.card:hover .nm { color: var(--gold); }
.card:hover .line { width: 60px; }

.more-ctrls { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: clamp(1.6rem,3vw,2.6rem); flex-wrap: wrap; }
.arrows { display: flex; gap: .75rem; }
.arrows button {
  width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1px solid var(--line-2);
  background: none; color: var(--paper); font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center; transition: border-color .22s ease, color .22s ease;
}
.arrows button:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.arrows button:disabled { opacity: .3; cursor: default; }
.viewall {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--line-2); border-radius: 60px; padding: .8rem 1.5rem;
  font-weight: 800; font-family: 'Inter', system-ui, sans-serif; font-size: var(--step--1);
  color: var(--paper); white-space: nowrap; transition: border-color .22s ease, color .22s ease;
}
.viewall:hover { border-color: var(--gold); color: var(--gold); }
.more-work__progress { display: flex; gap: .5rem; align-items: center; }
.more-work__progress .dash { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background .25s var(--ease), width .25s var(--ease); }
.more-work__progress .dash.is-active { background: var(--gold); width: 36px; }

@media (max-width: 620px) {
  .more-row { flex-direction: column; }
  .more-vcol .vmark { writing-mode: horizontal-tb; transform: none; text-align: left; font-size: clamp(1.6rem,7vw,2.4rem); }
  .arrows { display: none; }
}

/* ==========================================================================
   BUTTON
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.85rem 1.4rem;
  background: var(--gold); color: var(--ink);
  border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   CTA BAND — global yellow band, every page (turajlic_cta_band() in
   inc/template-tags.php, called from footer.php). data-theme="light" is set
   on the <section> itself so the nav color-switch JS (app.js) flips #topnav
   to .on-light automatically wherever this band appears.
   ========================================================================== */
.cta-band { background: var(--gold); color: var(--ink); }
.cta-band__inner {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: clamp(2.5rem,6vw,6rem);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.cta-band__left .cta-band__kicker {
  font-family: 'Inter', system-ui, sans-serif; font-size: .7rem; font-weight: 800;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ink); opacity: .65; margin-bottom: 1.7rem;
}
.cta-band__left h2 {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 900;
  font-size: clamp(2rem,5vw,3.6rem); line-height: 1; letter-spacing: -.03em;
  color: var(--ink); max-width: 18ch; margin: 0;
}
.cta-band__left .pill { margin-top: 2.2rem; }

.cta-band__contact { text-align: right; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink); letter-spacing: 0.08em; }
.cta-band__contact p { margin: 0 0 .5rem; }
.cta-band__contact a { color: var(--ink); text-decoration: none; }
.cta-band__contact a:hover { color: var(--ink-2); text-decoration: underline; }
.cta-band__icons { display: flex; justify-content: flex-end; gap: 1.1rem; margin-bottom: 1.1rem; }
.cta-band__icon { display: inline-flex; color: var(--ink); transition: opacity .2s ease; }
.cta-band__icon svg { width: 23px; height: 23px; display: block; }
.cta-band__icon:hover { opacity: .6; }
.cta-band__brand { display: inline-flex; align-items: center; gap: .45rem; }
.cta-band__jp { font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem; }

@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; gap: 2.4rem; }
  .cta-band__contact { text-align: left; }
  .cta-band__icons { justify-content: flex-start; }
}

/* ==========================================================================
   LEGAL FOOTER — slim black bar below the CTA band, every page
   (turajlic_legal_footer() in inc/template-tags.php).
   ========================================================================== */
.legal-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: 1.6rem; }
.legal-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: .76rem; color: var(--paper-dim); letter-spacing: 0.06em; }
.legal-footer__links a { color: var(--paper-dim); text-decoration: none; }
.legal-footer__links a:hover { color: var(--gold); }
.legal-footer__sep { opacity: .5; }
/* Space Mono crta © vizuelno sitnije nego slova istog font-size — uveceno da
   © optički odgovara visini "Dušan Turajlić" pored njega. */
.legal-footer__copy {
  font-family: 'Inter', system-ui, sans-serif; /* Space Mono crta © sitno i visoko; Inter ga crta na baseline-u */
  font-size: 1em; line-height: 1; vertical-align: baseline;
  position: relative; top: .02em;
}

/* ==========================================================================
   REVEAL (GSAP postavlja .is-in; ovo je fallback bez JS-a)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.no-js .reveal, .reduce-motion .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   WORK — kombinovana sekcija (project + motion), masonry, na homepage-u.
   Stari comic-scroll (Selected Work) i Motion & Banners su uklonjeni;
   .panel/.panel__*/.section-head/.empty/.btn ostaju — koristi ih /work/ arhiva.
   ========================================================================== */
.work { position: relative; z-index: 1; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(96px,12vw,200px); }
.work .row { display: flex; align-items: flex-start; gap: 0; }
.work .vcol { flex: 0 0 auto; width: clamp(84px,9vw,150px); display: flex; justify-content: center; align-items: flex-start; }
.work .vmark { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--gold); font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: clamp(3rem,8vw,7rem); line-height: 1; letter-spacing: -.02em; }
/* NB: ako "WORK" izgleda naopako, ukloni transform:rotate(180deg) (ostaje vertical-rl). */

.work .grid { flex: 1 1 0; min-width: 0; column-count: 3; column-gap: 1.1rem; padding-right: var(--safe); }
@media (max-width: 900px) { .work .grid { column-count: 2; } }
@media (max-width: 560px) { .work .grid { column-count: 1; } }
/* .work-tiles je deljeni ancestor (NE .work) — i homepage WORK (.grid) i /work
   arhiva (.work-grid) dodaju ovu klasu, pa se plocica stilizuje tačno jednom
   na oba mesta (vidi parts/work-tile.php; nikad forkovano). */
.work-tiles .item { break-inside: avoid; display: block; margin: 0 0 1.1rem; text-decoration: none; color: inherit; }
.work-tiles .item .thumb { position: relative; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); transition: border-color .25s ease; background: var(--ink-2); }
.work-tiles .item:hover .thumb { border-color: var(--gold); }
.work-tiles .item .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-tiles .item .tick { position: absolute; top: 10px; left: 10px; width: 15px; height: 15px; border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); z-index: 3; }
/* No featured image yet (asset pending) — show the sitewide 匠 motif instead of a bare dark box. */
.work-tiles .item .thumb:not(:has(img))::after {
  content: "匠"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: clamp(2rem,7vw,3.4rem);
  color: var(--gold-deep); opacity: .25;
}

.work-tiles .proj .thumb { aspect-ratio: 4/3; }
.work-tiles .proj .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .85rem; }
.work-tiles .proj .meta .name { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.work-tiles .proj .meta .cat { color: var(--gold-deep); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; }

/* --ar dolazi inline po plocici (turajlic_build_work_item, iz stvarne w/h featured slike — wp_get_attachment_image_src).
   16/9 je fallback SAMO kad slika nije postavljena; bez fiksnog odnosa banner nije svi 16:9. */
.work-tiles .motion .thumb { aspect-ratio: var(--ar, 16/9); }
/* Hover baner — kreiran via JS (initMotionCards), overlay preko featured image-a. Box (aspect-ratio
   gore) je ISTI rest/hover — samo sadrzaj unutra se menja, nema layout shift-a/praznog prostora.
   Iframe se skalira da POKRIJE (cover) ceo box (scale = max ratio, ne min) i centrira se +
   overflow:hidden na roditelju seca visak — isti princip kao object-fit:cover za img/video. */
.work-hover-banner { position: absolute; inset: 0; overflow: hidden; background: var(--ink); pointer-events: none; z-index: 1; }
.work-hover-banner iframe { position: absolute; top: 50%; left: 50%; border: 0; width: calc(var(--bw,970) * 1px); height: calc(var(--bh,250) * 1px); transform: translate(-50%,-50%) scale(var(--scale,1)); }
.work-tiles .motion .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; background: linear-gradient(transparent, rgb(0 0 0 / .78)); z-index: 2; }
.work-tiles .motion .lab .name { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: .95rem; }
.work-tiles .motion .lab .cat { color: var(--gold); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }

/* VIEW ALL WORK — centrirana outline pilula */
.work .viewall-wrap { display: flex; justify-content: center; margin-top: 7vh; }
.work .viewall {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1.1rem 2.7rem;
  border: 1.5px solid var(--paper); border-radius: 100px; color: var(--paper); text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase;
  transition: all .22s ease;
}
.work .viewall:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ==========================================================================
   WORK ARCHIVE (/work/) — full-page filterable grid. Tiles reuse .work-tiles
   (above); this block is just the head/filter/grid scaffolding around them.
   Brizy/Brizy Pro override note applies here too (see .work above) — section
   padding needs !important or Brizy's global CSS zeroes it.
   ========================================================================== */
/* padding-top je JEDINO razmak koji section.work-archive drzi (nav clearance);
   donji razmak pred CTA drzi .work-grid (padding gore, vidi dole) — ne oba,
   da se razmaci ne slazu jedan na drugi (vidi AGENTS.md gotcha). */
section.work-archive {
  position: relative; background: var(--ink);
  padding-top: clamp(140px,16vw,220px) !important;
}

.work-head { padding-inline: var(--gut); border-bottom: 1px solid var(--line); padding-bottom: clamp(2rem,4vw,3.2rem); margin-bottom: clamp(2rem,4vw,3.2rem); }
.work-head .eyebrow { margin-bottom: 1.6rem; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.work-title { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; text-transform: uppercase; color: var(--paper); font-size: clamp(64px,15vw,240px); line-height: .84; letter-spacing: -.03em; }
.head-row .count { font-family: var(--font-mono); color: var(--paper-dim); font-size: var(--step--1); white-space: nowrap; }
.head-row .count strong { color: var(--paper); font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: clamp(1.4rem,3vw,2.4rem); padding: 0 var(--gut) clamp(2.4rem,4vw,3.4rem); }
.f { position: relative; background: none; border: 0; cursor: pointer; padding: .3rem 0; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #6f6a60; transition: color .2s ease; }
.f sup { font-size: .68em; margin-left: .25em; }
.f:hover { color: var(--paper); }
.f::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.f.is-active { color: var(--gold); }
.f.is-active::after { transform: scaleX(1); }

.work-grid { column-count: 3; column-gap: var(--gap); padding: 0 var(--gut) clamp(70px,9vw,140px); }
@media (max-width: 1080px) { .work-grid { column-count: 2; } }
@media (max-width: 640px)  { .work-grid { column-count: 1; } }
.work-grid .tile { break-inside: avoid; margin-bottom: var(--gap); animation: work-tile-in .5s var(--ease) both; }
.work-grid .tile.hide { display: none; }
@keyframes work-tile-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .work-grid .tile { animation: none; } }

@media (max-width: 560px) { .work-title { font-size: clamp(48px,17vw,96px); } }

/* ==========================================================================
   BANNER SHORTCODE [tj_banner]
   ResizeObserver u app.js upisuje --scale = clientWidth / --bw
   ========================================================================== */
.banner-wrap {
  position: relative;
  width: min(100%, calc(var(--bw) * 1px));
  margin-inline: auto;
  aspect-ratio: var(--bw) / var(--bh);
  overflow: hidden;
}
.banner-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  width: calc(var(--bw) * 1px);
  height: calc(var(--bh) * 1px);
  transform-origin: top left;
  transform: scale(var(--scale, 1));
  pointer-events: none;
}
.banner-wrap.is-interactive iframe { pointer-events: auto; }

/* About page styles now live in assets/css/about.css (enqueued only on the
   About page) — see turajlic_about_assets() in functions.php. */

/* .work pravilo bez !important bude pregaženo — Brizy/Brizy Pro (aktivni pluginovi, injektuju
   sopstveni global CSS na svaku stranicu) postavljaju padding:0 na section sa višim prioritetom.
   !important + visoka specificnost (section#work.work) je trajno rešenje dok su ti pluginovi
   aktivni. WORK sam drži i gornji i donji razmak (padding-top + padding-bottom) — ne osnivamo se
   na ".work + .cta-band" (NIJE pravi CSS sibling: footer.php zatvara </main> izmedju .work i
   .cta-band, pa "+" selektor nikad ne pogađa). Donji padding sprečava da se WORK i zuta CTA traka
   slepe jedna na drugu na homepage-u; na ostalim šablonima (about/single/archive) nema
   .work sekcije pa ovo pravilo ne utiče na njihov CTA razmak (default ostaje na .cta-band__inner). */
section#work.work { padding-top: clamp(72px,8vw,128px) !important; padding-bottom: clamp(72px,8vw,128px) !important; }

/* ==========================================================================
   404 — dark recovery page (404.php). Nav stays default gold-on-dark
   (no data-theme="light" here); no CTA band, legal footer only.
   ========================================================================== */
.e404 {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--ink); color: var(--paper);
  padding: calc(var(--safe) + 28px);
  overflow: hidden;
}
.e404__num {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(120px,26vw,300px);
  line-height: .82; letter-spacing: -.03em;
  color: rgb(236 233 225 / .08);
  margin-bottom: -.06em;
}
.e404__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(30px,5.4vw,62px);
  line-height: 1.02; letter-spacing: -.02em;
  margin: 24px 0 22px;
}
.e404 .hl { color: var(--gold); }
.e404__aside {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: rgb(236 233 225 / .6);
  font-size: clamp(15px,1.5vw,19px);
  line-height: 1.5; max-width: 46ch; margin: 0 auto 40px;
}
.e404__links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.e404__links a {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em;
  color: var(--paper); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease;
}
.e404__links a:hover { color: var(--gold); border-color: var(--gold); }
.e404__links .arr { color: var(--gold-deep); margin-right: 7px; }
.e404__links a:hover .arr { color: var(--gold); }

/* ==========================================================================
   LEGAL — Privacy/Terms/Cookies (page-legal.php). Nav stays default
   gold-on-dark (no data-theme="light"); no CTA band, legal footer only.
   ========================================================================== */
.legal {
  background: var(--ink); color: var(--paper);
  min-height: 100vh;
  padding: clamp(90px,12vh,160px) var(--safe) 120px;
}
.legal__col { max-width: 68ch; margin: 0 auto; }
.legal__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900; letter-spacing: -.02em;
  font-size: clamp(34px,5vw,56px); line-height: 1.02;
  margin-bottom: 14px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 48px;
}
.legal__body { font-size: 17px; line-height: 1.7; color: rgb(236 233 225 / .82); }
.legal__body h2 {
  font-weight: 800; font-size: clamp(19px,2.2vw,24px);
  color: var(--paper); margin: 40px 0 12px; letter-spacing: -.01em;
}
.legal__body h3 { font-weight: 700; font-size: 18px; color: var(--paper); margin: 28px 0 8px; }
.legal__body p { margin: 0 0 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 1.1em; }
.legal__body li { margin: 0 0 8px; }
.legal__body em {
  font-style: italic; color: rgb(236 233 225 / .6);
}
.legal__body a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.legal__body a:hover { border-color: var(--gold); }
.legal__back { margin-top: 64px; }
.legal__back a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--paper); text-decoration: none; padding-bottom: 3px;
  border-bottom: 1px solid var(--line); transition: color .18s ease, border-color .18s ease;
}
.legal__back a:hover { color: var(--gold); border-color: var(--gold); }
.legal__back .arr { color: var(--gold-deep); margin-right: 7px; }

/* ==========================================================================
   MAINTENANCE (maintenance.php). Standalone 503 splash — dark/匠 style.
   Nav stays default gold-on-dark; no CTA band; no header/footer chrome.
   ========================================================================== */
.maintenance { margin: 0; }
.maint {
  background: var(--ink); color: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--safe) + 28px);
  font-family: 'Inter', system-ui, sans-serif;
}
.maint .hl { color: var(--gold); }
.maint__mark {
  color: var(--gold); margin-bottom: 40px; line-height: 1;
  animation: maintBreathe 3.2s ease-in-out infinite;
}
.maint__mark svg { width: 58px; height: 58px; display: block; }
@keyframes maintBreathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}
.maint__kicker {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 24px;
}
.maint__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 900; font-size: clamp(40px,7vw,84px);
  line-height: .98; letter-spacing: -.03em; margin-bottom: 26px;
}
.maint__aside {
  font-weight: 500; color: rgb(236 233 225 / .6);
  font-size: clamp(15px,1.7vw,19px); line-height: 1.55;
  max-width: 42ch; margin: 0 auto 40px;
}
.maint__contact {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em;
  color: rgb(236 233 225 / .55);
}
.maint__contact a {
  color: var(--paper); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid var(--line);
  transition: color .18s, border-color .18s;
}
.maint__contact a:hover { color: var(--gold); border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .maint__mark { animation: none; opacity: .85; }
}
.legal__back a:hover .arr { color: var(--gold); }
