/* =====================================================================
   Mohamed Chakib — Portfolio freelance
   Layout concept : un bureau de développeur la nuit. Grille éditoriale
   asymétrique sur fond de grille métallique, avec des feuilles de
   wireframe épinglées comme seule matière claire.
   ===================================================================== */
/* ------------------------------------------------------------- polices (hébergées sur le site) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* couleur */
  --ink: #06110C;          /* fond : vert bouteille presque noir */
  --ink-2: #0A1913;        /* bandes alternées */
  --panel: #0E1F17;        /* cartes */
  --panel-2: #13291F;      /* cartes au survol */
  --line: rgba(190, 255, 215, .09);
  --line-2: rgba(190, 255, 215, .18);
  --text: #E7F2EB;
  --muted: #A6BDB0;
  --dim: #789184;
  --signal: #3DEB89;       /* néon du bureau */
  --signal-soft: rgba(61, 235, 137, .12);
  --signal-glow: rgba(61, 235, 137, .32);
  --signal-ink: #03140B;
  --paper: #ECEFE7;        /* feuilles de wireframe */
  --paper-ink: #17211B;
  --paper-line: #C5CDC1;
  --amber: #FFB35C;        /* rétroéclairage du clavier */
  --danger: #FF7A7A;

  /* typo */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.06rem + .3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.8rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 4.2rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.9vw, 6rem);

  /* forme & mouvement */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --wrap: 1240px;
  --pad-x: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;
  --z-float: 40; --z-header: 50; --z-menu: 60; --z-toast: 70; --z-cursor: 80; --z-loader: 90;
  color-scheme: dark;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 40px); overflow-x: clip; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 55; background: var(--ink); pointer-events: none; }
body::after { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
main { position: relative; z-index: 2; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; inset-inline-start: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--signal); color: var(--signal-ink); font-weight: 700; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad-x)); margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.svc-alt { background: var(--ink-2); border-block: 1px solid var(--line); }

/* ------------------------------------------------------------- type */
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1em; height: 1em; }
.ic-xs { width: .85em; height: .85em; }
.kicker { display: inline-flex; gap: .5em; align-items: center; font: 500 .8rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: lowercase; color: var(--signal); }
.kicker span { color: var(--dim); }
.mono-sm { font: 400 .78rem/1.4 var(--f-mono); letter-spacing: .02em; color: var(--dim); }
.h-display, .h1, .h2, .h3, .statement, .cta-title { font-family: var(--f-display); font-weight: 760; letter-spacing: -.03em; text-wrap: balance; font-stretch: 88%; }
.h-display { font-size: var(--step-5); line-height: .94; font-weight: 800; letter-spacing: -.04em; }
.h1 { font-size: var(--step-4); line-height: 1; }
.h2 { font-size: var(--step-3); line-height: 1.04; }
.h3 { font-size: var(--step-2); line-height: 1.1; }
.h-display em, .h1 em, .h2 em, .cta-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: normal;
  letter-spacing: -.01em; color: var(--signal); padding-right: .05em;
}
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* ------------------------------------------------------------- buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h); padding: 0 1.3rem; border-radius: 999px;
  font: 650 .97rem/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn-sm { --h: 42px; padding: 0 1rem; font-size: .9rem; }
.btn-lg { --h: 54px; padding: 0 1.5rem; font-size: 1rem; }
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 12px 34px -14px var(--signal-glow), inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-primary:hover { background: #6AF2A5; box-shadow: 0 16px 40px -12px var(--signal-glow), inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(231, 242, 235, .03); color: var(--text); }
.btn-ghost:hover { border-color: var(--signal); background: var(--signal-soft); }
.btn-ghost[data-copy] { white-space: normal; text-align: left; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--text); background: rgba(231, 242, 235, .03); transition: border-color .2s, background-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-soft); }
.icon-btn .ic { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; color: var(--text); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .2s, border-color .2s, gap .2s var(--ease); }
.link-arrow .ic { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--signal); border-color: var(--signal); }
.link-arrow:hover .ic { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 .74rem/1 var(--f-mono); padding: 7px 10px; border-radius: var(--r-xs); color: var(--muted); background: rgba(231, 242, 235, .04); border: 1px solid var(--line); }
.tags-lg li { font-size: .8rem; padding: 9px 12px; }
.ic-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: var(--signal); background: var(--signal-soft); border: 1px solid rgba(61, 235, 137, .22); }
.ic-badge .ic { width: 22px; height: 22px; }

/* ------------------------------------------------------------- loader */
.loader { position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center; background: var(--ink); animation: loader-out .5s .75s var(--ease) forwards; }
.no-loader .loader { display: none; }
.loader-inner { display: grid; justify-items: center; gap: 14px; }
.loader-mark { font: 500 2.4rem/1 var(--f-mono); color: var(--signal); text-shadow: 0 0 24px var(--signal-glow); }
.loader-name { font: 700 1rem/1 var(--f-display); letter-spacing: .02em; color: var(--text); }
.loader-bar { width: 140px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; animation: loader-bar .75s var(--ease) both; }
@keyframes loader-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ------------------------------------------------------------- progress */
.scroll-progress { position: fixed; inset: 0 0 auto; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 56; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), #9BF7C3); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ------------------------------------------------------------- header */
.site-header {
  position: fixed; z-index: var(--z-header); left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto; max-width: calc(var(--wrap) + 40px); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 14px; border-radius: 20px;
  background: rgba(8, 20, 14, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.is-scrolled .nav-shell { background: rgba(6, 17, 12, .86); border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; padding-inline: 6px; }
.brand-text { display: grid; gap: 4px; line-height: 1.2; min-width: 0; }
.brand-text strong { font: 700 .78rem/1.2 var(--f-display); font-stretch: 100%; letter-spacing: .27em; text-transform: uppercase; white-space: nowrap; color: var(--text); }
.brand-text small { font: 400 .74rem/1.2 var(--f-mono); color: var(--dim); white-space: nowrap; }
.brand-name { display: block; letter-spacing: 0; }
.brand-letters { display: flex; justify-content: space-between; }
.brand-letters i { font-style: normal; }
.brand-letters .sp { width: .45em; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 12px; font-weight: 550; font-size: .95rem; color: var(--muted); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(231, 242, 235, .05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(231, 242, 235, .07); box-shadow: inset 0 -2px 0 var(--signal); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  padding: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 40px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(24px, env(safe-area-inset-left, 0px));
  background: rgba(6, 17, 12, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.menu-open .site-header { z-index: 65; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: 80ms; }
.mobile-menu li:nth-child(2) { transition-delay: 140ms; }
.mobile-menu li:nth-child(3) { transition-delay: 200ms; }
.mobile-menu li:nth-child(4) { transition-delay: 260ms; }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font: 760 clamp(2rem, 9vw, 2.8rem)/1.05 var(--f-display); letter-spacing: -.03em; font-stretch: 88%; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--signal); }
.mnum { font: 400 .8rem/1 var(--f-mono); color: var(--dim); }
.mobile-menu-foot { display: grid; gap: 14px; justify-items: start; }
.menu-open { overflow: hidden; }

.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.socials a:hover { color: var(--signal); border-color: var(--signal); background: var(--signal-soft); }
.socials .ic { width: 19px; height: 19px; }

/* ------------------------------------------------------------- hero backgrounds */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.wiregrid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 25%, transparent 75%);
}
.glow { position: absolute; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; right: -12vw; top: -18vw; border-radius: 50%; background: radial-gradient(circle, rgba(61, 235, 137, .22), rgba(61, 235, 137, 0) 62%); filter: blur(10px); }

/* ------------------------------------------------------------- home hero (photo plein cadre) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(620px, 94vh, 880px);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 56px);
  padding-bottom: 80px;
  background: var(--ink);
}
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: 26%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(6, 17, 12, .86) 18%, rgba(6, 17, 12, .45) 40%, rgba(6, 17, 12, 0) 62%),
    linear-gradient(180deg, rgba(6, 17, 12, .5) 0%, rgba(6, 17, 12, 0) 24%, rgba(6, 17, 12, 0) 70%, var(--ink) 100%);
}
.hero::before { /* halo vert du néon */
  content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  left: 30%; top: -45%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(61, 235, 137, .16), rgba(61, 235, 137, 0) 60%);
}
.hero-outline {
  position: absolute; z-index: -1; left: -1.5vw; top: 50%; translate: 0 -40%; margin: 0;
  font: 800 clamp(7rem, 23vw, 22rem)/.8 var(--f-display); font-stretch: 78%; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(190, 255, 215, .085); white-space: nowrap;
  pointer-events: none; -webkit-user-select: none; user-select: none;
}
.hero-inner { position: relative; width: 100%; }
.hero-copy { display: grid; gap: 20px; justify-items: start; max-width: 720px; min-width: 0; }
@media (min-width: 1100px) { .hero-copy { max-width: 920px; } .hero-name { white-space: nowrap; } }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 17, 12, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 .82rem/1 var(--f-body); color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 235, 137, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 235, 137, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 235, 137, 0); } }
.hero-name {
  font: 800 clamp(3.1rem, 1.3rem + 5.6vw, 6.6rem)/.92 var(--f-display); font-stretch: 84%;
  letter-spacing: -.045em; color: var(--text); text-wrap: balance;
}
.hero-name span { color: var(--signal); text-shadow: 0 0 24px rgba(61, 235, 137, .5), 0 0 70px rgba(61, 235, 137, .32); }
.hero-latin { font: 500 clamp(.78rem, .72rem + .25vw, .95rem)/1.4 var(--f-body); letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }
.hero-roles { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 6px; }
.hero-roles li { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; color: var(--text); }
.hero-roles li::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--signal); }
.hero-tagline { font: 680 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.3 var(--f-display); letter-spacing: -.015em; font-stretch: 92%; color: var(--text); max-width: 30ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.photo-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 8px rgba(231, 242, 235, .02); background: var(--panel); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 17, 12, 0) 55%, rgba(6, 17, 12, .55)); }

/* ------------------------------------------------------------- clients marquee */
.clients { position: relative; padding-block: 28px 44px; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 25, 19, .4), rgba(10, 25, 19, .9)); }
.clients-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.clients-head p { color: var(--dim); font-size: .95rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 84px); width: max-content; animation: marquee 42s linear infinite; padding-inline: 20px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(40px, 6vw, 84px) / 2)); } }
.logo-item { display: flex; align-items: center; gap: 12px; flex: none; opacity: .7; transition: opacity .25s; }
.logo-item:hover { opacity: 1; }
.logo-item img { height: 48px; width: auto; }
.logo-item.is-wide img { height: 40px; }
.logo-item.is-xl img { height: 60px; }
.logo-item.is-xxl img { height: 68px; }
.logo-item span { font: 650 .82rem/1.15 var(--f-display); letter-spacing: .01em; color: #fff; text-transform: uppercase; }

/* ------------------------------------------------------------- section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-main { display: grid; gap: 14px; max-width: 760px; min-width: 0; }
.section-head .lead { font-size: var(--step-0); }
.scroller-nav { display: flex; gap: 8px; }

/* ------------------------------------------------------------- intro / stats */
.intro-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 48px; }
.intro-grid .kicker { padding-top: .8em; align-self: start; }
.statement { font-size: var(--step-3); line-height: 1.12; font-weight: 640; letter-spacing: -.025em; color: var(--muted); max-width: 26ch; }
.statement span { color: var(--text); background: linear-gradient(transparent 70%, rgba(61, 235, 137, .25) 70%); }
.stats { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-2); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-block: 22px 4px; padding-inline: 0 18px; }
.stats > div + div { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.stats dt { font-size: .88rem; color: var(--dim); line-height: 1.35; }
.stats dd { font: 780 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--f-display); letter-spacing: -.04em; font-stretch: 85%; color: var(--text); font-variant-numeric: tabular-nums; }
.stats dd.dd-text { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.05; color: var(--signal); padding-top: .25em; }

/* ------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-card { position: relative; display: grid; gap: 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.bento-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.bento-text { display: grid; gap: 12px; align-content: start; justify-items: start; min-width: 0; position: relative; z-index: 1; }
.bento-text h3 { font: 740 var(--step-2)/1.1 var(--f-display); letter-spacing: -.02em; font-stretch: 90%; margin-top: 8px; }
.bento-text p { color: var(--muted); max-width: 44ch; }
.bento-text .link-arrow { margin-top: 6px; }
.b-web { grid-column: span 7; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; }
.b-motion { grid-column: span 5; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.b-mkt { grid-column: span 6; align-content: start; }
.b-design { grid-column: span 6; align-content: start; }

.stack-tiles { position: relative; height: 230px; }
.mini-tile { position: absolute; width: 58%; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--tile); display: grid; place-items: center; padding: 14%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); transition: transform .5s var(--ease); }
.mini-tile img { max-height: 100%; width: auto; object-fit: contain; }
.mini-tile:nth-child(1) { left: 0; top: 0; transform: rotate(-6deg); }
.mini-tile:nth-child(2) { right: 0; top: 18%; transform: rotate(5deg); }
.mini-tile:nth-child(3) { left: 20%; bottom: 0; transform: rotate(-1deg); }
.b-web:hover .mini-tile:nth-child(1) { transform: rotate(-9deg) translate(-6px, -4px); }
.b-web:hover .mini-tile:nth-child(2) { transform: rotate(8deg) translate(6px, -2px); }

.phone-mini { width: 132px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; border: 5px solid #0A0F0C; outline: 1px solid var(--line-2); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); background: #000; transform: rotate(3deg); }
.phone-mini video { width: 100%; height: 100%; object-fit: cover; }

.fb-mini { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.fb-mini-cover { width: 100%; aspect-ratio: 2.36 / 1; object-fit: cover; }
.fb-mini-avatar { position: absolute; left: 16px; bottom: 12px; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; }
.fb-mini::after { content: ""; display: block; height: 46px; background: #fff; }

.fan { position: relative; height: 260px; }
.fan img { position: absolute; width: 38%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .85); transition: transform .5s var(--ease); top: 8%; }
.fan img:nth-child(1) { left: 6%; transform: rotate(-9deg); }
.fan img:nth-child(2) { left: 31%; z-index: 2; transform: rotate(0deg) translateY(-6px); }
.fan img:nth-child(3) { left: 56%; transform: rotate(8deg); }
.b-design:hover .fan img:nth-child(1) { transform: rotate(-13deg) translateX(-8px); }
.b-design:hover .fan img:nth-child(3) { transform: rotate(12deg) translateX(8px); }

/* ------------------------------------------------------------- work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.work { min-width: 0; }
.work.is-hidden { display: none; }
.work-link { display: grid; gap: 18px; height: 100%; padding: 10px 10px 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); align-content: start; }
.work-link:hover { border-color: var(--line-2); background: var(--panel-2); }
.work-tile { position: relative; border-radius: 16px; overflow: hidden; background: var(--tile); aspect-ratio: 16 / 11; display: grid; grid-template-rows: auto 1fr; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dots { display: flex; gap: 5px; flex: none; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.url { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .85); font: 400 .7rem/1.2 var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-stage { display: grid; place-items: center; padding: 8% 12%; min-height: 0; }
.work-logo { max-width: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.work-logo.fit-badge { width: auto; max-height: 150px; height: 82%; }
.work-logo.fit-tall { width: auto; height: 76%; max-height: 140px; }
.work-logo.fit-square { width: auto; height: 70%; max-height: 120px; border-radius: 18px; }
.work-logo.fit-wide { width: 86%; height: auto; }
.work-link:hover .work-logo, .work-link:hover .work-word { transform: scale(1.05); }
.work-word { display: grid; justify-items: center; gap: 6px; color: #fff; transition: transform .6s var(--ease); }
.work-word strong { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1 var(--f-display); letter-spacing: .14em; font-stretch: 100%; }
.work-word small { font: 500 .66rem/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: #8FE0B6; }
.work-meta { display: grid; gap: 8px; padding: 0 10px; align-content: start; }
.work-type { font: 500 .74rem/1.3 var(--f-mono); color: var(--signal); }
.work-title { display: flex; align-items: center; gap: 8px; font: 740 var(--step-1)/1.2 var(--f-display); letter-spacing: -.015em; }
.work-arrow { width: 1em; height: 1em; color: var(--dim); transition: transform .25s var(--ease), color .25s; }
.work-link:hover .work-arrow { color: var(--signal); transform: translate(2px, -2px); }
.work-desc { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.work-meta .tags { margin-top: 6px; }

/* ------------------------------------------------------------- reels */
.reels-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.reels-scroller::-webkit-scrollbar { display: none; }
.reels-scroller:focus-visible { outline-offset: -2px; }
.reels-row { display: flex; gap: 18px; width: max-content; padding-inline-start: max(var(--pad-x), env(safe-area-inset-left, 0px), calc((100vw - var(--wrap)) / 2)); padding-inline-end: max(var(--pad-x), env(safe-area-inset-right, 0px)); }
.reel { width: clamp(200px, 22vw, 260px); flex: none; scroll-snap-align: start; scroll-margin-inline-start: max(var(--pad-x), calc((100vw - var(--wrap)) / 2)); display: grid; gap: 12px; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .45)); transition: background-color .3s; }
.reel-play .ic { width: 62px; height: 62px; padding: 19px; border-radius: 50%; background: rgba(6, 17, 12, .6); color: #fff; fill: currentColor; border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .3s; }
.reel-play:hover .ic { transform: scale(1.08); background: var(--signal); color: var(--signal-ink); }
.reel.is-playing .reel-play { opacity: 0; pointer-events: none; }
.reel-dur { position: absolute; right: 10px; top: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.reel figcaption { display: grid; gap: 2px; padding-inline: 4px; }
.reel figcaption strong { font: 700 1rem/1.25 var(--f-display); }
.reel figcaption span { font-size: .85rem; color: var(--dim); }

/* ------------------------------------------------------------- process sheets */
.sheets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.sheet { position: relative; display: grid; gap: 12px; align-content: start; padding: 34px 22px 26px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .95), 0 2px 0 rgba(0, 0, 0, .15); }
.sheet:nth-child(1) { rotate: -1.4deg; }
.sheet:nth-child(2) { rotate: 1deg; margin-top: 18px; }
.sheet:nth-child(3) { rotate: -.6deg; }
.sheet:nth-child(4) { rotate: 1.3deg; margin-top: 14px; }
.sheet-clip { position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 46px; height: 22px; border-radius: 4px 4px 6px 6px; background: linear-gradient(180deg, #2A332D, #111813); box-shadow: 0 4px 8px rgba(0, 0, 0, .4); }
.sheet-clip::after { content: ""; position: absolute; left: 50%; top: -8px; translate: -50% 0; width: 18px; height: 14px; border: 2px solid #2A332D; border-bottom: 0; border-radius: 9px 9px 0 0; }
.sheet-wire { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border: 1.5px dashed var(--paper-line); border-radius: 4px; margin-bottom: 4px; }
.sheet-wire i { height: 26px; border: 1.5px solid var(--paper-line); border-radius: 3px; background: linear-gradient(to top right, transparent calc(50% - 1px), var(--paper-line) 50%, transparent calc(50% + 1px)); }
.sheet-wire i:first-child { grid-column: 1 / -1; height: 34px; }
.sheet-step { font: 500 .74rem/1 var(--f-mono); color: #4F6156; letter-spacing: .04em; }
.sheet h3 { display: flex; align-items: center; gap: 10px; font: 760 1.3rem/1.15 var(--f-display); letter-spacing: -.02em; }
.sheet h3 .ic { color: #128A4B; width: 22px; height: 22px; }
.sheet p { font-size: .94rem; line-height: 1.5; color: #3B4A41; }

/* ------------------------------------------------------------- CTA band */
.cta-section { padding-top: 0; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: start; gap: 18px; padding: clamp(36px, 6vw, 80px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, rgba(61, 235, 137, .2), rgba(61, 235, 137, 0) 55%), var(--panel); border: 1px solid var(--line-2); }
.cta-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-title { font-size: var(--step-4); line-height: 1; }
.cta-lead { color: var(--muted); font-size: var(--step-1); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ------------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 2; padding-top: clamp(56px, 7vw, 88px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); background: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 40ch; font-size: .95rem; }
.foot-h { font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { color: var(--muted); transition: color .2s; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--signal); }
.foot-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; }
.foot-links .ic { width: 16px; height: 16px; color: var(--signal); flex: none; transition: transform .2s var(--ease); }
.foot-links a:hover .ic { transform: translateX(2px); }
[dir="rtl"] .foot-links a:hover .ic { transform: translateX(-2px); }
[dir="rtl"] .foot-links a:hover .ic.flip-rtl { transform: scaleX(-1) translateX(2px); }
.foot-contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); min-width: 0; }
.foot-contact .ic { width: 16px; height: 16px; color: var(--signal); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }

/* ------------------------------------------------------------- floating */
.wa-float {
  position: fixed; z-index: var(--z-float);
  right: calc(max(18px, env(safe-area-inset-right, 0px)) + 0px); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--signal); color: var(--signal-ink); box-shadow: 0 16px 40px -14px var(--signal-glow), 0 0 0 1px rgba(0, 0, 0, .2);
  transition: transform .3s var(--ease), background-color .2s; opacity: 0; translate: 0 20px; pointer-events: none;
}
.wa-float.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .3s var(--ease), translate .3s var(--ease), background-color .2s; }
.wa-float:hover { background: #6AF2A5; }
.wa-float .ic { width: 28px; height: 28px; }
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); translate: -50% 20px; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--ink); font-weight: 650; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; translate: -50% 0; }
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid var(--signal); pointer-events: none; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .25s, background-color .25s; }
.cursor.is-on { opacity: .8; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(61, 235, 137, .1); }

/* ------------------------------------------------------------- page hero */
.page-hero { position: relative; isolation: isolate; padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero .wrap { display: grid; gap: 20px; justify-items: start; }
.page-hero .h1 { max-width: 18ch; }
.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 550; font-size: .93rem; transition: color .2s, border-color .2s, background-color .2s; }
.chips-nav a:hover { color: var(--text); border-color: var(--signal); background: var(--signal-soft); }
.chips-nav .ic { width: 17px; height: 17px; color: var(--signal); }

/* ------------------------------------------------------------- services page */
.types-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.type-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.type-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.type-card h3 { font: 720 1.12rem/1.2 var(--f-display); letter-spacing: -.01em; margin-top: 6px; }
.type-card p { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.included { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 32px; align-items: center; padding: 22px 26px; border-radius: var(--r-md); border: 1px dashed rgba(61, 235, 137, .35); background: rgba(61, 235, 137, .04); }
.included-title { display: flex; align-items: center; gap: 10px; font: 720 1.05rem/1.2 var(--f-display); white-space: nowrap; }
.included-title .ic { color: var(--signal); }
.included ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.included li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .93rem; }
.included li .ic { color: var(--signal); }
.sub-block { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 18px; }
.sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sub-lead { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; border: 1px solid var(--line); background: rgba(231, 242, 235, .02); }
.filter { min-height: 40px; padding: 0 14px; border-radius: 11px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .2s, background-color .2s; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--signal); color: var(--signal-ink); }
.filter-count { margin-top: -4px; }
.work.is-entering { animation: card-in .45s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.others { margin-top: 28px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.others-title { font: 720 1.15rem/1.2 var(--f-display); margin-bottom: 12px; }
.others-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.others-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n ic" "t ic" "h ic"; align-items: center; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.others-list li:nth-last-child(-n + 2) a { border-bottom: 0; }
.o-name { grid-area: n; font-weight: 650; }
.o-type { grid-area: t; color: var(--muted); font-size: .9rem; }
.o-host { grid-area: h; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.others-list .ic { grid-area: ic; color: var(--dim); transition: color .2s, transform .2s var(--ease); }
.others-list a:hover .o-name, .others-list a:hover .ic { color: var(--signal); }
.others-list a:hover .ic { transform: translate(2px, -2px); }

/* showreel */
.showreel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.showreel-stage { display: grid; justify-items: center; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px); }
.phone { width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #1B2620, #050906); border: 1px solid var(--line-2); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -30px var(--signal-glow); }
.phone video { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; background: #000; }
.showreel-side { display: grid; gap: 18px; min-width: 0; }
.now-playing { display: flex; align-items: center; gap: 8px; color: var(--signal); }
.playlist { display: grid; gap: 8px; }
.pl-item { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: border-color .2s, background-color .2s; }
.pl-item:hover { border-color: var(--line-2); background: var(--panel-2); }
.pl-item[aria-current="true"] { border-color: var(--signal); background: rgba(61, 235, 137, .07); }
.pl-item img { width: 54px; height: 96px; object-fit: cover; border-radius: 9px; }
.pl-text { display: grid; gap: 2px; min-width: 0; }
.pl-text strong { font: 700 1rem/1.25 var(--f-display); }
.pl-text small { color: var(--muted); font-size: .88rem; }

/* marketing */
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.mkt-list { display: grid; gap: 12px; }
.mkt-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.mkt-item h3 { font: 720 1.1rem/1.25 var(--f-display); margin-bottom: 4px; }
.mkt-item p { color: var(--muted); font-size: .94rem; }
.case { display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); }
.case-label { color: var(--signal); }
.case h3 { font: 740 var(--step-2)/1.12 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.fb-mock { border-radius: 14px; overflow: hidden; background: #fff; color: #050505; border: 1px solid rgba(255, 255, 255, .1); }
.fb-cover { width: 100%; aspect-ratio: 2.36 / 1; object-fit: cover; }
.fb-row { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px 16px; margin-top: -36px; }
.fb-avatar { width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; flex: none; background: #fff; }
.fb-id { display: grid; gap: 2px; padding-bottom: 6px; min-width: 0; }
.fb-id strong { font: 700 1.2rem/1.2 var(--f-body); }
.fb-id span { font-size: .85rem; color: #65676B; }
.case-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.case-points li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .93rem; }
.case-points .ic { color: var(--signal); }

/* design */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; border: 1px solid var(--line); background: rgba(231, 242, 235, .02); margin-bottom: 22px; }
.tab { min-height: 42px; padding: 0 16px; border-radius: 11px; font-weight: 600; color: var(--muted); transition: color .2s, background-color .2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--ink); }
.posts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ratio-1x1 { --ratio: 1 / 1; }
.ratio-4x5 { --ratio: 4 / 5; }
.post { position: relative; display: block; width: 100%; aspect-ratio: var(--ratio); border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover img { transform: scale(1.04); }
.post-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(6, 17, 12, .7); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease); }
.post-zoom .ic { width: 17px; height: 17px; }
.post:hover .post-zoom, .post:focus-visible .post-zoom { opacity: 1; transform: none; }
.cards-print { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.flip-wrap { display: grid; gap: 12px; perspective: 1400px; }
.flip { display: block; width: 100%; aspect-ratio: 900 / 514; border-radius: 14px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); border: 1px solid rgba(255, 255, 255, .08); }
.flip-back { transform: rotateY(180deg); }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } .flip[aria-pressed="true"]:hover .flip-inner { transform: rotateY(0deg); } }
.flip-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flip-cap strong { font: 700 1.05rem/1.2 var(--f-display); }
.flip-cap .mono-sm { display: inline-flex; align-items: center; gap: 6px; }

/* hosting */
.host-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.host-grid li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.host-grid h3 { font: 720 1.08rem/1.2 var(--f-display); margin-top: 6px; }
.host-grid p { color: var(--muted); font-size: .93rem; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 680 1.08rem/1.35 var(--f-display); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }
.faq-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq-ic .ic { width: 18px; height: 18px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.faq-a { padding-block: 0 22px; padding-inline-end: 48px; color: var(--muted); }

/* ------------------------------------------------------------- about */
.about-grid { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; justify-items: stretch !important; }
.about-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.role { color: var(--signal); }
.prose { display: grid; gap: 14px; color: var(--muted); font-size: var(--step-1); line-height: 1.6; max-width: 58ch; }
.about-photo { position: relative; }
.photo-frame.tall { aspect-ratio: 4 / 5; }
.photo-frame.tall img { object-position: 30% 40%; }
.photo-tag { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(6, 17, 12, .78); border: 1px solid var(--line-2); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.value { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.value h3 { font: 740 1.25rem/1.2 var(--f-display); margin-top: 6px; }
.value p { color: var(--muted); font-size: .95rem; }
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.venture { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 12px 12px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.venture > :not(.venture-logo) { margin-inline: 12px; }
.venture-logo { width: 100%; aspect-ratio: 16 / 8; border-radius: 14px; background: var(--tile); display: grid; place-items: center; padding: 8% 12%; margin-bottom: 8px; }
.venture-logo img { width: 90%; height: auto; }
.venture-mounasaba { background: radial-gradient(circle at 30% 20%, #3B2A12, #140E06 70%); }
.venture-mounasaba .work-word strong { letter-spacing: .06em; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 2.4rem; color: #F2D9A0; }
.venture-mounasaba .work-word small { color: #D7B06A; }
.venture-role { color: var(--signal); }
.venture h3 { font: 740 1.35rem/1.2 var(--f-display); }
.venture p { color: var(--muted); font-size: .95rem; }
.venture .link-arrow { margin-top: 6px; }
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack-group { padding: 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.stack-group h3 { margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.stack-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-group li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(231, 242, 235, .04); border: 1px solid var(--line); font-size: .9rem; font-weight: 550; }
.stack-group li .ic { width: 16px; height: 16px; color: var(--signal); }
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.where-copy { display: grid; gap: 14px; justify-items: start; }
.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.clock { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); }
.clock-city { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--muted); }
.clock-city .ic { color: var(--signal); }
.clock-time { font: 760 clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; font-stretch: 85%; }

/* ------------------------------------------------------------- contact */
.contact-section { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line-2); }
.form-note { color: var(--muted); margin-top: -8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .93rem; }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px;
  background: rgba(3, 10, 7, .6); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #6A8174; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(190, 255, 215, .28); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(61, 235, 137, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap option { background: var(--panel); color: var(--text); }
.select-ic { position: absolute; inset-inline-end: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--dim); pointer-events: none; }
.field-error { color: var(--danger); font-size: .86rem; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.field-foot .mono-sm { margin-left: auto; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-status { font-size: .92rem; color: var(--signal); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }
.contact-aside { display: grid; gap: 14px; }
.contact-cards { display: grid; gap: 10px; }
.c-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--panel); }
.c-label { font: 400 .74rem/1.2 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.c-value { font-weight: 650; overflow-wrap: anywhere; }
.c-actions { display: flex; gap: 6px; }
.c-actions .icon-btn { width: 40px; height: 40px; border-radius: 11px; }
.hours { padding: 20px; border-radius: var(--r-md); border: 1px dashed rgba(61, 235, 137, .35); background: rgba(61, 235, 137, .04); }
.hours h2 { display: flex; align-items: center; gap: 8px; color: var(--signal); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hours dl { display: grid; gap: 8px; }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .94rem; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 650; font-variant-numeric: tabular-nums; text-align: end; }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-items: center; }
.notfound .wrap { gap: 22px; }

/* ------------------------------------------------------------- lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(3, 8, 5, .94); color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 8, 5, .8); }
.lb-figure { display: grid; justify-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 72px) max(72px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 56px) max(72px, env(safe-area-inset-left, 0px)); max-height: 100%; }
.lb-figure img { max-width: min(92vw, 820px); max-height: calc(100vh - 190px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 80px -30px #000; }
.lb-figure figcaption { font-size: .92rem; color: var(--muted); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14, 31, 23, .8); color: var(--text); transition: background-color .2s, border-color .2s; }
.lb-btn:hover { border-color: var(--signal); background: var(--signal-soft); }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; translate: 0 -50%; }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; left: 50%; translate: -50% 0; top: calc(env(safe-area-inset-top, 0px) + 30px); }

/* ------------------------------------------------------------- AOS (compact, déclenché par aos.js) */
[data-aos].aos-init { transition-property: opacity, transform; transition-duration: .8s; transition-timing-function: var(--ease); }
[data-aos^="fade"].aos-init, [data-aos^="zoom"].aos-init { opacity: 0; }
[data-aos="fade-up"].aos-init { transform: translate3d(0, 36px, 0); }
[data-aos="fade-right"].aos-init { transform: translate3d(-40px, 0, 0); }
[data-aos="fade-left"].aos-init { transform: translate3d(40px, 0, 0); }
[data-aos="zoom-in"].aos-init { transform: scale(.94); }
[data-aos].aos-init.aos-animate { opacity: 1; transform: none; }
[data-aos-delay="60"].aos-init { transition-delay: 60ms; }
[data-aos-delay="80"].aos-init { transition-delay: 80ms; }
[data-aos-delay="100"].aos-init { transition-delay: .1s; }
[data-aos-delay="120"].aos-init { transition-delay: .12s; }
[data-aos-delay="150"].aos-init { transition-delay: .15s; }
[data-aos-delay="160"].aos-init { transition-delay: .16s; }
[data-aos-delay="180"].aos-init { transition-delay: .18s; }
[data-aos-delay="200"].aos-init { transition-delay: .2s; }
[data-aos-delay="240"].aos-init { transition-delay: .24s; }
[data-aos-delay="300"].aos-init { transition-delay: .3s; }
[data-aos-delay="400"].aos-init { transition-delay: .4s; }
[data-aos-delay="160"].aos-init.aos-animate, [data-aos-delay].aos-init.aos-animate { transition-property: opacity, transform; }


/* ------------------------------------------------------------- couleurs des tuiles projets */
.t-msg { --tile: #EFE8D8; } .t-bp { --tile: #001A14; } .t-bf { --tile: #1F6E3A; } .t-psm { --tile: #E6EFE9; }
.t-am { --tile: #A70F26; } .t-lm { --tile: #FBF5E3; } .t-ca { --tile: #FAF1F5; } .t-ts { --tile: #1B3A6B; }

/* ------------------------------------------------------------- sélecteur de langue */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(231, 242, 235, .03); }
.lang-switch a { display: inline-grid; place-items: center; min-width: 38px; min-height: 36px; padding: 0 8px; border-radius: 9px; font: 600 .78rem/1 var(--f-body); color: var(--muted); transition: color .2s, background-color .2s; }
.lang-switch a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-body); font-size: .85rem; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--ink); }
.lang-menu { margin-bottom: 4px; }
.lang-menu a { min-width: 52px; min-height: 44px; font-size: .9rem; }

/* ------------------------------------------------------------- page de langue / 404 */
.lang-gate { min-height: 100vh; display: grid; place-items: center; }
.gate { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.gate .lead { max-width: 52ch; }
.gate-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gate-links a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 650; transition: border-color .2s, background-color .2s, color .2s; }
.gate-links a:hover { border-color: var(--signal); background: var(--signal-soft); color: var(--signal); }
.gate-links a[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }

/* ------------------------------------------------------------- arabe (RTL) */
:root[lang="ar"] {
  --f-display: "Alexandria", "Bricolage Grotesque", "Arial", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
  --f-serif: "Alexandria", "Instrument Serif", serif;
}
[lang="ar"] body { line-height: 1.8; }
[lang="ar"] :is(h1, h2, h3, h4, p, li, a, button, span, strong, small, dt, dd, label, summary, figcaption) { letter-spacing: 0; }
[lang="ar"] :is(.h-display, .h1, .h2, .h3, .hero-name, .statement, .cta-title, .bento-text h3, .work-title, .mobile-menu nav a, .stats dd) { font-stretch: normal; }
[lang="ar"] .h-display, [lang="ar"] .h1, [lang="ar"] .h2, [lang="ar"] .cta-title { line-height: 1.3; font-weight: 700; }
[lang="ar"] .hero-name { line-height: 1.2; font-weight: 800; }
[lang="ar"] .statement { line-height: 1.55; font-weight: 600; }
[lang="ar"] :is(.h-display, .h1, .h2, .cta-title) em { font-family: var(--f-display); font-style: normal; font-weight: 800; padding: 0; }
[lang="ar"] .hero-latin { font-family: "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .36em; }
[lang="ar"] .hero-tagline { line-height: 1.6; font-weight: 600; }
[lang="ar"] .kicker, [lang="ar"] .work-type, [lang="ar"] .tags li, [lang="ar"] .mono-sm, [lang="ar"] .c-label, [lang="ar"] .foot-h, [lang="ar"] .sheet-step { font-family: var(--f-body); }
[lang="ar"] .kicker { font-size: .86rem; }
[lang="ar"] .brand-text strong { letter-spacing: 0; font-size: .95rem; }
[lang="ar"] .brand-text small { font-family: var(--f-body); }
[lang="ar"] .work-word strong { font-family: "Bricolage Grotesque", sans-serif; letter-spacing: .14em; }
[lang="ar"] .venture-mounasaba .work-word strong { font-family: "Instrument Serif", serif; font-style: italic; }
[lang="ar"] .loader-name { font-family: var(--f-display); }
[dir="rtl"] .hero-copy { margin-right: auto; margin-left: 0; justify-items: center; text-align: center; max-width: 660px; }
[dir="rtl"] .hero-roles, [dir="rtl"] .hero-actions { justify-content: center; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .flip-rtl { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .work-link:hover .work-arrow { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .others-list a:hover .flip-rtl { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .lb-prev { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); }
[dir="rtl"] .lb-next { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
[dir="rtl"] .fb-mini-avatar { left: auto; right: 16px; }
[dir="rtl"] .statement { max-width: 30ch; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav a { padding: 0 10px; }
  .types-grid, .host-grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts-grid li:nth-child(n + 7) { display: none; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .nav, .nav-cta { display: none; }
  .nav-actions { gap: 10px; }
  .burger { display: block; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { display: block; min-height: 0; padding-top: 0; padding-bottom: 64px; }
  .hero-photo { position: relative; left: auto; inset: auto; aspect-ratio: 16 / 10; max-height: 70vh; width: 100%; }
  .hero-photo img { object-position: 72% 38%; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(6, 17, 12, .65) 0%, rgba(6, 17, 12, 0) 30%, rgba(6, 17, 12, 0) 55%, var(--ink) 100%); }
  .hero::before { left: 10%; top: -20%; }
  .hero-inner { margin-top: -96px; }
  .hero-outline { top: auto; bottom: 18%; translate: none; font-size: 30vw; }
  .photo-frame.tall { aspect-ratio: 4 / 5; max-width: 480px; }
  .about-photo { justify-self: center; width: 100%; max-width: 480px; }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { grid-column: 1 / -1; padding-inline-start: 0; border-inline-start: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento > * { grid-column: 1 / -1 !important; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .sheet:nth-child(n) { margin-top: 0; }
  .showreel, .mkt-grid, .faq-wrap, .where, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .showreel-stage { position: static; }
  .ventures { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .cards-print { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .included { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lang-header { display: none; }
  [dir="rtl"] .lb-prev { right: calc(50% - 56px); left: auto; }
  [dir="rtl"] .lb-next { left: calc(50% - 56px); right: auto; }
  .brand-text strong { font-size: .95rem; }
  .hero-actions .btn, .cta-actions .btn, .form-actions .btn { width: 100%; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-photo img { object-position: 74% 40%; }
  .hero-inner { margin-top: -120px; }
  .hero-roles { gap: 8px 18px; }
  .hero-roles li { font-size: .95rem; }
  .work-grid, .types-grid, .host-grid, .values, .stack, .others-list, .field-row, .case-points, .clocks { grid-template-columns: minmax(0, 1fr); }
  .others-list li:nth-last-child(2) a { border-bottom: 1px solid var(--line); }
  .b-web, .b-motion, .b-design { grid-template-columns: minmax(0, 1fr); }
  .phone-mini { justify-self: center; }
  .stack-tiles { height: 200px; }
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .sheet:nth-child(n) { rotate: 0deg; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .posts-grid li:nth-child(n + 7) { display: block; }
  .faq-a { padding-inline-end: 0; }
  .c-card { grid-template-columns: auto minmax(0, 1fr); }
  .c-actions { grid-column: 1 / -1; }
  .lb-figure { padding-left: 16px; padding-right: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); translate: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-figure img { max-height: calc(100vh - 220px); }
  .pl-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .pl-item img { width: 44px; height: 78px; }
  .stats > div { padding-inline-end: 10px; }
  .stats > div + div { padding-inline-start: 14px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .fan { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  [data-aos].aos-init { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
}
