@font-face {
  font-family: Cairo;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('assets/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFC,U+102E0-102FB,U+10E60-10EFF,U+1EE00-1EEFF;
}
@font-face {
  font-family: Cairo;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('assets/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  --base: #101619;
  --surface: #141d20;
  --ink: #f5f6ed;
  --lime: #d0ff8b;
  --muted: #b6c2be;
  --line: #354244;
  --gutter: clamp(1.25rem, 5.3vw, 5.4rem);
  --header-height: 4.8rem;
  font-family: Cairo, Tahoma, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--base); color: var(--ink); line-height: 1.8; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
::selection { background: var(--lime); color: var(--base); }
.frame { width: min(82rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 8; inset: .5rem var(--gutter) auto auto; padding: .5rem 1rem;
  background: var(--lime); color: var(--base); transform: translateY(-175%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky; top: 0; z-index: 4; background: #101619f5;
  border-bottom: 1px solid #ffffff14;
}
.header-inner, .footer-inner, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; }
.header-inner { min-height: var(--header-height); }
.brand, .footer-signature { display: inline-flex; align-items: center; direction: ltr; }
.brand { gap: .65rem; flex: none; line-height: 1; }
.brand-symbol {
  display: inline-block; flex: none; width: 2.2rem; height: 1.95rem; background: var(--lime);
  clip-path: polygon(0 28%,25% 0,100% 0,100% 24%,35% 24%,23% 37%,23% 63%,35% 76%,100% 76%,100% 100%,25% 100%,0 72%);
}
.wordmark { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark strong { font-size: 1.55rem; font-weight: 900; line-height: .94; letter-spacing: .045em; }
.wordmark span { font-size: .69rem; font-weight: 730; line-height: 1.3; letter-spacing: .27em; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 3rem); align-self: stretch; }
.site-nav a { position: relative; display: grid; align-items: center; color: var(--muted); font-size: .96rem; font-weight: 620; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: var(--lime);
}

.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center;
  gap: clamp(1rem, 2.8vw, 3rem); min-height: clamp(31rem, 42vw, 40rem);
  padding-block: clamp(2.5rem, 4vw, 4rem);
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.1rem, 5.55vw, 5.55rem); font-weight: 780; line-height: 1.38; }
.hero h1 span { display: block; color: var(--lime); }
.hero-copy > p {
  max-width: 34rem; margin-block: 1.25rem 1.85rem; color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.92; font-weight: 440;
}
.primary-link {
  display: inline-flex; gap: 1.55rem; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .55rem 1.3rem; border-radius: .28rem;
  background: var(--lime); color: #122019; font-weight: 750; transition: background .18s ease;
}
.primary-link:hover { background: #e3ffbd; }
.grid-glyph { display: grid; grid-template-columns: repeat(2, .29rem); gap: .18rem; }
.grid-glyph i { width: .29rem; aspect-ratio: 1; background: currentColor; }
.hero-art { direction: ltr; position: relative; isolation: isolate; }
.hero-art img {
  display: block; width: min(100%, 42rem); height: auto; margin-inline: auto;
  mix-blend-mode: lighten;
}
.hero-art { background: var(--base); }

.projects { padding-block: clamp(3.3rem, 6vw, 6.1rem); }
h2 { font-size: clamp(1.85rem, 3.1vw, 3.3rem); font-weight: 720; line-height: 1.48; }
.section-head { margin-bottom: clamp(1.5rem, 2.7vw, 2.4rem); }
.project-tabs {
  display: flex; align-items: stretch; gap: clamp(.25rem, .8vw, .7rem);
  border-bottom: 1px solid var(--line);
}
.project-tabs button {
  appearance: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent; color: var(--muted); white-space: nowrap;
  padding: .65rem clamp(.57rem, 1.35vw, 1.25rem); min-height: 2.9rem; font-size: 1rem; font-weight: 650;
}
.project-tabs button[aria-selected="true"] { color: var(--lime); border-bottom-color: var(--lime); }
.project-tabs button:hover { color: var(--ink); }
.project-panel {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden;
}
.project-panel + .project-panel { margin-top: 1rem; }
.project-panel[role="tabpanel"] { margin-top: 0; }
.project-copy {
  padding: clamp(1.7rem, 3.5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center;
}
.category { color: var(--lime); font-size: .94rem; font-weight: 640; display: flex; align-items: center; gap: .6rem; }
.category::before { content: ''; width: 1.6rem; height: 2px; background: var(--lime); }
.project-copy h3 { margin-block: .35rem .72rem; font-size: clamp(2.1rem, 3.1vw, 3.25rem); line-height: 1.4; font-weight: 740; }
.project-summary { color: var(--muted); max-width: 34rem; font-size: 1.05rem; line-height: 1.9; }
.project-note {
  display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: baseline;
  border-top: 1px solid var(--line); padding-block-start: 1rem; margin-block-start: 1.45rem;
  font-size: .92rem;
}
.project-note dt { color: var(--muted); }
.project-note dd { color: var(--ink); font-weight: 620; }
.product-visual {
  position: relative; overflow: hidden; display: grid; align-items: center;
  background: #182321; border-inline-start: 1px solid var(--line); min-height: 19rem;
}
.product-visual img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.product-visual figcaption {
  position: absolute; inset-inline-end: 1.05rem; bottom: .8rem;
  font-size: .8rem; font-weight: 550; color: #c2cfc8; background: #101719df;
  padding: .12rem .58rem; border: 1px solid #384943; border-radius: .2rem;
}
.about { border-block: 1px solid var(--line); background: #131b1e; }
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.2rem; padding-block: clamp(2.8rem, 5.4vw, 5.3rem); align-items: start; }
.about-copy { padding-inline-start: clamp(1rem, 2.7vw, 2.6rem); border-inline-start: 2px solid var(--lime); }
.about-copy p { max-width: 45rem; color: #d4ded7; font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.95; }
.footer-inner { min-height: 5.7rem; }
.footer-signature { font-weight: 720; gap: .5rem; color: var(--muted); }
.footer-signature .brand-symbol { width: 1.25rem; height: 1.1rem; background: var(--muted); }
footer a { color: var(--muted); font-size: .94rem; border-bottom: 1px solid #5d6c68; }
footer a:hover { color: var(--lime); }

@media (max-width: 880px) {
  .hero h1 { font-size: clamp(2.6rem, 5.65vw, 3.2rem); }
  .hero-inner { min-height: 26rem; }
  .project-copy { padding: 1.6rem; }
}
@media (max-width: 760px) {
  :root { --header-height: 4.1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.65rem 1.8rem; }
  .hero h1 { font-size: clamp(2.6rem, 9.8vw, 4.25rem); line-height: 1.3; }
  .hero-copy > p { margin-block: 1.05rem 1.35rem; max-width: 37rem; }
  .hero-art { width: min(100%, 29rem); justify-self: center; }
  .hero-art img { width: min(100%, 23rem); }
  .section-head { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .project-panel { grid-template-columns: 1fr; }
  .product-visual { min-height: 0; aspect-ratio: 960 / 552; border-inline: 0; border-top: 1px solid var(--line); }
  .project-tabs { align-self: stretch; justify-content: space-between; }
  .project-tabs button { flex: 1; }
  .about-inner { grid-template-columns: 1fr; gap: 1.15rem; }
}
@media (max-width: 470px) {
  :root { --gutter: 1.15rem; }
  .home-link { display: none !important; }
  .header-inner { gap: .8rem; }
  .site-nav { gap: 1.2rem; }
  .hero-art img { width: min(89%, 18.5rem); }
  .project-tabs { gap: 0; }
  .project-tabs button { padding-inline: .35rem; font-size: .92rem; }
  .project-copy { padding: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
