/* ==========================================================================
   AISAR STUDIO — CASE STUDY SYSTEM
   Used by every project-*.html page. Generated pages, shared styles.
   Each brand sets --brand (accent) inline on <body>; falls back to lime.
   ========================================================================== */

.cs-body { --brand: var(--lime); --brand-glow: var(--lime-glow-subtle); }

/* Reading progress bar */
.cs-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--lime), var(--brand));
  z-index: 2000; pointer-events: none;
}

/* Reveal animation (hooked to main.js .reveal observer) */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- HERO ---------- */
.cs-hero { padding-top: clamp(130px, 16vh, 190px); padding-bottom: 30px; position: relative; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: var(--tr-smooth); }
.cs-back:hover { color: var(--lime); gap: 12px; }
.cs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.cs-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.cs-title { font-family: var(--font-display); font-weight: 700; line-height: .95; letter-spacing: -.035em;
  font-size: clamp(2.6rem, 9vw, 7.6rem); margin: 18px 0 22px; }
.cs-title .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(6deg); animation: csChar .8s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes csChar { to { opacity: 1; transform: none; } }
.cs-tagline { max-width: 720px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); line-height: 1.65; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs-chip { padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--bg-dark-border);
  background: rgba(255,255,255,.03); font-size: .85rem; font-weight: 600; color: #e5e7eb; }

.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin-top: 44px;
  border-top: 1px solid var(--bg-dark-border); border-bottom: 1px solid var(--bg-dark-border); }
.cs-meta > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.cs-meta > div + div { padding-left: 20px; border-left: 1px solid var(--bg-dark-border); }
.cs-meta-lbl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.cs-meta-val { font-weight: 700; font-size: 1rem; color: #fff; line-height: 1.4; }
.cs-meta-val a { color: var(--lime); text-decoration: none; }
.cs-meta-val a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-meta > div { padding: 16px 12px 16px 0; }
  .cs-meta > div + div { padding-left: 0; border-left: 0; }
  .cs-meta > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--bg-dark-border); }
}

/* Hero media — scales up as you scroll in */
.cs-hero-media { margin-top: 50px; border-radius: var(--radius-xl); overflow: hidden; position: relative;
  border: 1px solid var(--bg-dark-border); background: #000; transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 40px 120px -40px var(--brand-glow); }
.cs-hero-media > img, .cs-hero-media > video { width: 100%; display: block; aspect-ratio: 3/2; object-fit: cover; }
.cs-hero-media iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* Brand banner hero (used when no hero video/image is given) */
.cs-hero-brand { position: relative; aspect-ratio: 21/9; min-height: 300px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 90% at 50% 50%, rgba(var(--brand-rgb), .38), transparent 70%), var(--bg, #0b0c0f); }
.cs-hero-brand::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.cs-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(var(--brand-rgb), .45); transform: translate(-50%,-50%) scale(.6); opacity: 0;
  animation: csRing 6s cubic-bezier(.16,1,.3,1) infinite; aspect-ratio: 1; width: 46%; }
.cs-ring.r2 { animation-delay: 2s; } .cs-ring.r3 { animation-delay: 4s; }
@keyframes csRing { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); } }
.cs-hero-logo { position: relative; z-index: 1; padding: clamp(18px, 3vw, 34px) clamp(26px, 4vw, 50px); border-radius: var(--radius-lg);
  animation: csFloat 6s ease-in-out infinite; }
.cs-hero-logo.light { background: rgba(255,255,255,.94); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.cs-hero-logo img { display: block; width: auto; max-width: min(520px, 60vw); max-height: clamp(90px, 16vw, 200px); object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.5)); }
.cs-hero-logo .cs-logo-word { font-size: clamp(3rem, 9vw, 7rem); text-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cs-hero-cap { position: absolute; left: 26px; bottom: 20px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); z-index: 1; }
@media (max-width: 640px) { .cs-hero-brand { aspect-ratio: 4/3; } }

/* ---------- SECTIONS ---------- */
.cs-section { padding: clamp(70px, 10vw, 130px) 0 0; }
.cs-sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; margin-bottom: 44px; }
.cs-sec-num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); padding-top: 12px; }
.cs-sec-num span { color: var(--text-dim); }
.cs-h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em; }
@media (max-width: 860px) { .cs-sec-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; } .cs-sec-num { padding-top: 0; } }

.cs-prose { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.cs-prose-body p { font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.7; color: #d1d5db; margin-bottom: 20px; max-width: 820px; }
.cs-prose-body p:first-child { color: #fff; }
@media (max-width: 860px) { .cs-prose { grid-template-columns: 1fr; gap: 0; } }

/* Delivered cards */
.cs-deliver { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cs-deliver-card { position: relative; padding: 34px 30px; border-radius: var(--radius-lg); background: var(--bg-dark-surface);
  border: 1px solid var(--bg-dark-border); overflow: hidden; transition: var(--tr-smooth); }
.cs-deliver-card::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%); opacity: 0; transition: opacity .4s; }
.cs-deliver-card:hover { border-color: var(--brand); transform: translateY(-6px); }
.cs-deliver-card:hover::after { opacity: 1; }
.cs-deliver-idx { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); }
.cs-deliver-card h3 { font-family: var(--font-display); font-size: 1.45rem; margin: 14px 0 10px; }
.cs-deliver-card p { color: var(--text-muted); line-height: 1.65; font-size: .98rem; position: relative; z-index: 1; }

/* ---------- BRAND BOARD ---------- */
.cs-brand { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.cs-logo-tile { border-radius: var(--radius-lg); min-height: 300px; display: grid; place-items: center; padding: 40px; position: relative; overflow: hidden; border: 1px solid var(--bg-dark-border); }
.cs-logo-tile.dark { background: radial-gradient(120% 120% at 30% 20%, #1b1f27, #07080a); }
.cs-logo-tile.light { background: radial-gradient(120% 120% at 30% 20%, #ffffff, #e9ebef); }
.cs-logo-tile img { max-width: 72%; max-height: 150px; object-fit: contain; position: relative; z-index: 1; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.cs-logo-tile:hover img { transform: scale(1.06); }
.cs-logo-tile .cs-logo-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: .04em; color: var(--brand); }
.cs-logo-tile .cs-tile-lbl { position: absolute; left: 22px; bottom: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.cs-swatches { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.cs-swatch { border-radius: var(--radius-md); padding: 20px 22px; display: flex; justify-content: space-between; align-items: flex-end;
  min-height: 92px; cursor: pointer; border: 1px solid rgba(255,255,255,.08); transition: var(--tr-bounce); position: relative; }
.cs-swatch:hover { transform: translateX(8px); }
.cs-swatch-name { font-weight: 700; font-size: 1rem; }
.cs-swatch-hex { font-family: var(--font-mono); font-size: .85rem; opacity: .85; }
.cs-swatch.copied .cs-swatch-hex::after { content: "  ✓ copied"; }
.cs-fonts { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cs-font { padding: 22px; border-radius: var(--radius-md); background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border); }
.cs-font b { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.cs-font span { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) { .cs-brand { grid-template-columns: 1fr; } }

/* Stationery mockups (only when brand.mockups = true) */
.cs-stationery { margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.cs-scene { border-radius: var(--radius-lg); background: radial-gradient(120% 100% at 50% 0%, #20252e, #0a0b0e); border: 1px solid var(--bg-dark-border);
  min-height: 340px; display: grid; place-items: center; perspective: 1200px; overflow: hidden; position: relative; }
.cs-card3d { width: min(340px, 78%); aspect-ratio: 1.75; position: relative; transform-style: preserve-3d;
  transform: rotateX(18deg) rotateZ(-8deg); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.cs-scene:hover .cs-card3d { transform: rotateX(18deg) rotateZ(-8deg) rotateY(180deg); }
.cs-card-face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; display: grid; place-items: center;
  box-shadow: 0 30px 60px rgba(0,0,0,.55); padding: 26px; }
.cs-card-face img { max-width: 62%; max-height: 60%; object-fit: contain; }
.cs-card-back { transform: rotateY(180deg); align-content: center; justify-items: start; gap: 6px; font-family: var(--font-mono); font-size: .78rem; }
.cs-scene-lbl { position: absolute; left: 22px; bottom: 18px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.cs-appicon { width: 120px; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; box-shadow: 0 25px 50px rgba(0,0,0,.5);
  animation: csFloat 5s ease-in-out infinite; }
.cs-appicon img { max-width: 70%; max-height: 60%; object-fit: contain; }
@keyframes csFloat { 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (max-width: 860px) { .cs-stationery { grid-template-columns: 1fr; } }

/* ---------- WEBSITE ---------- */
.cs-site { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.cs-site-shot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-dark-border); background: #000; position: relative; }
.cs-site-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.cs-site-shot:hover img { transform: scale(1.04); }
.cs-site-panel { border-radius: var(--radius-lg); background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border);
  padding: 32px; display: flex; flex-direction: column; }
.cs-site-panel h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 18px; }
.cs-feature-list { list-style: none; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cs-feature-list li { padding: 12px 0; border-bottom: 1px dashed var(--bg-dark-border); color: #d1d5db; display: flex; gap: 12px; font-size: .97rem; line-height: 1.5; }
.cs-feature-list li::before { content: "↗"; color: var(--brand); font-weight: 700; }
.cs-site-panel .btn-lime { margin-top: 26px; justify-content: center; }
@media (max-width: 960px) { .cs-site { grid-template-columns: 1fr; } }

/* ---------- PROCESS ---------- */
.cs-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.cs-step { padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--bg-dark-border); background: var(--bg-dark-surface); }
.cs-step img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 18px; aspect-ratio: 4/3; object-fit: cover; }
.cs-step h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.cs-step h4::before { counter-increment: step; content: "0" counter(step) "  "; color: var(--brand); font-family: var(--font-mono); font-size: .85rem; }
.cs-step p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

/* ---------- SOCIAL / GALLERY ---------- */
.cs-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cs-social figure, .cs-gallery figure { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--bg-dark-border); background: #000; cursor: zoom-in; }
.cs-social img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.cs-social figure:hover img, .cs-gallery figure:hover img { transform: scale(1.06); }
.cs-gallery { columns: 2; column-gap: 16px; }
.cs-gallery figure { break-inside: avoid; margin-bottom: 16px; }
.cs-gallery img { width: 100%; display: block; transition: transform .7s cubic-bezier(.16,1,.3,1); }
@media (max-width: 640px) { .cs-social { grid-template-columns: repeat(2, 1fr); } .cs-gallery { columns: 1; } }

/* ---------- VIDEOS ---------- */
.cs-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.cs-videos.has-landscape { grid-template-columns: 1fr; }
.cs-video { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-dark-border); background: #000; }
.cs-video video, .cs-video iframe { width: 100%; display: block; border: 0; }
.cs-video.r169 video, .cs-video.r169 iframe { aspect-ratio: 16/9; }
.cs-video.r916 video, .cs-video.r916 iframe { aspect-ratio: 9/16; }
.cs-video.r11 video, .cs-video.r11 iframe { aspect-ratio: 1/1; }
.cs-video-cap { padding: 14px 18px; font-size: .9rem; color: var(--text-muted); }

/* ---------- RESULTS / QUOTE ---------- */
.cs-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cs-result { padding: 30px; border-radius: var(--radius-lg); background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border); }
.cs-result b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--lime); line-height: 1; }
.cs-result span { color: var(--text-muted); margin-top: 10px; display: block; }
.cs-quote { padding: clamp(36px, 6vw, 70px); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--bg-dark-surface), #0c0e12); border: 1px solid var(--bg-dark-border); }
.cs-quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.35; letter-spacing: -.01em; }
.cs-quote blockquote::before { content: "“"; display: block; color: var(--brand); font-size: 4rem; line-height: .6; margin-bottom: 14px; }
.cs-quote cite { display: block; margin-top: 22px; font-style: normal; color: var(--text-muted); }
.cs-quote cite b { color: #fff; }

/* ---------- NEXT PROJECT ---------- */
.cs-next { display: block; margin: clamp(80px, 12vw, 150px) 0 90px; position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--bg-dark-border); text-decoration: none; color: #fff; min-height: 340px; }
.cs-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform 1.2s cubic-bezier(.16,1,.3,1), opacity .5s; }
.cs-next:hover img { transform: scale(1.06); opacity: .7; }
.cs-next-inner { position: relative; padding: clamp(36px, 6vw, 70px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px;
  background: linear-gradient(0deg, rgba(9,10,13,.95), rgba(9,10,13,.2)); }
.cs-next-lbl { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.cs-next-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; margin: 12px 0; letter-spacing: -.03em; }
.cs-next-arrow { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: #000; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: var(--tr-bounce); }
.cs-next:hover .cs-next-arrow { transform: rotate(-45deg) scale(1.1); }

/* ---------- LIGHTBOX ---------- */
.cs-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 3000; padding: 24px; cursor: zoom-out; }
.cs-lightbox.open { display: grid; }
.cs-lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-md); }

/* ---------- WORK GRID ADDITIONS ---------- */
.project-card .project-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.project-card .project-services span { font-size: .72rem; font-family: var(--font-mono); letter-spacing: .06em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--bg-dark-border); color: var(--text-muted); }
.filter-pill .cnt { opacity: .55; margin-left: 4px; }

.cs-sec-intro { max-width: 760px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin: -18px 0 30px; }

/* show-more for long post feeds */
.cs-social .cs-more-item { display: none; }
.cs-social.open .cs-more-item { display: block; animation: csIn .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes csIn { from { opacity: 0; transform: translateY(20px); } }
.cs-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.cs-more-btn { cursor: pointer; font: inherit; }
/* gallery grid variant + feature image */
.cs-gallery.grid { columns: initial; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cs-gallery.grid figure { margin: 0; }
.cs-gallery.grid img { aspect-ratio: 1; object-fit: cover; }
.cs-gallery-feature { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-dark-border); margin-bottom: 14px; cursor: zoom-in; }
.cs-gallery-feature img { width: 100%; display: block; max-height: 640px; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.cs-gallery-feature:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .cs-gallery.grid { grid-template-columns: repeat(2, 1fr); } }
.cs-gallery-features { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }
.cs-gallery-features .cs-gallery-feature { margin: 0; }
.cs-gallery-features img { height: 100%; aspect-ratio: auto; }
@media (max-width: 640px) { .cs-gallery-features { grid-template-columns: 1fr; } }
.cs-logo-tile.photo { padding: 0; }
.cs-logo-tile.photo .cs-logo-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.cs-logo-tile.photo .cs-tile-lbl { color: rgba(0,0,0,.55); z-index: 2; }
.cs-gallery.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cs-gallery.grid.g4 { grid-template-columns: repeat(2, 1fr); } }

/* showcases: packaging, renders, catalogues */
.cs-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.cs-facts > div { padding: 16px 20px; border-radius: var(--radius-md); background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border); display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.cs-facts b { font-size: 1rem; color: #fff; }
.cs-show-feature { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bg-dark-border); margin: 0 0 14px; cursor: zoom-in; background: #fff; }
.cs-show-feature img { width: 100%; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.cs-show-feature:hover img { transform: scale(1.02); }
.cs-show-grid { display: grid; gap: 14px; }
.cs-show-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.cs-show-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.cs-show-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.cs-show-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--bg-dark-border); background: #111; cursor: zoom-in; }
.cs-show-grid { align-items: start; }
.cs-show-grid img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.cs-show-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .cs-show-grid.g3, .cs-show-grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cs-show-grid.g2 { grid-template-columns: 1fr; } }
.cs-soon { margin-top: 26px; display: block; text-align: center; padding: 14px; border-radius: 999px; border: 1px dashed var(--bg-dark-border); color: var(--text-muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.cs-videos.has-landscape .cs-video { max-width: 960px; margin: 0 auto; width: 100%; }
.cs-show-grid.g1 { grid-template-columns: 1fr; }

/* ==========================================================================
   PROJECTS PAGE (work.html)
   ========================================================================== */
.wk-page { padding-bottom: 40px; }
.wk-hero { padding-top: clamp(130px, 16vh, 180px); position: relative; overflow: hidden; }
.wk-hero::before { content: ""; position: absolute; left: 50%; top: -20%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--lime-glow-subtle), transparent); pointer-events: none; }
.wk-h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: .92; font-size: clamp(3.2rem, 10vw, 9rem); margin: 22px 0 28px; }
.wk-h1 em { font-style: normal; color: var(--lime); }
.wk-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.wk-lead { max-width: 620px; color: var(--text-muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; }
.wk-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--bg-dark-border); border-bottom: 1px solid var(--bg-dark-border); }
.wk-stat { padding: 26px 0; display: flex; flex-direction: column; gap: 6px; }
.wk-stat + .wk-stat { padding-left: 26px; border-left: 1px solid var(--bg-dark-border); }
.wk-stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: #fff; }
.wk-stat span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 760px) { .wk-stats { grid-template-columns: 1fr 1fr; } .wk-stat:nth-child(3) { padding-left: 0; border-left: 0; } .wk-stat:nth-child(n+3) { border-top: 1px solid var(--bg-dark-border); } }

/* logo marquee */
.wk-marquee { margin-top: 46px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.wk-track { display: flex; gap: 18px; width: max-content; animation: wkScroll 38s linear infinite; padding: 6px 0; }
.wk-marquee:hover .wk-track { animation-play-state: paused; }
@keyframes wkScroll { to { transform: translateX(-50%); } }
.wk-logo { flex: none; width: 210px; height: 96px; border-radius: var(--radius-md); display: grid; place-items: center; padding: 18px 26px; border: 1px solid var(--bg-dark-border); transition: var(--tr-smooth); }
.wk-logo.dark { background: var(--bg-dark-surface); }
.wk-logo.light { background: #f3f4f6; }
.wk-logo img { max-width: 100%; max-height: 54px; object-fit: contain; filter: grayscale(.2); transition: var(--tr-smooth); }
.wk-logo:hover { border-color: var(--lime); transform: translateY(-4px); }
.wk-logo:hover img { filter: none; }
@media (prefers-reduced-motion: reduce) { .wk-track { animation: none; flex-wrap: wrap; width: auto; } }

/* filters */
.wk-list { padding-top: clamp(60px, 8vw, 100px); }
.wk-filter { position: sticky; top: 86px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 10px; margin: 0 -10px 40px;
  border-radius: var(--radius-pill); background: rgba(9,10,13,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; }
.wk-filter::-webkit-scrollbar { display: none; }
.wk-pill { flex: none; cursor: pointer; font: 600 .88rem var(--font-sans); color: #d1d5db; background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border);
  padding: 10px 18px; border-radius: var(--radius-pill); transition: var(--tr-smooth); display: inline-flex; gap: 8px; align-items: center; }
.wk-pill span { font-family: var(--font-mono); font-size: .72rem; opacity: .55; }
.wk-pill:hover { border-color: rgba(163,230,53,.5); color: #fff; }
.wk-pill.is-active { background: var(--lime); color: var(--lime-text); border-color: var(--lime); }
.wk-pill.is-active span { opacity: .7; }
.wk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.wk-head p { color: var(--text-muted); max-width: 440px; }

/* case cards */
.wk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.wk-card { --accent: var(--lime); position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff;
  background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border); transition: border-color .4s, transform .6s cubic-bezier(.16,1,.3,1), box-shadow .6s; }
.wk-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 40px 80px -40px var(--accent); }
.wk-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0b0c0f; }
.wk-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.wk-card:hover .wk-media img { transform: scale(1.05); }
.wk-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(17,20,25,.55)); pointer-events: none; }
.wk-body { padding: 26px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.wk-top { display: flex; justify-content: space-between; gap: 14px; }
.wk-idx { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.wk-ind { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); text-align: right; }
.wk-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.02em; line-height: 1.05; margin: 14px 0 10px; }
.wk-desc { color: var(--text-muted); font-size: .97rem; line-height: 1.6; }
.wk-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chips span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--bg-dark-border); color: #cbd5e1; }
.wk-go { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.06); color: #fff; transition: var(--tr-bounce); }
.wk-card:hover .wk-go { background: var(--accent); color: #000; transform: rotate(-45deg); }
.wk-card.is-feature { grid-column: 1 / -1; flex-direction: row; }
.wk-card.is-feature .wk-media { flex: 1.5; aspect-ratio: auto; min-height: 460px; }
.wk-card.is-feature .wk-body { flex: 1; padding: 40px 40px 34px; justify-content: flex-start; }
.wk-card.is-feature .wk-title { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 24px; }
.wk-card.is-hidden { display: none; }
@media (max-width: 900px) {
  .wk-grid { grid-template-columns: 1fr; }
  .wk-card.is-feature { flex-direction: column; }
  .wk-card.is-feature .wk-media { min-height: 0; aspect-ratio: 16/10; }
  .wk-card.is-feature .wk-body { padding: 26px 24px; }
  .wk-filter { top: 74px; }
}
@media (max-width: 520px) { .wk-body { padding: 22px 20px; } .wk-ind { display: none; } }

/* films */
.wk-films { padding-top: clamp(80px, 10vw, 130px); }
.wk-film-grid { display: grid; grid-template-columns: 1.3fr 1.3fr .7fr .7fr; gap: 20px; align-items: start; }
.wk-film { all: unset; cursor: pointer; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-dark-surface); border: 1px solid var(--bg-dark-border); transition: var(--tr-smooth); }
.wk-film:hover { border-color: var(--lime); transform: translateY(-6px); }
.wk-film:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.wk-film-media { position: relative; display: block; overflow: hidden; background: #000; }
.wk-film.r169 .wk-film-media { aspect-ratio: 16/9; }
.wk-film.r916 .wk-film-media { aspect-ratio: 9/16; }
.wk-film-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.wk-film:hover .wk-film-media img { transform: scale(1.06); }
.wk-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #000; font-size: 1.2rem; box-shadow: 0 0 0 10px rgba(163,230,53,.18); transition: var(--tr-bounce); }
.wk-film:hover .wk-play { transform: translate(-50%,-50%) scale(1.12); }
.wk-film-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; text-align: left; }
.wk-film-body .wk-ind { text-align: left; color: var(--lime); }
.wk-film-title { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.wk-film-body .wk-desc { font-size: .88rem; }
.wk-film.is-hidden { display: none; }
@media (max-width: 1000px) { .wk-film-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wk-film-grid { grid-template-columns: 1fr; } .wk-film.r916 .wk-film-media { aspect-ratio: 4/5; } }

/* CTA */
.wk-cta { padding: clamp(80px, 10vw, 130px) 0 60px; }
.wk-cta-box { text-align: center; padding: clamp(46px, 7vw, 90px) 24px; border-radius: var(--radius-xl); border: 1px solid var(--bg-dark-border);
  background: radial-gradient(70% 120% at 50% 0%, rgba(163,230,53,.16), transparent 70%), var(--bg-dark-surface); }
.wk-cta-box h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1; }
.wk-cta-box p { color: var(--text-muted); margin: 18px auto 30px; max-width: 520px; }

/* video modal */
.wk-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 20px; }
.wk-modal[hidden] { display: none; }
.wk-modal-box { position: relative; width: min(1100px, 100%); }
.wk-modal-box.v { width: min(420px, 100%); }
.wk-frame { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.wk-modal-box.v .wk-frame { aspect-ratio: 9/16; max-height: 82vh; margin: 0 auto; }
.wk-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.wk-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #000; font-size: 1rem; }
