/* Blueprint CV: a technical drawing on light engineering paper. Change the colours here. */
:root {
  --paper: #F5F8FC; --paper2: #EAF0F8; --ink: #0E1B33; --ink2: #44536E; --mute: #8090AA;
  --blue: #1F5BD8; --blue2: #8FB0EE; --grid: rgba(31, 91, 216, .07); --grid2: rgba(31, 91, 216, .14); --red: #FF6B2C; --green: #12A772;
  --sans: "Space Grotesk", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
html[dir="rtl"] { --sans: "IBM Plex Sans Arabic", "Space Grotesk", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: clip; max-width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.grid-bg { position: fixed; inset: 0; z-index: -1; background:
  linear-gradient(var(--grid2) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, var(--grid2) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
em { font-style: normal; color: var(--blue); position: relative; }
em::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .09em; background: var(--red); border-radius: 1px; }
.kick { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--mono); color: var(--red); letter-spacing: .06em; margin: 0 0 16px; }
.kick::before { content: ""; width: 26px; height: 1px; background: var(--red); }
h2 { font: 700 clamp(36px, 5vw, 64px)/1.02 var(--sans); letter-spacing: -.03em; margin: 0 0 40px; }
html[dir="rtl"] h2 { letter-spacing: 0; line-height: 1.35; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--blue); color: #fff; text-decoration: none; font: 600 15px/1 var(--sans); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 var(--blue2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 6px 6px 0 var(--blue2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

/* header */
.top { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: 22px; padding: 14px clamp(16px, 3vw, 36px); background: rgba(245, 248, 252, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--grid2); }
.mono { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); text-decoration: none; font: 700 15px/1 var(--mono); }
.mono i { position: absolute; inset: -6px; border: 1px dashed var(--blue2); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; font-family: var(--mono); }
.nav a { padding: 8px 12px; text-decoration: none; font-size: 13px; color: var(--ink2); border: 1px solid transparent; }
.nav a:hover { border-color: var(--blue2); color: var(--blue); }
.acts { display: flex; gap: 10px; align-items: center; }
.lang { border: 1px solid var(--grid2); background: var(--paper); cursor: pointer; font: 500 13px/1 var(--mono); padding: 11px 12px; }
html[dir="rtl"] .lang { font-family: "Space Grotesk", sans-serif; }

/* hero: the drawing sheet */
.hero { padding: 96px clamp(12px, 3vw, 36px) 30px; min-height: 100vh; display: grid; overflow: clip; }
.sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; padding: clamp(24px, 4vw, 60px); border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .55); min-height: calc(100vh - 130px); }
.corner { position: absolute; width: 18px; height: 18px; border-color: var(--red); border-style: solid; }
.c1 { top: 8px; left: 8px; border-width: 2px 0 0 2px; } .c2 { top: 8px; right: 8px; border-width: 2px 2px 0 0; } .c3 { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; } .c4 { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 12px; border: 1px solid var(--grid2); background: #fff; font: 500 12px/1 var(--mono); color: var(--ink2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 167, 114, .18); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { margin: 0; font: 700 clamp(64px, 9.5vw, 150px)/.9 var(--sans); letter-spacing: -.05em; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.2; font-size: clamp(56px, 8vw, 120px); }
.hero h1 .out { color: transparent; -webkit-text-stroke: 2px var(--blue); }
html[dir="rtl"] .hero h1 .out { -webkit-text-stroke: 1.6px var(--blue); }
.role { margin: 22px 0 6px; font: 500 15px/1.4 var(--mono); color: var(--blue); }
.about { margin: 0 0 30px; max-width: 30em; color: var(--ink2); font-size: 18px; }
.figure { position: relative; width: min(100%, 480px); justify-self: center; aspect-ratio: 5 / 6; }
.draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.ln.thin { stroke-width: .8; stroke: var(--blue2); }
.ln.dash { stroke-dasharray: 4 6; }
.ln.dim { stroke: var(--red); stroke-width: 1; }
.disc { position: absolute; left: 7%; top: 5.833%; width: 86%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, var(--paper2) 70%); }
.disc img { position: absolute; left: 50%; top: 9%; width: 84%; max-width: none; translate: -50% 0; }
.dim-x, .dim-y { position: absolute; font: 500 11px/1 var(--mono); color: var(--red); background: var(--paper); padding: 2px 6px; }
.dim-x { left: 50%; bottom: 3.5%; translate: -50% 0; }
.dim-y { right: -2%; top: 41%; rotate: 90deg; }
.title-block { position: absolute; inset-inline-end: -1.5px; bottom: -1.5px; margin: 0; display: grid; grid-template-columns: 2fr repeat(4, auto); border: 1.5px solid var(--ink); background: #fff; font-family: var(--mono); }
.title-block div { padding: 8px 14px; border-inline-start: 1px solid var(--ink); }
.title-block div:first-child { border: 0; }
.title-block dt { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .title-block dt { font-family: var(--sans); letter-spacing: 0; font-size: 11px; }
.title-block dd { margin: 3px 0 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.title-block .ok { color: var(--green); }

/* specs: measurements with dimension lines */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.spec { position: relative; padding: 34px 26px 30px 0; border-bottom: 1px solid var(--grid2); }
html[dir="rtl"] .spec { padding: 34px 0 30px 26px; }
.spec .measure { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--red); }
.spec .measure i { flex: 1; height: 1px; background: currentColor; position: relative; transform-origin: center; }
.spec .measure i::before, .spec .measure i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.spec .measure i::before { left: 0; } .spec .measure i::after { right: 0; }
.spec b { display: block; font: 700 clamp(52px, 5.4vw, 76px)/1 var(--sans); letter-spacing: -.04em; direction: ltr; unicode-bidi: isolate; text-align: start; }
.spec span { color: var(--ink2); }
.spec small { position: absolute; top: 10px; inset-inline-start: 0; font: 500 11px/1 var(--mono); color: var(--mute); }

/* path: a circuit trace that draws itself */
.path-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); }
.path-head { position: sticky; top: 110px; align-self: start; }
.mini h3 { margin: 26px 0 10px; font: 500 12px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
html[dir="rtl"] .mini h3 { font-family: var(--sans); letter-spacing: 0; font-size: 13px; }
.edu-item { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--grid2); background: #fff; }
.edu-item b { display: block; font-size: 15px; }
.edu-item span { font: 400 12px/1.5 var(--mono); color: var(--ink2); }
.lang-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; margin-bottom: 10px; }
.lang-row .lv { font: 400 12px/1.6 var(--mono); color: var(--mute); }
.bars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.bars i { height: 8px; background: var(--grid2); }
.bars i.on { background: var(--blue); }
.circuit { position: relative; padding-inline-start: 70px; }
.trace { position: absolute; inset-inline-start: 0; top: 0; width: 70px; height: 100%; overflow: visible; }
.trace path { fill: none; stroke-width: 3; stroke-linecap: square; }
#tracePath { stroke: var(--grid2); }
#traceGlow { stroke: var(--blue); filter: drop-shadow(0 0 4px rgba(31, 91, 216, .45)); }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.node { position: relative; padding: 22px 24px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--paper2); transition: box-shadow .3s, border-color .3s; }
.node::before { content: ""; position: absolute; top: 28px; inset-inline-start: -46px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--grid2); transition: background .3s, border-color .3s; }
.node.lit { border-color: var(--blue); box-shadow: 6px 6px 0 rgba(31, 91, 216, .16); }
.node.lit::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(31, 91, 216, .15); }
.node.now.lit::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(18, 167, 114, .18); }
.node .yr { font: 500 12px/1 var(--mono); color: var(--red); direction: ltr; unicode-bidi: isolate; }
.node h3 { margin: 8px 0 2px; font: 700 24px/1.2 var(--sans); }
.node .org { font: 500 13px/1.5 var(--mono); color: var(--blue); }
.node p { margin: 10px 0 0; color: var(--ink2); }
.node .chip { float: inline-end; font: 500 11px/1 var(--mono); padding: 5px 8px; background: rgba(18, 167, 114, .12); color: var(--green); }

/* modules: spec sheets */
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.mod { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1.5px solid var(--ink); background: #fff; transition: transform .25s, box-shadow .25s; box-shadow: 0 0 0 var(--c); }
.mod:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--c); }
.mod-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--blue2); font: 500 12px/1 var(--mono); color: var(--mute); }
.mod-top b { color: var(--c); font-weight: 700; }
.mod-ic { position: relative; height: 90px; margin-bottom: 16px; border: 1px solid var(--grid2); background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 12px 12px; overflow: hidden; }
.mod-ic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mod-ic path, .mod-ic rect, .mod-ic circle { fill: none; stroke: var(--c); stroke-width: 1.6; }
.mod h3 { margin: 0; font: 700 26px/1.1 var(--sans); }
.mod .mtag { font: 500 13px/1.6 var(--mono); color: var(--c); }
.mod p { margin: 10px 0 16px; color: var(--ink2); flex: 1; }
.stackl { display: flex; flex-wrap: wrap; gap: 6px; }
.stackl span { padding: 5px 9px; border: 1px solid var(--grid2); font: 500 12px/1 var(--mono); background: var(--paper); }
.mod a.open { margin-top: 14px; font: 500 13px/1 var(--mono); color: var(--blue); text-decoration: none; }

/* stack: a terminal that types as you scroll */
.stack-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.term { border: 1.5px solid var(--ink); background: #0E1B33; box-shadow: 10px 10px 0 var(--blue2); direction: ltr; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #22355A; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .term-bar i:nth-child(2) { background: #FEBC2E; } .term-bar i:nth-child(3) { background: #28C840; }
.term-bar span { margin-inline-start: 10px; font: 500 12px/1 var(--mono); color: #7E92BE; }
.term-body { margin: 0; padding: 20px 22px 26px; min-height: 360px; font: 400 15px/1.75 var(--mono); color: #D6E2FF; white-space: pre-wrap; text-align: left; }
.term-body .p { color: #5DE4A8; } .term-body .c { color: #8FB0EE; } .term-body .k { color: #FFB86B; } .term-body .cur { display: inline-block; width: 9px; height: 18px; background: #D6E2FF; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
html[dir="rtl"] .term-body .ar { direction: rtl; unicode-bidi: isolate; display: inline-block; }

/* contact */
.contact { border-top: 1.5px solid var(--ink); background: rgba(255, 255, 255, .6); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 50px; align-items: center; }
.ct-text { margin: -18px 0 26px; color: var(--ink2); max-width: 32em; }
.links { display: grid; gap: 10px; margin-bottom: 28px; }
.c-link { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 10px 14px; border: 1px solid var(--grid2); background: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.c-link:hover { border-color: var(--blue); transform: translateX(4px); }
html[dir="rtl"] .c-link:hover { transform: translateX(-4px); }
.c-ic { display: grid; place-items: center; width: 46px; height: 34px; background: var(--blue); color: #fff; font: 700 13px/1 var(--mono); }
.c-tx small { display: block; font: 500 11px/1.4 var(--mono); color: var(--mute); text-transform: uppercase; }
.c-tx { font-family: var(--mono); font-size: 14px; }
.qr-frame { position: relative; justify-self: end; width: min(100%, 300px); padding: 30px; border: 1.5px solid var(--ink); background: #fff; text-align: center; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; inset: -12px; border: 1px dashed var(--blue2); pointer-events: none; }
.qr-frame::after { inset: 10px; border: 0; background: linear-gradient(var(--red), var(--red)) 0 0 / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) 0 0 / 2px 16px no-repeat, linear-gradient(var(--red), var(--red)) 100% 100% / 16px 2px no-repeat, linear-gradient(var(--red), var(--red)) 100% 100% / 2px 16px no-repeat; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-frame p { margin: 14px 0 0; font: 500 12px/1.4 var(--mono); color: var(--ink2); }
.foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 80px; padding-top: 18px; border-top: 1px solid var(--grid2); font: 500 12px/1 var(--mono); color: var(--mute); }

/* reveal */
.rv { opacity: 0; translate: 0 24px; transition: opacity .7s, translate .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; translate: 0 0; }

/* phones and tablets */
@media (max-width: 960px) {
  .nav { display: none; }
  .acts { margin-inline-start: auto; }
  .sheet { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .figure { width: min(100%, 380px); order: -1; }
  .path-grid, .stack-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .path-head { position: static; }
  .qr-frame { justify-self: start; }
  .title-block { grid-template-columns: repeat(2, auto); inset-inline: -1.5px; }
  .title-block .tb-name { grid-column: 1 / -1; }
  .title-block div { border-inline-start: 0; border-top: 1px solid var(--ink); }
  .title-block div:nth-child(odd):not(.tb-name) { border-inline-end: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  .acts .btn-sm { display: none; }
  .circuit { padding-inline-start: 46px; }
  .trace { width: 46px; }
  .node::before { inset-inline-start: -34px; }
  .term-body { font-size: 13px; min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; translate: 0 0; } }
