/* ahmedlabeb.com: industrial-editorial. Concrete paper, ink, one signal orange. */
:root {
  --paper: #ECE9E3;
  --paper-2: #E1DDD5;
  --ink: #111211;
  --ink-2: #1A1B1A;
  --ink-3: #242624;
  --mute: #6A6964;
  --mute-d: #8E8D86;
  --line: rgba(17, 18, 17, .14);
  --line-d: rgba(236, 233, 227, .12);
  --signal: #FF4F00;
  --led: #3DDC84;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[lang="ar"] {
  --f-display: "Alexandria", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Sans Arabic", sans-serif; /* Arabic glyphs fall through to Plex */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* NO scroll-behavior:smooth: ScrollTrigger jumps to 0 to measure on refresh, a smooth jump corrupts every start/end */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .35; mix-blend-mode: multiply;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: normal; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .mono { letter-spacing: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 200; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--f-body); overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--signal); z-index: -1;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--signal); }
.btn .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.dark .btn-ghost { --fg: var(--paper); border-color: var(--paper); }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 150; mix-blend-mode: difference; color: #fff; }
  .cursor-x, .cursor-y { position: absolute; background: currentColor; opacity: .22; }
  .cursor-x { left: 0; right: 0; height: 1px; top: var(--cy, -10px); }
  .cursor-y { top: 0; bottom: 0; width: 1px; left: var(--cx, -10px); }
  .cursor-read { position: absolute; left: calc(var(--cx) + 12px); top: calc(var(--cy) + 10px); font: 500 10px/1 var(--f-mono); letter-spacing: .06em; opacity: .7; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut); color: var(--ink);
  transition: background-color .35s, color .35s, transform .45s var(--ease);
}
.nav.scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav.on-dark { color: var(--paper); }
.nav.on-dark.scrolled { background: color-mix(in srgb, var(--ink) 82%, transparent); border-bottom-color: var(--line-d); }
.nav.on-dark .btn { --bg: var(--paper); --fg: var(--ink); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 15px/1 var(--f-display); letter-spacing: .01em; }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; background: none; border: 1px solid currentColor; color: inherit; cursor: pointer; font: 500 13px/1 var(--f-mono); }
.lang-sep { opacity: .35; }
html[lang="en"] .lang-ar, html[lang="ar"] .lang-en { opacity: .4; }
.lang-ar { font-family: "Alexandria", sans-serif; font-size: 15px; }

/* ---------- section scaffolding ---------- */
section { position: relative; padding: clamp(96px, 14vh, 160px) var(--gut); }
.dark { background: var(--ink); color: var(--paper); }
.sec-head { max-width: 980px; margin-bottom: clamp(48px, 8vh, 88px); }
.kicker { display: flex; gap: 12px; align-items: center; margin: 0 0 22px; color: var(--mute); }
.dark .kicker { color: var(--mute-d); }
.kicker span:first-child { color: var(--signal); }
.kicker::after { content: ""; width: 64px; height: 1px; background: currentColor; opacity: .5; }
.sec-title, .hero-title, .contact-title {
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(40px, 6.4vw, 100px); line-height: .96; letter-spacing: -.035em; margin: 0;
}
html[lang="ar"] .sec-title, html[lang="ar"] .hero-title, html[lang="ar"] .contact-title { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.sec-title em, .hero-title em, .contact-title em { color: var(--mute); }
.dark .sec-title em { color: var(--mute-d); }
.sec-lede { max-width: 560px; margin: 28px 0 0; font-size: 19px; color: var(--mute); }
.dark .sec-lede { color: var(--mute-d); }

/* split-line reveal wrappers (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---------- hero ---------- */
.hero {
  min-height: max(100svh, 720px); padding-top: 96px; padding-bottom: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: 20px;
  overflow: hidden;
}
.hero-meta {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--mute); position: relative; z-index: 3;
}
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3a3b3a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.led-on { background: var(--led); box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 25%, transparent), 0 0 12px var(--led); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 86% { opacity: 1; } 88% { opacity: .25; } 92% { opacity: 1; } 95% { opacity: .3; } }

.hero-copy { grid-column: 1 / span 5; grid-row: 2; align-self: start; padding-inline-end: 48px; padding-top: clamp(32px, 7vh, 80px); position: relative; z-index: 4; }
.eyebrow { margin: 0 0 20px; color: var(--signal); }
.hero-title { font-size: clamp(40px, 4.6vw, 76px); max-width: 11ch; }
html[lang="ar"] .hero-title { max-width: 14ch; }
.hero-lede { max-width: 470px; margin: 28px 0 36px; font-size: 18px; color: #3d3d3a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-spec {
  grid-column: 10 / -1; grid-row: 2; align-self: start; margin: clamp(32px, 7vh, 80px) 0 0; position: relative; z-index: 4;
  display: grid; gap: 14px; border-inline-start: 1px solid var(--line); padding-inline-start: 18px;
}
.hero-spec div { display: grid; gap: 4px; }
.hero-spec dt { color: var(--mute); }
.hero-spec dd { margin: 0; color: var(--ink); text-transform: none; font-size: 13px; letter-spacing: 0; }

.portrait {
  /* no transform / opacity / z-index here: strips must multiply against the name behind */
  position: absolute; bottom: 0; inset-inline-end: 18%;
  height: min(80svh, 900px); aspect-ratio: 896 / 1152;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.portrait.sliced .portrait-img { visibility: hidden; }
.strip {
  position: absolute; left: 0; right: 0; mix-blend-mode: multiply;
  background-repeat: no-repeat; /* no will-change: separate compositor layers leave hairline seams between strips */
}
.portrait-units { position: absolute; inset-block: 0; inset-inline-start: -50px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 9px; color: var(--mute); z-index: 2; }
.portrait-units li { flex: 1; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.portrait-units li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.portrait-units li.on::before { background: var(--led); box-shadow: 0 0 6px var(--led); }
.portrait-units li.hot { color: var(--signal); }
.portrait-units li.hot::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }

.hero-name {
  grid-column: 1 / -1; grid-row: 3; position: relative; line-height: .8; padding-bottom: clamp(8px, 2vh, 20px);
  white-space: nowrap; pointer-events: none;
}
.hero-name .fit {
  display: inline-block; font: 800 100px/0.8 var(--f-display); font-stretch: 125%; letter-spacing: -.045em; color: var(--ink);
}
.hero-name-front .fit { color: transparent; -webkit-text-stroke: 1.5px rgba(236, 233, 227, .9); }
html[lang="ar"] .hero-name .fit { font-weight: 800; letter-spacing: 0; line-height: 1.05; }
html[lang="ar"] .hero-name { padding-bottom: clamp(14px, 3vh, 32px); }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: tick 42s linear infinite; }
.ticker-track span { padding: 18px 28px; white-space: nowrap; display: flex; align-items: center; gap: 28px; color: var(--ink); }
.ticker-track span::after { content: "◆"; font-size: 8px; color: var(--signal); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }

/* ---------- services rack ---------- */
.services { overflow: hidden; }
.services::before { /* floor-tile grid, like a raised DC floor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 120px 120px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.rack { position: relative; max-width: 1180px; margin-inline: auto; padding: 18px 44px; background: #0b0c0b; border: 1px solid #2a2c2a; box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), inset 0 0 0 6px #121312; }
.rail { position: absolute; top: 0; bottom: 0; width: 28px; background:
  radial-gradient(circle at 50% 50%, #050505 3px, transparent 3.5px) 0 0 / 28px 22px repeat-y, linear-gradient(90deg, #2b2d2b, #3a3c3a 50%, #2b2d2b); }
.rail-l { left: 8px; } .rail-r { right: 8px; }
.rack-units { display: grid; gap: 6px; position: relative; }

.unit { position: relative; transition: transform .6s var(--ease), opacity .4s; }
.rack.has-open .unit:not(.open) { opacity: .55; }
.unit.open { transform: translateX(-14px); z-index: 2; }
html[dir="rtl"] .unit.open { transform: translateX(14px); }
.unit-face {
  width: 100%; display: grid; align-items: center; gap: 18px; text-align: start;
  grid-template-columns: 56px 12px minmax(0, 1fr) auto 150px 28px;
  min-height: 84px; padding: 0 20px; cursor: pointer; color: var(--paper);
  background: linear-gradient(180deg, #232523 0%, #1a1b1a 48%, #151615 100%);
  border: 1px solid #2f312f; border-top-color: #3d403d; font: inherit;
  transition: background .3s, border-color .3s;
}
.unit-face:hover { border-color: #4a4d4a; background: linear-gradient(180deg, #282a28, #1c1d1c 48%, #171817); }
.unit.open .unit-face { border-color: var(--signal); }
.u-num { color: var(--mute-d); }
.u-led { width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); animation: act 1.7s steps(1) infinite; }
.unit.open .u-led { background: var(--signal); box-shadow: 0 0 12px var(--signal); }
@keyframes act { 0%, 60% { opacity: 1; } 62% { opacity: .2; } 66% { opacity: 1; } 70% { opacity: .3; } 74% { opacity: 1; } }
.u-title { display: grid; gap: 4px; min-width: 0; }
.u-title b { font: 600 clamp(19px, 2vw, 26px)/1.1 var(--f-display); font-stretch: 108%; letter-spacing: -.01em; }
html[lang="ar"] .u-title b { letter-spacing: 0; }
.u-title small { color: var(--mute-d); font-size: 13px; }
.u-code { color: var(--signal); padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); }
.u-vent { height: 34px; background: repeating-linear-gradient(90deg, #0a0a0a 0 4px, transparent 4px 9px); border-radius: 2px; opacity: .9; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.u-handle { width: 28px; height: 48px; border: 2px solid #4b4e4b; border-inline-start: 0; border-radius: 0 6px 6px 0; position: relative; transition: border-color .3s; }
html[dir="rtl"] .u-handle { border-radius: 6px 0 0 6px; }
.unit-face:hover .u-handle, .unit.open .u-handle { border-color: var(--signal); }

.unit-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); background: #101110; border-inline: 1px solid #2f312f; }
.unit.open .unit-body { grid-template-rows: 1fr; border-bottom: 1px solid var(--signal); border-inline-color: var(--signal); }
.unit-body > div { overflow: hidden; }
.unit-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 32px 32px 36px 96px; }
html[dir="rtl"] .unit-inner { padding: 32px 96px 36px 32px; }
.unit-inner h4 { margin: 0 0 14px; color: var(--mute-d); font-weight: 500; }
.unit-inner ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.unit-inner li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: #D8D5CE; }
.unit-inner li::before { content: "→"; color: var(--signal); font-family: var(--f-mono); }
html[dir="rtl"] .unit-inner li::before { content: "←"; }
.outcome { font: 600 22px/1.3 var(--f-display); font-stretch: 105%; margin: 0 0 26px; color: var(--paper); }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list span { padding: 6px 10px; border: 1px solid var(--line-d); color: #cfccc5; }

/* ---------- process ---------- */
.process { padding-inline: 0; overflow: hidden; }
.process .sec-head { padding-inline: var(--gut); }
.process-track { position: relative; display: flex; gap: 0; padding-inline: var(--gut); width: max-content; }
.step { position: relative; width: clamp(300px, 34vw, 480px); padding: 110px 40px 0 0; flex: none; }
html[dir="rtl"] .step { padding: 110px 0 0 40px; }
.step-node { position: absolute; top: 44px; inset-inline-start: 0; width: 18px; height: 18px; background: var(--paper); border: 2px solid var(--ink); z-index: 2; transition: background .3s; }
.step.lit .step-node { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 22%, transparent); }
.step-n { font: 800 clamp(80px, 9vw, 150px)/.85 var(--f-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -.05em; transition: color .5s; }
.step.lit .step-n { color: var(--ink); }
.step h3 { font: 700 34px/1.05 var(--f-display); font-stretch: 112%; margin: 18px 0 12px; letter-spacing: -.02em; }
html[lang="ar"] .step h3 { letter-spacing: 0; }
.step p { margin: 0; max-width: 34ch; color: var(--mute); }
.cable { position: absolute; top: 0; left: 0; height: 110px; overflow: visible; pointer-events: none; }
.cable path { fill: none; stroke-width: 3; stroke-linecap: round; }
.cable-bg { stroke: var(--line); stroke-dasharray: 2 8; }
.cable-fg { stroke: var(--signal); }

/* ---------- work log ---------- */
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.log-row { position: relative; border-bottom: 1px solid var(--line); isolation: isolate; }
.log-row::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.log-head { display: grid; grid-template-columns: 90px minmax(0, 1.3fr) 1fr 150px 40px; align-items: center; gap: 24px; padding: 30px 12px; }
.log-id { color: var(--signal); }
.log-title { font: 700 clamp(24px, 3.2vw, 46px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; transition: transform .5s var(--ease); }
html[lang="ar"] .log-title { letter-spacing: 0; line-height: 1.25; }
.log-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.log-tags span { padding: 4px 8px; border: 1px solid var(--line); }
.log-region { color: var(--mute); text-align: end; }
.log-arr { width: 28px; height: 28px; justify-self: end; transition: transform .5s var(--ease); }
html[dir="rtl"] .log-arr { transform: scaleX(-1); }
.log-sum { display: grid; }
.log-sum > p { margin: -12px 0 0; padding: 0 12px 28px; padding-inline-start: 126px; max-width: 1000px; font-size: 17px; color: var(--mute); transition: color .4s; }
.log-row:hover::before, .log-row:focus-within::before { transform: scaleY(1); }
.log-row:hover, .log-row:focus-within { color: var(--paper); }
.log-row:hover .log-tags span, .log-row:focus-within .log-tags span { border-color: var(--line-d); }
.log-row:hover .log-title { transform: translateX(10px); }
html[dir="rtl"] .log-row:hover .log-title { transform: translateX(-10px); }
.log-row:hover .log-sum > p, .log-row:focus-within .log-sum > p { color: #CFCCC5; }
.log-row:hover .log-arr { transform: rotate(45deg); }
.log-row:hover .log-region { color: var(--mute-d); }
.log-head { cursor: default; outline: none; }

/* ---------- clients: patch panel ---------- */
.panel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--ink); border-inline-start: 1px solid var(--line); }
.port { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden; }
.port::before { content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.port-n { position: absolute; top: 10px; inset-inline-start: 12px; font-size: 10px; color: var(--mute); }
.port-led { position: absolute; top: 13px; inset-inline-end: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, box-shadow .3s; }
.port-logo {
  width: min(62%, calc(var(--ar) * 46px)); aspect-ratio: var(--ar); background: var(--ink);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: background .35s, transform .45s var(--ease);
}
.port-name { position: absolute; bottom: 10px; inset-inline: 12px; font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
@media (hover: hover) {
  .port:hover::before { transform: none; }
  .port:hover .port-logo { background: var(--paper); transform: scale(1.06); }
  .port:hover .port-led { background: var(--led); box-shadow: 0 0 8px var(--led); }
  .port:hover .port-name { opacity: 1; transform: none; color: var(--mute-d); }
  .port:hover .port-n { color: var(--signal); }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { margin: 0; position: relative; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; filter: contrast(1.05); transform-origin: 50% 30%; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: var(--signal); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s var(--ease); }
.about-photo:hover::after { opacity: .55; }
.about-photo figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; color: var(--paper); z-index: 2; }
.about-copy .sec-title { margin-bottom: 36px; font-size: clamp(38px, 5vw, 76px); }
.about-copy > p { max-width: 58ch; color: #CFCCC5; font-size: 18px; margin: 0 0 18px; }
.principles { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-d); }
.principles li { display: grid; gap: 10px; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line-d); color: #D8D5CE; }
html[dir="rtl"] .principles li { padding: 22px 0 22px 22px; }
.principles li:nth-child(odd) { border-inline-end: 1px solid var(--line-d); }
.principles li:nth-child(even) { padding-inline-start: 22px; }
.principles b { color: var(--signal); font-weight: 500; }

/* ---------- contact ---------- */
.contact { overflow: hidden; min-height: 100svh; }
.contact-portrait { position: absolute; inset-inline-end: -4%; bottom: 0; width: min(46vw, 720px); pointer-events: none; }
.contact-portrait img { mix-blend-mode: multiply; width: 100%; }
html[dir="rtl"] .contact-portrait { transform: none; }
html[dir="rtl"] .contact-portrait img { scale: -1 1; }
.contact-inner { position: relative; max-width: 760px; z-index: 2; }
.contact-title { font-size: clamp(48px, 8vw, 132px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 56px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-wide, .chips, .form-foot { grid-column: 1 / -1; }
.field label, .field legend { font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding: 0; margin-bottom: 8px; }
html[lang="ar"] .field label, html[lang="ar"] .field legend { letter-spacing: 0; font-family: var(--f-body); font-size: 14px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 10px 0; color: var(--ink);
  font: 400 20px/1.4 var(--f-body); border-radius: 0; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.field.bad input, .field.bad textarea { border-bottom-color: #C8321E; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.field label.chip, html[lang="ar"] .field label.chip { font: 400 15px/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); font-size: 15px; transition: background .25s, color .25s; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:checked + span::before { background: var(--signal); border-color: var(--signal); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.form-note { flex-basis: 100%; margin: 0; color: var(--mute); text-transform: none; letter-spacing: 0; font-size: 13px; min-height: 1em; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 24px var(--gut); background: var(--ink); color: var(--mute-d); }
.foot a { text-decoration: none; color: var(--paper); }

/* ---------- motion gates ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / span 8; }
  .hero-spec { display: none; }
  .portrait { inset-inline-end: 2%; height: min(70svh, 760px); }
  .unit-face { grid-template-columns: 44px 10px minmax(0, 1fr) auto 28px; }
  .u-vent { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .brand-name { display: none; }
  .hero { grid-template-rows: auto auto 1fr auto; min-height: 100svh; }
  .hero-copy { grid-column: 1 / -1; padding-top: 28px; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-lede { font-size: 16px; margin: 18px 0 24px; }
  .meta-mid { display: none; }
  .hero-copy { padding-inline-end: 0; }
  .portrait, html[dir="rtl"] .portrait { position: relative; grid-column: 1 / -1; grid-row: 3; justify-self: center; align-self: end; height: clamp(250px, 42svh, 380px); inset: auto; margin-top: 28px; }
  .hero-name { margin-top: calc(var(--name-size, 60px) * -0.55); } /* name overlaps the torso */
  .portrait-units { display: none; }
  .hero-name { grid-row: 4; }
  .rack { padding: 10px 10px; }
  .rail { display: none; }
  .unit-face { grid-template-columns: 34px 8px minmax(0, 1fr) 20px; gap: 12px; padding: 0 14px; min-height: 76px; }
  .u-code { display: none; }
  .u-handle { width: 20px; height: 38px; }
  .unit.open, html[dir="rtl"] .unit.open { transform: none; }
  .unit-inner, html[dir="rtl"] .unit-inner { grid-template-columns: 1fr; gap: 26px; padding: 24px 18px 28px; }
  .process-track { flex-direction: column; width: auto; }
  .step, html[dir="rtl"] .step { width: auto; padding: 0 0 48px; padding-inline-start: 44px; }
  .step-node { top: 8px; }
  .step::before { content: ""; position: absolute; top: 8px; bottom: -8px; inset-inline-start: 8px; width: 2px; background: var(--line); }
  .step:last-child::before { display: none; }
  .step-n { font-size: 72px; }
  .step h3 { font-size: 28px; }
  .cable { display: none; }
  .log-head { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 24px 4px; }
  .log-id { grid-column: 1; }
  .log-region { grid-column: 2; grid-row: 1; }
  .log-title { grid-column: 1 / -1; }
  .log-tags { grid-column: 1 / -1; }
  .log-arr { display: none; }
  .log-sum > p { margin: 0; padding: 0 4px 24px; font-size: 16px; }
  .log-row:hover .log-sum > p { color: #CFCCC5; }
  .about { grid-template-columns: 1fr; }
  .panel { grid-template-columns: repeat(3, 1fr); }
  .port-logo { width: min(70%, calc(var(--ar) * 34px)); }
  .port-n, .port-led { top: 7px; }
  .principles { grid-template-columns: 1fr; }
  .principles li, html[dir="rtl"] .principles li, .principles li:nth-child(even) { padding: 18px 0; border-inline-end: 0 !important; }
  .contact { padding-bottom: 56vw; }
  .contact-portrait { width: 70vw; inset-inline-end: -8%; }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .anim [data-reveal] { opacity: 1; transform: none; }
}
