/* =========================================================
   الموقع الشخصي — سعد الزارع
   الألوان مأخوذة من الشعار: الحبر الداكن، السماوي، الأزرق
   ========================================================= */
@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #111111;
  --night-2: #181818;
  --night-3: #222222;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --paper: #f3f3f0;
  --paper-2: #e8e8e3;
  --white: #ffffff;
  --cyan: #0adcf2;
  --blue: #0784f2;
  --soft: #9a9a9a;
  --soft-2: #6f6f6f;
  --soft-on-paper: #5a5a5a;

  --t-small: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --t-head: clamp(2rem, 1.2rem + 3.2vw, 4rem);
  --t-xl: clamp(3rem, 1.4rem + 6vw, 6.5rem);

  --m: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --gap: clamp(6rem, 3.5rem + 7vw, 11rem);
  --max: 1360px;
  --r: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--night); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; }
.skip {
  position: absolute; inset-inline-start: var(--m); top: -100px; z-index: 50;
  background: var(--cyan); color: var(--night); padding: 10px 16px; text-decoration: none; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--cyan); color: var(--night);
  font-weight: 600; font-size: var(--t-body); text-decoration: none;
  border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.25s, color 0.25s, box-shadow 0.3s;
}
.btn:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(10, 220, 242, 0.6); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn { white-space: nowrap; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: var(--t-small); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px var(--white); }

/* ---------- الشريط العلوي ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--m);
  transition: background-color 0.35s, padding 0.35s var(--ease-out), border-color 0.35s, transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  padding-block: 10px; border-color: var(--line);
}
.nav.hide { transform: translateY(-100%); }
.nav-mark { display: block; width: 86px; padding: 6px 0; }
.nav-mark svg { width: 100%; height: auto; transition: transform 0.45s var(--ease-out); }
.nav-mark:hover svg { transform: rotate(-4deg) scale(1.06); }
.nav-mark .ink { fill: var(--white); }
.nav-mark .c1 { fill: var(--cyan); }
.nav-mark .c2 { fill: var(--blue); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: var(--t-small); }
.nav nav a:not(.btn) { text-decoration: none; padding: 10px 2px; position: relative; color: #d6d6d6; transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--white); }
.nav nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav nav a:not(.btn):hover::after, .nav nav a.on::after { transform: scaleX(1); }

/* ---------- الواجهة ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(118px, 16vh, 170px) var(--m) clamp(28px, 5vh, 56px);
  overflow: hidden; isolation: isolate;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 132, 242, 0.22), rgba(10, 220, 242, 0.06) 55%, transparent 72%);
  filter: blur(10px); pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-8vw, 6vh) scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%);
}
.hero-top { position: relative; max-width: var(--max); width: 100%; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-small); color: #cfcfcf; margin-bottom: clamp(10px, 2vh, 22px);
  padding: 6px 14px 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(10,220,242,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(10,220,242,0); } 100% { box-shadow: 0 0 0 0 rgba(10,220,242,0); } }
.hero-title {
  font-size: clamp(4rem, 0.4rem + 11vw, 12rem); font-weight: 800; line-height: 1.08; letter-spacing: 0;
  white-space: nowrap;
}
.mask { display: block; overflow: hidden; padding-block: 0.06em 0.42em; margin-block: -0.06em -0.42em; }
.line { display: block; }
.l1 { color: var(--white); }
.l2 {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 55%, #3f6dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding-bottom: 0.3em; margin-bottom: -0.3em;
}
.hero-side {
  position: absolute; inset-inline-end: 0; bottom: 0.8em;
  max-width: 36ch;
}
.hero-side p { font-size: var(--t-lead); line-height: 1.6; margin-bottom: 26px; color: #e4e4e4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.sig { position: relative; aspect-ratio: 1640 / 530; width: 100%; }
.sig .layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig .layer-main { fill: var(--white); }
.sig .layer-dot { fill: var(--cyan); }
.sig .layer-line { fill: var(--blue); }
.sig-hero {
  margin-top: clamp(10px, 2vh, 30px); margin-inline: auto; will-change: transform;
  width: clamp(52%, calc((100svh - 600px) * 2.6), 82%);
}
.scroll-cue {
  position: absolute; bottom: 22px; inset-inline-start: 50%; translate: 50% 0;
  width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- عناوين الأقسام ---------- */
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-small); font-weight: 600; color: var(--cyan); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.h-sec { font-size: var(--t-head); font-weight: 700; line-height: 1.2; }

/* ---------- برامجي ---------- */
.work { padding: var(--gap) var(--m) calc(var(--gap) * 0.7); }

.proj {
  --accent: var(--blue);
  position: relative;
  border-radius: calc(var(--r) + 8px);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(180deg, #1a1d24, #14161b);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 3.4vw, 56px);
  overflow: hidden;
}
.proj + .proj { margin-top: 28px; }
.proj-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.proj-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.proj-icon {
  width: 72px; height: 72px; flex: none; border-radius: 20px; padding: 10px;
  background: #f0f7ff; box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform .5s var(--ease-out);
}
.proj:hover .proj-icon { transform: rotate(-6deg) scale(1.04); }
.proj-name { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-weight: 800; line-height: 1.1; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: var(--t-small); color: var(--soft); }
.proj-meta span + span::before { content: "·"; margin-inline-end: 8px; color: var(--soft-2); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: #cfe3ff; font-variant-numeric: tabular-nums;
}
.proj-tag { font-size: var(--t-lead); font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.proj-desc { color: #c9c9c9; margin-bottom: 26px; max-width: 46ch; }
.proj-links { display: flex; flex-wrap: wrap; gap: 12px; }
.proj-links .btn:first-child { background: var(--white); }
.proj-links .btn:first-child:hover { background: var(--cyan); }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 28px;
  border-radius: 16px; overflow: hidden; background: var(--line);
}
.stats div { background: #16181d; padding: 14px 16px; }
.stats dt { font-size: 0.8125rem; color: var(--soft); }
.stats dd { font-size: var(--t-small); font-weight: 600; }

/* لقطة الشاشة داخل نافذة */
.shot-wrap { position: relative; perspective: 1400px; }
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: #0d0f13;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--ease-out);
  transform-style: preserve-3d;
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; background: #1b1e25; direction: ltr; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4a; }
.window-bar b { flex: 1; text-align: center; font-weight: 500; font-size: 0.75rem; color: var(--soft); margin-right: 40px; }
.screens { position: relative; aspect-ratio: 1346 / 862; }
.screens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform 1.1s var(--ease-out);
}
.screens img.on { opacity: 1; transform: none; }
.window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.10), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.shot-wrap:hover .window::after { opacity: 1; }

.switch {
  position: absolute; z-index: 2; bottom: -18px; inset-inline-start: 50%; translate: 50% 0;
  display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px;
  background: rgba(24, 26, 32, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px -10px rgba(0,0,0,.6);
}
.switch button {
  position: relative; z-index: 1; min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none;
  cursor: pointer; font-size: var(--t-small); color: var(--soft); transition: color .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.switch button svg { width: 16px; height: 16px; }
.switch button[aria-pressed="true"] { color: var(--night); }
.switch .pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--white);
  transition: inset-inline-start .45s var(--ease-out), width .45s var(--ease-out);
}

/* الأدوات */
.tools { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.tools-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.tools-head h4 { margin: 0; font-size: var(--t-lead); font-weight: 700; }
.tools-head p { font-size: var(--t-small); color: var(--soft); }
.tool-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tg { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, transform .4s var(--ease-out); }
.tg:hover { background: rgba(255,255,255,.055); transform: translateY(-3px); }
.tg h5 { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 500; color: var(--soft); }
.tg ul { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  --c: var(--blue);
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px;
  font-size: var(--t-small); font-weight: 500;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 35%, white);
  transition: background-color .25s, transform .3s var(--ease-out);
}
.tool::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.tool:hover { background: color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-1px); }
.tech { margin-top: 18px; font-size: var(--t-small); color: var(--soft); direction: ltr; text-align: right; }
.tech span + span::before { content: " · "; color: var(--soft-2); }

/* مشروع مستقبلي */
.next {
  display: flex; align-items: center; gap: 18px; margin-top: 28px;
  padding: 22px clamp(20px, 3vw, 36px); border-radius: var(--r);
  border: 1.5px dashed var(--line-2); color: var(--soft);
}
.next b { color: var(--white); font-weight: 600; }
.next-plus {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; color: var(--cyan); background: rgba(10, 220, 242, .08);
}
.noscript { color: var(--soft); }

/* ---------- نبذة ---------- */
.about { background: var(--paper); color: var(--night); padding: var(--gap) var(--m); }
.about .kicker { color: #0560b4; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 2vw, 32px); }
.about-grid .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.statement {
  grid-column: 1 / span 8; max-width: 34ch;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2.125rem); font-weight: 600; line-height: 1.6;
}
.statement mark {
  color: inherit; padding: 0 .1em;
  background: linear-gradient(transparent 62%, rgba(10, 220, 242, .55) 62%);
}
.facts { grid-column: 9 / -1; display: grid; gap: 4px; align-content: end; }
.facts > div { background: var(--paper-2); padding: 18px 22px; border-radius: 14px; transition: background-color 0.25s, transform .35s var(--ease-out); }
.facts > div:hover { background: #dedfd8; transform: translateX(-4px); }
.facts dt { font-size: var(--t-small); color: var(--soft-on-paper); }
.facts dd { font-size: var(--t-body); font-weight: 600; }

/* ---------- تواصل ---------- */
.contact { padding: var(--gap) var(--m) calc(var(--gap) * 0.35); }
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(20px, 2.6vw, 34px) 4px; border-bottom: 1px solid var(--line);
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.03);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out);
}
.row:hover::before { transform: none; }
.row-label { font-size: var(--t-small); color: var(--soft); }
.row-main {
  font-size: clamp(1.5rem, 0.9rem + 2.6vw, 3.25rem); font-weight: 600; line-height: 1.2; text-decoration: none;
  overflow-wrap: anywhere; justify-self: start; transition: color 0.25s;
}
a.row-main:hover { color: var(--cyan); }
.row-arrow { font-size: 1.75rem; color: var(--soft); transition: transform .4s var(--ease-out), color .25s; }
.row:hover .row-arrow { color: var(--cyan); transform: translate(-6px, -6px); }
.copy {
  min-height: 44px; min-width: 76px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--night-3); color: var(--white); font-size: var(--t-small);
  transition: background-color 0.2s, color .2s, transform 0.2s var(--ease-out);
}
.copy:hover { background: #2e2e2e; }
.copy:active { transform: scale(0.95); }
.copy.done { background: var(--cyan); color: var(--night); }

/* ---------- الخاتمة ---------- */
.foot {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 0 var(--m);
}
.foot-top { width: 100%; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.foot-top h2 { font-size: var(--t-xl); font-weight: 800; line-height: 1.15; }
.foot-legal {
  width: 100%; display: flex; justify-content: space-between; gap: 16px;
  padding-top: 28px; padding-bottom: 12px;
  font-size: var(--t-small); color: var(--soft);
}
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { color: var(--white); }
.sig-foot { width: 108%; margin-inline: -4%; margin-bottom: -8%; opacity: .95; }

/* ---------- الحركة ---------- */
.js .mask .line { transform: translateY(110%); }
.js.ready .mask .line { transform: none; transition: transform 1.05s var(--ease-out); }
.js.ready .mask .l2 { transition-delay: 0.12s; }
.js .eyebrow, .js .hero-side > * { opacity: 0; transform: translateY(18px); }
.js.ready .eyebrow { opacity: 1; transform: none; transition: opacity .6s ease .1s, transform .8s var(--ease-out) .1s; }
.js.ready .hero-side > * { opacity: 1; transform: none; transition: opacity .7s ease .55s, transform .9s var(--ease-out) .55s; }
.js.ready .hero-side > *:nth-child(2) { transition-delay: .68s; }

/* التوقيع يُكتب من اليمين إلى اليسار كما يُكتب الخط العربي */
.js .sig .layer { clip-path: inset(0 0 0 100%); }
.sig.drawn .layer-main { clip-path: inset(0 0 0 0); transition: clip-path 1.8s var(--ease-io) .25s; }
.sig.drawn .layer-dot { clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease-out) 2s; }
.sig.drawn .layer-line { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io) 2.25s; }

.js [data-rv] > * { opacity: 0; transform: translateY(26px); }
.js [data-rv].in > * {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .mask .line, .js .eyebrow, .js .hero-side > *, .js [data-rv] > * { opacity: 1 !important; transform: none !important; }
  .js .sig .layer { clip-path: none !important; }
  .sig-hero, .window { transform: none !important; }
}

/* ---------- الشاشات المتوسطة ---------- */
@media (max-width: 1100px) {
  .hero-side { position: static; max-width: 40ch; margin-top: 26px; }
  .proj-grid { grid-template-columns: 1fr; }
  .shot-wrap { order: -1; margin-bottom: 26px; }
  .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}

/* ---------- الجوال ---------- */
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav-mark { width: 70px; }
  .hero { padding-top: 104px; }
  .hero-title { font-size: 25vw; line-height: 1.12; }
  .hero-side p { font-size: 1.125rem; }
  .hero-cta .btn { flex: 1; }
  .sig-hero { width: 128%; margin-inline: -14%; margin-top: 30px; }
  .scroll-cue { display: none; }
  .proj { border-radius: var(--r); }
  .proj-icon { width: 58px; height: 58px; border-radius: 16px; padding: 8px; }
  .window { border-radius: 12px; }
  .window-bar { height: 26px; }
  .window-bar i { width: 8px; height: 8px; }
  .window-bar b { display: none; }
  .switch button { padding: 0 14px; }
  .tool-groups { grid-template-columns: 1fr; }
  .proj-links { flex-direction: column; }
  .proj-links .btn { width: 100%; min-height: 54px; }
  .facts { grid-template-columns: 1fr; }
  .statement { font-size: 1.3rem; line-height: 1.7; }
  .about { padding-block: calc(var(--gap) * 0.8); }
  .proj-meta { row-gap: 2px; }
  .next { align-items: flex-start; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .row-label { grid-column: 1 / -1; }
  .row-main { font-size: 4.8vw; white-space: nowrap; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 12px 14px; }
  .foot-top .btn { width: 100%; }
  .sig-foot { width: 150%; margin-inline: -25%; margin-bottom: -14%; }
}
