/* =========================================================
   Digital Kerala Mission — Portfolio
   ========================================================= */
:root {
  --accent: #174ea6; --accent-rgb: 23, 78, 166;
  --accent-2: #3b82f6; --accent-2-rgb: 59, 130, 246;
  --bg: #ffffff; --bg-2: #f4f7fc; --card: #ffffff;
  --line: rgba(15, 41, 82, .10); --line-2: rgba(15, 41, 82, .18);
  --text: #10213f; --muted: #53647e; --dim: #718096;
  --ink: #ffffff; --wa: #174ea6;
  --font-head: 'Sora', 'Inter Display', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans Malayalam', 'FreeSans', system-ui, sans-serif;
  --font-ml: 'Noto Sans Malayalam', 'Manjari', 'FreeSans', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --d0: 1.45s; /* hero delay, after the intro */
}
html.no-intro, html.no-js { --d0: .1s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }
[lang="ml"] { font-family: var(--font-ml); }
.ico { width: 18px; height: 18px; flex: none; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 64px); } }

/* ---------- Intro (motion graphic, ~1.4s, once per visit) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: #050605; pointer-events: none; clip-path: inset(0 0 0 0);
  animation: introOut .9s var(--ease-out) 1.15s forwards;
}
html.no-intro .intro, html.no-js .intro { display: none; }
.intro__mark { display: flex; overflow: hidden; font: 700 clamp(64px, 16vw, 140px)/1 var(--font-head); letter-spacing: -.04em; padding: 0 .04em .04em; }
.intro__mark span { display: inline-block; transform: translateY(105%); animation: rise .8s var(--ease-out) forwards; }
.intro__mark span:nth-child(2) { animation-delay: .08s; }
.intro__mark span:nth-child(3) { animation-delay: .16s; color: var(--accent); }
.intro__bar { width: 160px; height: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; border-radius: 2px; }
.intro__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; animation: fill 1s var(--ease) .15s forwards; }
.intro__sub { font: 500 12px/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fade .6s ease .4s forwards; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Ambient layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .09), transparent 62%);
  transform: translate3d(var(--cx, -1000px), var(--cy, -1000px), 0);
}
.cursor-glow.is-on { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.site-header.is-scrolled { background: rgba(6, 8, 7, .74); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), .7);
}
.brand__mark .ico { width: 20px; height: 20px; animation: spinSlow 12s linear infinite; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text b { font: 600 15px/1.2 var(--font-head); letter-spacing: -.01em; white-space: nowrap; }
.brand__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.logo-img { height: 40px; width: auto; }
.nav { display: none; gap: 30px; font-size: 14px; color: var(--muted); }
.nav a { position: relative; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav { display: flex; } }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--font-body); white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
}
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 14px 34px -12px rgba(var(--accent-rgb), .8); }
.btn--wa { background: var(--wa); color: #052e16; box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .8); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .08); }
.btn--primary::after, .btn--wa::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite;
}
.btn__play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.btn__play .ico { width: 12px; height: 12px; margin-left: 2px; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (max-width: 420px) { .site-header .btn--sm span { display: none; } .site-header .btn--sm { width: 42px; padding: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 112px 0 48px; display: flex; flex-direction: column; justify-content: center; gap: 48px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 900px; height: 900px; left: -320px; top: -360px; background: radial-gradient(circle, rgba(var(--accent-rgb), .28), transparent 62%); animation: drift1 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 760px; height: 760px; right: -300px; top: 4%; background: radial-gradient(circle, rgba(var(--accent-2-rgb), .16), transparent 62%); animation: drift2 20s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 700px; height: 700px; left: 30%; bottom: -420px; background: radial-gradient(circle, rgba(32, 190, 180, .18), transparent 62%); animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-140px, 60px) scale(.9); } }
.hero__grid {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 55%;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%); mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  animation: gridRun 2.4s linear infinite;
}
@keyframes gridRun { to { background-position: 0 64px; } }
.hero__beams i { position: absolute; top: -20%; width: 1px; height: 60%; background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), .7), transparent); opacity: .5; animation: beam 7s linear infinite; }
.hero__beams i:nth-child(1) { left: 18%; animation-delay: 0s; }
.hero__beams i:nth-child(2) { left: 52%; animation-delay: 2.4s; }
.hero__beams i:nth-child(3) { left: 84%; animation-delay: 4.8s; }
@keyframes beam { 0% { transform: translateY(-60%); opacity: 0; } 15% { opacity: .55; } 80% { opacity: .4; } 100% { transform: translateY(240%); opacity: 0; } }

.hero__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 40px; } .hero__inner--solo { grid-template-columns: 1fr; max-width: 900px; } }

.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp 1s var(--ease-out) forwards; animation-delay: calc(var(--d0) + var(--fd, 0ms)); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.for-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(var(--accent-2-rgb), .16), rgba(var(--accent-2-rgb), .04)); border: 1px solid rgba(var(--accent-2-rgb), .35);
  color: #f7e7b4; font-size: 14px;
}
.for-pill .ico { width: 14px; height: 14px; color: var(--accent-2); }
.for-pill strong { color: #fff; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 13px; color: #c9d1cd; line-height: 1.35; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }

.hero__title { margin: 22px 0 18px; font: 700 clamp(40px, 6.6vw, 84px)/1.04 var(--font-head); letter-spacing: -.04em; text-wrap: balance; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w__in { display: inline-block; transform: translateY(112%) rotate(4deg); transform-origin: 0 100%; animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(var(--d0) + var(--i) * 65ms); }
@keyframes wordUp { to { transform: none; } }
.w--em { padding-right: .12em; }
.hero__title em, .h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--accent) 0%, #b8f5d2 30%, var(--accent-2) 55%, var(--accent) 80%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s linear infinite;
}
.hero__title em { font-size: 1.12em; line-height: .9; }
@keyframes sheen { to { background-position: -220% center; } }

.hero__ml { font-size: clamp(17px, 2.1vw, 22px); line-height: 1.6; font-weight: 600; color: #e3ebe7; padding-left: 16px; border-left: 2px solid var(--accent); max-width: 34em; }
.hero__lead { margin-top: 16px; color: var(--muted); font-size: clamp(15.5px, 1.5vw, 18px); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 560px) { .hero__cta .btn { flex: 1 1 auto; } }

/* hero visual: floating video cards */
.hero__visual { position: relative; height: 420px; display: grid; place-items: center; --px: 0; --py: 0; }
@media (min-width: 980px) { .hero__visual { height: 560px; } }
.orbit { position: absolute; width: min(400px, 92vw); height: auto; fill: none; animation: spinSlow 40s linear infinite; opacity: .9; }
@media (min-width: 980px) { .orbit { width: 520px; } }
.orbit circle { stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 3 7; }
.orbit .orbit__inner { stroke: rgba(var(--accent-rgb), .22); stroke-dasharray: 1 0; }
.orbit .orbit__dot { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 6px var(--accent)); }
.stack { position: relative; width: 190px; aspect-ratio: 9 / 16; transform: translate(calc(var(--px) * 14px), calc(var(--py) * 14px)); transition: transform .6s var(--ease-out); }
@media (min-width: 980px) { .stack { width: 236px; } }
.stack__card { position: absolute; inset: 0; border-radius: 22px; transition: transform .6s var(--ease-out); }
.stack__card--horizontal .stack__float img { object-position: center; }
.stack__float { position: absolute; inset: 0; display: block; border-radius: inherit; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); animation: bob 6s ease-in-out infinite; }
.stack__card--1 { z-index: 3; }
.stack__card--2 { z-index: 2; transform: translate(calc(-62% + var(--px) * -10px), 8%) rotate(-11deg) scale(.86); }
.stack__card--3 { z-index: 1; transform: translate(calc(62% + var(--px) * 10px), 10%) rotate(11deg) scale(.86); }
.stack__card--2 .stack__float { animation-delay: -2s; filter: brightness(.75); }
.stack__card--3 .stack__float { animation-delay: -4s; filter: brightness(.75); }
.stack__card--1 .stack__float { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 60px -10px rgba(var(--accent-rgb), .35); }
.stack:hover .stack__card--2 { transform: translate(-74%, 4%) rotate(-15deg) scale(.88); }
.stack:hover .stack__card--3 { transform: translate(74%, 6%) rotate(15deg) scale(.88); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.stack img.is-loaded { opacity: 1; }
.stack__play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.stack__play::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), .6); animation: ring 2.2s ease-out infinite; }
.stack__play .ico { margin-left: 3px; }
.stack__card--2 .stack__play, .stack__card--3 .stack__play { display: none; }
.stack__cap { position: absolute; z-index: 3; left: 14px; bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .2); }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.55); opacity: 0; } }
.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(14, 18, 17, .75); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); animation: bob 5s ease-in-out infinite; white-space: nowrap;
}
.float-chip .ico { width: 14px; height: 14px; color: var(--accent); }
.float-chip--1 { left: 2%; top: 14%; animation-delay: -1s; }
.float-chip--2 { right: 0; top: 40%; animation-delay: -2.5s; }
.float-chip--2 .ico { color: var(--accent-2); }
.float-chip--3 { left: 6%; bottom: 10%; animation-delay: -4s; }
@media (max-width: 520px) { .float-chip { font-size: 11.5px; padding: 7px 11px; } .float-chip--1 { left: 0; top: 6%; } .float-chip--2 { right: -2px; } .float-chip--3 { left: 0; bottom: 4%; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 24px; gap: 12px; }
.stat dt { font: 700 clamp(32px, 5vw, 52px)/1 var(--font-head); letter-spacing: -.03em; }
.stat dt em { font-style: normal; color: var(--accent); }
.stat dd { margin-top: 8px; color: var(--muted); font-size: clamp(12px, 1.3vw, 14px); line-height: 1.4; }

/* ---------- Tape (kinetic type bands) ---------- */
.tape { position: relative; padding: 36px 0 44px; overflow: hidden; }
.tape__band { display: flex; width: max-content; margin-left: -5vw; }
.tape__band--1 { background: var(--accent); color: var(--ink); transform: rotate(-2.4deg); padding: 15px 0; position: relative; z-index: 2; box-shadow: 0 20px 40px -20px rgba(var(--accent-rgb), .6); }
.tape__band--2 { transform: rotate(1.8deg); margin-top: -6px; padding: 13px 0; border-block: 1px solid var(--line-2); background: var(--bg-2); }
.tape__track { display: flex; flex: none; animation: marquee 38s linear infinite; }
.tape__band--2 .tape__track { animation-direction: reverse; animation-duration: 46s; }
.tape__item { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font: 700 clamp(18px, 2.6vw, 30px)/1 var(--font-head); letter-spacing: -.02em; white-space: nowrap; }
.tape__item::after { content: '✦'; font-size: .6em; }
.tape__band--2 .tape__item { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.tape__band--2 .tape__item::after { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(60px, 8vw, 112px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ''; width: 30px; height: 1px; background: currentColor; }
.kicker--center::after { content: ''; width: 30px; height: 1px; background: currentColor; }
.h2 { margin: 18px 0 18px; font: 700 clamp(32px, 5vw, 60px)/1.06 var(--font-head); letter-spacing: -.035em; max-width: 17ch; text-wrap: balance; }
.h2 em { font-size: 1.1em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 58ch; }

/* scroll reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero: "An initiative from" ---------- */
.initiative { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 0 0 26px; }
.initiative__label { font: italic 400 clamp(20px, 2vw, 24px)/1 var(--font-serif); color: #c9d1cd; }
.initiative__cos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.initiative__amp { font: italic 400 26px/1 var(--font-serif); color: var(--accent-2); }
.co-chip {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .045); font: 600 15px/1 var(--font-head); letter-spacing: -.01em;
  transition: border-color .3s, background .3s, translate .35s var(--ease);
}
.co-chip::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite; }
.initiative__cos .co-chip:last-child::after { animation-delay: .6s; }
.co-chip:hover { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .08); translate: 0 -2px; }
.co-chip__ico { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), .16); color: var(--accent); }
.co-chip__ico--ws { background: #fff; color: #0a0a0a; }
.co-chip__ico .ico { width: 16px; height: 16px; }
.co-chip { padding-right: 14px; }
.co-chip__go { width: 14px; height: 14px; margin-left: -2px; color: var(--muted); transition: transform .35s var(--ease-out), color .3s; }
.co-chip:hover .co-chip__go { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- Hero: Dynexo chat widget (motion graphic) ---------- */
.chatw {
  position: absolute; z-index: 5; left: 0; bottom: 4%; width: 218px; padding: 12px; border-radius: 18px;
  background: rgba(12, 16, 15, .84); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85); animation: bob 6s ease-in-out infinite; animation-delay: -1.5s;
}
.chatw__head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chatw__av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #052e16; }
.chatw__av .ico { width: 16px; height: 16px; }
.chatw__head b { display: block; font: 600 13px/1.2 var(--font-head); }
.chatw__head small { display: block; font-size: 10.5px; color: var(--accent); }
.chatw__body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; min-height: 124px; }
.bubble { max-width: 88%; padding: 7px 10px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; opacity: 0; }
.bubble--in { align-self: flex-start; background: rgba(255, 255, 255, .09); border-top-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: rgba(37, 211, 102, .22); color: #dcfce7; border-top-right-radius: 4px; }
.chatw__slot { position: relative; display: block; min-height: 30px; }
.typing { position: absolute; left: 0; top: 0; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; border-top-left-radius: 4px; background: rgba(255, 255, 255, .09); opacity: 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #cfd6d2; animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.cw4 { position: absolute; left: 0; top: 0; white-space: nowrap; }
.cw1 { animation: cw1 9s infinite; } .cw2 { animation: cw2 9s infinite; } .cw3 { animation: cw3 9s infinite; } .cw4 { animation: cw4 9s infinite; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes cw1 { 0%, 4% { opacity: 0; transform: translateY(8px); } 9%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cw2 { 0%, 22% { opacity: 0; transform: translateY(8px); } 27%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cw3 { 0%, 42% { opacity: 0; } 46%, 60% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes cw4 { 0%, 62% { opacity: 0; transform: translateY(8px); } 67%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@media (min-width: 980px) { .chatw { left: -6%; bottom: 0; } }
@media (max-width: 520px) { .chatw { width: 186px; padding: 10px; left: -4px; bottom: 0; } .bubble { font-size: 10.5px; } .chatw__body { min-height: 112px; } }

/* ---------- Company sections (01 Dynexo, 02 White Sketch) ---------- */
.co { position: relative; overflow: clip; }
.co--dx::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 92% 8%, rgba(var(--accent-rgb), .09), transparent 70%); }
.co--ws::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 30% at 6% 4%, rgba(var(--accent-2-rgb), .08), transparent 70%); }
.fx-dots { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(50% 42% at 95% 12%, #000, transparent 70%); mask-image: radial-gradient(50% 42% at 95% 12%, #000, transparent 70%); animation: dots 18s linear infinite; }
@keyframes dots { to { background-position: 240px 240px; } }

.co-head { position: relative; display: grid; gap: 0 36px; margin-bottom: clamp(36px, 5vw, 60px); }
@media (min-width: 900px) { .co-head { grid-template-columns: auto 1fr; align-items: end; } }
.co-head__num {
  font: 700 clamp(60px, 9vw, 118px)/.8 var(--font-head); letter-spacing: -.07em; padding-right: .06em; margin-bottom: 8px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .6);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-2-rgb), .6)) no-repeat 0 100% / 100% 0%;
  -webkit-background-clip: text; background-clip: text; transition: background-size 1.8s var(--ease) .35s;
}
.co-head.in .co-head__num { background-size: 100% 100%; }
.co--ws .co-head__num { -webkit-text-stroke-color: rgba(var(--accent-2-rgb), .6); background-image: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(var(--accent-2-rgb), .7)); }
.co-head__text .kicker { display: flex; }
.co-head__name { position: relative; display: block; width: fit-content; max-width: 100%; margin-top: 12px; font: 700 clamp(30px, 4.4vw, 56px)/1.05 var(--font-head); letter-spacing: -.035em; }
.co-head__name .logo-img { height: clamp(36px, 4.4vw, 56px); width: auto; }
.co-head__tag { margin-top: 12px; font-size: clamp(16px, 1.7vw, 19px); color: #c9d1cd; }
.co-head__tag em { font: italic 400 1.35em/1 var(--font-serif); color: #f3e3b0; }
.sketch { position: absolute; left: -1%; bottom: -14px; width: 102%; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; opacity: .85; overflow: visible; }
.sketch path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease) .7s; }
.co-head.in .sketch path { stroke-dashoffset: 0; }
.sub-label { margin: 0 0 14px; font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.co-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s, gap .3s var(--ease); }
.co-link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.co-link .ico { width: 16px; height: 16px; }
.co-link--center { margin-top: 30px; color: var(--muted); }

/* Dynexo */
.dx-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 980px) { .dx-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; } }
.dx-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin: 30px 0 34px; }
.dx-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.dx-stat b { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-head); letter-spacing: -.03em; }
.dx-stat p { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.dx-stat--ring { flex-direction: row; align-items: center; gap: 12px; }
@media (max-width: 560px) { .dx-stats { grid-template-columns: 1fr 1fr; } .dx-stat--ring { grid-column: 1 / -1; } }
.ring { position: relative; flex: none; width: 88px; height: 88px; display: grid; place-items: center; text-align: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 4; }
.ring__bg { stroke: rgba(255, 255, 255, .08); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 277; transition: stroke-dashoffset 2s var(--ease) .4s; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .6)); }
.in .ring__fg { stroke-dashoffset: 40; }
.ring span { font: 700 26px/1 var(--font-head); }
.ring b { font: inherit; }
.ring small { display: block; margin-top: 3px; font: 500 10px/1 var(--font-body); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.products { position: relative; display: grid; gap: 12px; }
@media (min-width: 560px) { .products { grid-template-columns: 1fr 1fr; } }
.products > li { display: flex; }
.product {
  position: relative; overflow: hidden; isolation: isolate; flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 216px; padding: 22px;
  border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #111615, #0a0d0c);
  transition: border-color .4s, translate .5s var(--ease-out), box-shadow .4s;
}
@media (max-width: 559px) { .product { min-height: 0; padding: 20px; } .product__ico { margin-bottom: 8px; } }
a.product:hover { border-color: rgba(var(--accent-rgb), .55); translate: 0 -4px; box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), .45); }
.product__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(var(--accent-rgb), .12); color: var(--accent); transition: transform .5s var(--ease-out), background .3s, color .3s; }
.product__ico .ico { width: 22px; height: 22px; }
a.product:hover .product__ico { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: var(--ink); }
.product__go { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: background .35s, color .35s, border-color .35s, transform .45s var(--ease-out); }
.product__go .ico { width: 16px; height: 16px; }
a.product:hover .product__go { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(45deg); }
.product b { font: 600 19px/1.2 var(--font-head); letter-spacing: -.01em; }
.product small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.product__url { margin-top: auto; padding-top: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--accent); opacity: .85; transition: opacity .3s; }
a.product:hover .product__url { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.product__beam { position: absolute; z-index: -1; top: 0; left: -45%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(var(--accent-rgb), .13), transparent); transform: skewX(-15deg); animation: beamX 7s ease-in-out infinite; }
.products > li:nth-child(2) .product__beam { animation-delay: 1.75s; }
.products > li:nth-child(3) .product__beam { animation-delay: 3.5s; }
.products > li:nth-child(4) .product__beam { animation-delay: 5.25s; }
@keyframes beamX { 0%, 72% { left: -45%; } 100% { left: 125%; } }

.services { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.services li { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025); transition: background .3s, border-color .3s, color .3s; }
.services li:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.services--dx li { border-color: rgba(var(--accent-rgb), .28); }
.services--dx li:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
html.js .services li[data-reveal] { transform: translateY(14px) scale(.96); }
html.js .services li[data-reveal].in { transform: none; }

/* White Sketch */
.ws-intro { display: grid; gap: 30px; }
@media (min-width: 980px) { .ws-intro { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ws-intro .lead { margin-bottom: 24px; }
.ws-work { position: relative; margin-top: clamp(44px, 7vw, 88px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.ws-work::before { content: ''; position: absolute; top: -1px; left: 0; width: 180px; height: 1px; background: linear-gradient(90deg, var(--accent-2), transparent); }
.ws-work__head { display: flex; gap: 18px; align-items: center; }
.ws-work__badge { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a0a0a; }
.ws-work__badge::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); animation: ring 2.4s ease-out infinite; }
.ws-work__badge .ico { margin-left: 3px; }
.ws-work__title { font: 700 clamp(28px, 4vw, 46px)/1.05 var(--font-head); letter-spacing: -.03em; }
.ws-work__head .muted { margin-top: 6px; color: var(--muted); max-width: 60ch; }

/* ---------- Showcase: showreel + film strips (no filters, no counts) ---------- */

/* showreel: one big video + the formats the studio produces */
.reel { display: grid; gap: 22px; margin-top: 34px; align-items: center; }
@media (min-width: 980px) {
  .reel { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 44px; }
  .reel--vertical { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
}
.work--reel .work__media { border-radius: 24px; }
.work--reel .work__title { font-size: clamp(18px, 2vw, 26px); }
.work--reel .work__play { width: 76px; height: 76px; margin: -38px; background: var(--accent); color: var(--ink); border-color: var(--accent); }
.work--reel .work__play .ico { width: 24px; height: 24px; }
.work--reel .work__play::before { opacity: 1; border-color: rgba(var(--accent-rgb), .7); animation: ring 2.2s ease-out infinite; }
.reel__side { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.reel__live { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reel__title { margin: 12px 0 0; font: 700 clamp(24px, 2.6vw, 34px)/1.12 var(--font-head); letter-spacing: -.03em; text-wrap: balance; }
.reel__desc { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.reel__side .sub-label { margin-top: 26px; }
.fmt-list { display: flex; flex-wrap: wrap; gap: 4px 0; font: 600 clamp(17px, 1.7vw, 21px)/1.5 var(--font-head); letter-spacing: -.015em; color: #c4ccc8; }
.fmt-list li { display: inline-flex; align-items: center; transition: color .3s; }
.fmt-list li:not(:last-child)::after { content: '/'; margin: 0 12px; font-weight: 400; color: rgba(var(--accent-rgb), .55); }
.fmt-list li:hover { color: #fff; }
html.js .fmt-list li[data-reveal] { transform: translateY(10px); }
html.js .fmt-list li[data-reveal].in { transform: none; }

/* film strip: cards share one height, the row fills the width, extra cards scroll */
.strip-block { margin-top: clamp(40px, 5vw, 60px); }
.strip-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.strip-head h4 { margin: 0; flex: none; font: 600 20px/1.2 var(--font-head); letter-spacing: -.01em; }
.strip-head__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.strip-nav { display: flex; gap: 8px; flex: none; }
.strip-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.strip-btn:hover:not(:disabled) { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.strip-btn:disabled { opacity: .3; cursor: default; }
.strip {
  --h: 300px; position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -16px; padding: 14px 16px 22px; scroll-padding-inline: 16px; overscroll-behavior-x: contain;
}
@media (min-width: 768px) { .strip { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: 6px; }
.strip.is-scrollable { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.strip.is-scrollable.at-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent 100%); }
.strip.is-scrollable.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px); mask-image: linear-gradient(90deg, transparent 0, #000 64px); }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .work { pointer-events: none; }
.strip__track { display: flex; align-items: center; gap: 14px; width: max-content; margin-inline: auto; }
@media (min-width: 1024px) { .strip__track { gap: 16px; } }
.strip .work { flex: none; scroll-snap-align: start; }
.strip .work--vertical { width: calc(var(--h) * 9 / 16); }
.strip .work--horizontal { width: min(calc(var(--h) * 16 / 9), calc(100vw - 64px)); }
/* phones: every card in a strip gets the same height, so the row reads as one clean filmstrip
   (wide videos show a centred crop here and play in full 16:9 when opened) */
@media (max-width: 759px) {
  .strip { --h: 300px; }
  .strip__track { align-items: stretch; }
  .strip .work--vertical { width: calc(var(--h) * 9 / 16); }
  .strip .work--horizontal { width: min(calc(100vw - 72px), 360px); }
  .strip .work--horizontal .work__media { aspect-ratio: auto; height: var(--h); }
}

/* one or two extra videos sit beside the showreel */
.reel__more-label { margin-top: 26px; }
.strip.strip--mini { --h: 210px; margin: 0; padding: 4px 0 10px; width: 100%; -webkit-mask-image: none; mask-image: none; }
.strip--mini .strip__track { margin-inline: 0; gap: 12px; }
.strip--mini .work__title { font-size: 14px; }
.strip--mini .work--vertical .work__tag { display: none; }
.strip--mini .work__play { width: 46px; height: 46px; margin: -23px; }
@media (max-width: 759px) { .strip.strip--mini { --h: 240px; } }

/* creative concepts sit in the same row as studio work, marked with a gold "Concept" tag */
.work.work--concept:hover .work__media { border-color: rgba(var(--accent-2-rgb), .55); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(var(--accent-2-rgb), .5); }
.work.work--concept:hover .work__play { background: var(--accent-2); border-color: var(--accent-2); }
.work.work--concept:hover .work__play::before { border-color: var(--accent-2); }
.concept-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--dim); max-width: 100ch; }
.concept-note__tag { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1d1806; background: var(--accent-2); }
.concept-note__tag .ico { width: 10px; height: 10px; }
.concept-note > span:last-child { flex: 1 1 260px; min-width: 0; }
.reel + .concept-note { margin-top: 26px; }

.work { position: relative; display: block; width: 100%; border-radius: 18px; --rx: 0deg; --ry: 0deg; }
.work__media {
  position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease-out), border-color .4s, box-shadow .4s;
}
.work--vertical .work__media { aspect-ratio: 9 / 16; }
.work:hover .work__media { border-color: rgba(var(--accent-rgb), .5); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 40px -18px rgba(var(--accent-rgb), .55); }
.work__poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; overflow: hidden;
  background: radial-gradient(110% 70% at 15% 0%, var(--g2) 0%, transparent 55%), linear-gradient(165deg, var(--g1), #050706 85%);
}
.work__poster::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px); }
.work__poster-brand { position: relative; font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .65; }
.work__poster-cat { position: relative; font: 700 clamp(26px, 4vw, 44px)/.95 var(--font-head); letter-spacing: -.04em; color: rgba(255, 255, 255, .12); }
.work .work__poster { justify-content: center; }
.work--vertical .work__poster-cat { font-size: clamp(24px, 3.4vw, 34px); margin-top: -40%; }
.stack .work__poster-cat { align-self: flex-end; text-align: right; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.4s var(--ease-out); }
.work img.is-loaded { opacity: 1; }
.work img.is-broken, .stack img.is-broken { display: none; }
.work:hover img { transform: scale(1.1); }
.work__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .25) 42%, transparent 68%); }
.work__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .45s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.work--vertical .work__play { width: 50px; height: 50px; margin: -25px; }
.work__play .ico { margin-left: 3px; }
.work__play::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); opacity: 0; }
.work:hover .work__play { transform: scale(1.12); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.work:hover .work__play::before { animation: ring 1.6s ease-out infinite; border-color: var(--accent); }
.work__info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.work--vertical .work__info { padding: 12px; }
.work__tag { position: absolute; z-index: 2; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work__title { font: 600 17px/1.25 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.work--vertical .work__title { font-size: 14.5px; }
.work__tag--concept { display: inline-flex; align-items: center; gap: 5px; color: #1d1806; background: var(--accent-2); border-color: var(--accent-2); }
.work__tag--concept .ico { width: 11px; height: 11px; }
.work__label { font-size: 12px; color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; gap: 6px; }
.work__label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.work__glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 42%); }
.work:hover .work__glare { opacity: 1; }
.empty { margin-top: 40px; padding: 32px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }

/* ---------- Clients ---------- */
.clients { overflow: clip; }
.clients__glow { position: absolute; left: 50%; top: 0; width: 900px; height: 520px; translate: -50% -30%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .1), transparent); }
.clients__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.clients__title { margin-inline: auto; max-width: 20ch; }
.clients__lead { margin-inline: auto; max-width: 52ch; }
/* flex-wrap + centre: an unfinished last row sits in the middle instead of leaving empty slots */
.logos { --cols: 2; --gap: 12px; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: clamp(32px, 5vw, 52px); }
@media (min-width: 620px) { .logos { --cols: 3; --gap: 14px; } }
@media (min-width: 900px) { .logos { --cols: 4; } }
@media (min-width: 1140px) { .logos { --cols: 5; --gap: 16px; } }
.logos > li { display: flex; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.logo-tile {
  position: relative; overflow: hidden; flex: 1; display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 18px 22px;
  border-radius: 18px; background: #f3f5f4; border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.logo-tile::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); transform: translateX(-120%); }
.in > .logo-tile::after { animation: tileSheen 1.3s var(--ease) calc(var(--d, 0ms) + .25s) 1 both; }
@keyframes tileSheen { to { transform: translateX(120%); } }
.logo-tile img { width: 100%; height: 100%; max-height: 72px; object-fit: contain; transition: filter .4s, opacity .4s, transform .5s var(--ease-out); }
.logo-tile__name { display: none; font: 700 clamp(15px, 1.6vw, 18px)/1.2 var(--font-head); letter-spacing: -.01em; color: #1a1f1d; text-align: center; text-wrap: balance; }
.logo-tile--text .logo-tile__name { display: inline-flex; align-items: center; gap: 8px; }
.logo-tile--sample { background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); box-shadow: none; }
.logo-tile--sample .logo-tile__name { color: var(--dim); font-weight: 600; font-size: 14px; }
.logo-tile--sample .logo-tile__name .ico { width: 14px; height: 14px; color: var(--accent); opacity: .6; }
.logo-tile--sample::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .logo-tile img { filter: grayscale(1); opacity: .72; }
  .logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.05); }
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(var(--accent-rgb), .5); }
.logo-tile--sample:hover { transform: none; box-shadow: none; }

/* ---------- CTA ---------- */
.section--cta { padding-top: 24px; }
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; border-radius: 32px; border: 1px solid var(--line-2);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: radial-gradient(70% 90% at 50% 0%, rgba(var(--accent-rgb), .22), transparent 70%), linear-gradient(180deg, #0d1211, #080a09);
}
.cta__rays { position: absolute; z-index: -1; left: 50%; top: 0; width: 1600px; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(var(--accent-rgb), .09) 0 5deg, transparent 5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 52%); mask-image: radial-gradient(circle, #000 0%, transparent 52%); animation: spin 60s linear infinite; }
.cta__title { margin: 20px auto 16px; max-width: 14ch; font: 700 clamp(38px, 7vw, 88px)/1 var(--font-head); letter-spacing: -.045em; background: linear-gradient(100deg, #fff 0%, #fff 35%, var(--accent) 50%, #fff 65%, #fff 100%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.cta__ml { max-width: 36em; margin: 0 auto; color: #cfd8d3; font-size: clamp(16px, 1.8vw, 19px); }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 calc(42px + env(safe-area-inset-bottom)); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand b { display: block; font: 600 15px/1.2 var(--font-head); }
.footer__brand small { color: var(--muted); font-size: 13px; }
.footer__brand small a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.footer__brand small a:hover { color: var(--accent); }
.footer__copy { color: var(--dim); font-size: 13px; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .75); transform: translateY(140%) scale(.6); transition: transform .6s var(--ease-out); }
.fab-wa .ico { width: 28px; height: 28px; }
.fab-wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.fab-wa.is-visible { transform: none; }
body.modal-open .fab-wa { transform: translateY(140%) scale(.6); }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 4, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; opacity: 0; transform: translateY(30px) scale(.94); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.player { position: relative; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2), 0 0 80px -30px rgba(var(--accent-rgb), .5); }
.player--horizontal { width: min(92vw, 1180px, calc((100svh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; }
.player--vertical { height: min(calc(100svh - 200px), 820px, calc(92vw * 16 / 9)); aspect-ratio: 9 / 16; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__spin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.player__soon { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(0, 0, 0, .45); }
.player__soon b { font: 600 20px/1.2 var(--font-head); }
.player__soon span { color: var(--muted); font-size: 14px; }
.player .work__poster { z-index: 1; }
.modal__info { max-width: min(620px, 92vw); text-align: center; }
.modal__tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.modal__title { margin-top: 6px; font: 600 clamp(17px, 2.2vw, 22px)/1.3 var(--font-head); }
.modal__desc { margin-top: 6px; color: var(--muted); font-size: 14px; }
.modal__desc:empty { display: none; }
.modal__note { margin: 10px auto 0; max-width: 56ch; font-size: 11.5px; line-height: 1.5; color: var(--dim); }
.modal__close, .modal__nav { position: fixed; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); transition: background .3s, color .3s, transform .3s var(--ease); opacity: 0; }
.modal.is-open .modal__close, .modal.is-open .modal__nav { opacity: 1; transition-delay: .15s; }
.modal__close:hover, .modal__nav:hover { background: var(--accent); color: var(--ink); }
.modal__close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.modal__close:hover { transform: rotate(90deg); }
.modal__nav { top: 50%; margin-top: -24px; }
.modal__nav--prev { left: 14px; }
.modal__nav--next { right: 14px; }
@media (max-width: 760px) { .modal__nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; } .modal__nav--prev { left: calc(50% - 58px); } .modal__nav--next { right: calc(50% - 58px); } .player--horizontal { width: 94vw; } .player--vertical { height: min(calc(100svh - 230px), calc(94vw * 16 / 9)); } }
body.modal-open { overflow: hidden; }

/* ---------- misc keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- small screens: lighter motion ---------- */
@media (max-width: 760px) {
  .hero { gap: 36px; padding-top: 100px; }
  .hero__grid { animation-duration: 3.2s; }
  .hero__beams { display: none; }
  .aurora i:nth-child(1) { width: 620px; height: 620px; left: -300px; top: -260px; }
  .aurora i:nth-child(2) { width: 520px; height: 520px; right: -280px; }
  .stats { gap: 6px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .tape__track { animation: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}


/* =========================================================
   Dynexo official brand treatment: WHITE + DARK BLUE
   These overrides intentionally replace the old Digital Kerala
   Mission dark/green appearance while preserving layout and motion.
   ========================================================= */
html, body { background: #fff; color: #10213f; }
body { background: #fff; color: #10213f; }
.intro { background: #102b55; }
.site-header.is-scrolled { background: rgba(255,255,255,.92); border-color: rgba(15,41,82,.12); box-shadow: 0 8px 28px rgba(15,41,82,.06); }
.brand__text, .nav a, .site-header, .site-header button { color: #10213f; }
.brand__text small, .nav { color: #53647e; }
.btn--primary, .btn--wa { background: #174ea6; color: #fff; }
.btn--primary:hover, .btn--wa:hover { background: #0f397d; color: #fff; }
.btn__play { background: #102b55; color: #fff; }
.hero { background: #fff; }
.hero__grid { background-image: linear-gradient(rgba(23,78,166,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23,78,166,.07) 1px, transparent 1px); }
.hero__title, .h2, .co-head__name, .reel__title, .strip-head h4, .product b, .footer__brand b { color: #10213f; }
.hero__title em, .h2 em { background: linear-gradient(100deg, #174ea6 0%, #3b82f6 45%, #102b55 75%, #2563eb 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__ml { color: #263b5c; }
.eyebrow { color: #344968; background: #f4f7fc; border-color: rgba(23,78,166,.18); }
.for-pill { color: #174ea6; background: #eff5ff; border-color: rgba(23,78,166,.2); }
.for-pill strong { color: #10213f; }
.initiative__label, .co-head__tag, .fmt-list { color: #53647e; }
.initiative__amp, .co-head__tag em { color: #2563eb; }
.co-chip { background: #fff; color: #10213f; border-color: rgba(15,41,82,.16); box-shadow: 0 6px 20px rgba(15,41,82,.05); }
.co-chip__ico { background: #eaf1ff; color: #174ea6; }
.co-chip__ico--ws { background: #eaf1ff; color: #174ea6; }
.fx-dots { background-image: radial-gradient(rgba(23,78,166,.13) 1px, transparent 1.2px); }
.co--dx::before, .co--ws::before { background: radial-gradient(45% 40% at 92% 8%, rgba(37,99,235,.06), transparent 70%); }
.co-head__tag em { color: #2563eb; }
.dx-stat, .product, .chatw, .float-chip { background: #fff; color: #10213f; border-color: rgba(15,41,82,.12); box-shadow: 0 12px 34px rgba(15,41,82,.07); }
.product { background: linear-gradient(180deg, #fff, #f7f9fd); }
.product small, .dx-stat p, .chatw__head small, .chatw__head b { color: #53647e; }
.chatw__head { border-color: rgba(15,41,82,.12); }
.bubble--in, .typing { background: #edf3ff; color: #203858; }
.bubble--out { background: #174ea6; color: #fff; }
.typing i { background: #53647e; }
.ring__bg { stroke: rgba(23,78,166,.12); }
.tape__band--1 { background: #102b55; color: #fff; }
.tape__band--2 { background: #f4f7fc; border-color: rgba(15,41,82,.12); }
.tape__band--2 .tape__item { -webkit-text-stroke-color: rgba(16,43,85,.28); }
.tape__band--2 .tape__item::after { color: #174ea6; }
.section { background-color: transparent; }
.co-head__tag, .lead, .hero__lead, .reel__desc, .ws-work__head .muted { color: #53647e; }
.dx-stat, .products .product, .services li, .strip-btn { border-color: rgba(15,41,82,.14); }
.services li { background: #f7f9fd; color: #263b5c; }
.services li:hover, .services--dx li:hover { background: #174ea6; color: #fff; border-color: #174ea6; }
.ws-work { border-color: rgba(15,41,82,.12); }
.ws-work__badge { background: #174ea6; color: #fff; }
.ws-work__badge::before { border-color: rgba(23,78,166,.28); }
.fmt-list li:hover { color: #174ea6; }
.strip-btn { background: #fff; color: #174ea6; }
.strip-btn:hover:not(:disabled) { background: #174ea6; color: #fff; }
.logo-tile--sample { background: #f7f9fd; }
.logo-tile__name { color: #10213f; }
.cta { background: radial-gradient(70% 90% at 50% 0%, rgba(37,99,235,.12), transparent 70%), linear-gradient(180deg, #f7f9fd, #edf3ff); border-color: rgba(23,78,166,.16); }
.cta__title { background: linear-gradient(100deg, #102b55 0%, #174ea6 42%, #3b82f6 58%, #102b55 100%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta__ml { color: #53647e; }
.footer { background: #fff; border-color: rgba(15,41,82,.12); }
.footer__copy { color: #718096; }
.footer__brand small a { color: #174ea6; }
.fab-wa { background: #174ea6; color: #fff; box-shadow: 0 14px 34px -10px rgba(23,78,166,.35); }
.fab-wa::before { border-color: #174ea6; }
.modal__backdrop { background: rgba(8,20,42,.88); }
.modal__close, .modal__nav { color: #fff; }

/* Media itself remains dark for correct video contrast. */
.player, .player iframe, .player video, .work__media, .work__poster { background-color: #08162d; }
