/* Showcase: design work and apps by Abdullah Al Fahim.
   Same design system as the main site: violet scale on brand-900 #3A10AD,
   Acid Lime #D4FF24 as the only highlight, Sora and JetBrains Mono. */

@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora.woff") format("woff");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono.woff") format("woff");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --brand-50: #f3f2ff;
  --brand-100: #e9e7ff;
  --brand-200: #d6d2ff;
  --brand-300: #b4adff;
  --brand-400: #8f7eff;
  --brand-500: #6b4aff;
  --brand-600: #5a25ff;
  --brand-700: #4d13ee;
  --brand-900: #3a10ad;
  --brand-950: #1e066f;
  --lime: #d4ff24;
  --on-lime: #1e066f;

  --canvas: #ffffff;
  --tint: #f7f6ff;
  --surface: #ffffff;
  --border: #e3e0f5;
  --ink: #160a45;
  --muted: #5d5878;
  --mark: var(--brand-600);
  --chip: var(--brand-50);
  --shadow: 0 1px 2px rgb(30 6 111 / 0.05), 0 12px 32px rgb(30 6 111 / 0.08);

  --night: #0b0524;
  --deep: #1e066f;
  --deep-2: #2a0d8f;
  --deep-ink: #ffffff;
  --deep-muted: #c9c3f5;
  --deep-line: rgb(255 255 255 / 0.14);

  --display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --max: 1200px;
  --r: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0c0a1a;
    --tint: #110e26;
    --surface: #171334;
    --border: #2a2550;
    --ink: #f1efff;
    --muted: #a9a3cc;
    --mark: var(--brand-300);
    --chip: #221d48;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
    --deep: #150552;
    --deep-2: #1f0a72;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0c0a1a;
  --tint: #110e26;
  --surface: #171334;
  --border: #2a2550;
  --ink: #f1efff;
  --muted: #a9a3cc;
  --mark: var(--brand-300);
  --chip: #221d48;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.35);
  --deep: #150552;
  --deep-2: #1f0a72;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }
em { font-style: normal; color: var(--mark); }
.deep em, .hero em { color: var(--lime); }
svg.i { width: 18px; height: 18px; fill: currentColor; flex: none; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--display); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: #e2ff6b; }
.btn-ghost { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }
.btn-dark { background: var(--ink); color: var(--canvas); }
.btn-line { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--mark); color: var(--mark); }
.btn-violet { background: var(--brand-500); color: #fff; }
.btn-violet:hover { background: var(--brand-600); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--night); color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.top.scrolled { border-color: var(--deep-line); box-shadow: 0 8px 24px rgb(10 2 40 / 0.25); }
.top nav { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--lime); }
.links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a {
  display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; text-decoration: none;
  font: 600 12px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-muted);
  transition: color .2s, background-color .2s, border-color .2s;
}
.links a:hover { color: #fff; }
.links a[aria-current] { color: #fff; background: rgb(107 74 255 / 0.28); border-color: rgb(143 126 255 / 0.45); box-shadow: 0 0 24px rgb(107 74 255 / 0.35); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid var(--deep-line); background: transparent; color: #fff; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme .moon, [data-theme="dark"] .theme .sun { display: none; }
[data-theme="dark"] .theme .moon { display: block; }
.menu { display: none; }
.top .btn { min-height: 44px; padding: 0 20px; }

/* Hero: dark full-bleed stage, giant faded word behind a centred portrait */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 50% 38%, rgb(77 19 238 / 0.42), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 90%, rgb(107 74 255 / 0.18), transparent 70%),
    var(--night);
}
.hero-word {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  font: 800 clamp(110px, 18vw, 300px)/0.9 var(--display); letter-spacing: -0.03em;
  color: rgb(255 255 255 / 0.055); white-space: nowrap; pointer-events: none; user-select: none;
}
.hero-in {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: clamp(560px, calc(100svh - 72px), 900px);
}
.hero-text { position: relative; z-index: 3; max-width: 440px; padding: 48px 0 120px; }
.hi { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 { margin: 2px 0 20px; }
.hero h1 span { display: block; }
.hero h1 .first { font-size: clamp(60px, 7.2vw, 108px); font-weight: 800; line-height: 0.95; color: var(--lime); letter-spacing: -0.045em; }
.hero h1 .last { font-size: clamp(36px, 4.4vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.hero-lead { font-size: 16px; color: var(--deep-muted); max-width: 420px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-ghost { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.22); }
.hero .btn-ghost:hover { background: #fff; }

.hero-photo {
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  width: min(46vw, 640px); pointer-events: none;
}
.hero-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 44%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 56% at 50% 44%, #000 58%, transparent 100%);
}
.hero-roles {
  position: absolute; right: 0; bottom: 21%; z-index: 3; margin: 0; text-align: right; line-height: 1;
}
.hero-roles span {
  display: block; font: 700 clamp(15px, 1.7vw, 24px)/1.2 var(--display); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--brand-300); margin-bottom: 8px;
}
.hero-roles b {
  display: block; font: 800 clamp(44px, 5.6vw, 84px)/0.9 var(--display); letter-spacing: -0.03em; text-transform: uppercase;
  text-shadow: 0 4px 30px rgb(10 4 32 / 0.6);
}
.scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
  font: 600 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--deep-muted);
}
.scroll i { width: 22px; height: 34px; border: 1.5px solid rgb(255 255 255 / 0.5); border-radius: 12px; position: relative; }
.scroll i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--lime); animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* Cover marquee */
.reel { background: var(--night); display: grid; gap: 14px; padding: 8px 0 14px; overflow: hidden; }
.reel-row { display: flex; gap: 14px; width: max-content; animation: slide 70s linear infinite; }
.reel-row.rev { animation-direction: reverse; }
.reel:hover .reel-row { animation-play-state: paused; }
.reel img { width: 260px; aspect-ratio: 808 / 632; object-fit: cover; border-radius: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Ticker */
.ticker { background: var(--lime); color: var(--on-lime); overflow: hidden; padding: 18px 0; }
.ticker-row { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker span { font: 600 18px/1 var(--display); white-space: nowrap; padding-right: 36px; display: inline-flex; align-items: center; gap: 36px; }
.ticker span::after { content: "✦"; font-size: 14px; }

/* Sections */
section { padding: 112px 0; }
section.hero { padding: 0; }
.alt { background: var(--tint); }
.deep { background: var(--deep); color: var(--deep-ink); }
.eyebrow {
  display: block; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 36px;
}
.deep .eyebrow { color: var(--deep-muted); border-color: var(--deep-line); }
h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 820px; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin-top: 18px; }
.deep .sub { color: var(--deep-muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; margin-top: 48px; align-items: start; }
.about-text p { font-size: 18px; color: var(--muted); }
.about-text p + p { margin-top: 18px; }
.about-text p:first-child { color: var(--ink); font-size: 22px; line-height: 1.5; }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 24px; box-shadow: var(--shadow); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.facts div:last-of-type { border-bottom: 0; }
.facts dt { font: 600 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts a { display: flex; align-items: center; justify-content: space-between; margin: 0 -24px; padding: 16px 24px; border-top: 1px solid var(--border); color: var(--mark); font-weight: 600; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.why-card { border: 1px solid var(--deep-line); border-radius: var(--r); padding: 32px; background: rgb(255 255 255 / 0.03); }
.why-card .n { font: 600 13px/1 var(--mono); color: var(--lime); }
.why-card h3 { font-size: 24px; margin: 40px 0 12px; }
.why-card p { color: var(--deep-muted); }

/* Numbers */
.nums { padding: 88px 0; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--border); }
.num { padding: 28px 24px 0 0; }
.num + .num { padding-left: 24px; border-left: 1px solid var(--border); }
.num b { display: block; font-size: clamp(44px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.num b sup { font-size: .5em; color: var(--mark); vertical-align: .6em; }
.num > span { display: block; margin-top: 12px; color: var(--muted); }
.note { margin-top: 32px; font: 400 13px/1.5 var(--mono); color: var(--muted); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.svc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.svc .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--chip); color: var(--mark); }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 21px; margin: 22px 0 8px; letter-spacing: -0.02em; }
.svc p { color: var(--muted); }
.svc.cta { background: var(--deep); border-color: var(--deep); color: #fff; display: flex; flex-direction: column; }
.svc.cta p { color: var(--deep-muted); margin-bottom: 24px; }
.svc.cta .btn { margin-top: auto; align-self: flex-start; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 44px 0 36px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: var(--mark); }
.filters button small { font: 600 12px/1 var(--mono); color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.filters button[aria-pressed="true"] small { color: inherit; opacity: .7; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.card { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.card[hidden] { display: none; }
.card .im { display: block; position: relative; border-radius: 16px; overflow: hidden; background: var(--chip); aspect-ratio: 808 / 632; }
.card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .im img { transform: scale(1.04); }
.card .src {
  position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: #160a45; font: 600 11px/1 var(--mono); letter-spacing: .04em;
}
.card .open {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: var(--on-lime);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.card:hover .open, .card:focus-visible .open { opacity: 1; transform: none; }
.card b { display: block; margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.work-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 52px; }

/* Lightbox */
dialog.lb {
  width: min(100% - 32px, 1040px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink); overflow: hidden;
}
dialog.lb::backdrop { background: rgb(12 4 48 / 0.82); backdrop-filter: blur(4px); }
.lb-body { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.lb-stage { position: relative; background: #0c0a1a; display: grid; place-items: center; min-height: 0; flex: 1; }
.lb-stage img { max-height: calc(100dvh - 140px); width: auto; max-width: 100%; object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / 0.92); color: #160a45; cursor: pointer; display: grid; place-items: center;
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.lb-bar div:first-child { margin-right: auto; min-width: 0; }
.lb-bar b { display: block; font-size: 18px; }
.lb-bar small { color: var(--muted); }
.lb-bar .acts { display: flex; gap: 10px; }
.lb-bar .btn { min-height: 44px; padding: 0 18px; }

/* Apps */
.apps-list { display: grid; gap: 24px; margin-top: 56px; }
.app {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.app:nth-child(even) .app-art { order: 2; }
.app-art {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px;
  padding: 44px 32px 0; min-height: 420px; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-950));
}
.app-art.lime { background: linear-gradient(150deg, #e9ff8f, var(--lime)); }
.app-art.web { align-items: center; padding: 40px 32px; }
.phone {
  width: 42%; max-width: 210px; border-radius: 26px 26px 0 0; overflow: hidden; border: 6px solid #0c0a1a; border-bottom: 0;
  background: #0c0a1a; box-shadow: 0 24px 48px rgb(0 0 0 / 0.35);
}
.phone + .phone { transform: translateY(36px); }
.phone img { width: 100%; }
.browser { width: 100%; border-radius: 14px; overflow: hidden; background: #0c0a1a; box-shadow: 0 24px 48px rgb(0 0 0 / 0.35); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #1f1b3a; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4570; }
.browser .bar span { margin-left: 10px; font: 500 11px/1 var(--mono); color: #b9b3e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-info { padding: 44px; display: flex; flex-direction: column; }
.app-info .tag { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mark); }
.app-info h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 14px 0 6px; }
.app-info .tagline { font-size: 19px; font-weight: 600; color: var(--ink); }
.app-info p.desc { color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 500; }
.app .url { margin-top: auto; padding-top: 28px; font: 500 13px/1.4 var(--mono); color: var(--muted); word-break: break-all; }
.app .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.app .acts .btn { min-height: 46px; }

.more-apps-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 72px; }
.more-apps-head h3 { font-size: 26px; }
.more-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.mini {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.mini:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.mini .shot { height: 220px; overflow: hidden; background: linear-gradient(160deg, var(--brand-100), var(--brand-200)); display: flex; justify-content: center; padding-top: 22px; }
.mini .shot img { width: 52%; border-radius: 16px 16px 0 0; border: 4px solid #0c0a1a; border-bottom: 0; object-fit: cover; object-position: top; }
.mini .shot.wide { padding: 22px 16px 0; }
.mini .shot.wide img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 10px 10px 0 0; }
.mini div { padding: 18px 20px 22px; }
.mini b { display: block; font-size: 18px; }
.mini small { display: block; color: var(--muted); margin-top: 4px; font-size: 14px; line-height: 1.5; }
.mini div > span { display: inline-block; margin-top: 12px; font: 600 12px/1 var(--mono); color: var(--mark); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; counter-reset: s; list-style: none; padding: 0; }
.steps li { border-top: 2px solid var(--deep-line); padding-top: 24px; position: relative; }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--lime); color: var(--on-lime); font: 700 14px/1 var(--mono); margin-bottom: 22px;
}
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--deep-muted); }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 900px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgb(107 74 255 / 0.4), transparent); pointer-events: none;
}
.contact .wrap { position: relative; }
.contact h2 { margin-inline: auto; font-size: clamp(38px, 5.6vw, 72px); }
.contact .sub { margin-inline: auto; }
.contact .hero-actions { justify-content: center; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 40px 0 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--deep-line); text-decoration: none; color: var(--deep-muted); font-size: 14px; transition: color .2s, border-color .2s;
}
.socials a:hover { color: #fff; border-color: rgb(255 255 255 / 0.5); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

footer { background: var(--deep); color: var(--deep-muted); border-top: 1px solid var(--deep-line); padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: #fff; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll i::after { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .svc-grid, .grid { grid-template-columns: repeat(2, 1fr); }
  .more-apps { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .app:nth-child(even) .app-art { order: 0; }
  .app-art { min-height: 360px; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 40px 0 0; max-width: none; }
  .hero-word { top: 66%; font-size: 30vw; }
  .hero-photo { position: relative; left: auto; transform: none; width: min(100%, 440px); margin: 8px auto 0; }
  .hero-roles { position: relative; right: auto; bottom: auto; margin-top: -96px; padding-bottom: 28px; }
  .hero-roles b { font-size: 52px; }
  .scroll { display: none; }
  .top .hire { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card h3 { margin-top: 24px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { padding-left: 0; border-left: 0; }
  .num { padding-bottom: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  section { padding: 84px 0; }
  section.hero { padding: 0; }
}
@media (max-width: 560px) {
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .reel img { width: 190px; }
  .svc-grid, .grid, .more-apps, .steps { grid-template-columns: 1fr; }
  .num b { font-size: 44px; }
  .app-info { padding: 28px 22px; }
  .app-art { padding: 32px 20px 0; min-height: 300px; gap: 12px; }
  .app-art.web { padding: 28px 16px; min-height: 0; }
  .app .acts .btn { flex: 1 1 100%; }
  .lb-bar .acts { width: 100%; }
  .lb-bar .acts .btn { flex: 1; }
  .lb-nav { width: 40px; height: 40px; }
  .facts dd { font-size: 15px; }
  footer .wrap { flex-direction: column; }
}

/* Clients: logo cards in an endless strip. Logos stay on white in both themes,
   grey until hovered. showcase.js fills the strip and adds files from /clients/. */
.clients { padding-bottom: 104px; overflow: hidden; }
.logo-strip {
  margin-top: 48px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-row { display: flex; gap: 20px; width: max-content; padding: 4px 0; animation: slide 40s linear infinite; }
.logo-strip:hover .logo-row { animation-play-state: paused; }
.client {
  flex: none; display: grid; place-items: center; width: 200px; height: 108px; padding: 20px 28px;
  border-radius: 18px; background: #fff; border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.client img { width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client:hover img { filter: none; opacity: 1; }
.client.dark { background: var(--night); border-color: #2a2550; }
.client.dark img { opacity: .85; }
@media (max-width: 560px) {
  .client { width: 150px; height: 84px; padding: 14px 18px; }
  .client img { max-height: 48px; }
}

/* CV preview: the four pages as images, so it works on phones too */
dialog.cvbox {
  width: min(100% - 32px, 920px); height: calc(100dvh - 32px); max-height: none; padding: 0; border: 0;
  border-radius: 22px; background: var(--surface); color: var(--ink); overflow: hidden;
}
dialog.cvbox[open] { display: flex; flex-direction: column; }
dialog.cvbox::backdrop { background: rgb(12 4 48 / 0.82); backdrop-filter: blur(4px); }
.cv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.cv-head > div:first-child { margin-right: auto; }
.cv-head b { display: block; font-size: 18px; }
.cv-head small { color: var(--muted); font: 500 12px/1.4 var(--mono); }
.cv-head .acts { display: flex; align-items: center; gap: 10px; }
.cv-head .btn { min-height: 44px; padding: 0 18px; }
.cv-close { color: var(--ink); border-color: var(--border); background: var(--surface); }
.cv-pages { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #e9e7f5; padding: 24px; display: grid; gap: 20px; justify-items: center; }
[data-theme="dark"] .cv-pages { background: #07051a; }
.cv-pages img { width: 100%; max-width: 820px; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgb(20 10 70 / 0.18); }
@media (max-width: 560px) {
  dialog.cvbox { width: 100%; max-width: none; height: 100dvh; border-radius: 0; }
  .cv-head { padding: 12px 12px 12px 16px; }
  .cv-head .acts { width: 100%; }
  .cv-head .acts .btn { flex: 1; padding: 0 12px; }
  .cv-pages { padding: 12px; gap: 12px; }
}

/* ---------- Résumé content on the home page: roles, experience, recognition, toolbox ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.label { font: 600 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.panel .label + * { margin-top: 0; }
.panel * + .label { margin-top: 30px; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.role { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.role:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.role .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--chip); color: var(--mark); }
.role .ico svg { width: 23px; height: 23px; }
.role h3 { font-size: 19px; margin: 18px 0 6px; letter-spacing: -0.02em; }
.role p { color: var(--muted); font-size: 15px; }
.facts a + a { margin-top: 0; }

.jobs { display: grid; gap: 14px; margin-top: 48px; }
.job { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.job-logo { display: grid; place-items: center; height: 100%; min-height: 92px; border-radius: 14px; background: #fff; border: 1px solid var(--border); padding: 14px; }
.job-logo img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.job-body { padding-right: 8px; }
.job-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.job h3 { font-size: 20px; letter-spacing: -0.02em; }
.job time { font: 600 12px/1.4 var(--mono); color: var(--mark); white-space: nowrap; }
.job .where { color: var(--ink); font-weight: 500; font-size: 15px; margin-top: 2px; }
.job p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.exp-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.list li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.list b { font-weight: 600; font-size: 15px; }
.list time { font: 600 12px/1.6 var(--mono); color: var(--mark); white-space: nowrap; }
.list span { grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.5; }
.langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.langs div { background: var(--chip); border-radius: 12px; padding: 12px 14px; }
.langs b { display: block; font-size: 15px; }
.langs span { color: var(--muted); font-size: 13px; }
.panel-link { display: inline-block; margin-top: 18px; color: var(--mark); font-weight: 600; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }

.rec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 48px; }
.honor { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--border); }
.honor:first-of-type { border-top: 0; padding-top: 0; }
.honor .mark { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--chip); color: var(--mark); font: 700 12px/1 var(--mono); }
.honor .mark.gold { background: var(--lime); color: var(--on-lime); }
.honor b { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; }
.honor span { color: var(--muted); font-size: 14px; }
.honor a { color: var(--mark); }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 16px; }
.sub-head .label { margin: 0; }
.sub-head a { color: var(--mark); font-weight: 600; text-decoration: none; font-size: 15px; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px 16px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.badge:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.badge img { width: 88px; height: 88px; }
.badge b { margin-top: 12px; font-size: 16px; }
.badge small { margin-top: 8px; padding: 5px 9px; background: #6e6a86; color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .06em; }
.badge small.tier { background: var(--brand-500); }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.tools img { height: 48px; width: auto; max-width: 100%; }
.tools .chips { margin: 0; }

@media (max-width: 1020px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .exp-cards, .rec-grid, .tools { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 14px; }
  .job-logo { min-height: 80px; }
  .langs { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .langs div { padding: 10px; }
  .panel { padding: 22px; }
  .tools img { height: 40px; }
}

/* LinkedIn newsletter subscribe button: compact, on the newsletter's name line */
.list .li-sub {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: #0a66c2; color: #fff; font-weight: 600; font-size: 12px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .2s;
}
.list .li-sub:hover { background: #004182; transform: translateY(-1px); }
.list .li-sub svg { width: 13px; height: 13px; fill: currentColor; }

/* Nav: links share the bar on wide screens; below 960px they move into the menu */
@media (max-width: 960px) {
  .menu { display: inline-grid; }
  .links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--night); border-bottom: 1px solid var(--deep-line); display: none;
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .links.open { display: flex; }
  .links a { padding: 13px 16px; font-size: 14px; margin-top: 4px; }
}
@media (min-width: 961px) {
  .links a { padding: 9px 13px; }
}

/* About submenu: Experience, Recognition, Toolbox */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--deep-muted); cursor: pointer;
}
.sub-toggle:hover { color: #fff; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  min-width: 200px; display: none; flex-direction: column; gap: 2px;
  background: var(--night); border: 1px solid var(--deep-line); border-radius: 16px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.4);
}
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.sub a { display: block; }
.has-sub.open .sub, .has-sub:focus-within .sub { display: flex; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.has-sub.child-current > a { color: #fff; background: rgb(107 74 255 / 0.16); border-color: rgb(143 126 255 / 0.3); }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .sub { display: flex; }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 960px) {
  .has-sub { display: block; }
  .has-sub::after, .sub-toggle { display: none; }
  .sub { position: static; display: flex; min-width: 0; padding: 0 0 0 18px; background: none; border: 0; box-shadow: none; }
  .sub a { font-size: 13px; padding: 11px 16px; color: var(--deep-muted); }
}

/* Viewer dialog: app live pages and profile previews (reuses the CV dialog frame) */
.vb-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--tint); }
.vb-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.vb-body [hidden] { display: none; }
.viewbox.framed .vb-body { overflow: hidden; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 16px; padding: 22px; }
.pf-item { display: block; text-decoration: none; color: var(--ink); }
.pf-item img { width: 100%; aspect-ratio: 808 / 632; object-fit: cover; border-radius: 12px; background: var(--chip); transition: transform .3s ease; }
.pf-item:hover img { transform: translateY(-3px); }
.pf-item span { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pin-mount { display: flex; justify-content: center; padding: 22px; min-height: 200px; }
.pf-note { padding: 0 22px 22px; color: var(--muted); text-align: center; }
.pf-note a { color: var(--mark); font-weight: 600; }
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 12px; }
  .pf-item span { font-size: 12px; }
  .pin-mount { padding: 12px; }
}

/* Experience: four cards in a row, each stacked logo, role, dates, text */
.jobs { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.job { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 18px; padding: 16px; }
.job-logo { height: 104px; min-height: 0; }
.job-body { padding: 0 6px 6px; }
.job-top { flex-direction: column; align-items: flex-start; gap: 6px; }
.job h3 { font-size: 18px; line-height: 1.25; }
.job time { order: -1; }
@media (max-width: 1020px) { .jobs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jobs { grid-template-columns: 1fr; } .job-logo { height: 88px; } }

/* Blog cards: shared by the home page "From the blog" section and /blog/ */
.post-grid { display: grid; gap: 28px 20px; margin-top: 44px; }
.post-grid.four { grid-template-columns: repeat(4, 1fr); }
.post-grid.three { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.post-card .pc-im { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--chip); }
.post-card .pc-im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .pc-im img { transform: scale(1.04); }
.pc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font: 600 12px/1.4 var(--mono); color: var(--muted); }
.pc-cat { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--mark); font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.post-card b { display: block; margin-top: 10px; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
.post-card:hover b { color: var(--mark); }
.post-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pc-read { margin-top: 12px; font: 600 12px/1 var(--mono); color: var(--mark); }
@media (max-width: 1020px) { .post-grid.four, .post-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid.four, .post-grid.three { grid-template-columns: 1fr; } }
