/* ============================================================
   AHMED ADIL NOOR — Portfolio
   style.css  —  ALL shared design lives here.
   Change design once → re-upload this one file → whole site updates.
   ============================================================ */

/* ---- Fonts ---- */
/* Inter across the whole site.
   Headings: Inter Medium (500) · Body: Inter Medium (500)
   Buttons & Navigation: Inter Regular (400) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

/* ---- Design tokens ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --line: #d9d9d9;          /* card borders */
  --rule: #111111;          /* header/footer hairline */
  --muted: #9a9a9a;         /* placeholder text only */
  --max-w: 1280px;          /* pages a touch smaller / zoomed out (New Size) */
  --pad: 56px;              /* left/right page padding on desktop */
  --nav-fs: 13px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 15px; }  /* base scaled down slightly */

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;                 /* Inter Medium = body */
  color: var(--black);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* The centered site column */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   HEADER  (injected by components.js)
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--rule);   /* thin line (Line Thickness) */
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { display: flex; align-items: center; line-height: 0; }
.brand .logo img { height: 30px; width: auto; }
.brand .role {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid var(--black);
}
.brand .role-end { font-weight: 300; font-size: 16px; color: var(--black); margin-left: 2px; }
.header-right {
  display: flex; align-items: center; gap: 12px;
  font-weight: 400;                 /* Inter Regular = nav */
  font-size: var(--nav-fs);
  letter-spacing: .05em;
}
.header-right .sep { color: var(--black); }
.header-right a { transition: opacity .2s var(--ease); }
.header-right a:hover { opacity: .45; }

/* ============================================================
   PRIMARY NAV  (injected by components.js)
   ============================================================ */
.site-nav { border-bottom: 1px solid var(--rule); }
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 15px; padding-bottom: 15px;
}
.site-nav a {
  font-weight: 400;                 /* Inter Regular = nav */
  font-size: var(--nav-fs);
  letter-spacing: .05em;
  white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.site-nav a:hover { opacity: .45; }
.site-nav a.current { text-decoration: underline; text-underline-offset: 5px; }

/* ============================================================
   MAIN
   ============================================================ */
main { flex: 1 0 auto; }
.page-top { padding-top: 44px; }
.page-bottom { padding-bottom: 56px; }

/* Section utility line e.g. "MORE ON VIMEO →" */
.strip {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 30px 0;   /* equal space above and below = sits in the middle of the gap */
  font-weight: 400; font-size: var(--nav-fs); letter-spacing: .05em;
}
.strip .left, .strip .right { display: flex; align-items: center; gap: 9px; }
.strip a:hover { opacity: .45; }

/* ============================================================
   VIDEO EMBED (Vimeo, 16:9, responsive)
   ============================================================ */
.embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 1px solid var(--line); overflow: hidden;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* A plain 16:9 content image (project content images) */
.content-img {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); background: #f2f2f2; position: relative;
}
.content-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   POSTER IMAGE — VERTICAL (~4:5). Auto-fills when uploaded;
   shows a labeled placeholder until then.
   ============================================================ */
.poster {
  position: relative; overflow: hidden; background: var(--white);
  aspect-ratio: 1080 / 1337;      /* vertical poster ratio */
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
}

/* ============================================================
   COMMERCIALS / RECENT WORK — video item with credits
   ============================================================ */
.work-item { padding: 6px 0 34px; }
.work-title { font-weight: 500; font-size: 26px; line-height: 1.1; }
.work-sub   { font-weight: 500; font-size: 15px; margin-top: 2px; }
.work-meta { display: grid; grid-template-columns: 1fr; gap: 20px 36px; padding-top: 18px; }
.work-credits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 28px; }
.cred b { display: block; font-weight: 700; font-size: 12px; }
.cred span { display: block; font-weight: 500; font-size: 12px; }
.work-item + .work-item { border-top: 1px solid var(--line); padding-top: 30px; }

/* ============================================================
   PROJECT CARD (Studio / TV list pages)
   Vertical poster on the right; card aligns to page edges.
   ============================================================ */
.cards { padding-top: 44px; }   /* same header-to-content space on every page */
.card {
  display: grid;
  grid-template-columns: 1fr 300px;   /* vertical poster column */
  border: 1px solid var(--line);
  margin-bottom: 26px;
  transition: border-color .2s var(--ease);
}
.card.no-image { grid-template-columns: 1fr; }
.card:hover { border-color: var(--black); }
.card-body { padding: 34px 38px; }
.card-title { font-weight: 500; font-size: 26px; line-height: 1.1; }
.card-genre { font-weight: 500; font-size: 13px; margin-top: 9px; }
.card-desc  { font-weight: 500; font-size: 14px; line-height: 1.5; margin-top: 12px; max-width: none; }
.card-role  { font-weight: 500; font-size: 13px; margin-top: 14px; }
.card .poster { border-left: 1px solid var(--line); }  /* keeps the natural 1080/1337 poster ratio - same as KnockOut Bite */
a.card { color: inherit; }

/* ============================================================
   PROJECT PAGE (single project: card + big video + credits)
   ============================================================ */
.project-card {
  display: grid;
  grid-template-columns: 1fr 300px;   /* vertical poster column */
  border: 1px solid var(--line);
  margin-top: 4px;
}
.project-card.no-image { grid-template-columns: 1fr; }
.project-info { padding: 30px 36px; position: relative; display: flex; flex-direction: column; }
.project-title { font-weight: 500; font-size: 26px; line-height: 1.1; }
.project-genre { font-weight: 500; font-size: 13px; margin-top: 9px; }
.project-desc  { font-weight: 500; font-size: 14px; line-height: 1.55; margin-top: 12px; }
.project-role  { font-weight: 500; font-size: 13px; margin-top: 16px; }
.project-card .poster { border-left: 1px solid var(--line); }  /* keeps the natural 1080/1337 poster ratio - same as KnockOut Bite */

/* Extra videos on a project page (e.g. Stand Up Ya Arab YouTube episodes) —
   same 16:9 embed design used across the site, stacked with spacing */
.project-video + .project-video { margin-top: 26px; }

/* arrows row pinned to the bottom of the info column */
.card-arrows {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto; padding-top: 24px;
}
.card-arrows a { display: inline-flex; }
.arrow-ico { height: 15px; width: auto; display: block; }
.arrow-ico.fwd { height: 15px; }
.arrow-ico.back { height: 15px; }

.project-video { margin-top: 22px; }

/* PLAY NOW image button with shimmer on hover */
.play-btn-img {
  display: inline-block; position: relative; overflow: hidden;
  border-radius: 40px; line-height: 0; margin-top: 4px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.play-btn-img img { height: 54px; width: auto; display: block; }
.play-btn-img:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.play-btn-img::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
}
.play-btn-img:hover::after { animation: shimmer .9s var(--ease); }
@keyframes shimmer { 0% { left: -75%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.play-btn-img:active { transform: translateY(0) scale(.99); }

/* Overlay variant: sits on top of the drawn PLAY NOW in the content image */
.content-img.has-overlay { position: relative; }
.play-btn-img.overlay {
  /* Sized to cover the FULL drawn button including its outer outline
     ring and drop shadow (x 140-455, y 455-568 in the-brief-project.jpg) */
  position: absolute; left: 17.15%; top: 49.9%; transform: translate(-50%, -50%);
  margin: 0; width: 22.65%; max-width: 300px;
}
.play-btn-img.overlay img { height: auto; width: 100%; }
.play-btn-img.overlay:hover { transform: translate(-50%, calc(-50% - 1px)) scale(1.03); }

.project-credits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px 28px;
  padding: 30px 0 8px;
}
.project-credits.cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.pc b { display: block; font-weight: 700; font-size: 12px; }
.pc span { display: block; font-weight: 500; font-size: 12px; white-space: pre-line; }

/* Credits block with the two little vertical tick marks (Film design) */
.credits-ruled { position: relative; }
.credits-ruled::before,
.credits-ruled::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  height: 70px; width: 1px; background: var(--black);
}
.credits-ruled::before { left: 0; }
.credits-ruled::after { right: 0; }
.credits-ruled .project-credits { padding-left: 26px; padding-right: 26px; }

/* Bottom project nav: ← STUDIO | NEXT PROJECT → */
.project-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 30px 0;
  font-weight: 400; font-size: var(--nav-fs); letter-spacing: .05em;
}
.project-foot .div { width: 1px; height: 15px; background: var(--black); }
.project-foot a { display: inline-flex; align-items: center; gap: 8px; }
.project-foot a:hover { opacity: .45; }
.project-foot .arrow-ico { height: 15px; }

/* "Get in touch to learn more →" inline link */
.inline-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 14px; margin-top: 14px;
}
.inline-cta .arrow-ico { height: 15px; }
.inline-cta:hover { opacity: .55; }

/* ============================================================
   Whip-snap arrow animation (forward + back)
   ============================================================ */
.whip { transform-origin: 15% 50%; }
a:hover .whip.fwd { animation: whipF .5s var(--ease); }
a:hover .whip.back { animation: whipB .5s var(--ease); }
@keyframes whipF {
  0% { transform: rotate(0) scaleX(1); }
  25% { transform: rotate(-9deg) scaleX(.94); }
  55% { transform: rotate(6deg) scaleX(1.06) translateX(3px); }
  100% { transform: rotate(0) scaleX(1); }
}
@keyframes whipB {
  0% { transform: rotate(0) scaleX(1); }
  25% { transform: rotate(9deg) scaleX(.94); }
  55% { transform: rotate(-6deg) scaleX(1.06) translateX(-3px); }
  100% { transform: rotate(0) scaleX(1); }
}

/* ============================================================
   SIMPLE CENTERED STATES (New Glass "COMING SOON", etc.)
   ============================================================ */
.center-state {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 24px; letter-spacing: .06em;
}
.state-foot { display:flex; align-items:center; justify-content:center; gap:8px;
  padding: 22px 0 36px; font-weight:400; font-size: var(--nav-fs); }
.state-foot a { display:inline-flex; align-items:center; gap:8px; }
.state-foot .arrow-ico { height: 15px; }

/* ============================================================
   BIO
   ============================================================ */
.bio-head { display: flex; align-items: center; gap: 14px; padding-top: 40px; }
.bio-head .tick { width: 46px; height: 1px; background: var(--black); }
.bio-head h1 { font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.bio { max-width: 760px; margin: 0 auto; padding: 30px 0 20px; }
.bio p { font-weight: 500; font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.bio-awards { text-align: center; padding: 26px 0 10px; }
.bio-awards h2 { font-weight: 700; font-size: 14px; letter-spacing: .08em; margin-bottom: 24px; }
.award { margin-bottom: 20px; }
.award .t { font-weight: 700; font-style: italic; font-size: 14px; }
.award .d { font-weight: 500; font-size: 13px; margin-top: 3px; }
.bio-rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ============================================================
   CONTACT (form)
   ============================================================ */
.contact-wrap { padding-top: 4px; max-width: 720px; }
.contact-form { padding: 8px 0 20px; }
.field { margin-bottom: 22px; }
.field > label {
  display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.field .req { color: #d33; margin-left: 3px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-label { font-weight: 500; font-size: 12px; color: #555; margin-top: 5px; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 12px 12px; border: 1px solid #bdbdbd; background: var(--white);
  color: var(--black); transition: border-color .18s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--black); }
.contact-form textarea { min-height: 190px; resize: vertical; }
.send-btn {
  font-family: inherit; font-weight: 400; font-size: 15px; letter-spacing: .03em;
  padding: 12px 30px; border: 1px solid var(--black); background: var(--white);
  color: var(--black); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.send-btn:hover { background: var(--black); color: var(--white); }
.form-note { font-size: 13px; margin-top: 14px; font-weight: 500; }
.contact-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 26px 0 40px; border-top: 1px solid var(--line); margin-top: 26px;
}
.contact-email { font-weight: 700; font-size: 20px; }
.contact-email a:hover { opacity: .45; }
.contact-ig { font-weight: 500; font-size: 13px; text-align: right; line-height: 1.5; }
.contact-ig a { font-weight: 700; }
.contact-ig a:hover { opacity: .45; }

/* ============================================================
   HOME
   ============================================================ */
/* 7-box grid from the HOME design PNG.
   Row 1: box 1 full width  ·  Row 2: box 2 + box 3
   Row 3: box 4 + box 5 + box 6  ·  Row 4: box 7 full width */
.home-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}
.home-box {
  border: 1px solid var(--line);
  padding: 26px 30px 34px;
  display: block;
  transition: border-color .2s var(--ease);
}
.home-box:hover { border-color: var(--black); }
.hb-label {
  font-weight: 400; font-size: var(--nav-fs); letter-spacing: .05em;
  text-transform: uppercase;
}
.hb-title {
  font-weight: 500; font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25; margin-top: 20px; letter-spacing: -.01em;
}
.box-1 { grid-column: span 12; min-height: 220px; }
.box-2 { grid-column: span 5; }
.box-3 { grid-column: span 7; }
.box-4 { grid-column: span 7; }
.box-5 { grid-column: span 2; }
.box-6 { grid-column: span 3; }
.box-7 { grid-column: span 12; min-height: 230px; }
.box-5 .hb-title, .box-6 .hb-title { font-size: clamp(20px, 2vw, 26px); }

/* ============================================================
   FOOTER  (injected by components.js)
   ============================================================ */
.site-footer { border-top: 1px solid var(--rule); flex-shrink: 0; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.site-footer .center {
  font-weight: 500; font-size: 11px; letter-spacing: .06em;
  text-align: center; text-transform: uppercase;
}
.site-footer .icon { display: flex; align-items: center; gap: 12px; }
.site-footer .icon svg { width: 24px; height: 24px; }
.site-footer .icon .imdb { font-weight: 900; font-size: 16px; letter-spacing: .02em; }
.site-footer .icon a { display: flex; align-items: center; transition: opacity .2s var(--ease); }
.site-footer .icon a:hover { opacity: .45; }
.site-footer .icon .bar { width: 1px; height: 18px; background: var(--black); }

/* ============================================================
   RESPONSIVE — tablet / mobile
   ============================================================ */
@media (max-width: 1024px) {
  .work-credits { grid-template-columns: repeat(2, 1fr); }
  .project-credits, .project-credits.cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }

  .home-grid { gap: 18px; }
  .box-1, .box-2, .box-3, .box-4, .box-5, .box-6, .box-7 { grid-column: span 12; min-height: 0; }

  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand { flex-wrap: wrap; gap: 10px; }
  .brand .role { padding-left: 10px; }

  .site-nav .wrap { flex-wrap: wrap; gap: 14px 18px; justify-content: flex-start; }

  .card, .card.no-image { grid-template-columns: 1fr; }
  .card .poster { border-left: 0; border-top: 1px solid var(--line); aspect-ratio: 1080/1337; max-height: 460px; }

  .project-card, .project-card.no-image { grid-template-columns: 1fr; }
  .project-card .poster { border-left: 0; border-top: 1px solid var(--line); aspect-ratio: 1080/1337; max-height: 460px; }

  .name-grid { grid-template-columns: 1fr; }
  .work-credits { grid-template-columns: 1fr 1fr; }
  .project-credits, .project-credits.cols-5 { grid-template-columns: 1fr 1fr; }

  .site-footer .wrap { flex-direction: column; gap: 12px; }
  .contact-row { flex-direction: column; gap: 16px; }
  .contact-ig { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .whip { animation: none !important; }
}
