/* Stanley Ikegbulam portfolio: page layer on top of the system kit. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; background: var(--action); color: var(--action-ink); padding: 10px 14px; z-index: 20; border-radius: 8px; }
h2 { text-wrap: balance; }

/* --- buttons: the label rolls, the arrow travels. The .btn box itself stays with the motion layer --- */
.btn--go { overflow: hidden; }
.roll { display: inline-block; position: relative; overflow: hidden; line-height: 1.3; }
.roll > span { display: block; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.roll::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .btn--go:hover .roll > span, .btn--go:hover .roll::after { transform: translateY(-100%); }
}
.btn--primary.btn--go { padding-inline: 22px 18px; gap: 12px; }

/* --- nav progress --- */
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--action); transform: scaleX(var(--sp, 0)); transform-origin: 0 50%; pointer-events: none; }
.nav { z-index: 30; }

/* --- hero --- */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .ln > span { display: block; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 0 rgba(31,157,85,.5); }
.hero .hero-facts { display: grid; grid-template-columns: auto 1.4fr 1.2fr; gap: 24px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.hero .hero-facts dt { font-size: 13px; color: var(--muted); }
.hero .hero-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; }
.hero__media { overflow: hidden; }
.hero__media > img { will-change: transform; }
.js-motion .hero h1 .ln > span { animation: lineUp 900ms cubic-bezier(.2,.8,.2,1) both; }
.js-motion .hero h1 .ln:nth-child(2) > span { animation-delay: 90ms; }
.js-motion .hero h1 .ln:nth-child(3) > span { animation-delay: 180ms; }
.js-motion .hero__lead, .js-motion .hero .btn-row, .js-motion .hero .hero-facts, .js-motion .hero__kicker { animation: fadeUp 800ms 320ms cubic-bezier(.2,.8,.2,1) both; }
.js-motion .hero .btn-row { animation-delay: 420ms; } .js-motion .hero .hero-facts { animation-delay: 520ms; }
.js-motion .hero__kicker { animation-delay: 0ms; }
.js-motion .hero__media { animation: clipIn 1200ms 80ms cubic-bezier(.65,0,.35,1) both; }
.js-motion .hero__media > img { transform: scale(calc(1.01 + var(--hp, 0) * .1)); transform-origin: 50% 20%; }
.js-motion .hero__media .ly-float { animation: fadeUp 700ms 1000ms cubic-bezier(.2,.8,.2,1) both; }
.js-motion .hero__kicker .dot { animation: ping 2.4s ease-out infinite; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes clipIn { from { clip-path: inset(12% 0 100% 0 round 20px); } to { clip-path: inset(0 0 0 0 round 20px); } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(31,157,85,0); } 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.55); } }

/* --- reveal --- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion .chapter [data-rise] { opacity: 0; transform: translateY(32px); transition: opacity 850ms cubic-bezier(.2,.8,.2,1), transform 850ms cubic-bezier(.2,.8,.2,1); }
.js-motion .chapter [data-rise="wide"] { transform: translateY(72px); }
.js-motion .chapter.is-in [data-rise] { opacity: 1; transform: none; }
.js-motion .chapter.is-in [data-rise]:nth-child(2) { transition-delay: 90ms; }
.js-motion .chapter.is-in [data-rise]:nth-child(3) { transition-delay: 180ms; }
.js-motion .chapter.is-in [data-rise]:nth-child(4) { transition-delay: 270ms; }
.js-motion .chapter.is-in [data-rise]:nth-child(5) { transition-delay: 340ms; }

/* --- work index --- */
.work-index { position: relative; z-index: 1; }
.index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.index li { flex: 1 1 0; min-height: 64px; display: flex; }
.index-row { flex: 1; display: grid; grid-template-columns: 56px 1.5fr 1.3fr 140px 32px; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-strong); position: relative; isolation: isolate; color: var(--ink); text-decoration: none; }
.index-row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -.25); background: var(--action); border-radius: 8px; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 320ms cubic-bezier(.2,.8,.2,1); z-index: -1; }
.index-row__n, .index-row__sector { font-size: 14px; color: var(--muted); transition: color 200ms; }
.index-row__name { font-size: clamp(22px, 2.5vw, 36px); letter-spacing: -.02em; transition: transform 320ms cubic-bezier(.2,.8,.2,1), color 200ms; }
.index-row__what { font-size: 16px; transition: color 200ms; }
.index-row__arrow { width: 16px; height: 16px; justify-self: end; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .index-row:hover { color: var(--action-ink); }
  .index-row:hover::before { transform: scaleY(1); }
  .index-row:hover .index-row__n, .index-row:hover .index-row__sector { color: var(--action-ink); }
  .index-row:hover .index-row__name { transform: translateX(12px); }
  .index-row:hover .index-row__arrow { transform: translateX(-8px); }
}
.peek { position: fixed; left: 0; top: 0; width: 360px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 25; opacity: 0; scale: .9; transition: opacity 200ms, scale 300ms cubic-bezier(.2,.8,.2,1); box-shadow: 0 24px 60px rgba(6,20,70,.32); will-change: transform; }
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- project chapters: each a full-screen card in the product's own colours --- */
.chapter { position: relative; background: var(--bg); color: var(--ink); overflow: clip; border-radius: 28px 28px 0 0; z-index: 2; --line: color-mix(in oklab, var(--ink) 16%, transparent); --line-strong: color-mix(in oklab, var(--ink) 30%, transparent); }
.chapter > .wrap { height: 100%; position: relative; z-index: 1; }
.chapter h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.028em; max-width: 19ch; }
.ch-layout { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.ch-tag { display: flex; gap: 16px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.ch-tag span:first-child { color: var(--tag, var(--action)); font-variant-numeric: tabular-nums; font-weight: 500; }
.ch-body { margin: 20px 0 0; font-size: 18px; line-height: 1.5; max-width: 44ch; }
.ch-copy { display: flex; flex-direction: column; align-items: flex-start; }
.ch-copy .btn { margin-top: 32px; }
.ch-facts { display: flex; gap: 32px; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-strong); }
.ch-facts dd { order: -1; margin: 0; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; }
.ch-facts > div { display: flex; flex-direction: column; gap: 2px; }
.ch-facts dt { font-size: 14px; color: var(--muted); max-width: 18ch; line-height: 1.35; }
.ch-facts--stack { flex-direction: column; gap: 18px; border-top: 0; padding: 0; margin: 24px 0 0; }
.ch-facts--stack > div { padding-top: 12px; border-top: 1px solid var(--line-strong); }
.ch-end { display: flex; justify-content: flex-end; align-items: flex-end; }

.browser { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 30px 80px rgba(0,0,0,.28); height: 100%; transition: border-color 200ms; }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__url { margin-left: 12px; font-size: 13px; color: var(--muted); }
.browser__screen { flex: 1; min-height: 0; overflow: hidden; display: block; }
.browser__screen img { width: 100%; height: auto; display: block; will-change: transform; }
html.deck .browser__screen img[data-scrub] { transform: translate3d(0, calc(var(--p, 0) * var(--travel, 0) * -1px), 0); }
.phone { display: block; position: relative; width: 220px; aspect-ratio: 390/844; border-radius: 30px; overflow: hidden; background: #0a0a0c; border: 6px solid #0a0a0c; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 24px; }

@media (min-width: 1024px) {
  .ch-bitmouse .ch-copy { grid-column: 1 / span 5; }
  .ch-bitmouse .ch-media { grid-column: 6 / -1; position: relative; padding-left: 96px; height: min(100%, 620px); }
  .ch-bitmouse .ch-phone { position: absolute; left: 0; bottom: 0; transform: translateY(calc(var(--p, 0) * -56px)); }

  .ch-blucorp, .ch-sonikblu, .ch-ehisianya { padding-bottom: 0 !important; }
  .ch-head { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: end; }
  .ch-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .ch-head__side .ch-body { margin: 0; }
  .ch-layout:has(> .ch-head) { grid-template-rows: auto minmax(0, 1fr); row-gap: 36px; }
  .ch-blucorp .ch-row, .ch-sonikblu .ch-row { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 9fr; gap: 24px; min-height: 0; }
  .ch-blucorp .ch-facts, .ch-sonikblu .ch-facts { margin: 0; }
  .ch-blucorp .browser, .ch-sonikblu .browser, .ch-ehisianya .browser { border-radius: 14px 14px 0 0; border-bottom: 0; }

  .ch-bluakademy .ch-media { grid-column: 1 / span 7; position: relative; padding-right: 72px; height: min(100%, 620px); }
  .ch-bluakademy .ch-phone { position: absolute; right: 0; bottom: 0; transform: translateY(calc(var(--p, 0) * -48px)); }
  .ch-bluakademy .ch-copy { grid-column: 9 / -1; }

  .ch-fyve .ch-layout { grid-template-rows: minmax(0, 1fr) auto; row-gap: 32px; }
  .ch-fyve .cinema { grid-column: 1 / -1; }
  .ch-fyve .ch-row { grid-column: 1 / -1; display: grid; grid-template-columns: 6fr 4fr 2fr; gap: 24px; align-items: end; }
  .ch-fyve .ch-body { margin: 0; }

  .ch-bazaar .ch-copy { grid-column: 1 / span 4; }
  .ch-bazaar .phones { grid-column: 5 / -1; }

  .ch-blumagik::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; --w: min(100vw - 2 * var(--gut), 1280px); width: calc((100vw - var(--w)) / 2 + (var(--w) - 264px) / 12 * 5 + 96px + 40px); background: var(--bg); }
  .ch-blumagik .ch-panel { grid-column: 1 / span 5; align-self: stretch; background: none; padding: 0 16px 0 0; position: relative; z-index: 2; justify-content: flex-start; }

  .ch-ehisianya .ch-head h2 { font-size: clamp(36px, 4.6vw, 66px); max-width: 21ch; }
  .ch-ehisianya .ch-row { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; min-height: 0; }
  .ch-aims .ch-body { margin: 0; }
}

/* themes: the colours come from each product */
.ch-bitmouse { --bg: #0f0f10; --ink: #fbf5e9; --muted: #bcb5a6; --action: #f9a51a; --action-ink: #14110a; --surface: #1d1d1f; }
.ch-blucorp { --bg: #eef2fb; --ink: #0e1726; --muted: #4c586e; --action: #2f5bea; --action-ink: #fff; --surface: #fff; }
.ch-bluakademy { --bg: #f5efe3; --ink: #1a2340; --muted: #58607a; --action: #0a6f79; --action-ink: #fff; --surface: #fff;
  background-image: linear-gradient(90deg, transparent 61px, rgba(211,74,62,.5) 61px, rgba(211,74,62,.5) 62px, transparent 62px), repeating-linear-gradient(0deg, transparent 0 31px, rgba(26,35,64,.07) 31px 32px); }
.ch-fyve { --tag: #f0705a; --bg: #0b0a09; --ink: #efe8da; --muted: #b6ae9f; --action: #d33a23; --action-ink: #fff; --surface: #1a1816; }
.ch-bazaar { --bg: #1745c7; --ink: #f4f7ff; --muted: #c7d4fb; --action: #fff; --action-ink: #1745c7; --surface: #1038a8; }
.ch-blumagik { --bg: #050b2c; --ink: #eef3ff; --muted: #b3bfdf; --action: #35c8f2; --action-ink: #04132c; --surface: #0b1440; }
.ch-ehisianya { --bg: #024a2c; --ink: #f7f1e5; --muted: #b9c7bc; --action: #f7f1e5; --action-ink: #12281f; --surface: #0d5a3b; }
.ch-sonikblu { --bg: #8a1c47; --ink: #f6eee1; --muted: #f0dfd2; --action: #edb230; --action-ink: #17110e; --surface: #761539; }

.cinema { display: block; overflow: hidden; border-radius: 16px; min-height: 0; }
.cinema img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; transform: scale(calc(1.14 - var(--p, 0) * .14)); will-change: transform; }

.phones { display: flex; gap: 24px; justify-content: flex-end; align-items: flex-start; height: 100%; }
.phones .phone { width: min(260px, 31%); flex: none; }
.phones .ph-a { margin-top: 56px; transform: translateY(calc(var(--p, 0) * -56px)); }
.phones .ph-b { transform: translateY(calc(var(--p, 0) * 40px)); }
.phones .ph-c { margin-top: 96px; transform: translateY(calc(var(--p, 0) * -88px)); }

.chapter .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(calc(1.06 - var(--p, 0) * .06)); }
.ch-panel { background: var(--bg); border-radius: 18px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.ch-panel .btn { margin-top: 32px; }
.ch-panel h2 { font-size: clamp(30px, 3.1vw, 44px); }
.ch-panel .ch-facts { width: 100%; }

.ch-aims ol { list-style: none; counter-reset: a; padding: 0; margin: 24px 0 0; }
.ch-aims li { counter-increment: a; display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-strong); font-size: 18px; }
.ch-aims li::before { content: "0" counter(a); font-size: 14px; padding-top: 3px; color: var(--muted); }

/* deck: full-screen cards stack as the page scrolls (wide screens only, set by script) */
html.deck .chapter { position: sticky; top: 0; margin-bottom: 45svh; transform-origin: 50% 30%; transform: scale(calc(1 - var(--l, 0) * .07)); box-shadow: 0 -24px 60px rgba(4,10,40,calc(var(--e, 0) * .3)); }
html.deck .chapter::after { content: ""; position: absolute; inset: 0; background: #020617; opacity: calc(var(--l, 0) * .6); pointer-events: none; z-index: 3; }
html.deck .chapter.is-gone { visibility: hidden; }
main > section:not(.chapter):not(.hero):not(.work-index) { position: relative; z-index: 3; background: var(--bg); }

/* --- hover on project frames --- */
@media (hover: hover) and (pointer: fine) {
  .browser:hover { border-color: var(--action); }
  .cinema:hover img { filter: brightness(1.06); }
  [data-cursor] { cursor: none; }
}
.cursor-chip { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.cursor-chip span { display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: #e6dbc7; color: #062b8a; font-size: 14px; font-weight: 500; scale: 0; transition: scale 260ms cubic-bezier(.2,.8,.2,1); }
.cursor-chip.is-on span { scale: 1; }

/* --- about --- */
.about { background: var(--p-surface); --bg: var(--p-surface); }
.about__row { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: start; }
.fill-text { margin: 0; font-size: clamp(24px, 2.75vw, 40px); line-height: 1.28; letter-spacing: -.018em; }
.js-motion .fill-text .w { opacity: .24; transition: opacity 240ms linear; }
.js-motion .fill-text .w.on { opacity: 1; }
.about__photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.js-motion .about__photo[data-clip] img { clip-path: inset(100% 0 0 0); transition: clip-path 1200ms cubic-bezier(.65,0,.35,1); }
.js-motion .about__photo[data-clip].is-in img { clip-path: inset(0 0 0 0); }
.reasons { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reason { display: flex; flex-direction: column; color: inherit; text-decoration: none; background: var(--p-bg); padding: 16px 16px 24px; overflow: hidden; }
.reason h3 { font-size: 22px; margin: 20px 8px 6px; letter-spacing: -.012em; font-weight: 500; }
.reason p { margin: 0 8px; font-size: 16px; line-height: 1.5; }
.reason__art { height: 176px; border-radius: 12px; overflow: hidden; background: var(--p-inv-bg); position: relative; }
.reason__art img { transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.reason__art--mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.reason__art--mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; min-height: 0; }
.reason__art--phones img { position: absolute; width: 132px; height: auto; border-radius: 14px; top: 20px; }
.reason__art--phones img:first-child { left: 16%; }
.reason__art--phones img:last-child { right: 16%; top: 36px; }
.reason__art--logos { display: flex; align-items: center; justify-content: center; gap: 12px; }
.reason__art--logos img { width: 28%; border-radius: 12px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .reason:hover .reason__art--mosaic img:nth-child(odd) { transform: scale(1.06); }
  .reason:hover .reason__art--mosaic img:nth-child(even) { transform: scale(1.03); }
  .reason:hover .reason__art--phones img { transform: translateY(-14px); }
  .reason:hover .reason__art--logos img:nth-child(1) { transform: translateX(-6px); }
  .reason:hover .reason__art--logos img:nth-child(3) { transform: translateX(6px); }
}
.quotes { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; }
.quotes figure { margin: 0; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.quotes blockquote { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.008em; }
.quotes figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* --- skills --- */
.skill-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.skill { display: grid; grid-template-columns: 5fr 3fr 4fr; align-items: center; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line-strong); }
.skill__name h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.012em; }
.skill__name p { margin: 2px 0 0; font-size: 16px; }
.skill__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tool-word { font-size: 14px; font-weight: 500; }
.skill__proof { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background 200ms, color 200ms, border-color 200ms; }
.chip:hover { background: var(--action); color: var(--action-ink); border-color: var(--action); }

/* --- experience --- */
.experience { background: var(--p-surface); --bg: var(--p-surface); }
.exp-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; }
.timeline { position: relative; padding-left: 28px; }
.timeline__line { position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--action); transform: scaleY(var(--xp, 1)); transform-origin: 50% 0; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.job { position: relative; display: grid; grid-template-columns: 72px 1fr 1.1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.job::before { content: ""; position: absolute; left: -29px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 4px var(--bg); }
.job__year { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.job__co { font-size: 22px; letter-spacing: -.012em; }
.job__role { font-size: 16px; }
.edu h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.edu ul { list-style: none; margin: 0; padding: 0; }
.edu li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line-strong); font-size: 16px; }
.edu strong { font-weight: 500; }

/* --- brand --- */
main > section.brand { overflow: clip; display: flex; flex-direction: column; }
main > section.brand > .wrap { flex: 0 0 auto; height: auto; min-height: 0; display: block; }
.drift { overflow: visible; margin-top: 16px; }
.drift__row { display: flex; gap: 16px; width: max-content; will-change: transform; transform: translate3d(calc(var(--dx, 0) * 1px), 0, 0); }
.drift__row img { display: block; width: 248px; height: 248px; border-radius: 12px; object-fit: cover; }
.drift__row--wide img { width: 441px; height: 248px; }
.video-tile { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; flex: none; color: #fff; }
.video-tile__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #e6dbc7; color: #062b8a; display: grid; place-items: center; transition: scale 240ms cubic-bezier(.2,.8,.2,1); }
.video-tile__play svg { width: 18px; }
.video-tile:hover .video-tile__play { scale: 1.1; }

/* --- contact form --- */
.hire { background: var(--p-inv-bg); --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink); --line: color-mix(in oklab, var(--ink) 16%, transparent); --line-strong: color-mix(in oklab, var(--ink) 34%, transparent); color: var(--ink); }
.hire__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.hire h2 { font-size: var(--t-h2); }
.hire__intro .t-lead { margin-top: 20px; }
.direct { list-style: none; margin: 40px 0 0; padding: 0; }
.direct li { display: grid; grid-template-columns: 96px 1fr; padding: 14px 0; border-top: 1px solid var(--line-strong); font-size: 18px; }
.direct li > span:first-child { color: var(--muted); font-size: 16px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; background: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --action: var(--p-action); --action-ink: var(--p-action-ink); --line-strong: color-mix(in oklab, var(--p-ink) 34%, transparent); color: var(--ink); padding: 32px; border-radius: 20px; }
.hp { position: absolute; left: -9999px; }
.seg { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 0; border: 0; border-radius: 12px; background: color-mix(in oklab, var(--ink) 9%, var(--p-bg)); }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; height: 44px; font-weight: 500; transition: color 240ms; }
.seg input:checked + span { color: var(--action-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 8px; }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--action); border-radius: 9px; transition: transform 320ms cubic-bezier(.65,0,.35,1); }
.seg:has(input[data-intent="general"]:checked) .seg__pill { transform: translateX(100%); }
.field { position: relative; }
.field--full, .contact__foot { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; height: auto; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); padding: 24px 0 8px; outline: 0; border-radius: 0; transition: border-color 200ms; resize: vertical; display: block; }
.field label { position: absolute; left: 0; top: 24px; font-size: 16px; color: var(--ink); pointer-events: none; transition: transform 200ms cubic-bezier(.2,.8,.2,1); transform-origin: 0 0; }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label, .field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-20px) scale(.82); }
.field input:focus, .field textarea:focus { border-color: var(--action); box-shadow: 0 1px 0 0 var(--action); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field__err { margin: 4px 0 0; font-size: 14px; color: #a11d16; min-height: 0; }
.contact__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact__status { margin: 0; font-size: 15px; }
.contact__status.is-error { color: #a11d16; }
.btn--send { position: relative; min-width: 168px; gap: 12px; }
.send__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 800ms linear infinite; }
.btn--send.is-busy .send__spin { display: block; }
.btn--send.is-busy .m-arrow { display: none; }
.btn--send.is-busy { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- thank-you pop-up --- */
dialog { border: 0; padding: 0; color: inherit; }
.thanks { width: min(560px, calc(100vw - 32px)); background: var(--p-bg); color: var(--p-ink); border-radius: 24px; padding: 48px; overflow: hidden; --ink: var(--p-ink); --action: var(--p-action); --action-ink: var(--p-action-ink); --bg: var(--p-bg); }
.thanks::backdrop { background: rgba(4,14,60,.62); backdrop-filter: blur(6px); }
.thanks[open] { animation: popIn 520ms cubic-bezier(.2,.8,.2,1) both; }
.thanks__ink { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--p-ink); transform-origin: 0 50%; }
.thanks[open] .thanks__ink { animation: inkBar 1000ms 120ms cubic-bezier(.65,0,.35,1) both; }
.thanks__mark { width: 80px; height: 80px; display: block; fill: none; stroke: var(--p-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.thanks__mark circle { stroke-dasharray: 277; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; }
.thanks__mark path { stroke-dasharray: 64; stroke-dashoffset: 0; }
.thanks[open] .thanks__mark circle { animation: draw277 700ms 100ms cubic-bezier(.65,0,.35,1) both; }
.thanks[open] .thanks__mark path { animation: draw64 380ms 720ms cubic-bezier(.2,.8,.2,1) both; }
.thanks h2 { margin: 24px 0 8px; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.028em; line-height: 1.05; }
.thanks__line { margin: 0; font-size: 18px; line-height: 1.5; }
.thanks__next { list-style: none; counter-reset: s; margin: 24px 0 28px; padding: 0; }
.thanks__next li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in oklab, var(--p-ink) 24%, transparent); font-size: 16px; }
.thanks__next li::before { content: counter(s); font-size: 14px; font-weight: 500; }
.thanks[open] .thanks__next li { animation: fadeUp 500ms cubic-bezier(.2,.8,.2,1) both; }
.thanks[open] .thanks__next li:nth-child(1) { animation-delay: 700ms; } .thanks[open] .thanks__next li:nth-child(2) { animation-delay: 800ms; } .thanks[open] .thanks__next li:nth-child(3) { animation-delay: 900ms; }
@keyframes popIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes inkBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw277 { from { stroke-dashoffset: 277; } to { stroke-dashoffset: 0; } }
@keyframes draw64 { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }

.film { width: min(1040px, calc(100vw - 32px)); background: #000; border-radius: 16px; overflow: visible; }
.film::backdrop { background: rgba(2,6,23,.84); }
.film__frame { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; }
.film__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.film__close { position: absolute; right: 8px; top: 8px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e6dbc7; color: #062b8a; cursor: pointer; display: grid; place-items: center; }
.film__close svg { width: 14px; }

.toast { position: fixed; right: 24px; bottom: 92px; z-index: 35; width: min(340px, calc(100vw - 48px)); padding: 18px 20px; background: var(--p-inv-bg); color: var(--p-inv-ink); --ink: var(--p-inv-ink); --line: rgba(230,219,199,.3); border-radius: 14px; display: grid; gap: 4px; box-shadow: 0 20px 50px rgba(4,14,60,.34); opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity 280ms, transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 320ms; }
.toast.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.toast strong { font-weight: 500; }
.toast span { font-size: 15px; }

/* --- back to top: a ring shows how far down the page you are --- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 34; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid #e6dbc7; background: #062b8a; color: #e6dbc7; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 32px rgba(4,14,60,.32); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 240ms, transform 320ms cubic-bezier(.2,.8,.2,1), background 200ms, color 200ms, visibility 0s linear 320ms; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top__ring { position: absolute; inset: 1px; transform: rotate(-90deg); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.to-top__ring circle { stroke-dasharray: calc(var(--sp, 0) * 100) 100; }
.to-top__arrow { width: 16px; height: 16px; transition: transform 240ms cubic-bezier(.2,.8,.2,1); }
.to-top:focus-visible { outline: 2px solid #e6dbc7; outline-offset: 3px; }
.to-top:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: #e6dbc7; color: #062b8a; }
  .to-top:hover .to-top__arrow { transform: translateY(-3px); }
}

/* --- responsive --- */
@media (max-width: 1279px) {
  .ch-bitmouse .ch-media { padding-left: 60px; }
  .phone { width: 180px; }
}
@media (max-width: 1023px) {
  main > section:not(.hero), .footer.closing { height: auto !important; min-height: 100svh; padding-bottom: 72px; }
  main > section.g2 > .wrap { display: block; }
  .chapter { padding-bottom: 72px !important; }
  .ch-layout { display: flex; flex-direction: column; gap: 32px; height: auto; }
  .chapter > .wrap { height: auto; }
  .ch-head { display: flex; flex-direction: column; gap: 20px; }
  .ch-head__side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
  .ch-row { display: flex; flex-direction: column; gap: 24px; }
  .ch-bluakademy .ch-layout { flex-direction: column-reverse; }
  .ch-media { position: relative; }
  .browser { height: 60vw; max-height: 520px; }
  .ch-media .phone { position: absolute; right: 12px; bottom: -28px; width: 120px; border-radius: 18px; border-width: 4px; }
  .ch-media .phone img { border-radius: 14px; }
  .ch-facts--stack { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .ch-facts--stack > div { flex: 1 1 140px; }
  .ch-end { justify-content: flex-start; }
  .cinema { aspect-ratio: 16/10; }
  .chapter .layer { object-position: 50% 0; transform: none; }
  .ch-blumagik .ch-layout { padding-top: 46svh; }
  .ch-panel { padding: 24px; }
  .phones { justify-content: space-between; gap: 8px; height: auto; }
  .phones .phone { width: 31%; margin-top: 0; border-radius: 18px; border-width: 4px; }
  .phones .phone img { border-radius: 14px; }
  .phones .ph-a, .phones .ph-b, .phones .ph-c { transform: none; }
  .about__row, .exp-grid, .hire__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 420px; }
  .reason-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .reasons { margin-top: 48px; }
  .index li { min-height: 76px; }
  .index-row { grid-template-columns: 36px 1fr 24px; row-gap: 0; padding: 12px 0; }
  .index-row__name { grid-column: 2; }
  .index-row__what { grid-column: 2; grid-row: 2; font-size: 15px; }
  .index-row__sector { display: none; }
  .index-row__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .skill { grid-template-columns: 1fr; gap: 10px; }
  .skill__proof { justify-content: flex-start; }
  .drift__row img { width: 140px; height: 140px; }
  .drift__row--wide img { width: 250px; height: 140px; }
  .video-tile__play { width: 48px; height: 48px; }
}
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav__bar { display: flex; justify-content: space-between; }
  .nav__toggle { margin-left: auto; }
  .hero .hero-facts { display: none; }
  .contact { grid-template-columns: 1fr; padding: 20px; }
  .contact__foot { flex-direction: column; align-items: stretch; }
  .btn--send { width: 100%; }
  .thanks { padding: 32px 24px; }
  .thanks .btn-row { flex-direction: column; }
  .job { grid-template-columns: 56px 1fr; }
  .job__role { grid-column: 2; }
  .ch-facts { gap: 20px; flex-wrap: wrap; }
  .ch-body { font-size: 17px; }
  .toast { right: 16px; bottom: 92px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .roll > span, .roll::after { transition: none; }
  .thanks[open], .thanks[open] * { animation: none !important; }
}

/* phones: keep clear of the chat greeting, and let wrapped project names grow their row */
@media (max-width: 1023px) { .index { flex: none; } .index li { flex: 0 0 auto; } .index-row__name { line-height: 1.15; } }
@media (max-width: 639px) { .to-top { right: 16px; bottom: 172px; } }

/* --- Elfsight chat in the site's colours. Elfsight has no colour hook from the page, so these target its class-name prefixes. --- */
[class*="ButtonBase__ButtonContainer"][aria-label*="chatbot"],
[class*="FloatingButton__"] [class*="ButtonBase__ButtonContainer"] { background-color: #062b8a !important; color: #e6dbc7 !important; }
[class*="quick-reply-button__Button"] { background-color: #062b8a !important; color: #e6dbc7 !important; }
[class*="quick-reply-button__Button"]:hover { background-color: #153a90 !important; }
[class*="window-wallpaper__Container"],
[class*="floating-panel__Container"]:has([class*="window-wallpaper__Container"]) { background-color: #e6dbc7 !important; }
[class*="window-wallpaper__Container"]::after { background-color: #062b8a !important; }
[class*="chat-window-interaction-field__FooterContainer"] { border-color: #062b8a !important; }
.chat-mine { background-color: #062b8a !important; color: #e6dbc7 !important; }
.chat-mine [class*="StyledTailIcon"] path { fill: #062b8a !important; }
.chat-send-on { background-color: #062b8a !important; color: #e6dbc7 !important; }
