/* ─── Reset ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  cursor: none !important; /* hide I-beam on text; selection still works */
}

/* Restore default cursor inside modal so video/iframe controls work */
#modal *,
#modal *::before,
#modal *::after {
    cursor: auto !important;
}
#modal a,
#modal button,
#modal [role="button"],
#modal .modal-x {
    cursor: pointer !important;
}
html { font-size: 16px; }
body {
  background: #080808;
  color: #ededed;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; border: 0; }

/* ─── Accessibility ───────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* subtle grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ─── Loader ──────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9998;
  background: #080808;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  transition: opacity 0.7s ease 0.1s;
}
#loader.out { opacity: 0; pointer-events: none; visibility: hidden; }
.ld-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem; letter-spacing: 0.5em; padding-left: 0.5em;
  color: white;
}
.ld-bar {
  height: 1px; width: 0;
  background: rgba(255,255,255,0.25);
  transition: width 1s ease;
}

/* ─── Cursor ──────────────────────────────────── */
#cur {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: left, top, width, height;
}
#cur.c-play {
  width: 76px;
  height: 76px;
}

/* ─── Nav ─────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.7rem 3rem;
  transition: transform 0.45s ease, background 0.4s, padding 0.4s;
}
#nav.nav-bg {
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(16px);
  padding: 1rem 3rem;
}
#nav.nav-up { transform: translateY(-120%); }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem; letter-spacing: 0.12em; color: white;
}
#navLinks {
  list-style: none;
  display: flex; align-items: center; gap: 2.5rem;
}
#navLinks a {
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.08em; color: rgba(237,237,237,0.55);
  transition: color 0.2s;
}
#navLinks a:hover { color: white; }
.nav-pill {
  border: 1px solid rgba(237,237,237,0.22) !important;
  color: rgba(237,237,237,0.75) !important;
  padding: 0.5rem 1.1rem; border-radius: 2rem;
  font-size: 0.78rem !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s !important;
}
.nav-pill:hover {
  border-color: white !important;
  background: white;
  color: #080808 !important;
}
#burger {
  display: none; background: none; border: none; cursor: none;
  flex-direction: column; gap: 5px; padding: 4px;
}
#burger span {
  display: block; width: 22px; height: 1px; background: white;
  transition: transform 0.3s, opacity 0.3s;
}
#burger.x span:first-child { transform: translateY(6px) rotate(45deg); }
#burger.x span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* ─── Mobile menu ─────────────────────────────── */
#mobMenu {
  position: fixed; inset: 0; z-index: 180;
  background: #080808;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.48s cubic-bezier(0.77,0,0.18,1);
}
#mobMenu.on { transform: translateX(0); }
#mobMenu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; letter-spacing: 0.08em; color: white;
  transition: opacity 0.2s;
}
#mobMenu a:hover { opacity: 0.5; }

/* ─── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #050505; overflow: hidden;
}
.hero-vid {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width:  max(100vw, 177.8vh);
  height: max(100vh, 56.3vw);
  pointer-events: none;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.55) 0%,
    rgba(8,8,8,0.35) 35%,
    rgba(8,8,8,0.60) 70%,
    #080808          100%
  );
}
.hero-body {
  position: relative; z-index: 2;
  padding: 0 3rem 7rem;
  max-width: 1000px;
}
.hero-mono {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(237,237,237,0.4); margin-bottom: 1.8rem;
}
.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 11.5vw, 10.5rem);
  line-height: 0.9; letter-spacing: 0.02em; color: white;
}
.hero-h1 i { font-style: italic; color: rgba(237,237,237,0.48); }
.hero-tags {
  margin-top: 2.2rem;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(237,237,237,0.35);
}
.hero-hint {
  position: absolute; bottom: 3rem; right: 3rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-hint span {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.2em; color: rgba(237,237,237,0.3);
  writing-mode: vertical-rl;
}
.hint-line {
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.38), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ─── Reveal ──────────────────────────────────── */
.r {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.r.in { opacity: 1; transform: none; }
.w-grid .wc:nth-child(2) { transition-delay: 0.07s; }
.w-grid .wc:nth-child(3) { transition-delay: 0.14s; }
.w-grid .wc:nth-child(4) { transition-delay: 0.08s; }
.w-grid .wc:nth-child(5) { transition-delay: 0.15s; }
.w-grid .wc:nth-child(6) { transition-delay: 0.22s; }
.s-about .r:last-child   { transition-delay: 0.14s; }

/* ─── Common tag label ────────────────────────── */
.tag {
  display: inline-block; font-style: normal;
  font-family: 'DM Mono', monospace; font-size: 0.67rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(237,237,237,0.32);
  border: 1px solid rgba(237,237,237,0.11);
  padding: 0.27rem 0.78rem; border-radius: 2rem;
  margin-bottom: 1.5rem;
}

/* ─── Work ────────────────────────────────────── */
.s-work { padding: 9rem 3rem 6rem; }
.s-head { margin-bottom: 4rem; }
.s-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: 0.04em; color: white;
}

.w-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
/* card counter */
.work-grid { counter-reset: card-num; }

.wc {
  cursor: none; overflow: hidden; position: relative;
  counter-increment: card-num;
  border: 1px solid transparent;
  transition: border-color 0.4s;
}
.wc:hover { border-color: rgba(255,255,255,0.07); }
.wc:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}
.wc:focus:not(:focus-visible) { outline: none; }

/* card number — appears top-left on hover */
.wc::before {
  content: counter(card-num, decimal-leading-zero);
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  z-index: 3;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.wc:hover::before { opacity: 1; transform: translateY(0); }

.wc-img {
  aspect-ratio: 16 / 9;
  background: #111 center / cover no-repeat;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* shimmer while loading */
.wc-img:not([style*="url"]) {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 400px 100%;
  animation: wc-shimmer 1.6s infinite linear;
}
@keyframes wc-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.wc:hover .wc-img { transform: scale(1.04); }

.wc-over {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 52px;
  background: linear-gradient(to top, rgba(8,8,8,0.6) 0%, rgba(8,8,8,0.12) 60%, transparent 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s;
}
.wc:hover .wc-over { opacity: 1; }
.wc-over span { font-size: 1.15rem; color: white; padding-left: 3px; }

/* Behance badge — top-right pill on hover */
.wc[data-type="behance"] .wc-over::after {
  content: '↗ Behance';
  position: absolute;
  top: 10px; right: 10px;
  font-family: 'DM Mono', monospace; font-size: 0.55rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.72);
  padding: 0.28em 0.72em; border-radius: 2rem;
  border: 1px solid rgba(255,255,255,0.18);
}

.wc-foot {
  padding: 0.9rem 0 1.2rem;
  display: flex; justify-content: space-between; align-items: baseline;
}
.wc-foot strong { font-size: 0.95rem; font-weight: 500; }
.wc-foot span {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(237,237,237,0.45);
  transition: color 0.3s;
}
.wc:hover .wc-foot span { color: rgba(237,237,237,0.72); }

/* ─── Clients marquee ─────────────────────────── */
.s-clients {
  padding: 3rem 0;
  border-top: 1px solid rgba(237,237,237,0.07);
  overflow: hidden;
}
.marquee-wrap { overflow: hidden; }
/* JS rAF runner — no CSS animation (avoids restart flash) */
.mq-runner {
  display: flex;
  align-items: center;
  will-change: transform;
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mq-item a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: rgba(237,237,237,0.22);
  white-space: nowrap;
  text-decoration: none;
  padding: 0 1.4rem;
  transition: color 0.3s;
}
.mq-item a:hover { color: rgba(237,237,237,0.8); }
.mq-sep {
  font-style: normal;
  color: rgba(237,237,237,0.1);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* ─── Process ─────────────────────────────────── */
.s-process {
  padding: 7rem 3rem;
  border-top: 1px solid rgba(237,237,237,0.07);
}
.s-process .s-head { margin-bottom: 5rem; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.ps {
  padding: 2.5rem 2rem 2.5rem 0;
  border-left: 1px solid rgba(237,237,237,0.08);
  padding-left: 2rem;
}
.ps-num {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(237,237,237,0.25);
  margin-bottom: 2rem;
}
.ps h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1rem;
}
.ps p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(237,237,237,0.45);
}

/* ─── About ───────────────────────────────────── */
.s-about {
  padding: 7rem 3rem;
  border-top: 1px solid rgba(237,237,237,0.07);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 6rem;
  align-items: start;
}
.about-stats { display: flex; flex-direction: column; gap: 2.5rem; }
.stat b {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem; line-height: 1; letter-spacing: 0.02em;
  color: white; font-weight: 400;
}
.stat span {
  font-family: 'DM Mono', monospace; font-size: 0.63rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(237,237,237,0.28);
}
.about-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 0.04em; color: white; margin-bottom: 2rem;
}
.about-copy p {
  font-size: 1rem; line-height: 1.88;
  color: rgba(237,237,237,0.52); margin-bottom: 1rem;
}

/* ─── Contact ─────────────────────────────────── */
.s-contact {
  padding: 10rem 3rem 0;
  border-top: 1px solid rgba(237,237,237,0.07);
}
.c-inner { max-width: 760px; }
.c-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92; letter-spacing: 0.02em; color: white;
  margin: 1.5rem 0 2.2rem;
}
.c-title i { font-style: italic; color: rgba(237,237,237,0.42); }
.c-sub {
  font-size: 0.98rem; line-height: 1.9;
  color: rgba(237,237,237,0.42); margin-bottom: 3rem;
}
.c-btn {
  display: inline-block;
  background: white; color: #080808;
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 1rem 2.5rem; border-radius: 3rem;
  transition: opacity 0.2s, transform 0.2s;
}
.c-btn:hover { opacity: 0.86; transform: scale(1.025); }
.c-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.c-btn--ghost { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.35); }
.c-btn--ghost:hover { border-color: rgba(255,255,255,0.7); opacity: 1; }
.c-links {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.c-links a {
  font-size: 0.82rem; letter-spacing: 0.06em;
  color: rgba(237,237,237,0.32);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.c-links a:hover { color: white; border-bottom-color: rgba(237,237,237,0.35); }

/* ─── Footer ──────────────────────────────────── */
.foot-bar {
  margin-top: 7rem; padding: 2rem 0;
  border-top: 1px solid rgba(237,237,237,0.07);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 0.63rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(237,237,237,0.18);
}


/* ─── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  #nav { padding: 1.3rem 1.5rem; }
  #nav.nav-bg { padding: 0.9rem 1.5rem; }
  #navLinks { display: none; }
  #burger { display: flex; }

  .hero-body  { padding: 0 1.5rem 6rem; }
  .hero-hint  { right: 1.5rem; bottom: 2rem; }

  .s-work  { padding: 5rem 1.5rem 4rem; }
  .w-grid  { grid-template-columns: 1fr 1fr; gap: 2px; }

  .s-about {
    padding: 5rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: 2rem 3rem; }

  .s-process { padding: 5rem 1.5rem; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ps { border-left: none; border-top: 1px solid rgba(237,237,237,0.08); padding: 2rem 0 0; }

  .s-contact { padding: 6rem 1.5rem 0; }
  .foot-bar  { flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
}

@media (max-width: 540px) {
  .w-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .c-title { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .process-grid { grid-template-columns: 1fr; }
}

/* ─── CASE MODAL ──────────────────────────────── */
body.modal-open { overflow: hidden; }

#modal {
  position: fixed; inset: 0;
  background: #080808;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
#modal.open { opacity: 1; pointer-events: all; }

.modal-x {
  position: fixed;
  top: 24px; right: 24px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: none;
  z-index: 1010;
  transition: background .2s;
}
.modal-x:hover { background: #2a2a2a; }

.modal-wrap { max-width: 1100px; margin: 0 auto; }

/* Header */
.modal-header {
  padding: 80px 60px 48px;
}
.modal-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 16px;
}
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.modal-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #aaa;
  max-width: 600px;
}

/* Hero video — full width */
.modal-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  margin-bottom: 80px;
}
.modal-hero-media iframe { width: 100%; height: 100%; border: none; pointer-events: none; }

/* Two-column grid */
.modal-body-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 80px;
  padding: 0 60px;
  margin-bottom: 80px;
}
.modal-sidebar-item { margin-bottom: 24px; }
.modal-sidebar-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 4px;
}
.modal-sidebar-value { font-size: 14px; color: #ccc; }
.modal-sidebar-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.modal-sidebar-link:hover { color: #fff; border-color: #fff; }

/* Content sections */
.modal-divider { border: none; border-top: 1px solid #1e1e1e; margin: 0 0 28px; }
.modal-section { margin-bottom: 48px; }
.modal-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.modal-section-body { font-size: 16px; line-height: 1.75; color: #888; max-width: 580px; }

/* CTA */
.modal-cta {
  text-align: center;
  padding: 80px 60px 120px;
  border-top: 1px solid #1e1e1e;
}
.modal-cta p { color: #555; font-size: 14px; margin-bottom: 20px; }
.modal-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
.modal-cta-btn:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .modal-header { padding: 60px 24px 32px; }
  .modal-body-grid { grid-template-columns: 1fr; padding: 0 24px; gap: 32px 0; }
  .modal-cta { padding: 60px 24px 80px; }
  .modal-x { top: 16px; right: 16px; }
}

/* ─── Hide Vercel toolbar/badge ───────────────── */
#__vercel_toolbar,
#vercel-live-feedback,
.vercel-live-feedback,
[data-vercel-toolbar],
vercel-live-feedback { display: none !important; }

/* ── Behind the Scenes ─────────────────────────── */
.modal-bts {
  padding: 60px 60px 0;
  margin-bottom: 0;
}
.modal-bts-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}
.modal-bts-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.modal-bts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bts-item { display: flex; flex-direction: column; gap: 8px; }
.bts-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.bts-vimeo-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}
.bts-vimeo-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bts-caption {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #555;
}
@media (max-width: 600px) {
  .modal-bts { padding: 40px 24px 0; }
  .modal-bts-grid { grid-template-columns: 1fr; }
}


/* ─── Behance Gallery Mode ────────────────────── */
.modal-hero-media {
  position: relative;
}

/* Video wrapper fills the 16/9 media area */
.media-video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
.media-video-wrap iframe {
  width: 100%; height: 100%; border: none; pointer-events: none;
}

/* Gallery mode: remove fixed aspect-ratio, stack images */
.modal-hero-media.gallery-mode {
  aspect-ratio: unset;
  background: none;
  margin-bottom: 0;
}

.behance-gallery {
  display: none;
  width: 100%;
}
.behance-gallery img {
  width: 100%;
  display: block;
  margin-bottom: 4px;
  border: none;
}
.behance-gallery img:last-child {
  margin-bottom: 0;
}

/* Clickable modal title link for Behance projects */
.modal-title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.modal-title-link:hover {
  opacity: 0.65;
}
.modal-title-link::after {
  content: ' ↗';
  font-family: 'Inter', sans-serif;
  font-size: 0.35em;
  vertical-align: super;
  opacity: 0.4;
}

/* ── Brief form ───────────────────────────────────── */
.brief-wrap { width: 100%; max-width: 560px; margin-top: 2.5rem; }

.brief-toggle {
  background: none; border: none; color: rgba(237,237,237,0.45);
  font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  padding: 0; transition: color 0.2s;
}
.brief-toggle:hover { color: rgba(237,237,237,0.85); }

.brief-form {
  display: grid; gap: 0.75rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
  opacity: 0; margin-top: 0;
}
.brief-form.open {
  max-height: 600px; opacity: 1; margin-top: 1.25rem;
}

.brief-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.brief-form input,
.brief-form select,
.brief-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: #ededed; font-family: 'Inter', sans-serif; font-size: 0.85rem;
  padding: 0.75rem 1rem; width: 100%;
  transition: border-color 0.2s;
  outline: none; resize: none;
}
.brief-form input::placeholder,
.brief-form textarea::placeholder { color: rgba(237,237,237,0.3); }
.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus { border-color: rgba(255,255,255,0.3); }
.brief-form select option { background: #111; color: #ededed; }

.brief-submit {
  background: white; color: #080808;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.85rem 2rem; border-radius: 3rem; border: none;
  cursor: pointer; transition: opacity 0.2s, transform 0.2s;
  justify-self: start;
}
.brief-submit:hover { opacity: 0.85; transform: scale(1.02); }
.brief-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.brief-thanks {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; color: rgba(237,237,237,0.6);
  text-transform: uppercase; padding-top: 0.25rem;
}

@media (max-width: 600px) {
  .brief-row { grid-template-columns: 1fr; }
  .brief-wrap { max-width: 100%; }
}
