/* ── خط ثمانية — self-hosted (official woff2 from font.thmanyah.com) ── */
@font-face { font-family: "Thmanyah"; src: url("fonts/ThmanyahSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("fonts/ThmanyahSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("fonts/ThmanyahSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("fonts/ThmanyahSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah"; src: url("fonts/ThmanyahSans-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

/* ══════════════════════════════════════════════════════════════════
   RIO Event Management — identity v2
   Primary: Rio Blue #00BFFF · Secondary: Violet #6A5ACD, Indigo #4B0082
   Accents: Pink #FF69B4, Gold #FFD700 · Ground: Midnight #12082E
   ══════════════════════════════════════════════════════════════════ */
:root {
  /* brand */
  --blue: #00BFFF;
  --blue-deep: #0091C4;
  --ice: #8FE3FF;
  --violet: #6A5ACD;
  --indigo: #4B0082;
  --pink: #FF69B4;
  --gold: #FFD700;
  /* ground + neutrals (violet-biased, never pure grey) */
  --midnight: #12082E;
  --midnight-2: #1B0F44;
  --surface: #241457;
  --line: #3A2273;
  --ink: #1A1040;
  --muted: #6F6795;
  --lavender: #F7F5FF;
  --lavender-2: #EDE8FF;
  --border: #E4DEF9;
  --body-dark: #EFEBFF;
  --dim: #C7BDEB;
  --white: #fff;
  /* signature */
  --spectrum: linear-gradient(90deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  --spectrum-135: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--pink));
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1240px;
  --shadow: 0 18px 50px rgba(11, 4, 32, .45);
  --shadow-light: 0 16px 40px rgba(26, 16, 64, .10);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Thmanyah", "Alexandria", "Cairo", system-ui, sans-serif;
  background: var(--midnight); color: var(--body-dark);
  line-height: 1.8; letter-spacing: normal; direction: rtl;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--max), 92%); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── ambient gradient mesh ─────────────────────────────────────── */
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: .55; will-change: transform;
}
.mesh .b1 { width: 46vw; height: 46vw; background: var(--blue);   top: -12vw; inset-inline-end: -8vw; animation: drift1 26s ease-in-out infinite; }
.mesh .b2 { width: 42vw; height: 42vw; background: var(--violet); bottom: -14vw; inset-inline-start: -10vw; animation: drift2 32s ease-in-out infinite; }
.mesh .b3 { width: 34vw; height: 34vw; background: var(--pink);   top: 42%; inset-inline-start: 38%; opacity: .32; animation: drift3 38s ease-in-out infinite; }
.mesh .b4 { width: 30vw; height: 30vw; background: var(--indigo); top: 8%; inset-inline-start: 8%; opacity: .5; animation: drift2 44s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-6vw, 5vw, 0) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(7vw, -6vw, 0) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(-8vw,-4vw,0) scale(1.2); } 66% { transform: translate3d(5vw,6vw,0) scale(.9); } }
.page { position: relative; z-index: 1; }

/* cursor spotlight (fine pointers only) */
.spot { position: fixed; z-index: 2; width: 460px; height: 460px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0,191,255,.16), rgba(106,90,205,.07) 45%, transparent 70%);
  transform: translate3d(-50%, -50%, 0); opacity: 0; transition: opacity .4s; }
@media (pointer: fine) { .spot.on { opacity: 1; } }

/* scroll progress */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; background: var(--spectrum);
  transform: scaleX(0); transform-origin: right center; }

/* ── typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; color: var(--white); text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem;
  color: var(--ice); margin-bottom: 14px; letter-spacing: .02em; }
.kicker::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--spectrum); }
.lead { color: var(--dim); font-size: 1.06rem; max-width: 68ch; }
.grad-text { display: inline-block; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% 100%; animation: shift 9s linear infinite; }
@keyframes shift { to { background-position: 220% 0; } }

/* ── sections ──────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.light { background: var(--lavender); color: var(--ink); }
.section.light h2, .section.light h3, .section.light h4 { color: var(--ink); }
.section.light .kicker { color: var(--violet); }
.section.light .lead { color: var(--muted); }
.section.glass { background: rgba(18, 8, 46, .55); backdrop-filter: blur(6px); }

/* ── buttons ───────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  border-radius: 999px; font-weight: 700; font-family: inherit; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
  will-change: transform; }
.btn-primary { background: var(--spectrum); background-size: 200% 100%; color: #0B0524;
  box-shadow: 0 10px 30px rgba(0, 191, 255, .3); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px rgba(255, 105, 180, .34); }
.btn-ghost { border-color: rgba(199, 189, 235, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--blue); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(-5px); }

/* ── icons ─────────────────────────────────────────────────────── */
.icon { width: 22px; height: 22px; stroke-width: 1.7; flex: none; }
.icon-circle { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  color: var(--blue); background: rgba(0, 191, 255, .12); border: 1px solid rgba(0, 191, 255, .22);
  margin-bottom: 18px; transition: .35s var(--ease); }
.icon-circle .icon { width: 26px; height: 26px; }
.light .icon-circle { background: rgba(106, 90, 205, .1); border-color: rgba(106, 90, 205, .2); color: var(--violet); }
.card:hover .icon-circle { transform: translateY(-3px) rotate(-6deg); background: var(--spectrum-135); color: #fff; border-color: transparent; }

/* ── header ────────────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent; }
.header.stuck { background: rgba(18, 8, 46, .82); backdrop-filter: blur(16px); border-color: rgba(199, 189, 235, .12); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 20px; }
.nav .brand img { height: 44px; transition: transform .35s var(--ease); }
.nav .brand:hover img { transform: scale(1.06); }
.nav ul { display: flex; gap: 8px; list-style: none; }
.nav ul a { position: relative; display: block; padding: 8px 14px; border-radius: 999px; color: var(--dim);
  font-weight: 600; font-size: .96rem; transition: color .25s, background .25s; }
.nav ul a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--spectrum); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav ul a:hover { color: var(--white); }
.nav ul a:hover::after, .nav ul a.active::after { transform: scaleX(1); }
.nav ul a.active { color: var(--white); }
.nav .btn { padding: 10px 22px; font-size: .94rem; }
.burger { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(199,189,235,.2);
  border-radius: 12px; color: #fff; width: 46px; height: 46px; cursor: pointer; }
@media (max-width: 1000px) {
  .nav ul { position: fixed; inset: 82px 0 auto 0; background: rgba(18, 8, 46, .97); backdrop-filter: blur(18px);
    flex-direction: column; padding: 18px 6% 26px; gap: 6px; display: none; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 12px 8px; font-size: 1.05rem; }
  .nav .cta { display: none; }
  .burger { display: grid; place-items: center; }
}

/* ── hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(60px, 8vw, 96px) 0 clamp(60px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.12; margin: 6px 0 18px; }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
.hero p.lead { font-size: 1.14rem; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .fade-up { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* floating collage */
.collage { position: relative; height: clamp(380px, 44vw, 560px); }
.collage figure { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(199, 189, 235, .16); will-change: transform; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { width: 62%; height: 58%; top: 0; inset-inline-end: 0; animation: float1 9s ease-in-out infinite; }
.collage .c2 { width: 52%; height: 46%; bottom: 4%; inset-inline-start: 2%; animation: float2 11s ease-in-out infinite; }
.collage .c3 { width: 40%; height: 34%; top: 40%; inset-inline-end: 8%; animation: float3 13s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-16px) rotate(.6deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(1.6deg); } 50% { transform: translateY(-13px) rotate(-.8deg); } }
@keyframes float3 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(14px) rotate(1deg); } }
.collage .badge { position: absolute; z-index: 4; inset-inline-start: 0; top: 2%; display: flex; align-items: center; gap: 10px;
  background: rgba(36, 20, 87, .9); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: .9rem; color: #fff; backdrop-filter: blur(8px); animation: float2 10s ease-in-out infinite; }
.collage .badge b { color: var(--gold); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(0,191,255,.7);
  animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(0,191,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,191,255,0); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: rgba(36, 20, 87, .5); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; backdrop-filter: blur(8px); transition: .35s var(--ease); }
.stat:hover { transform: translateY(-4px); border-color: var(--blue); }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.2; margin-bottom: 4px;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--dim); font-size: .88rem; }

/* ── marquee ───────────────────────────────────────────────────── */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(18,8,46,.6); }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: slide 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(50%); } }
.marquee__track span { display: inline-flex; align-items: center; gap: 16px; font-weight: 800; font-size: 1.15rem;
  color: var(--dim); white-space: nowrap; }
.marquee__track span i { width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum); flex: none; }
.marquee.alt .marquee__track { animation-duration: 40s; animation-direction: reverse; }

/* ── cards / grids ─────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: rgba(36, 20, 87, .45); border: 1px solid var(--line); backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0,191,255,.16), transparent 60%); }
.card:hover { transform: translateY(-6px); border-color: rgba(0, 191, 255, .55); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: .97rem; }
.light .card { background: #fff; border-color: var(--border); box-shadow: var(--shadow-light); }
.light .card p { color: var(--muted); }
.light .card:hover { border-color: var(--violet); }
.light .card::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(106,90,205,.1), transparent 60%); }
.num { font-weight: 900; font-size: .95rem; margin-bottom: 8px; background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── split blocks ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split .media { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.split .media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.split .media:hover img { transform: scale(1.05); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; background: rgba(0, 191, 255, .1); color: var(--ice);
  border: 1px solid rgba(0, 191, 255, .22); transition: .3s var(--ease); }
.chip:hover { transform: translateY(-2px); background: var(--spectrum-135); color: #0B0524; border-color: transparent; }
.light .chip { background: rgba(106, 90, 205, .1); color: var(--violet); border-color: rgba(106, 90, 205, .22); }
.light .chip:hover { color: #fff; }

/* ── sticky showcase (services) ────────────────────────────────── */
.showcase { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: start; margin-top: 40px; }
@media (max-width: 940px) { .showcase { grid-template-columns: 1fr; } }
.showcase__media { position: sticky; top: 120px; border-radius: 26px; overflow: hidden; aspect-ratio: 4/3;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 940px) { .showcase__media { display: none; } }
.showcase__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.showcase__media img.on { opacity: 1; transform: scale(1); }
.showcase__media .veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,8,46,.75), rgba(18,8,46,.05)); }
.showcase__media .cap { position: absolute; inset-inline: 24px; bottom: 22px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.showcase__list { display: flex; flex-direction: column; gap: 14px; }
.sitem { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(36, 20, 87, .35); transition: .45s var(--ease); cursor: pointer; }
.sitem .head { display: flex; align-items: center; gap: 14px; }
.sitem .head .icon { color: var(--dim); transition: color .35s; }
.sitem h3 { font-size: 1.1rem; }
.sitem p { color: var(--dim); font-size: .95rem; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.sitem.on { background: rgba(36, 20, 87, .8); border-color: var(--blue); }
.sitem.on .head .icon { color: var(--blue); }
.sitem.on p { max-height: 120px; opacity: 1; margin-top: 10px; }
.sitem .bar { height: 2px; border-radius: 2px; background: var(--spectrum); transform: scaleX(0);
  transform-origin: right; transition: transform .6s var(--ease); margin-top: 14px; }
.sitem.on .bar { transform: scaleX(1); }

/* ── photo service cards ───────────────────────────────────────── */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  display: flex; align-items: flex-end; color: #fff; transition: transform .45s var(--ease); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease); }
.photo-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(18,8,46,.96) 0%, rgba(18,8,46,.45) 55%, rgba(75,0,130,.18) 100%); }
.photo-card:hover { transform: translateY(-6px); }
.photo-card:hover img { transform: scale(1.09); }
.photo-card .body { position: relative; z-index: 1; padding: 26px; }
.photo-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.photo-card p { color: var(--dim); font-size: .93rem; }
.photo-card .icon-circle { background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.2);
  color: var(--ice); width: 46px; height: 46px; margin-bottom: 12px; }

/* ── process ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

/* ── works ─────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.filters button { font-family: inherit; font-weight: 700; cursor: pointer; padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--dim); transition: .3s var(--ease); }
.filters button:hover { color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.filters button.active { background: var(--spectrum); border-color: transparent; color: #0B0524; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .works { grid-template-columns: 1fr; } }
.work { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: rgba(36, 20, 87, .45); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .4s, box-shadow .4s, opacity .4s; }
.work:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--shadow); }
.work__img { position: relative; overflow: hidden; }
.work img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .9s var(--ease); }
.work:hover img { transform: scale(1.07); }
.work__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,8,46,.6), transparent 55%); }
.work .zoom { position: absolute; z-index: 2; inset-block-start: 14px; inset-inline-start: 14px; width: 40px; height: 40px;
  border-radius: 12px; display: grid; place-items: center; background: rgba(18,8,46,.75); color: var(--ice);
  border: 1px solid var(--line); opacity: 0; transform: scale(.8); transition: .35s var(--ease); }
.work:hover .zoom { opacity: 1; transform: scale(1); }
.work .meta { padding: 18px 20px 22px; }
.work .meta small { color: var(--ice); font-weight: 700; font-size: .84rem; }
.work .meta h3 { font-size: 1.05rem; margin: 5px 0 7px; }
.work .meta p { color: var(--dim); font-size: .9rem; }
.work.hidden { display: none; }
.masonry { columns: 4 230px; column-gap: 14px; margin-top: 30px; }
.masonry a { position: relative; display: block; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden;
  break-inside: avoid; border: 1px solid var(--line); }
.masonry img { transition: transform .7s var(--ease), filter .5s; }
.masonry a::after { content: ""; position: absolute; inset: 0; background: var(--spectrum-135); opacity: 0; mix-blend-mode: overlay; transition: opacity .4s; }
.masonry a:hover img { transform: scale(1.07); }
.masonry a:hover::after { opacity: .55; }
.masonry a.hidden { display: none; }

/* ── lightbox ──────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(9, 4, 26, .96); backdrop-filter: blur(10px); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 22px; }
.lightbox.open { display: flex; animation: fadeUp .35s var(--ease); }
.lightbox img { max-width: min(1120px, 94vw); max-height: 76vh; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox .cap { color: #fff; margin-top: 16px; font-weight: 700; text-align: center; }
.lightbox .cap small { color: var(--dim); display: block; font-weight: 400; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 22px; display: grid;
  place-items: center; transition: .3s var(--ease); }
.lightbox button:hover { background: var(--spectrum); color: #0B0524; border-color: transparent; }
.lightbox .close { top: 22px; inset-inline-start: 22px; }
.lightbox .prev { inset-inline-end: 22px; top: 50%; }
.lightbox .next { inset-inline-start: 22px; top: 50%; }
.lightbox .counter { position: absolute; top: 30px; inset-inline-end: 26px; color: var(--dim); font-weight: 700; }

/* ── clients ───────────────────────────────────────────────────── */
.clients-box { border-radius: 26px; padding: 34px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(36,20,87,.7), rgba(18,8,46,.7)); }
.clients-box img { margin: auto; filter: brightness(1.08); }

/* ── team ──────────────────────────────────────────────────────── */
.person { text-align: center; }
.person .avatar { width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 16px; display: grid; place-items: center;
  color: #fff; background: var(--spectrum-135); box-shadow: 0 12px 30px rgba(106, 90, 205, .35); }
.person .avatar .icon { width: 40px; height: 40px; }
.person b { display: block; font-size: 1.1rem; color: var(--ink); }
.person small { color: var(--violet); font-weight: 700; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.badge-iso { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border); font-weight: 700; color: var(--ink); font-size: .92rem;
  transition: .3s var(--ease); }
.badge-iso:hover { transform: translateY(-3px); border-color: var(--gold); }
.badge-iso .icon { color: var(--gold); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 10vw, 130px) 0;
  border-block: 1px solid var(--line); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(18,8,46,.92), rgba(75,0,130,.72) 50%, rgba(18,8,46,.9)); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band p { color: var(--dim); margin: 12px auto 28px; max-width: 62ch; }

/* ── contact ───────────────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
@media (max-width: 940px) { .contact-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-light); }
.form label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: .93rem; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--border);
  border-radius: 14px; font-family: inherit; font-size: 1rem; background: var(--lavender); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue);
  background: #fff; box-shadow: 0 0 0 4px rgba(0, 191, 255, .14); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .item .icon-circle { margin: 0; flex: none; }
.contact-info .item b { display: block; color: var(--ink); }
.contact-info .item span { color: var(--muted); }

/* ── footer ────────────────────────────────────────────────────── */
.footer { background: #0C0522; color: var(--dim); padding: 62px 0 26px; border-top: 1px solid var(--line); position: relative; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 940px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer .cols { grid-template-columns: 1fr; } }
.footer img.flogo { height: 50px; margin-bottom: 16px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer a { transition: color .25s; }
.footer a:hover { color: var(--blue); }
.footer .bottom { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .word > span { transform: none; } .hero .fade-up { opacity: 1; }
  .reveal { opacity: 1; transform: none; } .spot { display: none; }
}


/* ── hero collage v2 ───────────────────────────────────────────── */
.collage figure { border: 1px solid rgba(143,227,255,.22); box-shadow: 0 26px 60px rgba(9,4,26,.55); }
.collage figure::after { content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: linear-gradient(160deg, rgba(0,191,255,.16), transparent 42%, rgba(255,105,180,.14)); }
.collage figcaption { position:absolute; inset-inline:12px; bottom:12px; z-index:2; display:flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:999px; background:rgba(18,8,46,.72); backdrop-filter:blur(8px);
  border:1px solid rgba(199,189,235,.22); color:#fff; font-size:.82rem; font-weight:700; width:max-content; max-width:calc(100% - 24px); }
.collage figcaption i { width:7px; height:7px; border-radius:50%; background:var(--spectrum); flex:none; }
.collage .c1 { width: 62%; height: 54%; top: 0; inset-inline-end: 0; }
.collage .c2 { width: 52%; height: 43%; bottom: 7%; inset-inline-start: 0; }
.collage .c3 { width: 40%; height: 33%; bottom: 0; top: auto; inset-inline-end: 3%; }
.collage::after { content:""; position:absolute; inset-inline:14%; bottom:-6%; height:16%; z-index:-1;
  background: radial-gradient(ellipse at center, rgba(0,191,255,.28), transparent 70%); filter: blur(26px); }

/* ── work hover choreography ───────────────────────────────────── */
.work__img { position: relative; overflow: hidden; }
.work img { transition: transform 1.15s var(--ease), filter .6s var(--ease); }
.work:hover img { transform: scale(1.13) translate3d(-1%, -2%, 0); filter: saturate(1.16) contrast(1.06) brightness(1.04); }
.work .shine { position:absolute; inset:-20%; z-index:2; pointer-events:none; transform: translateX(-130%) rotate(8deg);
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.26) 50%, transparent 66%); }
.work:hover .shine { transform: translateX(130%) rotate(8deg); transition: transform 1s var(--ease); }
.work .peek { position:absolute; z-index:3; inset-inline-start: 16px; bottom: 16px; display:inline-flex; align-items:center; gap:8px;
  padding:10px 18px; border-radius:999px; background:var(--spectrum); color:#0B0524; font-weight:800; font-size:.86rem;
  opacity:0; transform: translateY(16px) scale(.94); transition:.45s var(--ease); box-shadow:0 10px 26px rgba(0,191,255,.35); }
.work .peek .icon { width:18px; height:18px; }
.work:hover .peek { opacity:1; transform:none; }
.work .count { position:absolute; z-index:3; inset-inline-end:14px; top:14px; padding:6px 12px; border-radius:999px;
  background:rgba(18,8,46,.78); border:1px solid var(--dark-line); color:var(--ice); font-weight:700; font-size:.78rem;
  opacity:0; transform: translateY(-10px); transition:.4s var(--ease); }
.work:hover .count { opacity:1; transform:none; }
.work .meta h3 { transition: color .35s; }
.work:hover .meta h3 { color: var(--ice); }
.masonry a img { transition: transform .9s var(--ease), filter .6s; }
.masonry a:hover img { transform: scale(1.1) rotate(.6deg); filter: saturate(1.14) contrast(1.05); }

/* ── team ──────────────────────────────────────────────────────── */
.people { display:grid; grid-template-columns: repeat(5, 1fr); gap:18px; margin-top:26px; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .people { grid-template-columns: repeat(2, 1fr); } }
.member { text-align:center; padding:0 0 18px; border-radius: var(--radius); background:#fff; border:1px solid var(--border);
  box-shadow: var(--shadow-light); overflow:hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.member:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 20px 44px rgba(26,16,64,.16); }
.member .shot { position:relative; overflow:hidden; }
.member img { width:100%; display:block; transition: transform .7s var(--ease); }
.member:hover img { transform: scale(1.05); }
.member b { display:block; margin-top:14px; font-size:1rem; color:var(--ink); }
.member small { color:var(--violet); font-weight:700; font-size:.84rem; }
.lead-row { display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
@media (max-width: 800px) { .lead-row { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════════════════════════════════
   RIO v3 — vibrant system: flat colour fields, the ribbon motif,
   and three-layer compositions (ground · art · type)
   ══════════════════════════════════════════════════════════════════ */
:root {
  --blue-bright: #38D6FF;
  --cream: #F4F1FF;
  --paper: #FFFFFF;
  --carbon: #0B0420;
  --block-r: 28px;
}

/* three-layer stack: ground → art → type */
.stack { position: relative; isolation: isolate; border-radius: var(--block-r); overflow: hidden; }
.stack__ground { position: absolute; inset: 0; z-index: 0; }
.stack__art { position: absolute; inset: 0; z-index: 1; }
.stack__art img { width: 100%; height: 100%; object-fit: cover; }
.stack__type { position: relative; z-index: 2; }
.stack--tall { min-height: clamp(340px, 40vw, 520px); display: flex; align-items: flex-end; }
.stack--tall .stack__type { padding: clamp(22px, 3vw, 40px); }

/* saturated colour fields */
.field-blue   { background: var(--blue); }
.field-violet { background: var(--violet); }
.field-indigo { background: var(--indigo); }
.field-pink   { background: var(--pink); }
.field-gold   { background: var(--gold); }
.field-mid    { background: var(--midnight); }
.field-cream  { background: var(--cream); }
.on-dark  { color: #fff; }
.on-light { color: var(--carbon); }

/* the ribbon motif — one continuous stroke, drawn from the logo's own curves */
.ribbon { position: absolute; pointer-events: none; z-index: 1; opacity: .95; }
.ribbon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ribbon--draw path { stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400); }
.ribbon--draw.in path { animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* colour-block band: oversized fields with a loop sweeping across */
.blocks { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 11vw, 150px); gap: 12px; position: relative; }
.blocks > * { border-radius: 20px; overflow: hidden; position: relative; display: grid; place-items: center; }
.blocks .w2 { grid-column: span 2; } .blocks .w3 { grid-column: span 3; } .blocks .w4 { grid-column: span 4; }
.blocks .h2 { grid-row: span 2; }
.blocks img { width: 100%; height: 100%; object-fit: cover; }
.blocks .tag { font-weight: 900; font-size: clamp(.95rem, 1.6vw, 1.5rem); letter-spacing: normal; text-align: center; padding: 10px; }
@media (max-width: 820px) { .blocks { grid-template-columns: repeat(2, 1fr); } .blocks .w3, .blocks .w4 { grid-column: span 2; } }

/* hero art — the click-to-play piece */
.heroart { position: relative; border-radius: 30px; overflow: hidden; cursor: pointer;
  box-shadow: 0 40px 90px rgba(9,4,26,.55); border: 1px solid rgba(143,227,255,.20); }
.heroart img.base { width: 100%; display: block; transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
.heroart .glowlayer { position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: .0;
  background: radial-gradient(circle at 50% 50%, rgba(0,191,255,.55), rgba(255,105,180,.25) 45%, transparent 70%);
  transition: opacity .8s var(--ease); mix-blend-mode: screen; }
.heroart.play .glowlayer { opacity: 1; }
.heroart.play img.base { transform: scale(1.06) rotate(-.6deg); filter: saturate(1.25) contrast(1.06); }
.heroart .hint { position: absolute; z-index: 3; inset-inline-start: 18px; bottom: 18px; display: inline-flex; align-items: center;
  gap: 9px; padding: 10px 18px; border-radius: 999px; background: rgba(18,8,46,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(199,189,235,.25); color: #fff; font-weight: 700; font-size: .84rem; transition: .4s var(--ease); }
.heroart:hover .hint { background: var(--spectrum); color: var(--carbon); border-color: transparent; }
.heroart .spark { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; pointer-events: none;
  background: var(--blue-bright); opacity: 0; }

/* section rhythm for the vibrant treatment */
.section.vivid { background: var(--cream); color: var(--carbon); }
.section.vivid h2, .section.vivid h3 { color: var(--carbon); }
.section.vivid .lead { color: #5B5480; }
.section.vivid .kicker { color: var(--violet); }
.bigtype { font-size: clamp(2rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.05; letter-spacing: normal; }

/* type layer that sits over art */
.overtype { text-shadow: 0 2px 26px rgba(9,4,26,.55); }
.overtype h3 { font-size: clamp(1.1rem, 2vw, 1.7rem); }


/* ══════════════════════════════════════════════════════════════════
   WHITE MODE — paper-first ground, colour used as accent and motif
   ══════════════════════════════════════════════════════════════════ */
body { background: var(--paper); color: var(--ink); }
.mesh i { opacity: .16; filter: blur(120px); }
.mesh .b3 { opacity: .12; } .mesh .b4 { opacity: .14; }
.spot { display: none; }

h1, h2, h3, h4 { color: var(--carbon); }
.lead { color: #5B5480; }
.kicker { color: var(--violet); }
.kicker::before { background: var(--spectrum); }

.header { background: rgba(255,255,255,.78); backdrop-filter: blur(14px); }
.header.stuck { background: rgba(255,255,255,.94); border-color: var(--border); box-shadow: 0 6px 24px rgba(26,16,64,.06); }
.nav ul a { color: #4A4470; }
.nav ul a:hover, .nav ul a.active { color: var(--carbon); }
.burger { background: var(--lavender); border-color: var(--border); color: var(--carbon); }
@media (max-width: 1000px) { .nav ul { background: rgba(255,255,255,.98); border-bottom-color: var(--border); } }

.section { background: var(--paper); }
.section.glass { background: var(--lavender); backdrop-filter: none; }
.section.light, .section.vivid { background: var(--lavender); color: var(--carbon); }
.section.ink { background: var(--midnight); }
.section.ink h2, .section.ink h3, .section.ink h4 { color: #fff; }
.section.ink .lead { color: var(--dim); }
.section.ink .kicker { color: var(--sky); }

/* hero on paper */
.hero { background: var(--paper); }
.hero h1 { color: var(--carbon); }
.hero p.lead { color: #5B5480; }
.btn-ghost { border-color: var(--border); color: var(--carbon); }
.btn-ghost:hover { background: var(--lavender); border-color: var(--violet); }
.stats { gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(26,16,64,.07); backdrop-filter: none; }
.stat span { color: var(--muted); }
.stat:hover { border-color: var(--violet); }

/* cards on paper */
.card { background: #fff; border-color: var(--border); box-shadow: 0 12px 30px rgba(26,16,64,.07); backdrop-filter: none; }
.card p { color: var(--muted); }
.card::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(106,90,205,.10), transparent 60%); }
.card:hover { border-color: var(--violet); box-shadow: 0 22px 48px rgba(26,16,64,.13); }
.icon-circle { background: var(--lavender); border-color: var(--border); color: var(--violet); }
.chip { background: var(--lavender); color: var(--violet); border-color: var(--border); }
.marquee { background: var(--lavender); border-color: var(--border); }
.marquee__track span { color: #6C64A0; }

/* showcase + service items */
.sitem { background: #fff; border-color: var(--border); }
.sitem h3 { color: var(--carbon); }
.sitem p { color: var(--muted); }
.sitem .head .icon { color: var(--muted); }
.sitem.on { background: var(--lavender); border-color: var(--violet); }
.sitem.on .head .icon { color: var(--violet); }
.showcase__media { border-color: var(--border); }

/* works on paper */
.filters button { border-color: var(--border); color: #5B5480; }
.filters button:hover { color: var(--carbon); border-color: var(--violet); }
.work { background: #fff; border-color: var(--border); box-shadow: 0 12px 30px rgba(26,16,64,.07); }
.work:hover { border-color: var(--violet); box-shadow: 0 24px 52px rgba(26,16,64,.15); }
.work .meta small { color: var(--violet); }
.work .meta h3 { color: var(--carbon); }
.work:hover .meta h3 { color: var(--violet); }
.work .meta p { color: var(--muted); }
.masonry a { border-color: var(--border); }
.clients-box { background: var(--midnight); border-color: var(--midnight); }
.contact-info .item span { color: var(--muted); }
.form { background: #fff; }
.footer { background: var(--midnight); }

/* the squiggle motif — one continuous stroke, used sparingly */
.sq { position: absolute; pointer-events: none; z-index: 0; opacity: .9; }
.sq img { width: 100%; height: auto; display: block; }
.sq--tr { top: -6%; inset-inline-end: -4%; width: clamp(180px, 22vw, 340px); transform: rotate(8deg); }
.sq--bl { bottom: -8%; inset-inline-start: -5%; width: clamp(200px, 26vw, 400px); transform: rotate(-12deg); }
.sq--mid { top: 18%; inset-inline-start: 42%; width: clamp(160px, 18vw, 280px); }
.section, .hero { position: relative; overflow: hidden; }
.container { position: relative; z-index: 1; }

/* ── redesigned identity band: three calm frames, one stroke ───── */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 900px) { .frames { grid-template-columns: 1fr; } }
.frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end;
  box-shadow: 0 18px 44px rgba(26,16,64,.14); transition: transform .5s var(--ease), box-shadow .5s; }
.frame:hover { transform: translateY(-8px); box-shadow: 0 30px 66px rgba(26,16,64,.22); }
.frame img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.frame:hover img.shot { transform: scale(1.07); }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,4,32,.86) 0%, rgba(11,4,32,.25) 52%, transparent 78%); }
.frame .stroke { position: absolute; z-index: 2; inset-inline-end: -12%; top: -10%; width: 78%; opacity: .95; }
.frame .cap { position: relative; z-index: 3; padding: 26px; color: #fff; }
.frame .cap b { display: block; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 900; margin-bottom: 6px; }
.frame .cap span { color: var(--dim); font-size: .92rem; }
.frame .num { position: absolute; z-index: 3; top: 20px; inset-inline-start: 22px; font-size: .82rem; font-weight: 800;
  color: #fff; background: rgba(11,4,32,.55); border: 1px solid rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; }

/* big statement type on paper */
.statement { font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.12; color: var(--carbon); }
.statement em { font-style: normal; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 900px) {
  .sq { opacity: .55; }
  .sq--tr { width: clamp(120px, 30vw, 200px); top: -2%; }
  .sq--bl { width: clamp(130px, 34vw, 220px); bottom: -3%; }
  .hero .sq--tr { top: 2%; inset-inline-end: -8%; }
}


/* ══════════════════════════════════════════════════════════════════
   v5 — الخط الواحد: أهدأ، أبيض أكثر، بطاقات مدوّرة وحبّات تسمية
   ══════════════════════════════════════════════════════════════════ */
.mesh { display: none; }
body { background: var(--paper); }
h1, h2, h3, h4 { letter-spacing: normal; }

/* one big cropped stroke per section instead of scattered squiggles */
.sq { opacity: 1; z-index: 0; }
.sq--tr, .sq--bl, .sq--mid { width: clamp(420px, 58vw, 900px); transform: none; }
.sq--tr { top: auto; bottom: -6%; inset-inline-end: -12%; }
.sq--bl { bottom: -10%; inset-inline-start: -14%; }
@media (max-width: 900px) { .sq { opacity: .7; } }

/* pill tag — the section label */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  background: var(--lavender-2); color: var(--violet); font-weight: 700; font-size: .86rem; margin-bottom: 16px; }
.section.ink .pill { background: rgba(255,255,255,.14); color: #fff; }

/* flat rounded cards with the circular outward button */
.card { border-radius: 22px; }
.card--flat { border: 0; box-shadow: none; color: var(--carbon); }
.card--flat p { color: inherit; opacity: .82; }
.card--flat h3 { color: inherit; }
.card--blue { background: var(--blue); }
.card--violet { background: var(--violet); color: #fff; }
.card--gold { background: var(--gold); }
.card--mist { background: var(--lavender); }
.card--flat .icon-circle { background: transparent; border: 0; color: inherit; width: auto; height: auto; margin-bottom: 14px; }
.card--flat .icon-circle .icon { width: 30px; height: 30px; }
.go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; margin-top: 18px; transition: .3s var(--ease); }
.card--flat:hover .go { background: currentColor; }
.card--flat:hover .go .icon { color: #fff; }
.card--violet:hover .go .icon { color: var(--violet); }

/* hairline list — the index device */
.hairlist { margin-top: 26px; border-top: 1px solid var(--border); }
.hairlist .row { display: grid; grid-template-columns: 3rem 1fr 1.2fr; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border); }
.hairlist .row b { color: var(--blue); font-weight: 800; font-size: .95rem; }
.hairlist .row h3 { font-size: 1.12rem; color: var(--carbon); }
.hairlist .row span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .hairlist .row { grid-template-columns: 2.4rem 1fr; } .hairlist .row span { display: none; } }

/* calmer sections */
.section.glass { background: var(--paper); }
.section.light, .section.vivid { background: var(--lavender); }
.frame::after { background: linear-gradient(0deg, rgba(11,4,32,.82) 0%, rgba(11,4,32,.18) 55%, transparent 80%); }
.hero { padding-block: clamp(48px, 6vw, 84px); }
.btn-primary { background: var(--blue); color: var(--carbon); box-shadow: none; }
.btn-primary:hover { background: var(--violet); color: #fff; }
.stat { border-radius: 18px; }
.work { border-radius: 22px; }
.photo-card { border-radius: 22px; }

/* team grid — hero-style portraits */
.people { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .people { grid-template-columns: repeat(2, 1fr); } }
.member { padding-bottom: 16px; border-radius: 20px; overflow: hidden; }
.member .shot { border-radius: 0; background: var(--lavender); aspect-ratio: 1/1; }
.member .shot img { width: 100%; height: 100%; object-fit: cover; }
.member::after { content:""; display:block; height:3px; margin:0 auto; width:0;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  transition: width .45s var(--ease); border-radius:3px; }
.member:hover::after { width: 64%; }
.member b { margin-top: 12px; font-size: .95rem; }
.member small { font-size: .78rem; }

/* ── hero: sketch → reality evolution ─────────────────────────────────────── */
.heroart--evo { position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(26,16,64,.20); background: var(--lavender); }
.evo { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.evo .stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.15s var(--ease), transform 6s linear; }
.evo .stage.on { opacity: 1; transform: scale(1); }
/* the light sweep that runs across the frame on every hand-off */
.evo-sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 38%,
    rgba(0,191,255,.00) 44%, rgba(255,255,255,.55) 50%, rgba(106,90,205,.35) 56%, transparent 62%);
  transform: translateX(-30%); }
.evo-sweep.run { animation: evoSweep 1.15s var(--ease); }
@keyframes evoSweep {
  0%   { opacity: 0; transform: translateX(-35%); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(35%); }
}
/* six segments, filling as the stage plays — no text, pure signal */
.evo-rail { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 3;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.evo-rail i { display: block; height: 4px; border-radius: 4px; position: relative;
  background: rgba(255,255,255,.34); overflow: hidden; backdrop-filter: blur(2px); }
.evo-rail i::after { content: ""; position: absolute; inset: 0; transform-origin: right center;
  transform: scaleX(0); border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); }
.evo-rail i.done::after { transform: scaleX(1); }
.evo-rail i.live::after { animation: evoFill var(--dur, 1800ms) linear forwards; }
@keyframes evoFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.heroart--evo .glowlayer { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .evo .stage { transition: opacity .3s linear; transform: none; }
  .evo-sweep, .evo-rail i::after { animation: none !important; }
}

/* ── knockout logo: one SVG, coloured by its surroundings ─────────────────── */
.logo { display: block; height: auto; }
.logo--header { width: 92px; --logo-mark: var(--blue); --logo-word: var(--ink); }
.header.stuck .logo--header { --logo-word: var(--ink); }
.logo--footer { width: 116px; margin-bottom: 14px; --logo-mark: var(--blue); --logo-word: #fff; }
/* on colour panels and photographs the whole mark knocks out to white */
.panel .logo, .dark .logo, .hero-dark .logo { --logo-mark: #fff; --logo-word: #fff; }

/* the hero film sits over the still sequence and fades in only once it plays */
.evofilm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.evofilm.live { opacity: 1; }
.evo-sweep { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .evofilm { display: none; } }
