/* Ahmed Fadel Hassan — an encrypted transmission on 64 channels.
   Behind everything, glyphs fall through the 64 channels of his W64 waterfall design. The opening
   prints his portrait in that cipher; the visitor breaks it (pointer, hold, or scroll) and the
   file opens: courses and teaching first, then case files, clearance, operations, toolkit.
   Near-black, signal red while locked, phosphor green once access is granted. */

@font-face { font-family: 'Archivo'; src: url('/vendor/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/vendor/fonts/inter-tight-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/vendor/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/vendor/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Readex Pro'; src: url('/vendor/fonts/readex-arabic-var.woff2') format('woff2'); font-weight: 160 700; 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('/vendor/fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/vendor/fonts/plex-arabic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url('/vendor/fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

@property --mx { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --my { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --void: #04070a; --panel: #0a1217; --panel-2: #0f1a20; --ice: #e8fff6; --dim: #86a39a; --mute: #55706a;
  --accent: #3dffa2; --lock: #ff2b40; --amber: #ffc04d; --cyan: #7ee8ff;
  --key: var(--lock);                         /* the colour of the state: red while locked, green once granted */
  --line: rgba(126, 255, 204, .16); --line-2: rgba(126, 255, 204, .32);
  --f-display: 'Archivo', 'Readex Pro', 'Arial Narrow', sans-serif;
  --f-body: 'Inter Tight', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, Consolas, monospace;
  --pad: clamp(18px, 4.4vw, 64px);
  --gut: max(var(--pad), calc(50vw - 680px));
  --top-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
html.is-granted { --key: var(--accent); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: #1d3a31 var(--void); background: var(--void); }
body { margin: 0; background: var(--void); color: var(--ice); font: 400 17px/1.62 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
html.is-locked, html.is-loading { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--void); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; z-index: 500; inset-inline-start: 12px; top: -80px; background: var(--accent); color: var(--void); padding: 10px 16px; font: 500 13px var(--f-mono); }
.skip:focus { top: 12px; }
.noscript { position: relative; z-index: 5; padding: 40px var(--pad); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
.led { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--key); box-shadow: 0 0 10px 1px var(--key); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* the rain: fixed behind the page */
.rain { position: fixed; z-index: 0; inset: 0; width: 100vw; height: 100lvh; pointer-events: none; }
.no-gl .rain { display: none; }
#app { position: relative; z-index: 1; transition: opacity .25s; }
.is-swapping #app { opacity: 0; }
main > section:not(.hero), .foot { position: relative; padding: clamp(74px, 9vw, 150px) var(--gut); background: linear-gradient(180deg, rgba(4, 7, 10, .9), rgba(4, 7, 10, .86)); border-top: 1px solid var(--line); }

/* ── small parts */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; clip-path: var(--cut); font: 500 12.500px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s, filter .3s; }
.btn .ico { font-size: 16px; transition: transform .4s var(--ease); }
.btn:hover .ico--dir { transform: translateX(5px); }
[dir="rtl"] .btn:hover .ico--dir { transform: scaleX(-1) translateX(5px); }
.btn--go { background: var(--accent); color: #02130b; }
.btn--go:hover { filter: brightness(1.12); box-shadow: 0 0 34px -4px var(--accent); }
.btn--line { background: rgba(10, 18, 23, .6); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--line:hover { background: var(--ice); color: var(--void); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 11px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ice); background: rgba(10, 18, 23, .55); }
.chips--s li { font-size: 10.500px; padding: 6px 9px; color: #c9e9dd; }
.sub { font: 800 clamp(28px, 3.4vw, 50px)/.98 var(--f-display); font-stretch: 68%; letter-spacing: -.01em; text-transform: uppercase; }
.sub em { font-style: normal; color: var(--accent); }
.note-line { margin-top: 18px; font: 400 12.500px/1.6 var(--f-mono); color: var(--mute); }
.swatch { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: repeating-linear-gradient(135deg, #0c161b 0 12px, #0f1c22 12px 24px); color: var(--dim); font: 500 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; }

/* a section opens with its number in the file */
.sec { display: grid; gap: clamp(14px, 1.8vw, 24px); margin-bottom: clamp(34px, 4.6vw, 70px); }
.sec__tag { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.sec__tag b { font-weight: 500; color: var(--accent); }
.sec__tag i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.sec__title { font: 900 clamp(46px, 8.6vw, 140px)/.86 var(--f-display); font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance; }
.sec__title em { font-style: normal; color: var(--accent); text-shadow: 0 0 44px rgba(61, 255, 162, .35); }
.sec__lead { max-width: 54ch; font-size: clamp(16px, 1.4vw, 20px); color: var(--dim); }

/* ── arriving on scroll */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ── loader: a handshake */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: start; gap: 18px; padding: var(--pad); background: var(--void); color: var(--accent); transition: opacity .6s, visibility .6s; }
.is-opening .loader { opacity: 0; visibility: hidden; }
.loader__mark { font: 900 64px/1 var(--f-display); font-stretch: 62%; color: var(--ice); }
.loader__mark i, .mark i { font-style: normal; color: var(--accent); animation: blink 1s steps(2, jump-none) infinite; }
.loader__log { min-height: 5.6em; min-width: min(78vw, 420px); font: 400 13px/1.55 var(--f-mono); color: var(--dim); white-space: pre-wrap; }
.loader__bar { width: min(78vw, 420px); height: 2px; background: rgba(126, 255, 204, .16); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ── top bar */
.top { position: fixed; z-index: 60; top: 0; inset-inline: 0; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-inline: var(--gut); color: var(--ice); transition: translate .6s var(--ease), opacity .5s; }
.is-loading .top { opacity: 0; translate: 0 -12px; }
.top::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(4, 7, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.top::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity .4s; }
[dir="rtl"] .top::after { transform-origin: 100% 50%; }
.is-scrolled .top::before, .is-scrolled .top::after { opacity: 1; }
.menu-open .top::before, .menu-open .top::after { opacity: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 40px; height: 40px; padding-inline: 8px; box-shadow: inset 0 0 0 1px var(--line-2); font: 900 24px/1 'Archivo', sans-serif; font-stretch: 62%; background: rgba(10, 18, 23, .6); }
.brand__name { font: 500 12.500px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: clamp(12px, 1.5vw, 24px); }
.nav a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 0; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.nav a i { font-style: normal; font-size: 9px; color: var(--mute); transition: color .3s; }
.nav a:hover, .nav a.is-here { color: var(--ice); }
.nav a.is-here i, .nav a:hover i { color: var(--accent); }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
[dir="rtl"] .nav a::after { transform-origin: 100% 50%; }
.nav a.is-here::after { transform: scaleX(1); }
.top__tools { display: flex; align-items: center; gap: 8px; }
.state { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px; font: 500 10.500px/1 var(--f-mono); letter-spacing: .16em; color: var(--key); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--key) 45%, transparent); background: rgba(10, 18, 23, .6); transition: color .4s, box-shadow .4s; }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--key); box-shadow: 0 0 10px var(--key); }
.tool { width: 40px; height: 40px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(10, 18, 23, .6); font: 500 12px/1 var(--f-mono); transition: background-color .3s, color .3s; }
.tool:hover { background: var(--accent); color: var(--void); }
.menu-btn { display: none; position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i:first-child { transform: translateY(-3.5px); }
.menu-btn i:last-child { transform: translateY(3.5px); }
.menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: calc(var(--top-h) + 26px) var(--pad) 34px; background: rgba(4, 7, 10, .96); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); overflow-y: auto; }
.menu.is-open { clip-path: inset(0); }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 900 clamp(36px, 11vw, 64px)/1 var(--f-display); font-stretch: 62%; text-transform: uppercase; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s var(--ease); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; } .menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; } .menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .16s; } .menu.is-open .menu__nav a:nth-child(6) { transition-delay: .2s; } .menu.is-open .menu__nav a:nth-child(7) { transition-delay: .24s; }
.menu__n { font: 500 12px/1 var(--f-mono); color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.social a:hover { background: var(--accent); color: var(--void); }

/* ── the pointer: a target box */
.cursor { position: fixed; z-index: 400; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor__box { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; background: linear-gradient(var(--key), var(--key)) 0 0 / 7px 1px no-repeat, linear-gradient(var(--key), var(--key)) 0 0 / 1px 7px no-repeat, linear-gradient(var(--key), var(--key)) 100% 0 / 7px 1px no-repeat, linear-gradient(var(--key), var(--key)) 100% 0 / 1px 7px no-repeat, linear-gradient(var(--key), var(--key)) 0 100% / 7px 1px no-repeat, linear-gradient(var(--key), var(--key)) 0 100% / 1px 7px no-repeat, linear-gradient(var(--key), var(--key)) 100% 100% / 7px 1px no-repeat, linear-gradient(var(--key), var(--key)) 100% 100% / 1px 7px no-repeat; transition: scale .35s var(--ease), rotate .5s var(--ease); }
.cursor[data-kind="link"] .cursor__box, .cursor[data-kind="view"] .cursor__box { scale: 1.7; rotate: 45deg; }
.cursor[data-kind="hold"] .cursor__box { scale: 2.2; }
.cursor[data-kind="text"] .cursor__box { scale: .45; }
.cursor.is-down .cursor__box { scale: .8; }
.cursor__label { position: absolute; left: 20px; top: 14px; padding: 4px 6px; background: var(--key); color: #02130b; font: 500 9.500px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor__label:not(:empty) { opacity: 1; }
[dir="rtl"] .cursor__label { left: auto; right: 20px; }

/* ── the opening */
.hero { height: calc(100svh + var(--run, 0px)); }
.hero__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__portrait { position: absolute; z-index: 1; inset-inline-end: max(2vw, calc(50vw - 700px)); bottom: 0; height: min(90svh, 66vw); aspect-ratio: var(--ar, .987); }
.hero__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; }
.no-gl .hero__portrait img, .rm .hero__portrait img { opacity: 1; }
.brk { position: absolute; width: 26px; height: 26px; border: 0 solid var(--key); opacity: .9; transition: border-color .4s; }
.brk--a { top: 9%; left: 13%; border-top-width: 1px; border-left-width: 1px; }
.brk--b { top: 9%; right: 13%; border-top-width: 1px; border-right-width: 1px; }
.brk--c { bottom: 34%; left: 13%; border-bottom-width: 1px; border-left-width: 1px; }
.brk--d { bottom: 34%; right: 13%; border-bottom-width: 1px; border-right-width: 1px; }
.hero__id { position: absolute; top: calc(9% - 22px); left: 13%; font: 500 10px/1 var(--f-mono); letter-spacing: .2em; color: var(--key); transition: color .4s; }
.hero__copy { position: absolute; z-index: 3; inset-inline-start: var(--gut); bottom: clamp(84px, 13svh, 150px); display: grid; gap: 14px; justify-items: start; max-width: min(760px, 62vw); }
.hero__file { display: inline-flex; align-items: center; gap: 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--dim); }
.hero__file span + span { color: var(--key); transition: color .4s; }
.hero__name { display: grid; font: 900 clamp(76px, 15.4vw, 268px)/.8 var(--f-display); font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase; }
.hero__name span { display: block; white-space: nowrap; }
.hero__name span + span { color: transparent; -webkit-text-stroke: 2px var(--key); transition: -webkit-text-stroke-color .5s; }
.hero__role { margin-top: 8px; font: 500 clamp(12px, 1.15vw, 15px)/1.5 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.hero__tag { min-height: 1.5em; font: 400 clamp(13px, 1.2vw, 16px)/1.5 var(--f-mono); color: var(--key); transition: color .5s; word-break: break-word; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__copy > * { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .9s var(--ease), color .5s; }
.is-ready .hero__copy > * { opacity: 1; translate: 0 0; }
.is-ready .hero__copy > :nth-child(2) { transition-delay: .08s; } .is-ready .hero__copy > :nth-child(3) { transition-delay: .16s; } .is-ready .hero__copy > :nth-child(4) { transition-delay: .24s; }
.is-ready .hero__copy > :nth-child(5) { transition-delay: .3s; } .is-ready .hero__copy > :nth-child(6) { transition-delay: .36s; }
/* hold to decrypt */
.decrypt { position: absolute; z-index: 4; inset-inline-end: calc(max(2vw, 50vw - 700px) + min(90svh, 66vw) * .987 / 2 - 52px); bottom: 7svh; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; color: var(--key); background: rgba(4, 7, 10, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .5s, scale .4s var(--ease), color .4s; }
.decrypt:hover { scale: 1.06; }
.decrypt__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.decrypt__ring circle { fill: none; stroke: color-mix(in srgb, var(--key) 30%, transparent); stroke-width: 1.5; }
.decrypt__ring .decrypt__arc { stroke: var(--key); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); filter: drop-shadow(0 0 6px var(--key)); }
.decrypt__ico { position: absolute; top: 25px; width: 24px; height: 24px; }
.decrypt__ico--open { opacity: 0; }
.decrypt__say { position: absolute; top: 58px; inset-inline: 8px; text-align: center; font: 500 8.500px/1.25 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.is-granted .decrypt { pointer-events: none; opacity: 0; scale: .8; }
.is-loading .decrypt { opacity: 0; }
.hud { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; font: 500 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hud--bl { inset-inline-start: var(--gut); bottom: 26px; }
.hud--br { inset-inline-end: var(--gut); bottom: 26px; color: var(--dim); }
[dir="rtl"] .hud--bl { left: auto; right: var(--gut); }   /* it is written left to right, so its "start" is the left: send it to the copy's side */
.hud--br .when-open, .is-granted .hud--br .when-locked { display: none; }
.is-granted .hud--br .when-open { display: inline; }
.hud--br .ico { width: 15px; height: 15px; color: var(--key); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 5px; } }
.is-loading .hud { opacity: 0; }
.granted { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; pointer-events: none; font: 900 clamp(54px, 13vw, 220px)/.84 var(--f-display); font-stretch: 62%; text-transform: uppercase; color: var(--accent); text-shadow: 0 0 60px rgba(61, 255, 162, .6); opacity: 0; }
.granted span + span { color: transparent; -webkit-text-stroke: 2px var(--accent); }
.granted.is-on { animation: stamp 1.7s var(--ease) both; }
@keyframes stamp { 0% { opacity: 0; scale: 1.25; filter: blur(12px); } 14% { opacity: 1; scale: 1; filter: none; } 18% { opacity: .2; } 22% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; scale: .97; } }

/* ── identity */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.idwrap { perspective: 1100px; }
.idcard { position: relative; aspect-ratio: 1.586; max-width: 520px; padding: clamp(14px, 1.7vw, 22px); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; border-radius: 16px; background: linear-gradient(140deg, #13232a 0%, #0a1419 46%, #0d1c1a 100%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px #000, 0 0 60px -30px var(--accent); transform: rotateX(calc(var(--my) * -9deg)) rotateY(calc(var(--mx) * 12deg)); transform-style: preserve-3d; transition: transform .5s var(--ease); overflow: hidden; }
.idcard:hover { transition-duration: .1s; }
.idcard__top { display: flex; align-items: center; justify-content: space-between; font: 500 10px/1 var(--f-mono); letter-spacing: .24em; color: var(--accent); }
.idcard__chip, .key__chip { width: 38px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #e9c56f, #9c7526 45%, #f1d98e 60%, #8a6520); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); position: relative; }
.idcard__chip::after, .key__chip::after { content: ''; position: absolute; inset: 6px 10px; border: 1px solid rgba(0, 0, 0, .4); border-radius: 2px; }
.idcard__body { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: center; min-height: 0; }
.idcard__photo { aspect-ratio: 1; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.idcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.9) contrast(1.05); }
.idcard__data { display: grid; gap: 6px; min-width: 0; }
.idcard__data > b { font: 800 clamp(20px, 2.3vw, 32px)/.95 var(--f-display); font-stretch: 68%; text-transform: uppercase; }
.idcard__role { font: 500 clamp(8.500px, .78vw, 10.500px)/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.idcard dl { display: grid; gap: 4px; margin: 6px 0 0; }
.idcard dl div { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px; font: 400 clamp(9px, .82vw, 11px)/1.35 var(--f-mono); }
.idcard dt { color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.idcard__code { font: 500 clamp(8.500px, .86vw, 11.500px)/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); white-space: nowrap; overflow: hidden; }
.idcard__holo, .key__holo { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(calc(110deg + var(--mx) * 40deg), transparent 30%, rgba(61, 255, 162, .16) 44%, rgba(126, 232, 255, .2) 50%, rgba(255, 192, 77, .14) 56%, transparent 70%); background-size: 200% 200%; background-position: calc(50% + var(--mx) * 50%) calc(50% + var(--my) * 50%); mix-blend-mode: screen; }
.bio { display: grid; gap: 1em; max-width: 60ch; }
.bio p:first-child { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; }
.bio p + p { color: var(--dim); }
.facts, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(26px, 3.4vw, 46px); background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.facts li, .stats li { padding: clamp(14px, 1.7vw, 24px); background: rgba(8, 14, 18, .94); }
.facts b, .stats b { display: block; font: 900 clamp(38px, 4.6vw, 72px)/.9 var(--f-display); font-stretch: 62%; color: var(--accent); text-shadow: 0 0 30px rgba(61, 255, 162, .3); }
.facts span, .stats span { display: block; margin-top: 10px; font: 400 11px/1.45 var(--f-mono); letter-spacing: .06em; color: var(--dim); }

/* ── courses & teaching */
.teach { background: linear-gradient(180deg, rgba(4, 7, 10, .92), rgba(5, 12, 12, .9)) !important; }
.teach .stats { margin: 0 0 clamp(40px, 5vw, 76px); }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11.500px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: rgba(10, 18, 23, .6); transition: background-color .3s, color .3s, box-shadow .3s; }
.filters button i { font-style: normal; font-size: 10px; color: var(--mute); }
.filters button:hover { color: var(--ice); }
.filters button.is-on { background: var(--accent); color: #02130b; box-shadow: none; }
.filters button.is-on i { color: #0d4a2f; }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.course { position: relative; display: grid; align-content: space-between; gap: 22px; min-height: 172px; padding: 18px 18px 16px; background: linear-gradient(160deg, rgba(15, 26, 32, .96), rgba(8, 14, 18, .96)); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--cut); overflow: hidden; transition: box-shadow .35s, transform .5s var(--ease), background-color .3s; }
.course::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.course:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -30px var(--accent); }
.course:hover::before { transform: scaleX(1); }
.course.is-out { display: none; }
.course__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course__code { font: 500 12.500px/1 var(--f-mono); letter-spacing: .14em; color: var(--accent); }
.course__uni { padding: 5px 8px; font: 500 9.500px/1 var(--f-mono); letter-spacing: .16em; color: var(--ice); box-shadow: inset 0 0 0 1px var(--line-2); }
.course__title { font: 800 clamp(22px, 1.9vw, 28px)/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: 0; text-wrap: balance; }
.course__meta { display: inline-flex; align-items: center; gap: 9px; font: 400 10.500px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.course__meta .led { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: none; width: 5px; height: 5px; }
.course__n { position: absolute; inset-inline-end: 10px; bottom: -14px; font: 900 78px/1 var(--f-display); font-stretch: 62%; color: rgba(126, 255, 204, .05); pointer-events: none; }
.platform { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 90px); align-items: center; margin-top: clamp(60px, 8vw, 130px); }
.platform__say { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
.platform__text { max-width: 52ch; color: var(--dim); font-size: clamp(16px, 1.35vw, 19px); }
.method { display: grid; gap: 1px; width: 100%; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.method li { display: grid; grid-template-columns: 3em minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 14px 16px; background: rgba(8, 14, 18, .94); }
.method b { font: 500 12px/1 var(--f-mono); color: var(--accent); }
.method span { font-size: 16.500px; }
.platform__phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: clamp(360px, 44vw, 560px); }
.platform__phones .dev--phone { width: 34%; }
.platform__phones .p1 { rotate: -7deg; translate: 16% 3%; z-index: 1; }
.platform__phones .p2 { width: 38%; z-index: 2; }
.platform__phones .p3 { rotate: 7deg; translate: -16% 3%; z-index: 1; }
.tick { margin: clamp(50px, 6vw, 90px) calc(var(--gut) * -1) 0; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(8, 14, 18, .7); }
.tick__say { margin: 0 var(--gut) 12px; font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.tick__mask { overflow: hidden; }
.tick__track { display: flex; width: max-content; will-change: transform; }
.tick__set { display: flex; flex: none; }
.tick__w { padding-inline: clamp(14px, 1.8vw, 26px); font: 800 clamp(26px, 3.4vw, 50px)/1.1 var(--f-display); font-stretch: 66%; text-transform: uppercase; white-space: nowrap; color: var(--ice); }
.tick__w:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px var(--accent); }
.unis { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px; margin-top: clamp(30px, 4vw, 50px); align-items: baseline; }
.unis p { font: 500 11px/1.5 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.unis ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.unis li { padding: 9px 13px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12.500px/1.3 var(--f-mono); }

/* ── devices */
.dev { position: relative; display: block; overflow: hidden; background: #05080a; }
.dev img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.dev--phone, .dev--auto { aspect-ratio: 390 / 844; border-radius: clamp(18px, 2.2vw, 30px); border: clamp(4px, .5vw, 7px) solid #0c1114; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 70px -30px #000, 0 0 50px -22px var(--accent); }
.dev__notch { position: absolute; z-index: 2; top: 7px; left: 50%; translate: -50% 0; width: 30%; height: 3.2%; min-height: 8px; border-radius: 99px; background: #05080a; }
.dev--browser, .dev--auto.is-wide { aspect-ratio: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -40px #000, 0 0 60px -30px var(--accent); }
.dev--browser img, .dev--auto.is-wide img { height: auto; }
.dev--auto.is-wide .dev__notch { display: none; }
.dev__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px; background: #0c1418; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.dev__bar i { width: 8px; height: 8px; border-radius: 50%; background: #25343a; }
.dev__bar i:first-child { background: var(--lock); } .dev__bar i:nth-child(2) { background: var(--amber); } .dev__bar i:nth-child(3) { background: var(--accent); }
.dev__bar b { flex: 1; height: 12px; margin-inline-start: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.dev--land { aspect-ratio: 1600 / 720; border-radius: clamp(12px, 1.5vw, 22px); border: clamp(4px, .45vw, 7px) solid #0c1114; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 70px -30px #000; }
button.dev, button.shot { cursor: zoom-in; transition: translate .6s var(--ease), box-shadow .4s, rotate .6s var(--ease); }
button.dev:hover, button.shot:hover { translate: 0 -8px; }

/* ── case files */
.cases__list { display: grid; }
.case { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 86px); align-items: center; padding-block: clamp(46px, 6vw, 96px); border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case--flip .case__info { order: 2; }
.case__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
.case__n { display: flex; align-items: baseline; gap: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; color: var(--mute); }
.case__n b { font: 900 clamp(56px, 6.4vw, 104px)/.8 var(--f-display); font-stretch: 62%; color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: 0; }
.case__name { font: 900 clamp(38px, 5vw, 80px)/.9 var(--f-display); font-stretch: 64%; text-transform: uppercase; text-wrap: balance; }
.case__kind { font: 500 12px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.case__text { max-width: 52ch; color: #cfe6dc; }
.case__proof { max-width: 56ch; padding-inline-start: 14px; border-inline-start: 1px solid var(--line-2); font: 400 12.500px/1.6 var(--f-mono); color: var(--dim); }
.case__proof b { display: block; margin-bottom: 4px; font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.case__credit { font: 400 12.500px/1.5 var(--f-mono); color: var(--amber); }
.case__view { min-width: 0; }
.case__shots { position: relative; display: flex; justify-content: center; align-items: center; }
.shots--phones { gap: 0; padding-block: 10px; }
.shots--phones .dev--phone { width: 31%; }
.shots--phones .p1 { rotate: -6deg; translate: 12% 2%; }
.shots--phones .p2 { width: 35%; z-index: 2; }
.shots--phones .p3 { rotate: 6deg; translate: -12% 2%; }
.shots--game { display: grid; }
.shots--game .dev--land { width: 86%; }
.shots--game .g2 { justify-self: end; margin-top: -9%; z-index: 2; }
.shots--web { display: block; padding-bottom: 8%; }
.shots--web .dev--browser { width: 100%; }
.shots--web .dev--auto { position: absolute; z-index: 2; bottom: 0; width: 22%; }
.shots--web .a1 { inset-inline-end: 4%; }
.shots--web .a2 { inset-inline-end: 29%; bottom: -3%; width: 19%; }
.shots--web .dev--auto.is-wide { width: 58%; inset-inline-end: -2%; bottom: -2%; }
.shots--cad { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.shot { position: relative; display: block; overflow: hidden; }
.shot--model { background: radial-gradient(80% 70% at 50% 40%, rgba(61, 255, 162, .1), transparent 70%); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.shot--model img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px #000); }
.shots__side { display: grid; gap: 12px; align-content: stretch; }
.shot--part { box-shadow: inset 0 0 0 1px var(--line); padding: 14px; background: rgba(10, 18, 23, .7); }
.shot--part img { width: 100%; object-fit: contain; }
.shot--sheet { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.shot--sheet img { width: 100%; filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05); }
/* the W64 panel */
.w64 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(22px, 4vw, 60px); align-items: center; margin-top: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.6vw, 36px); background: linear-gradient(160deg, rgba(13, 26, 31, .96), rgba(6, 12, 15, .96)); box-shadow: inset 0 0 0 1px var(--line-2); }
.w64__say { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.w64__say > p { color: var(--dim); }
.w64__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.w64__form label { font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.w64__row { display: flex; gap: 8px; }
.w64__row input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; background: #05090b; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 16px/1 var(--f-mono); letter-spacing: .1em; color: var(--accent); outline: none; text-transform: uppercase; }
.w64__row input:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px -8px var(--accent); }
.w64__words { display: flex; flex-wrap: wrap; gap: 8px; }
.w64__words button { padding: 8px 11px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--ice); transition: background-color .3s, color .3s; }
.w64__words button:hover { background: var(--accent); color: var(--void); }
.w64__panel { position: relative; background: #020507; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px #000; }
.w64__tag { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 500 9.500px/1 var(--f-mono); letter-spacing: .2em; color: var(--mute); }
.w64__tag span:first-child { color: var(--accent); }
.w64__panel canvas { width: 100%; height: clamp(300px, 34vw, 460px); }

/* ── clearance */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-bottom: clamp(36px, 5vw, 70px); }
.keywrap { perspective: 1000px; }
.key { position: relative; aspect-ratio: 1.586; padding: clamp(14px, 1.5vw, 22px); display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 4px; border-radius: 16px; overflow: hidden; transform: rotateX(calc(var(--my) * -10deg)) rotateY(calc(var(--mx) * 13deg)); transition: transform .5s var(--ease); box-shadow: 0 40px 70px -40px #000; }
.key:hover { transition-duration: .1s; }
.key--black { background: linear-gradient(140deg, #1b1d20, #08090a 55%, #17150f); box-shadow: inset 0 0 0 1px rgba(233, 197, 111, .45), 0 40px 70px -40px #000; }
.key--red { background: linear-gradient(140deg, #d21f33, #7d0f1c 60%, #a81426); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 40px 70px -40px #000; }
.key--steel { background: linear-gradient(140deg, #24424a, #0e1c21 58%, #1b3a35); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 70px -40px #000; }
.key__top { display: flex; align-items: center; justify-content: space-between; font: 500 clamp(9px, .8vw, 11px)/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.key__mark { align-self: center; font: 900 clamp(44px, 5.2vw, 88px)/.85 var(--f-display); font-stretch: 62%; letter-spacing: 0; }
.key--black .key__mark { background: linear-gradient(110deg, #9c7526, #f1d98e 40%, #fff3c7 52%, #b98f3a 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.key__title { font: 700 clamp(13px, 1.25vw, 18px)/1.15 var(--f-display); font-stretch: 78%; text-transform: uppercase; }
.key__date { font: 400 clamp(9.500px, .82vw, 11.500px)/1.4 var(--f-mono); letter-spacing: .06em; color: rgba(255, 255, 255, .78); }
.key__code { margin-top: 6px; font: 500 clamp(8px, .7vw, 10px)/1 var(--f-mono); letter-spacing: .2em; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; }
.creds__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.log { padding: clamp(16px, 2vw, 26px); background: #05090b; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-mono); }
.log__head { margin-bottom: 12px; font-size: 12.500px; color: var(--accent); }
.log li { display: grid; grid-template-columns: 8.500em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px dashed rgba(126, 255, 204, .14); font-size: 13px; }
.log li b { font-weight: 500; color: var(--cyan); }
.log li i { font-style: normal; font-size: 11.500px; color: var(--mute); white-space: nowrap; }
.log__note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.500px; line-height: 1.6; color: var(--dim); }
.members__head { margin-bottom: 12px; font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.members li { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.members li b { font: 800 clamp(20px, 1.9vw, 27px)/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; }
.members li span { font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ── operations log */
.ops__list { position: relative; display: grid; }
.ops__list::before { content: ''; position: absolute; inset-block: 8px; inset-inline-start: calc(clamp(150px, 20vw, 280px) + clamp(14px, 2vw, 30px)); width: 1px; background: linear-gradient(180deg, var(--accent), rgba(61, 255, 162, .1)); }
.op { position: relative; display: grid; grid-template-columns: clamp(150px, 20vw, 280px) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); padding-block: clamp(20px, 2.6vw, 34px); }
.op::before { content: ''; position: absolute; top: calc(clamp(20px, 2.6vw, 34px) + 12px); inset-inline-start: calc(clamp(150px, 20vw, 280px) + clamp(14px, 2vw, 30px) - 4px); width: 9px; height: 9px; background: var(--void); box-shadow: 0 0 0 1px var(--accent); rotate: 45deg; }
.op--live::before { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.op__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; align-content: start; font: 900 clamp(26px, 3.2vw, 50px)/1 var(--f-display); font-stretch: 62%; text-transform: uppercase; }
.op__when i { width: 16px; height: 2px; background: var(--accent); }
.op__when b { flex-basis: 100%; display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--f-mono); letter-spacing: .2em; color: var(--accent); }
.op__when b .led { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.op__what h3 { font: 800 clamp(24px, 2.6vw, 40px)/1 var(--f-display); font-stretch: 68%; text-transform: uppercase; }
.op__where { margin-top: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.op__what ul { display: grid; gap: 7px; margin-top: 14px; max-width: 62ch; }
.op__what li { position: relative; padding-inline-start: 18px; color: #cfe6dc; }
.op__what li::before { content: '>'; position: absolute; inset-inline-start: 0; font: 500 13px/1.7 var(--f-mono); color: var(--mute); }
[dir="rtl"] .op__what li::before { content: '<'; }
.field { display: grid; gap: 14px; margin-top: clamp(26px, 3.4vw, 46px); padding-top: 22px; border-top: 1px solid var(--line); }
.field > p { font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* ── the toolkit */
.skills__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(26px, 5vw, 80px); align-items: center; }
.skills__radar { display: grid; justify-items: center; gap: 6px; }
.radar { width: min(100%, 560px); overflow: visible; direction: ltr; }   /* the labels are anchored by side: keep "start" meaning left in Arabic too */
.radar__ring { fill: none; stroke: rgba(126, 255, 204, .16); stroke-width: 1; }
.radar__axis { stroke: rgba(126, 255, 204, .12); stroke-width: 1; }
.radar__shape { fill: rgba(61, 255, 162, .16); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(61, 255, 162, .5)); transform-origin: 260px 260px; scale: 0; transition: scale 1.2s var(--ease) .2s; }
.is-in .radar__shape, .rm .radar__shape { scale: 1; }
.radar__dot { fill: var(--void); stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity .5s 1s; }
.is-in .radar__dot, .rm .radar__dot { opacity: 1; }
.radar__label { fill: var(--ice); font: 500 12.500px var(--f-mono); letter-spacing: .04em; }
.radar__val { fill: var(--accent); font: 500 11px var(--f-mono); }
.radar__idx { display: none; fill: var(--accent); font: 500 15px var(--f-mono); }
.meters { display: none; }   /* the phone's legend: see the narrow rules */
.radar__sweep { stroke: var(--accent); stroke-width: 1.5; opacity: .7; transform-origin: 260px 260px; animation: sweep 7s linear infinite; filter: drop-shadow(0 0 8px var(--accent)); }
@keyframes sweep { to { rotate: 360deg; } }
.skills__radar figcaption { font: 400 11.500px/1.5 var(--f-mono); color: var(--mute); }
.racks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rack { display: grid; align-content: start; gap: 14px; padding: 18px; background: rgba(10, 18, 23, .92); box-shadow: inset 0 0 0 1px var(--line); }
.rack__head { display: flex; align-items: baseline; gap: 12px; }
.rack__head b { font: 500 11px/1 var(--f-mono); color: var(--accent); }
.rack__head span { font: 800 clamp(22px, 2.1vw, 30px)/1 var(--f-display); font-stretch: 68%; text-transform: uppercase; }

/* ── contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.contact__ways { display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); max-width: 560px; }
.way { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(8, 14, 18, .94); transition: background-color .3s; }
a.way:hover { background: rgba(61, 255, 162, .1); }
.way .ico { font-size: 22px; color: var(--accent); }
.way span { display: grid; gap: 5px; min-width: 0; }
.way i { font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.way b { font: 500 clamp(14px, 1.3vw, 17px)/1.3 var(--f-mono); overflow-wrap: anywhere; }
.note { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 30px); background: linear-gradient(160deg, rgba(15, 26, 32, .97), rgba(6, 12, 15, .97)); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -40px #000; }
.note__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; color: var(--accent); }
.note__head span + span { color: var(--mute); letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 60%; }
.field-wrap { display: grid; }
label.field { display: grid; gap: 7px; }
label.field > span { font: 500 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
label.field input, label.field textarea, label.field select { width: 100%; padding: 12px 12px; border: 0; border-radius: 0; background: #05090b; box-shadow: inset 0 0 0 1px var(--line); font: 400 15.500px/1.4 var(--f-body); color: var(--ice); outline: none; transition: box-shadow .3s; }
label.field textarea { resize: vertical; min-height: 96px; }
label.field input:focus, label.field textarea:focus, label.field select:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px -10px var(--accent); }
label.field select option { background: #05090b; color: var(--ice); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note__send { justify-self: start; }
.note__status { min-height: 1.4em; font: 400 13px/1.4 var(--f-mono); }
.note__status[data-kind="ok"] { color: var(--accent); } .note__status[data-kind="err"] { color: var(--lock); }
.note.is-sending { opacity: .7; pointer-events: none; }

/* ── foot */
.foot { padding-bottom: 28px !important; overflow: hidden; }
.foot__big { display: block; }
.foot__big span { display: block; font: 900 clamp(70px, 17vw, 300px)/.84 var(--f-display); font-stretch: 62%; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--accent); transition: color .5s; }
.foot__big:hover span { color: var(--accent); }
.foot__line { margin-top: 16px; font: 500 12px/1.5 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px; margin-top: clamp(34px, 5vw, 70px); padding-top: 20px; border-top: 1px solid var(--line); font: 500 10.500px/1.5 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.foot__term { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--accent); font: inherit; letter-spacing: inherit; text-transform: inherit; transition: background-color .3s, color .3s; }
.foot__term:hover { background: var(--accent); color: var(--void); }
.foot__links { display: flex; gap: 20px; }
.foot__links a:hover { color: var(--accent); }

/* ── the photo viewer (and the screen, for a clip) */
.screen, .lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(3, 6, 8, .97); color: var(--ice); }
.screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 18px var(--pad) 26px; clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .8s var(--ease-io); }
.screen.is-open { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.screen__bar, .lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.screen__now { display: inline-flex; align-items: center; gap: 10px; font: 500 10.500px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.screen__tools { display: inline-flex; gap: 10px; }
.screen__close { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 10.500px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.screen__close:hover { background: var(--accent); color: var(--void); }
.screen__body { min-height: 0; display: grid; place-items: center; }
.player { position: relative; height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: var(--ar, 0.5625); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.player video, .player iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.player__big { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--void); font-size: 26px; }
.player.is-playing .player__big { opacity: 0; pointer-events: none; }
.player__ui { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transition: opacity .3s; }
.player.is-awake .player__ui { opacity: 1; }
.player__controls { display: flex; align-items: center; gap: 8px; direction: ltr; }
.player__btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
.player__time { font: 400 11px/1 var(--f-mono); white-space: nowrap; }
.player__seek { flex: 1; min-width: 40px; height: 22px; margin: 0; background: transparent; accent-color: var(--accent); }
.screen__title { text-align: center; font: 800 clamp(20px, 2.6vw, 34px)/1 var(--f-display); font-stretch: 68%; text-transform: uppercase; }
.lightbox { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 18px var(--pad) 22px; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox__count { font: 500 12px/1 var(--f-mono); letter-spacing: .18em; color: var(--accent); }
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px #000; opacity: 0; transform: scale(.97); transition: opacity .4s, transform .6s var(--ease); background: rgba(255, 255, 255, .03); }
.lightbox__img.is-in { opacity: 1; transform: none; }
.lightbox__cap { min-height: 1.4em; text-align: center; font: 500 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.lightbox__nav { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(4, 7, 10, .8); color: var(--accent); font-size: 20px; transition: background-color .3s, color .3s; }
.lightbox__nav:hover { background: var(--accent); color: var(--void); }
.lightbox__nav--prev { inset-inline-start: 14px; }
.lightbox__nav--next { inset-inline-end: 14px; }
.lightbox__nav--prev .ico { transform: scaleX(-1); }
[dir="rtl"] .lightbox__nav--prev .ico { transform: none; }
[dir="rtl"] .lightbox__nav--next .ico { transform: scaleX(-1); }

/* ── the terminal */
.term { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: var(--pad); background: rgba(2, 4, 6, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.term.is-open { opacity: 1; }
.term__win { width: min(100%, 780px); max-height: min(78svh, 620px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #020507; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -40px #000, 0 0 80px -40px var(--accent); font-family: var(--f-mono); scale: .97; transition: scale .3s var(--ease); }
.term.is-open .term__win { scale: 1; }
.term__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.term__bar button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--dim); }
.term__bar button:hover { color: var(--lock); }
.term__out { overflow-y: auto; padding: 14px 16px; font-size: 13.500px; line-height: 1.6; color: #bfe9d6; min-height: 220px; }
.term__out p { white-space: pre-wrap; overflow-wrap: anywhere; }
.term__echo { color: var(--mute); }
.term__warn { color: var(--amber); }
.term__line { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.term__line label { flex: none; font-size: 13px; color: var(--accent); }
.term__line input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 14px/1 var(--f-mono); color: var(--ice); outline: none; caret-color: var(--accent); }

/* ── Arabic: its own faces, no capitals, no tracking */
:lang(ar) { letter-spacing: 0 !important; }
[lang="ar"] body { font-size: 17px; line-height: 1.85; }
[data-script="ar"] { font-stretch: 100% !important; }
.sec__title[data-script="ar"] { font: 700 clamp(40px, 6.6vw, 104px)/1.2 'Readex Pro', sans-serif; }
.hero__name span[data-script="ar"] { font: 700 clamp(64px, 12.5vw, 210px)/1.05 'Readex Pro', sans-serif; }
.sub[data-script="ar"], .case__name[data-script="ar"], .op__what h3[data-script="ar"], .rack__head span[data-script="ar"], .members li b[data-script="ar"], .idcard__data > b[data-script="ar"], .key__title[data-script="ar"] { font-family: 'Readex Pro', sans-serif; font-weight: 700; line-height: 1.3; }
.foot__big span[data-script="ar"] { font: 700 clamp(60px, 14vw, 240px)/1.15 'Readex Pro', sans-serif; }
/* joined Arabic letters overlap, and an outline would draw every overlap: stroke first, then a fill of the ground colour over the inside */
.hero__name span + span[data-script="ar"], .foot__big span[data-script="ar"] { color: var(--void); paint-order: stroke fill; -webkit-text-stroke-width: 4px; }
.foot__big:hover span[data-script="ar"] { color: var(--accent); }
:lang(ar) .nav a, :lang(ar) .btn, :lang(ar) .sec__tag, :lang(ar) .hero__role, :lang(ar) .hud, :lang(ar) .case__kind, :lang(ar) .op__where, :lang(ar) .foot__row, :lang(ar) .foot__line { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 14px; }
:lang(ar) .facts span, :lang(ar) .stats span, :lang(ar) .case__proof, :lang(ar) .case__credit, :lang(ar) .note-line, :lang(ar) .log__note, :lang(ar) .unis p, :lang(ar) .tick__say, :lang(ar) label.field > span, :lang(ar) .way i, :lang(ar) .course__meta, :lang(ar) .members__head, :lang(ar) .field > p, :lang(ar) .skills__radar figcaption, :lang(ar) .w64__form label, :lang(ar) .decrypt__say { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 13px; line-height: 1.6; }
:lang(ar) .decrypt__say { font-size: 10.500px; line-height: 1.3; }
:lang(ar) .hero__tag { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: clamp(14px, 1.3vw, 17px); }
:lang(ar) .op__when span:not([lang]) { font: 700 clamp(22px, 2.6vw, 40px)/1.3 'Readex Pro', sans-serif; }
:lang(ar) .menu__nav a { font: 700 clamp(30px, 9vw, 54px)/1.4 'Readex Pro', sans-serif; }
:lang(ar) .radar__label { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 13px; }

/* ── narrower windows */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 900px) {
  :root { --top-h: 60px; }
  .about__grid, .platform, .case, .w64, .creds__grid, .skills__grid, .contact__grid, .unis { grid-template-columns: minmax(0, 1fr); }
  .case--flip .case__info { order: 0; }
  .idcard { margin-inline: auto; }
  .keys { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .facts, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops__list::before, .op::before { display: none; }
  .op { grid-template-columns: minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); }
  .state b { display: none; }
  .state { padding-inline: 12px; }
  /* the opening, upright: the portrait above, the words below */
  .hero__portrait { inset-inline-end: auto; left: 50%; translate: -50% 0; bottom: auto; top: calc(var(--top-h) - 6px); height: auto; width: min(108vw, 58svh); }
  .hero__copy { inset-inline: var(--pad); bottom: 74px; max-width: none; gap: 10px; }
  .hero__name { font-size: clamp(64px, 24vw, 150px); }
  .decrypt { inset-inline-end: auto; left: auto; right: var(--pad); bottom: auto; top: calc(var(--top-h) + 10px); width: 84px; height: 84px; }   /* always on the right: the frame's label sits on the left in both languages */
  .decrypt__ico { top: 18px; width: 20px; height: 20px; }
  .decrypt__say { top: 46px; font-size: 7.500px; }
  .hud--bl { display: none; }
  .hud--br { bottom: 20px; }
  .hero__cta .btn { min-height: 46px; padding-inline: 16px; font-size: 11px; }
  .platform__phones { min-height: 0; padding-block: 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .course { min-height: 150px; padding: 14px 12px 12px; gap: 14px; }
  .course__title { font-size: 19px; }
  .course__uni { padding: 4px 6px; font-size: 8.500px; }
  .course__code { font-size: 11px; }
  .racks { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .shots--cad { grid-template-columns: minmax(0, 1fr); }
  .w64__panel canvas { height: 300px; }
  .hero__role { font-size: 10.500px; letter-spacing: .1em; }
  .foot__row { flex-direction: column; align-items: flex-start; }
  /* the radar's names would be about 6px here: number the axes and name them in a list under it */
  .radar { width: min(100%, 400px); }
  .radar__label, .radar__val { display: none; }
  .radar__idx { display: inline; }
  .meters { display: grid; justify-self: stretch; margin-top: 10px; border-top: 1px solid var(--line); }
  .meters li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14.500px; line-height: 1.35; text-align: start; }
  .meters__n, .meters b { font: 500 12px/1 var(--f-mono); color: var(--accent); }
  .meters i { position: absolute; inset-inline-start: 0; bottom: -1px; width: calc(var(--v) * 100%); height: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(61, 255, 162, .55); }
}

/* ── less motion */
.rm .js [data-reveal], html.rm [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
.rm .hero__copy > * { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
