@font-face {
  font-family: "Rover Arabic";
  src: url("assets/noto-arabic.woff") format("woff");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Rover Arabic";
  src: url("assets/noto-arabic-bold.woff") format("woff");
  font-style: normal; font-weight: 700; font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #140f0c;
  --surface: #1d1510;
  --ink: #f5ead5;
  --muted: #c5b5a0;
  --copper: #c6a67c;
  --line: #71553c80;
  --wrap: min(1200px, calc(100% - 88px));
  font-family: "Rover Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--base);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
bdi, [dir="ltr"] { font-family: system-ui, sans-serif; }
.wrap { width: var(--wrap); margin-inline: auto; }
:focus-visible { outline: 2px solid #f6d9a6; outline-offset: 5px; }
.skip { position: fixed; z-index: 5; top: .75rem; right: .75rem; padding: .5rem .85rem; background: var(--ink); color: var(--base); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header {
  background: #15100e;
  border-bottom: 1px solid #50392980;
  position: relative;
  z-index: 1;
}
.header-inner { min-height: 70px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 2rem; }
.header-brand { justify-self: start; width: 117px; }
.header-brand img { width: 100%; height: auto; }
nav { display: flex; gap: clamp(1.25rem, 3.3vw, 3rem); }
nav a { font-size: .94rem; color: var(--muted); padding: .45rem .1rem; line-height: 1.4; }
nav a:hover { color: var(--ink); }
.top-link {
  justify-self: end; display: inline-flex; align-items: center; gap: .52rem;
  padding: .36rem .8rem; border: 1px solid var(--line);
  color: var(--ink); font-size: .82rem; white-space: nowrap; border-radius: 5px;
}
.top-link:hover { border-color: var(--copper); }
[data-icon] { display: inline-flex; width: 1em; height: 1em; flex: 0 0 auto; }
[data-icon] svg { width: 100%; height: 100%; }
.top-link [data-icon] { color: var(--copper); font-size: 1rem; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(515px, 47vw, 690px); text-align: center; overflow: hidden; }
.hero-art, .hero::before { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero::before {
  content: ''; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #140f0c29 0%, #140f0c0a 23%, #140f0c73 68%, var(--base) 100%),
              radial-gradient(ellipse at 50% 49%, #170f0975 3%, #20120a2b 49%, transparent 78%);
}
.hero-inner { position: relative; padding-block: 6rem 4rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { width: min(510px, 68vw); }
.hero h1 img { width: 100%; height: auto; filter: drop-shadow(0 4px 16px #17100999); }
.hero-handle { color: #e1c19a; font-size: .99rem; letter-spacing: .125em; margin-top: .9rem; }
.hero-copy { margin-top: .8rem; font-weight: 700; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.45rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; padding: .6rem 1.15rem; min-height: 43px;
  border: 1px solid transparent; border-radius: 5px; font-size: .91rem; font-weight: 700;
  line-height: 1.45; text-align: center; transition: border-color .18s, background-color .18s, color .18s;
}
.primary { background: #dfc39a; color: #25170e; }
.primary:hover { background: #f4dcb4; }
.secondary { background: #1a120cbf; color: var(--ink); border-color: #b18e6780; }
.secondary:hover { background: #35261b; border-color: var(--copper); }
.content-section { scroll-margin-top: 1.75rem; margin-top: 3.25rem; }
.section-intro {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block-end: 1.2rem;
}
.section-intro h2 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.4; }
.section-intro p { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.section-intro bdi { color: var(--copper); white-space: nowrap; }
.project-list { display: grid; gap: 1rem; }
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line); background: #1d1510; border-radius: 9px;
  overflow: hidden; min-height: 310px;
}
.project-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.35rem, 3.5vw, 2.7rem); }
.project-platform { align-self: flex-start; font: 600 .82rem/1.35 system-ui, sans-serif; color: var(--copper); padding-block-end: .55rem; }
.project h3 { font: 750 clamp(1.65rem, 3.05vw, 2.45rem)/1.15 system-ui, sans-serif; text-align: start; letter-spacing: .03em; text-align: right; overflow-wrap: anywhere; }
.project-description { color: #e0d2be; font-size: 1rem; max-width: 29rem; line-height: 1.75; margin-top: .62rem; }
.project-status { color: var(--muted); font-size: .88rem; line-height: 1.55; margin-top: .8rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.02rem; }
.project-button { background: #322317; border-color: #8b694c85; color: #f1d9b8; }
.project-button:hover { background: #463021; border-color: var(--copper); }
.project-visual { position: relative; min-height: 250px; background: #22170f; }
.project-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.project-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, #1d1510bb 0%, transparent 34%); }
.empty { padding: 1.2rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; }
.socials-section { margin-top: 4.1rem; }
.social-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.social-link {
  min-height: 72px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); display: flex; flex-flow: row-reverse; align-items: center;
  justify-content: center; gap: .7rem; font-size: .94rem; font-weight: 650;
  transition: border-color .18s, background-color .18s;
}
.social-link:hover { border-color: var(--copper); background: #302218; }
.social-link [data-icon] { color: #dfc39a; font-size: 1.22rem; }
.footer { min-height: 86px; margin-top: 4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 700; }
.footer-brand img { width: 31px; height: auto; }
.footer small { font-size: .83rem; letter-spacing: .07em; }
@media (max-width: 900px) {
  :root { --wrap: calc(100% - 56px); }
  .hero { min-height: 540px; }
  .project-visual { min-height: 270px; }
  .social-link { gap: .45rem; padding-inline: .45rem; }
}
@media (max-width: 600px) {
  :root { --wrap: calc(100% - 36px); }
  .header-inner { min-height: 61px; grid-template-columns: auto 1fr auto; gap: .85rem; }
  .header-brand { width: 82px; }
  nav { justify-content: center; gap: .85rem; }
  nav a { font-size: .85rem; }
  .top-link { width: 38px; height: 38px; justify-content: center; padding: 0; }
  .top-link [data-icon] { font-size: 1.1rem; }
  .top-link span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero { min-height: 535px; }
  .hero-art img { object-position: center 57%; }
  .hero::before {
    background: linear-gradient(180deg, #140f0c0a 0%, #140f0c20 30%, #140f0c53 70%, var(--base) 100%),
                radial-gradient(ellipse at 50% 51%, #170f097d, transparent 66%);
  }
  .hero-inner { padding-block: 5.7rem 3.75rem; }
  .hero h1 { width: min(330px, 79vw); }
  .hero-copy { font-size: .98rem; }
  .hero-handle { font-size: .86rem; }
  .content-section { margin-top: 2.25rem; }
  .section-intro { gap: .32rem; padding-bottom: .95rem; }
  .section-intro p { flex-basis: 100%; font-size: .94rem; }
  .project { grid-template-columns: 1fr; }
  .project-visual { grid-row: 1; min-height: 178px; }
  .project-visual::after { background: linear-gradient(to top, #1d1510a0, transparent 35%); }
  .project-content { padding: 1.15rem; }
  .socials-section { margin-top: 2.7rem; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .social-link { min-height: 55px; padding-inline: .75rem; }
  .footer { margin-top: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

[hidden] { display: none !important; }
.hero h1 { direction:ltr; display:flex; align-items:center; justify-content:center; gap: .24rem; }
.hero-mark { display:block; flex:0 0 45%; }
.hero-mark img { width:100%; }
.hero #brush-wordmark { width:53%; }
#brand-text { font:700 clamp(3rem, 8vw, 7rem)/1.1 system-ui,sans-serif; overflow-wrap:anywhere; }
#admin-link { color:#dfc39a; }
.project.no-art { grid-template-columns:1fr; min-height:0; }
.custom-section { border:1px solid var(--line); border-radius:9px; background:var(--surface); overflow:hidden; }
.custom-section > div { padding:clamp(1.25rem,3.5vw,2.6rem); }
.custom-section h2 { font-size:clamp(1.45rem,3vw,2.1rem); }
.custom-section p { margin:.5rem 0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.custom-section .button { margin-top:1rem; }
.custom-section.with-art { display:grid; grid-template-columns:1fr 1fr; }
.custom-section img { width:100%; height:100%; max-height:430px; object-fit:cover; }
@media(max-width:600px) {
  .custom-section.with-art { grid-template-columns:1fr; }
  .custom-section img { height:220px; grid-row:1; }
  .header-inner { gap:.5rem; }
  nav { gap:.65rem; }
}
