/* =========================================================
   Muhammad Syafiie — portfolio
   Palette: warm paper + studio ink + REC orange (+ butter for stickers)
   Type: Archivo (variable width) display · DM Sans body · Caveat notes
   ========================================================= */
:root {
  --paper: #F3EEE5;
  --paper-2: #E8E0D2;
  --ink: #17131F;
  --ink-2: #221D2C;
  --ink-3: #2E2839;
  --muted: #6A6274;
  --muted-light: #A9A1B3;
  --rec: #FF4A1C;
  --rec-deep: #E23A0E;
  --butter: #FFD84D;
  --wa: #1FAF5A;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body: 'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;
  --f-note: 'Caveat', 'Comic Sans MS', cursive;

  --pad: clamp(18px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(23, 19, 31, .04), 0 18px 40px -18px rgba(23, 19, 31, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0 0.12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rec); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- REC dot ---------- */
.rec-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(255, 74, 28, .6); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 1.35em; border-radius: 999px; border: 2px solid var(--ink);
  font: 600 15px/1 var(--f-body); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--wa { background: var(--rec); border-color: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn--wa:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn--wa:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost.btn--light { border-color: rgba(243, 238, 229, .35); color: var(--paper); }
.btn--ghost.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { --h: 40px; padding: 0 1.05em; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn--lg { --h: 56px; padding: 0 1.6em; font-size: 16px; }
.btn--xl { --h: clamp(60px, 8vw, 76px); padding: 0 clamp(1.4em, 3vw, 2.2em); font-size: clamp(17px, 2vw, 21px); box-shadow: 5px 5px 0 var(--paper); border-color: var(--paper); }
.btn--xl:hover { box-shadow: 8px 8px 0 var(--paper); }
.btn--xl .ico { width: 1.35em; height: 1.35em; }

.round {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(243, 238, 229, .3); background: transparent; color: var(--paper);
  transition: background-color .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.round:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.round:active { transform: scale(.92); }
.round:disabled { opacity: .3; pointer-events: none; }
.round--light { background: rgba(255, 255, 255, .1); }

/* ---------- Nav ---------- */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
}
.nav__logo { display: inline-flex; align-items: center; gap: 0; text-decoration: none; font: 800 22px/1 var(--f-display); font-stretch: 110%; letter-spacing: -.02em; }
.nav__logo .rec-dot { width: 10px; height: 10px; margin-right: 10px; }
.nav__logo-dot { color: var(--rec); }
.nav__links { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--rec); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(23, 19, 31, .18); }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font: 600 12px/1 var(--f-body); letter-spacing: .06em; color: var(--muted); transition: background-color .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(92px, 12vh, 128px); overflow: hidden; }
.hero__inner { position: relative; padding: 0 var(--pad); max-width: 1480px; margin: 0 auto; }

.hero__roles { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 clamp(14px, 2vw, 22px); font-weight: 500; font-size: clamp(13px, 1.3vw, 15px); letter-spacing: .01em; color: var(--muted); }
.rec-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 9px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 700 11px/1 var(--f-body); letter-spacing: .14em; }

.hero__name {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .84;
  font-size: clamp(50px, 8.9vw, 150px);
}
.hero__name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__name .line--2 { display: flex; align-items: flex-end; gap: .18em; flex-wrap: wrap; }
.hero__name .accent { color: var(--rec); }
.hero__name .bin {
  font: 600 clamp(26px, 3.6vw, 54px)/1 var(--f-note); text-transform: none; letter-spacing: 0;
  color: var(--ink); transform: rotate(-5deg) translateY(-.32em); white-space: nowrap;
}
.hero__name .char { display: inline-block; will-change: transform; }

.hero__offer { max-width: 30ch; margin: clamp(18px, 2.4vw, 30px) 0 0; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.6vw, 32px); }

/* sticker portrait */
.sticker {
  position: absolute; z-index: 6; margin: 0;
  right: clamp(8px, 4vw, 90px); top: calc(clamp(60px, 9vw, 150px) + 44px);  /* + service-chip row */
  width: clamp(230px, 25vw, 400px);
  transform: rotate(4deg); transform-origin: 50% 90%;
}
.sticker__img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(23, 19, 31, .28)); transition: transform .5s var(--ease-out); }
.sticker:hover .sticker__img { transform: rotate(-3deg) scale(1.03); }
.note { font: 600 clamp(22px, 2.2vw, 30px)/1 var(--f-note); color: var(--ink); margin: 0; pointer-events: none; white-space: nowrap; }
.note__arrow { width: 64px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.note--sticker { position: absolute; left: -44%; top: 46%; display: flex; align-items: flex-start; gap: 2px; transform: rotate(-8deg); color: var(--rec-deep); }
.note--sticker .note__arrow { margin-top: 10px; }
.spark { position: absolute; fill: var(--butter); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; overflow: visible; }
.spark--a { width: 54px; height: 54px; right: -8%; top: 6%; animation: twinkle 3.4s ease-in-out infinite; }
.spark--b { width: 34px; height: 34px; left: 2%; top: 2%; fill: var(--rec); animation: spin 14s linear infinite; }
.spark--c { width: 26px; height: 26px; right: 2%; bottom: 30%; animation: twinkle 2.6s ease-in-out .8s infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.72) rotate(20deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reel (drifting video strip) ---------- */
.reel { position: relative; margin-top: clamp(36px, 5vw, 64px); padding: 8px 0 clamp(70px, 8vw, 110px); display: grid; gap: 14px; transform: rotate(-2.2deg); transform-origin: center; }
.reel__row { overflow: visible; }
.reel__track { display: flex; gap: 14px; width: max-content; animation: drift var(--dur, 70s) linear infinite; will-change: transform; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reel__row[data-dir="right"] .reel__track { animation-direction: reverse; margin-left: -120px; }
.reel__row:hover .reel__track, .reel.is-paused .reel__track { animation-play-state: paused; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.clip {
  position: relative; flex: none; width: clamp(128px, 12.5vw, 190px); aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; border: 0; padding: 0; background: var(--ink-3);
  box-shadow: var(--shadow); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.clip:nth-child(3n+2) { transform: translateY(10px); }
.clip:hover { transform: translateY(-6px) rotate(-1.5deg) scale(1.04); box-shadow: 0 30px 50px -20px rgba(23, 19, 31, .55); z-index: 2; }
.clip video, .clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip img { transition: opacity .4s; }
.clip.is-playing img { opacity: 0; }
.clip__chip {
  position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 6px; border-radius: 999px; background: rgba(23, 19, 31, .68);
  color: #fff; font: 600 11px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
}
.clip__chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }
.clip__play { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.7); transition: .3s var(--ease); }
.clip__play .ico { width: 14px; height: 14px; margin-left: 2px; }
.clip:hover .clip__play, .clip:focus-visible .clip__play { opacity: 1; transform: none; }
.mobile-kenburns .clip img { animation: kb 9s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-3%); } }

.note--reel { position: absolute; left: var(--pad); bottom: clamp(20px, 3vw, 42px); display: flex; align-items: flex-end; gap: 6px; transform: rotate(2.2deg); color: var(--muted); font-size: clamp(20px, 2vw, 26px); }
.note__arrow--flip { transform: scale(-1, -1) rotate(-10deg); width: 48px; height: 36px; margin-bottom: 4px; }

/* torn paper edges */
.tear { position: absolute; left: 0; width: 100%; height: clamp(18px, 2.4vw, 34px); display: block; }
.tear--bottom { bottom: -1px; fill: var(--ink); z-index: 5; }
.tear--top { top: -2px; fill: var(--ink); }

/* =========================================================
   WORK
   ========================================================= */
.work { position: relative; background: var(--ink); color: var(--paper); padding: clamp(64px, 9vw, 120px) 0 clamp(70px, 9vw, 120px); scroll-margin-top: 0; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 var(--pad); max-width: 1480px; margin: 0 auto; }
.eyebrow { margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.eyebrow__num { color: var(--rec); }
.work__title { margin: 0; font: 900 clamp(46px, 8vw, 120px)/.86 var(--f-display); font-stretch: 118%; letter-spacing: -.035em; text-transform: uppercase; }

.view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; border: 1.5px solid rgba(243, 238, 229, .18); flex: none; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 9px 14px; border-radius: 999px; font: 600 13px/1 var(--f-body); color: var(--muted-light); transition: background-color .25s, color .25s; }
.view-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.chips {
  display: flex; gap: 8px; padding: 6px var(--pad) 4px; margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1480px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(243, 238, 229, .24);
  background: transparent; color: var(--paper); font: 600 14px/1 var(--f-body);
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--paper); }
.chip:active { transform: scale(.96); }
.chip__n { font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 999px; background: rgba(243, 238, 229, .12); color: var(--muted-light); transition: inherit; }
.chip[aria-selected="true"] { background: var(--rec); border-color: var(--rec); color: #fff; }
.chip[aria-selected="true"] .chip__n { background: rgba(0, 0, 0, .18); color: #fff; }
.work__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 14px auto 0; padding: 0 var(--pad); max-width: 1480px; }
.cat-desc { margin: 0; min-height: 1.5em; color: var(--muted-light); font-size: 15px; flex: 1 1 280px; }
.cat-desc b { color: var(--paper); font-weight: 600; }

/* ---------- Carousel ---------- */
.carousel { position: relative; margin-top: clamp(20px, 3vw, 36px); }
.carousel__track {
  --h: clamp(360px, 58vh, 540px);
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px 50vw; height: calc(var(--h) + 48px); overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  cursor: grab;
}
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -6px; }
.carousel .card { height: var(--h); width: auto; aspect-ratio: var(--ar, 9 / 16); scroll-snap-align: center; scroll-snap-stop: always; transform: scale(var(--s, .8)); transition: transform .25s linear; }
.carousel .card::before { content: ''; position: absolute; inset: 0; z-index: 3; background: #0d0a12; opacity: var(--dim, .55); transition: opacity .25s linear; pointer-events: none; }
.carousel .card.is-active { z-index: 2; }
.carousel .card--fit { height: auto; width: min(84vw, calc(var(--h) * .62 * 16 / 9)); }   /* 16:9 in the reel: capped to the screen */
.carousel__ui { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 8px; }
.carousel__count { margin: 0; min-width: 76px; text-align: center; font: 600 14px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--muted-light); letter-spacing: .04em; }
.carousel__count [data-car-i] { color: var(--paper); }

/* ---------- Card ---------- */
.card {
  position: relative; flex: none; display: block; padding: 0; border: 0; text-align: left;
  border-radius: var(--radius); overflow: hidden; background: var(--ink-3); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); -webkit-tap-highlight-color: transparent;
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .5s; }
.card__img[data-loading] { opacity: 0; }
.card__bgblur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) brightness(.55); }
.card--fit .card__img { object-fit: contain; }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 19, 31, .45) 0%, transparent 26%, transparent 52%, rgba(23, 19, 31, .92) 100%); pointer-events: none; }
.card__top { position: absolute; z-index: 2; inset: 12px 12px auto; display: flex; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(23, 19, 31, .66); font: 600 11.5px/1 var(--f-body); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.tag .ico { width: 14px; height: 14px; margin: -2px 0; }
.tag--yt { background: #E5281E; }
.tag--yt::before { display: none; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }
.dur { padding: 6px 8px; border-radius: 8px; background: rgba(23, 19, 31, .66); font: 600 11.5px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.card__bottom { position: absolute; z-index: 2; inset: auto 14px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.card__title { margin: 0; font: 700 clamp(15px, 1.35vw, 18px)/1.2 var(--f-body); letter-spacing: -.01em; text-wrap: balance; }
.card__play { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: transform .4s var(--ease), background-color .25s, color .25s; }
.card__play .ico { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card__img { transform: scale(1.05); }
.card:hover .card__play, .card:focus-visible .card__play { background: var(--rec); color: #fff; transform: scale(1.08); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(120% 70% at 20% 0%, rgba(255, 74, 28, .45), transparent 60%),
  radial-gradient(90% 60% at 100% 100%, rgba(255, 216, 77, .25), transparent 60%), var(--ink-3); }
.card__ph svg { width: 34%; fill: rgba(243, 238, 229, .12); }

/* ---------- Grid ---------- */
.grid-wrap { padding: 0 var(--pad); max-width: 1480px; margin: clamp(24px, 3vw, 36px) auto 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); gap: clamp(10px, 1.4vw, 18px); grid-auto-flow: dense; }
.grid li { opacity: 0; transform: translateY(18px); animation: rise .6s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
.grid .card { width: 100%; aspect-ratio: 9 / 16; }
.grid li.wide { grid-column: span 2; }
/* 16:9 cards: fill the row next to vertical cards; on their own (row of only wide cards) keep a 16:9 height instead of collapsing */
.grid li.wide .card { aspect-ratio: 16 / 9; height: 100%; }
@keyframes rise { to { opacity: 1; transform: none; } }
.more { display: flex; margin: 32px auto 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; background: var(--rec); color: #fff; padding-top: clamp(90px, 12vw, 170px); overflow: hidden; }
.contact .tear--top { fill: var(--ink); top: -2px; }
.contact__inner { position: relative; text-align: center; padding: 0 var(--pad); max-width: 1200px; margin: 0 auto; }
.contact__title { margin: 0; font: 900 clamp(50px, 9.6vw, 156px)/.86 var(--f-display); font-stretch: 120%; letter-spacing: -.04em; text-transform: uppercase; color: var(--ink); }
.contact__title span { display: block; }
.contact__title .accent { color: var(--paper); -webkit-text-stroke: 0; }
.contact__sub { margin: clamp(18px, 2.4vw, 30px) auto clamp(26px, 3.4vw, 42px); font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; color: var(--ink); }
.contact .btn--xl { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--paper); }
.contact .btn--xl:hover { box-shadow: 8px 8px 0 var(--paper); }
.contact__roles { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact__roles li { padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(23, 19, 31, .8); color: var(--ink); font: 600 14px/1 var(--f-body); background: rgba(255, 255, 255, .08); }
.contact__roles li:nth-child(2) { transform: rotate(-3deg); background: var(--butter); }
.spark--d { width: clamp(44px, 6vw, 80px); height: clamp(44px, 6vw, 80px); left: 3%; top: -14%; fill: var(--butter); animation: spin 18s linear infinite; }
.spark--e { width: clamp(34px, 4vw, 56px); height: clamp(34px, 4vw, 56px); right: 6%; top: 34%; fill: var(--paper); animation: twinkle 3s ease-in-out infinite; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); margin-top: clamp(70px, 9vw, 130px); border-top: 1.5px solid rgba(23, 19, 31, .2); color: var(--ink); font-size: 14px; font-weight: 500; }
.footer p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font: 700 15px/1 var(--f-body);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink), 0 14px 30px -10px rgba(23, 19, 31, .45);
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.fab .ico { width: 26px; height: 26px; }
.fab.is-visible { transform: none; }
.fab:hover { transform: translateY(-2px); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(13, 10, 18, .95); opacity: 0; transition: opacity .35s; }
.lb.is-open .lb__backdrop { opacity: 1; }
.lb__panel {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; height: 100%; height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) var(--pad) max(14px, env(safe-area-inset-bottom)); color: var(--paper);
}
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 10px; opacity: 0; transform: translateY(-10px); transition: .4s var(--ease-out) .05s; }
.lb__meta { margin: 0; display: flex; align-items: center; gap: 12px; }
.lb__count { font: 600 13px/1 var(--f-body); color: var(--muted-light); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 28px); min-height: 0; }
.lb__frame { position: relative; flex: none; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); opacity: 0; transform: scale(.94); transition: opacity .35s, transform .5s var(--ease-out), width .4s var(--ease-out), height .4s var(--ease-out); }
.lb.is-open .lb__frame, .lb.is-open .lb__bar, .lb.is-open .lb__foot { opacity: 1; transform: none; }
.lb__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; opacity: 0; transition: opacity .4s; }
.lb__frame iframe.is-loaded { opacity: 1; }
.lb__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.lb__loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.lb__loader span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--rec); animation: spin .8s linear infinite; }
.lb__foot { display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 14px; opacity: 0; transform: translateY(10px); transition: .4s var(--ease-out) .08s; text-align: center; }
.lb__title { margin: 0; font: 700 clamp(16px, 1.6vw, 20px)/1.25 var(--f-body); letter-spacing: -.01em; }
.lb__foot .btn--wa { --h: 46px; font-size: 14.5px; border-color: var(--paper); box-shadow: 3px 3px 0 var(--paper); }
.lb__foot .btn--wa:hover { box-shadow: 5px 5px 0 var(--paper); }
.lb__hint { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted-light); }
body.lb-open { overflow: hidden; }
body.lb-open::before { display: none; }

/* =========================================================
   INTRO (≤ 1.6s, never blocks interaction)
   ========================================================= */
.is-loading .hero__name .char { transform: translateY(105%); }
.hero__name .char { transition: transform .9s var(--ease-out); transition-delay: calc(var(--ci) * 28ms + var(--li) * 140ms); }
.is-loading .hero__roles, .is-loading .hero__offer, .is-loading .hero__ctas { opacity: 0; transform: translateY(12px); }
.hero__roles, .hero__offer, .hero__ctas, .nav { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.hero__roles { transition-delay: .1s; } .hero__offer { transition-delay: .55s; } .hero__ctas { transition-delay: .65s; }
.is-loading .sticker { opacity: 0; transform: rotate(18deg) scale(.6) translateY(40px); }
.sticker { transition: opacity .5s ease .55s, transform .9s cubic-bezier(.34, 1.56, .64, 1) .55s; }
.is-loading .reel__row { opacity: 0; transform: translateX(14%); }
.is-loading .reel__row[data-dir="right"] { transform: translateX(-14%); }
.reel__row { transition: opacity .9s var(--ease-out) .35s, transform 1.2s var(--ease-out) .35s; }
.is-loading .note { opacity: 0; }
.note { transition: opacity .6s 1.2s; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  /* sticker drops below the name so it never covers the letters */
  .sticker { top: calc(clamp(50px, 8.9vw, 150px) * 1.95 + 40px); width: clamp(220px, 25vw, 290px); right: var(--pad); }
  .note--sticker { left: -52%; top: 40%; }
}
@media (max-width: 860px) {
  .sticker { position: relative; right: auto; top: auto; width: min(60vw, 300px); margin: -10px 0 -40px auto; transform: rotate(5deg); }
  .note--sticker { left: auto; right: 102%; top: 20%; font-size: 24px; flex-direction: row; }
  .spark--a { right: -4%; }
  .reel { margin-top: 0; }
}
@media (max-width: 640px) {
  .nav { padding-top: 14px; }
  .nav .btn--sm { display: none; } /* floating button covers it on phones */
  .hero { padding-top: 84px; }
  .hero__roles { font-size: 12.5px; }
  .hero__roles [data-i18n="roles"] { flex-basis: 100%; }
  .hero__name { font-stretch: 104%; font-size: clamp(38px, 12.2vw, 92px); }
  .hero__name .bin { font-size: clamp(24px, 7vw, 36px); }
  .hero__ctas .btn { flex: 1 1 auto; --h: 54px; font-size: 15.5px; }
  .sticker { width: 54vw; margin: -4px -6px -46px auto; }
  .note--sticker { font-size: 22px; right: 96%; top: 30%; }
  .note--sticker .note__arrow { width: 46px; height: 36px; }
  .reel { gap: 10px; }
  .reel__track { gap: 10px; }
  .clip { width: 34vw; max-width: 150px; border-radius: 14px; }
  .clip__chip { font-size: 10px; padding: 4px 8px 4px 5px; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .view-toggle { align-self: stretch; }
  .view-toggle button { flex: 1; justify-content: center; }
  .carousel__track { --h: min(56vh, 116vw, 520px); padding-inline: 50vw; -webkit-mask-image: none; mask-image: none; }
  .round { width: 48px; height: 48px; }
  .lb__nav { display: none; }
  .lb__foot { padding-top: 12px; }
  .lb__hint { display: none; }
  .footer { justify-content: center; text-align: center; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .spark--e { top: -2%; right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reel__track { animation: none !important; }
  .reel__row { overflow-x: auto; scrollbar-width: none; }
}

/* =========================================================
   PORTFOLIO v2 — pillars · chips · tags · layouts · CTA
   ========================================================= */
/* hero service chips */
.hero__services { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 clamp(16px, 2.2vw, 26px); padding: 0; max-width: 640px; }
.hero__services a { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; border: 1.5px solid rgba(23, 19, 31, .16); background: rgba(255, 255, 255, .45); text-decoration: none; font: 600 13px/1 var(--f-body); color: var(--ink); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.hero__services li:first-child a { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero__services a:hover { border-color: var(--ink); transform: translateY(-1px); }
.hero__services { transition: opacity .7s var(--ease-out) .2s, transform .7s var(--ease-out) .2s; }
.is-loading .hero__services { opacity: 0; transform: translateY(12px); }

/* level 1 — pillar cards (rounded gradient cards with a count pill) */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding: 0 var(--pad); max-width: 1480px; margin: clamp(26px, 3.4vw, 40px) auto 0; scroll-margin-top: 16px; }
.pillar {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: clamp(104px, 11vw, 150px);
  padding: clamp(14px, 1.6vw, 22px); border: 0; border-radius: var(--radius); text-align: left; color: var(--ink); overflow: hidden;
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .9); opacity: .72; transform: scale(.97);
  transition: opacity .3s, transform .45s var(--ease-out), box-shadow .3s;
}
.pillar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0); transition: box-shadow .3s; pointer-events: none; }
.pillar--video { background: linear-gradient(135deg, #FF4A1C 0%, #FF7A3D 55%, #FFB25C 100%); }
.pillar--social { background: linear-gradient(135deg, #C9B8FF 0%, #E7B8E8 55%, #FFC9B0 100%); }
.pillar--design { background: linear-gradient(135deg, #FFD84D 0%, #FFE58A 50%, #F3EEE5 100%); }
.pillar:hover { opacity: .9; transform: scale(.985); }
.pillar[aria-selected="true"] { opacity: 1; transform: none; box-shadow: 0 26px 50px -24px rgba(255, 74, 28, .45); }
.pillar[aria-selected="true"]::after { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.pillar__name { font: 900 clamp(19px, 2.4vw, 34px)/.95 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; text-transform: uppercase; }
.pillar__count { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(23, 19, 31, .86); color: var(--paper); font: 600 12px/1 var(--f-body); white-space: nowrap; }
.pillar__arrow { position: absolute; right: clamp(12px, 1.4vw, 20px); top: clamp(12px, 1.4vw, 20px); width: 22px; height: 22px; transform: rotate(-45deg); opacity: .7; transition: transform .4s var(--ease); }
.pillar[aria-selected="true"] .pillar__arrow { transform: rotate(0); opacity: 1; }

.work__body { scroll-margin-top: 16px; }
.work__body .chips { margin-top: clamp(18px, 2.4vw, 28px); }

/* AI sub-type tags */
.tags { display: flex; gap: 6px; padding: 12px var(--pad) 0; max-width: 1480px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.tags::-webkit-scrollbar { display: none; }
.tagf { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(243, 238, 229, .07); color: var(--muted-light); font: 600 12.5px/1 var(--f-body); transition: background-color .2s, color .2s; }
.tagf span { opacity: .6; margin-left: 2px; font-size: 11px; }
.tagf:hover { color: var(--paper); }
.tagf[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* content stage + switch transition (opacity/transform only) */
.stage { position: relative; transition: opacity .16s ease, transform .16s ease; }
.stage.is-switching { opacity: 0; transform: translateY(10px); }

/* masonry (images) */
.masonry { display: flex; gap: clamp(10px, 1.4vw, 18px); align-items: flex-start; padding: 0 var(--pad); max-width: 1480px; margin: clamp(22px, 3vw, 34px) auto 0; }
.masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.masonry .card { width: 100%; aspect-ratio: var(--ar); opacity: 0; transform: translateY(16px); animation: rise .55s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 40ms); }
.card--image { background: var(--ink-2); }
.card--image::after { background: linear-gradient(180deg, rgba(23, 19, 31, .35) 0%, transparent 22%, transparent 70%, rgba(23, 19, 31, .8) 100%); opacity: 0; transition: opacity .3s; }
.card--image .card__bottom, .card--image .card__top { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease-out); }
.card--image:hover::after, .card--image:focus-visible::after, .card--image:hover .card__bottom, .card--image:focus-visible .card__bottom, .card--image:hover .card__top, .card--image:focus-visible .card__top { opacity: 1; transform: none; }
@media (hover: none) { .card--image::after, .card--image .card__top { opacity: 1; transform: none; } .card--image .card__bottom { opacity: 0; } }
.card--image .card__play { width: 40px; height: 40px; }

/* featured (≤ 2 items) */
.featured { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); padding: 0 var(--pad); margin: clamp(22px, 3vw, 34px) auto 0; max-width: 1480px; }
.card--featured { height: clamp(420px, 66vh, 620px); width: auto; max-width: 100%; aspect-ratio: var(--ar); }
.card--featured.card--image { height: auto; width: min(100%, 560px); }
.card--featured.card--fit { height: auto; width: min(100%, 880px); }   /* 16:9 featured: size by width, never wider than the screen */

/* YouTube + wide cards in grid */
.card--youtube { display: block; text-decoration: none; }
.grid li.wide .card--youtube { aspect-ratio: 16 / 9; height: auto; }

/* load more + category CTA */
.stage .more { margin: 30px auto 0; }
.cat-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; margin: clamp(34px, 4vw, 52px) auto 0; padding: 18px var(--pad) 0; max-width: 1480px; text-align: center; }
.cat-cta__text { margin: 0; font: 700 clamp(17px, 1.8vw, 22px)/1.2 var(--f-body); letter-spacing: -.01em; color: var(--paper); }
.cat-cta .btn--wa { border-color: var(--paper); box-shadow: 3px 3px 0 var(--paper); }
.cat-cta .btn--wa:hover { box-shadow: 5px 5px 0 var(--paper); }

/* hero reel: wide (16:9 source) clips shown square */
.clip--wide { aspect-ratio: 1 / 1; width: auto; height: calc(clamp(128px, 12.5vw, 190px) * 16 / 9); }

/* image lightbox */
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; opacity: 0; transition: opacity .3s, transform .35s var(--ease-out); cursor: zoom-in; }
.lb__img.is-loaded { opacity: 1; }
.lb__frame.is-image { background: transparent; box-shadow: none; overflow: hidden; }
.lb__frame.is-image .lb__poster { object-fit: contain; filter: none; }
.lb__frame.is-zoomed .lb__img { transform: scale(2.2); cursor: zoom-out; }
.lb__frame.is-image .lb__loader { display: none; }

@media (max-width: 640px) {
  .pillars { gap: 8px; }
  .pillar { min-height: 96px; gap: 12px; padding: 12px; border-radius: 16px; }
  .pillar__name { font-size: clamp(14px, 4.4vw, 19px); font-stretch: 100%; }
  .pillar__count { height: 22px; padding: 0 8px; font-size: 11px; }
  .pillar__arrow { width: 16px; height: 16px; right: 10px; top: 10px; }
  .work__bar { flex-direction: column; align-items: stretch; }
  .work__bar .view-toggle { align-self: stretch; }
  .work__bar .view-toggle button { flex: 1; justify-content: center; }
  .card--featured { height: min(64vh, 560px); }
  .clip--wide { height: calc(min(34vw, 150px) * 16 / 9); }
  .hero__services { gap: 6px; }
  .hero__services a { height: 30px; padding: 0 11px; font-size: 12px; }
  .cat-cta { flex-direction: column; }
}
@media (max-width: 640px) { .cat-desc { flex: none; } }
/* reserve the reel's height before the clips are inserted (no layout shift) */
.reel__row { min-height: calc(clamp(128px, 12.5vw, 190px) * 16 / 9); }
@media (max-width: 640px) { .reel__row { min-height: calc(min(34vw, 150px) * 16 / 9); } }
