:root {
  --ac: #ff6b2c;
  --ac2: #ffb347;
  --ink: #f3efe9;
  --ink2: #a9a39c;
  --bg: #07070b;
  --card: #0b0b10;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.latin, [dir="ltr"] { font-family: 'Space Grotesk', 'Cairo', sans-serif; }

/* ===== nav ===== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(7,7,11,.9), rgba(7,7,11,0));
  transition: background .3s;
}
.nav.is-scrolled { background: rgba(7,7,11,.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-name { font-weight: 700; font-size: 17px; }
.nav-name b { color: var(--ac2); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.nav-links a { opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--ac2); }
.nav-cta { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 18px; }
.nav-cta:hover { border-color: var(--ac2); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== hero ===== */
.hero { position: relative; min-height: 780px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: #000; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 24s linear infinite; }
.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 6s; }
.hero-bg img:nth-child(3) { animation-delay: 12s; }
.hero-bg img:nth-child(4) { animation-delay: 18s; }
@keyframes fade { 0% { opacity: 0; transform: scale(1.02); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(7,7,11,.35) 0%, rgba(7,7,11,.05) 35%, rgba(7,7,11,.82) 78%, var(--bg) 100%),
  radial-gradient(60% 55% at 85% 85%, rgba(255,107,44,.3), transparent 70%); }
.hero-in {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 140px 28px 40px;
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: end;
}
.eyebrow { color: var(--ac2); letter-spacing: .06em; font-size: 13px; font-weight: 600; margin-bottom: 16px; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .05s; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); margin-inline-end: 10px; box-shadow: 0 0 0 0 rgba(255,107,44,.7); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,107,44,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,44,0); } }
.name {
  font-size: clamp(52px, 11vw, 124px); line-height: 1.02; font-weight: 900; letter-spacing: -.01em;
  background: linear-gradient(95deg, #fff 30%, var(--ac2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.6));
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both .15s;
}
.name-latin { color: rgba(255,255,255,.55); letter-spacing: .5em; font-size: clamp(11px, 1.6vw, 15px); margin-top: 10px; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .25s; }
.role { font-size: clamp(19px, 2.6vw, 27px); font-weight: 700; margin-top: 14px; color: #e8e2da; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .3s; }
.statement { margin-top: 12px; color: var(--ink2); font-size: clamp(15px, 2vw, 18px); max-width: 34em; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .4s; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: rise 1s cubic-bezier(.2,.8,.2,1) both .55s; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  font-weight: 700; font-size: 15px; transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: #fff; }
.btn.is-primary { background: linear-gradient(95deg, var(--ac), var(--ac2)); color: #1a0d05 !important; border-color: transparent; box-shadow: 0 8px 36px rgba(255,107,44,.45); }
.btn:focus-visible, .filters button:focus-visible, .work:focus-visible { outline: 2px solid var(--ac2); outline-offset: 3px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-strip { position: relative; z-index: 1; height: 120px; overflow: hidden; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track { display: flex; gap: 12px; width: max-content; height: 100%; animation: slide 80s linear infinite; }
.strip-track img { height: 100%; width: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
@keyframes slide { to { transform: translateX(50%); } }

/* ===== stats ===== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-block: 1px solid rgba(255,255,255,.1); }
.stats div { background: var(--card); padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; color: var(--ac2); line-height: 1.1; font-weight: 900; }
.stats span { color: var(--ink2); font-size: 13px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ===== sections ===== */
.sec { max-width: 1100px; margin: 0 auto; padding: 80px 28px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.sec-head p { color: var(--ink2); font-size: 15px; }

/* ===== services ===== */
.services { display: grid; grid-template-columns: 1fr; gap: 14px; }
.services article { padding: 24px; border-radius: 16px; background: linear-gradient(160deg, #14141b, #0d0d12); border: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; gap: 6px; }
.services span { color: var(--ac); font-weight: 800; letter-spacing: .1em; font-size: 13px; }
.services h3 { font-size: 21px; font-weight: 800; }
.services p { color: #cfc9c1; font-size: 14px; margin-top: 4px; }
.tools-line { margin-top: 20px; color: var(--ac2); font-size: 13px; letter-spacing: .06em; text-align: center; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ===== work grid ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  cursor: pointer; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: #e8e2da;
  font: inherit; font-weight: 700; font-size: 14px; transition: background .2s, border-color .2s;
}
.filters button:hover { border-color: #fff; }
.filters button.is-on { background: #f3efe9; color: #101015; border-color: #f3efe9; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.work {
  position: relative; display: block; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #111; border: 1px solid rgba(255,255,255,.08); cursor: pointer; padding: 0; font: inherit; color: inherit; text-align: start; width: 100%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.94) 90%); }
.work:hover { transform: translateY(-6px); border-color: rgba(255,179,71,.7); box-shadow: 0 18px 50px rgba(255,107,44,.25); }
.work:hover img { transform: scale(1.06); }
.work-meta { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.work-tag { font-size: 11px; letter-spacing: .08em; color: var(--ac2); font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.work-title { font-size: 20px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.work-desc { font-size: 13px; color: #d4cec6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .35s; }
.work:hover .work-desc, .work:focus-visible .work-desc { max-height: 90px; opacity: 1; }
.work-play { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); transition: transform .3s, background .3s; }
.work:hover .work-play { transform: scale(1.15); background: var(--ac); color: #1a0d05; }
.work.is-feature { box-shadow: 0 0 0 1px rgba(255,179,71,.5), 0 20px 60px rgba(255,107,44,.22); }
.work.is-feature .work-title { font-size: 28px; }
.work.is-feature .work-desc { max-height: 90px; opacity: 1; }
.note { color: var(--ink2); font-size: 13px; margin-top: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .work.is-feature { grid-column: span 2; aspect-ratio: auto; } }
@media (max-width: 639px) {
  .work { aspect-ratio: auto; background: #101016; }
  .work img { position: relative; aspect-ratio: 16/9; height: auto; }
  .work::after { display: none; }
  .work-meta { position: static; padding: 14px 16px 18px; }
  .work-desc { max-height: none; opacity: 1; }
  .work:hover { transform: none; }
  .work.is-feature .work-title { font-size: 22px; }
}
@media (hover: none) { .work-desc { max-height: 90px; opacity: 1; } }

/* ===== timeline ===== */
.time { display: flex; flex-direction: column; }
.time div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 18px 22px 18px 0; border-inline-start: 2px solid rgba(255,255,255,.14); position: relative; }
.time div::before { content: ''; position: absolute; inset-inline-start: -6px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); }
.time span { color: var(--ac2); font-size: 13px; font-weight: 700; }
.time b { font-size: 18px; }
.time i { font-style: normal; color: var(--ink2); }
@media (min-width: 960px) { .time div { grid-template-columns: 170px 1fr 1fr; align-items: baseline; gap: 14px; } }

/* ===== about ===== */
.about { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.av-about { width: 200px; margin-inline: auto; }
.lede { font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; font-weight: 600; }
.lede2 { margin-top: 14px; color: var(--ink2); }
.edu { margin-top: 16px; color: var(--ac2); font-size: 13px; line-height: 1.8; }
@media (min-width: 960px) { .about { grid-template-columns: 260px 1fr; gap: 56px; } .av-about { width: 260px; } }

/* ===== contact ===== */
.contact { text-align: center; padding-bottom: 60px; }
.contact h2 { font-size: clamp(30px, 6vw, 56px); line-height: 1.2; font-weight: 900; max-width: 16em; margin-inline: auto; }
.contact .cta { justify-content: center; }
.foot { color: #6f6a64; font-size: 12px; margin-top: 60px; }

/* ===== avatar ===== */
.av { position: relative; }
.av svg { display: block; overflow: visible; }
.av-hero { width: 230px; margin-inline: auto; }
.av-body { transform-origin: 200px 470px; animation: avbreathe 4s ease-in-out infinite; }
.av-head { transform-origin: 200px 330px; animation: avbob 5.5s ease-in-out infinite; }
.av-eye { animation: avblink 4.6s infinite; }
.av-brows { transform-origin: 200px 170px; animation: avbrow 6s ease-in-out infinite; }
.av-mouth { transform-origin: 200px 292px; animation: avtalk 6s ease-in-out infinite; }
.av-glow { animation: avpulse 4s ease-in-out infinite; transform-origin: 200px 230px; }
@keyframes avbreathe { 50% { transform: scaleY(1.018); } }
@keyframes avbob { 0%,100% { transform: rotate(-1.6deg) translateY(0); } 50% { transform: rotate(1.8deg) translateY(-5px); } }
@keyframes avblink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.08); } }
@keyframes avbrow { 0%, 60%, 100% { transform: translateY(0); } 66%, 74% { transform: translateY(-6px); } }
@keyframes avtalk { 0%, 55%, 100% { transform: scale(1, 1); } 62%, 70% { transform: scale(1.18, 1.9); } }
@keyframes avpulse { 50% { opacity: .65; transform: scale(1.05); } }
.av-chip { position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; font-family: 'Space Grotesk', sans-serif; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); animation: avfloat 5s ease-in-out infinite; }
.av-ae { top: 8%; inset-inline-start: -4%; background: #2b1a4d; color: #c7a5ff; }
.av-pr { top: 30%; inset-inline-end: -6%; background: #1a1f4d; color: #9aa8ff; animation-delay: -1.6s; }
.av-play { bottom: 22%; inset-inline-start: -8%; background: linear-gradient(135deg, #ff6b2c, #ffb347); color: #1a0d05; animation-delay: -3s; }
@keyframes avfloat { 50% { transform: translateY(-12px) rotate(4deg); } }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.3fr .7fr; }
  .av-hero { width: 330px; margin: 0; justify-self: end; }
}

/* ===== modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.modal-box { position: relative; z-index: 2; width: min(960px, 100%); background: #0d0d12; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal-frame { aspect-ratio: 16/9; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-frame.is-vertical { aspect-ratio: auto; height: min(72vh, 640px); }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; font-size: 14px; }
.modal-bar span { font-weight: 700; }
.modal-bar a { color: var(--ac2); font-weight: 700; white-space: nowrap; }
.modal-x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.55); color: #fff; font-size: 16px; cursor: pointer; }
.modal-x:hover { background: var(--ac); color: #1a0d05; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .name, .role, .statement, .cta, .eyebrow, .name-latin, .dot, .strip-track,
  .av-body, .av-head, .av-eye, .av-brows, .av-mouth, .av-glow, .av-chip { animation: none !important; }
  .hero-bg img:not(:first-child) { display: none; }
  .hero-bg img:first-child { opacity: 1; }
}
