/* Khaled Ayman · site styles. Brand: ink #141414, paper #FBFAF6, orange #FF5A1F, Cairo. */
:root {
  --ink: #141414;
  --paper: #FBFAF6;
  --o: #FF5A1F;
  --o-dark: #E0450C;
  --soft: #EFEBE4;
  --mid: #C9C3B9;
  --grey: #6F695F;
  --card: #FFFFFF;
  --r: 18px;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* pages are connected: navigating between them morphs instead of jumping (Chrome/Edge/Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.vt-mark { view-transition-name: brand-mark; }
.vt-name { view-transition-name: brand-name; }

/* the 3D world sits behind everything; sections reserve "slots" where its objects land */
#world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease; }
.has3d #world { opacity: 1; }
main, footer { position: relative; z-index: 1; }
.slot { position: relative; }
.slot > .fb { position: absolute; inset: 0; transition: opacity .6s ease, visibility .6s; }
.has3d .slot > .fb { opacity: 0; visibility: hidden; }
/* content sheets slide over the 3D world */
.sheet { position: relative; z-index: 2; border-radius: clamp(24px, 3vw, 40px); margin-inline: clamp(8px, 1.6vw, 24px); }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Cairo', system-ui, sans-serif; font-weight: 500; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.o { color: var(--o); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--o); }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
section { padding: clamp(64px, 9vw, 112px) 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 700 16px/1 'Cairo', sans-serif; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-o { background: var(--o); border-color: var(--o); color: #fff; }
.btn-o:hover { background: var(--o-dark); border-color: var(--o-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

/* brand mark: orange play disc */
.mark { width: 34px; height: 34px; border-radius: 50%; background: var(--o); display: inline-grid; place-items: center; flex: none; }
.mark::after { content: ''; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--grey); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 86px); margin: 18px 0 20px; }
.hero h1 .o { position: relative; white-space: nowrap; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: #3A3732; max-width: 34ch; margin: 0 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--soft); }
.facts b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--grey); font-weight: 600; }
.photo { position: relative; }
.photo .frame { position: relative; border-radius: 28px; overflow: hidden; background: #1d1d1f; aspect-ratio: 4/5; }
.photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 15%; }
.photo .disc { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--o); right: -7%; top: -6%; z-index: -1; }
.tl { position: absolute; left: -8%; right: 8%; bottom: 22px; background: var(--paper); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.tl .tracks { position: relative; display: grid; gap: 6px; }
.tl .row { height: 12px; display: flex; gap: 4px; }
.tl .row i { border-radius: 4px; background: var(--mid); }
.tl .row.v i { background: var(--ink); }
.tl .row.a i { background: #F4B9A2; }
.tl .ph { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--o); left: 0; animation: ph 6s linear infinite; }
.tl .ph::before { content: ''; position: absolute; top: -4px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--o); }
@keyframes ph { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .tl .ph { animation: none; left: 38%; } html { scroll-behavior: auto; } }
.hero-slot { aspect-ratio: 4 / 5; }
.photo .frame { height: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-slot { max-width: 400px; width: 84%; margin: 8px auto 0; }
  .tl { left: -4%; right: -4%; }
}
.tl.static { left: 4%; right: 4%; top: 50%; bottom: auto; transform: translateY(-50%); }

/* work intro: heading + the 3D carousel */
.intro { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ring-slot { order: 2; aspect-ratio: 4 / 3; }
.intro-text h2 { margin: 14px 0 16px; }
.intro-text p { font-size: 18px; color: #3A3732; max-width: 40ch; margin: 0 0 28px; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: center; }
.collage img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .ring-slot { order: 0; aspect-ratio: 5 / 4; }
}

/* work */
.work { background: var(--card); box-shadow: 0 0 0 1px var(--soft), 0 40px 80px -50px rgba(20, 20, 20, .35); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head p { margin: 10px 0 0; color: var(--grey); max-width: 46ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--mid); background: transparent; font: 700 15px/1 'Cairo', sans-serif; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { font-weight: 600; opacity: .55; margin-left: 4px; }
.sub { font-size: 15px; font-weight: 800; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; margin: 8px 0 16px; }
.grid { display: grid; gap: 20px; }
.grid.land { grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
.grid.vert { grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 960px) { .grid.land { grid-template-columns: repeat(2, 1fr); } .grid.vert { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .grid.land { grid-template-columns: 1fr; } .grid.vert { grid-template-columns: repeat(2, 1fr); } }
.vid { all: unset; cursor: pointer; display: block; min-width: 0; }
.vid .th { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 16/9; }
.grid.vert .vid .th { aspect-ratio: 9/16; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid:hover img { transform: scale(1.04); }
.vid .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)); }
.vid .play i { width: 54px; height: 54px; border-radius: 50%; background: var(--o); display: grid; place-items: center; transform: scale(.9); opacity: .92; transition: transform .2s, opacity .2s; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.vid .play i::after { content: ''; margin-left: 4px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vid:hover .play i { transform: scale(1); opacity: 1; }
.vid:focus-visible .th { outline: 3px solid var(--o); outline-offset: 3px; }
.vid .tag { position: absolute; left: 10px; top: 10px; background: rgba(20,20,20,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.vid h3 { font-size: 16px; font-weight: 800; line-height: 1.35; margin: 12px 2px 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid.vert .vid h3 { font-size: 14px; }
.vid .cl { font-size: 13px; color: var(--grey); font-weight: 600; margin: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { margin-top: 28px; text-align: center; }
.empty { color: var(--grey); }

/* player */
dialog.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
dialog.player::backdrop { background: rgba(10,10,10,.88); }
dialog.player .box { position: fixed; inset: 0; display: grid; place-items: center; padding: 56px 16px 24px; }
dialog.player .fr { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
dialog.player.v .fr { width: auto; height: min(84vh, 100%); max-width: 100%; aspect-ratio: 9/16; }
dialog.player iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog.player .x { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 900 22px/1 'Cairo', sans-serif; cursor: pointer; }
dialog.player .cap { position: fixed; left: 16px; top: 18px; right: 76px; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* approach */
.approach .big { font-size: clamp(36px, 5.4vw, 64px); max-width: 16ch; margin: 18px 0 18px; }
.approach .big s { text-decoration-color: var(--o); text-decoration-thickness: 5px; color: var(--grey); }
.approach > .wrap > p { font-size: 19px; color: #3A3732; max-width: 56ch; margin: 0 0 44px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards3 .c { background: var(--card); border: 1px solid var(--soft); border-radius: var(--r); padding: 26px; }
.cards3 .n { width: 40px; height: 40px; border-radius: 50%; background: var(--o); color: #fff; font-weight: 900; display: grid; place-items: center; margin-bottom: 16px; }
.cards3 h3 { font-size: 21px; margin-bottom: 8px; }
.cards3 p { margin: 0; color: var(--grey); }
@media (max-width: 820px) { .cards3 { grid-template-columns: 1fr; } }

/* reviews */
.reviews { background: var(--ink); color: var(--paper); }
.reviews .eyebrow { color: #A49D92; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.q { background: #1F1F1F; border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.q .stars { color: var(--o); letter-spacing: 3px; font-size: 16px; }
.q blockquote { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.55; }
.q cite { font-style: normal; color: #A49D92; font-weight: 600; font-size: 15px; margin-top: auto; }
.q cite b { color: var(--paper); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* about */
.about .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-slot { aspect-ratio: 1; }
.about .pic { border-radius: 24px; overflow: hidden; background: #1d1d1f; }
.about .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 0%; }
.approach .tl-slot { height: clamp(200px, 26vw, 330px); margin: 0 0 40px; }
.about h2 { margin: 16px 0 18px; }
.about p { font-size: 18px; color: #3A3732; margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; } .about-slot { width: 100%; max-width: 320px; } }

/* contact = the end card: the coin in the middle, the call to action under it */
.contact { padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.end { text-align: center; }
.end-slot { height: clamp(230px, 24vw, 320px); margin-bottom: 8px; }
.end-slot .fb { display: grid; place-items: center; }
.mark-xl { width: 180px; height: 180px; }
.mark-xl::after { margin-left: 14px; border-left-width: 54px; border-top-width: 34px; border-bottom-width: 34px; }
.end h2 { font-size: clamp(38px, 6vw, 72px); }
.end p { font-size: 18px; color: #3A3732; margin: 16px auto 28px; max-width: 46ch; }
.end .act { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.end .mail { margin-top: 14px; color: var(--grey); font-weight: 700; font-size: 15px; word-break: break-all; }
@media (max-width: 600px) {
  .end-slot { height: 200px; }
  .end p { margin: 12px auto 22px; }
  footer { padding: 20px 0 28px; }
  footer .wrap { gap: 12px; }
}

footer { padding: 36px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; color: var(--grey); font-weight: 600; font-size: 15px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--mid); display: grid; place-items: center; color: var(--ink); }
.social a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.social svg { width: 18px; height: 18px; }
footer .ar { font-weight: 700; color: var(--ink); text-decoration: none; }
footer .ar:hover { color: var(--o); }
