:root {
  color-scheme: dark;
  --ink: #11110f;
  --surface: #181816;
  --paper: #f4f0e7;
  --muted: #b9b5aa;
  --line: #393831;
  --yellow: #ffc600;
  --mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  --header-height: 4.8rem;
  --header-logo-size: 2.5rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--yellow); }

.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
}

.wrap { width: min(100% - clamp(2.25rem, 11vw, 11rem), 79rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-inner { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-size: .95rem; font-weight: 700; line-height: 1.2; }
.brand img { flex: none; border-radius: 50%; }
.header-inner .brand img, .intro-brand img { width: var(--header-logo-size); height: var(--header-logo-size); }
.brand small {
  display: block;
  margin-top: .24rem;
  color: var(--muted);
  font: 500 .62rem/1.15 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.page-intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  :root {
    --intro-duration: 2s;
    --reveal-duration: .6s;
    --reveal-easing: cubic-bezier(.22, 1, .36, 1);
  }
  .page-intro {
    --intro-mark-radius: calc(.9 * var(--header-logo-size));
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    animation: intro-screen var(--intro-duration) both;
  }
  .page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--yellow);
    animation: intro-yellow var(--intro-duration) both;
  }
  .intro-track { position: relative; height: 100%; }
  .intro-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    white-space: nowrap;
    transform-origin: left center;
    animation: intro-brand var(--intro-duration) both;
  }
  .intro-brand span { animation: intro-wordmark var(--intro-duration) both; }
  .header-inner .brand { animation: intro-header var(--intro-duration) step-end both; }

  @keyframes intro-screen {
    0%, 62% { background-color: var(--ink); }
    100% { background-color: transparent; visibility: hidden; }
  }
  @keyframes intro-yellow {
    0%, 8% { clip-path: circle(71%); }
    34%, 100% { clip-path: circle(var(--intro-mark-radius)); }
    38% { visibility: visible; }
    39%, 100% { visibility: hidden; }
  }
  @keyframes intro-brand {
    0%, 39% { transform: translate(calc(-1 * var(--intro-mark-radius)), -50%) scale(1.8); }
    62% { top: 50%; left: 50%; transform: translate(-75%, -50%) scale(1.5); }
    100% { top: calc(var(--header-height) / 2); left: 0; transform: translateY(-50%); }
  }
  @keyframes intro-wordmark {
    0%, 39% { opacity: 0; transform: translateX(-.8rem); clip-path: inset(0 100% 0 0); }
    62%, 76% { opacity: 1; }
    62%, 100% { transform: translateX(0); clip-path: inset(0); }
    100% { opacity: var(--intro-wordmark-opacity, 1); }
  }
  @keyframes intro-header {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero > * {
    animation: reveal-in var(--reveal-duration) var(--reveal-easing) calc(var(--intro-duration) * .68) backwards;
  }
  [data-reveal='pending']:not(:focus-within) {
    opacity: 0;
    transform: translateY(1rem);
  }
  [data-reveal='shown']:not(:focus-within) {
    transition: opacity var(--reveal-duration) ease-out, transform var(--reveal-duration) var(--reveal-easing);
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(1rem); }
  }
}

nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.55rem); }
nav a { display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; font-weight: 650; }
nav a:hover { color: var(--yellow); }
.nav-contact { border: 1px solid; padding: .65rem .8rem .65rem .95rem; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(3.5rem, 4.6vw, 5.25rem);
}
.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--muted);
  font: 500 .72rem/1.35 var(--mono);
  letter-spacing: .105em;
  text-transform: uppercase;
}
.hero h1, h2 {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -.04em;
}
.hero h1 { margin: 1.25rem 0 1.55rem; font-size: clamp(4rem, 8.4vw, 8.4rem); line-height: .86; }
.hero h1 span { color: var(--yellow); }
.hero-description { max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.65; }
.hero-description p + p { margin-top: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--line);
  padding: .7rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  transition: background-color .18s, border-color .18s, color .18s;
}
.primary, .nav-contact { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.primary:hover, .nav-contact:hover { color: var(--ink); background: #ffdb5c; border-color: #ffdb5c; }
.secondary:hover { color: var(--yellow); border-color: var(--yellow); }
.monitor { width: min(100%, calc(25.1rem + 2px)); justify-self: center; border: 1px solid var(--line); padding: .55rem; background: var(--surface); }
.monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .8rem .35rem .35rem;
  color: var(--muted);
  font: 500 .65rem/1.2 var(--mono);
  letter-spacing: .09em;
}
.monitor-image { display: block; position: relative; background: #352b20; overflow: hidden; }
.monitor-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 39%; }
.viewfinder {
  position: absolute;
  inset: .9rem;
  background:
    conic-gradient(from 90deg at 1px 1px, transparent 25%, #fff9 0) 0 0,
    conic-gradient(from 180deg at calc(100% - 1px) 1px, transparent 25%, #fff9 0) 100% 0,
    conic-gradient(from 0deg at 1px calc(100% - 1px), transparent 25%, #fff9 0) 0 100%,
    conic-gradient(from 270deg at calc(100% - 1px) calc(100% - 1px), transparent 25%, #fff9 0) 100% 100%;
  background-size: .75rem .75rem;
  background-repeat: no-repeat;
  pointer-events: none;
}
.frame-label {
  position: absolute;
  right: 1.4rem;
  bottom: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .36rem .5rem;
  color: var(--yellow);
  background: var(--ink);
  font: 500 .67rem/1 var(--mono);
  letter-spacing: .1em;
}
.monitor-image:hover .frame-label { color: var(--ink); background: var(--yellow); }
.monitor-footer [lang='ar'] { color: var(--paper); font: 500 .92rem/1.2 'Segoe UI', sans-serif; letter-spacing: normal; }
.monitor-footer span:last-child { text-transform: uppercase; }

.timeline { border-block: 1px solid var(--line); }
.timeline-inner {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2.25rem);
  color: var(--muted);
  font: 500 .65rem/1 var(--mono);
  letter-spacing: .12em;
  white-space: nowrap;
}
.timeline-name { color: var(--yellow); text-transform: uppercase; }
.timeline-ruler {
  flex: 1;
  position: relative;
  height: .9rem;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) center bottom / 100% .45rem no-repeat;
  border-bottom: 1px solid var(--line);
}
.timeline-ruler i { position: absolute; width: 1px; top: -.2rem; bottom: -.2rem; left: 38%; background: var(--yellow); }
.timeline-ruler i::before { content: ''; position: absolute; left: -4px; top: -2px; width: 9px; height: 7px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }

.section { padding-block: clamp(3.8rem, 7.2vw, 7rem); }
.section-index { margin-bottom: .8rem; }
.section-index > span { color: var(--yellow); }
h2 { font-size: clamp(2.8rem, 6vw, 6.05rem); line-height: .98; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .8rem 1.5rem; margin-bottom: clamp(1.4rem, 3vw, 2.75rem); }
.text-link {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  width: fit-content;
  padding-block: .35rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 650;
}
.text-link:hover { color: var(--yellow); border-color: var(--yellow); }

.carousel-controls:not([hidden]) { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.carousel-controls button { border: 0; border-bottom: 1px solid var(--line); padding-inline: 0; color: var(--muted); background: none; font-family: inherit; cursor: pointer; }
.carousel-controls button:hover { color: var(--yellow); border-color: var(--yellow); }
.carousel-track {
  --carousel-columns: 3;
  --carousel-gap: clamp(1rem, 2vw, 1.7rem);
  display: grid;
  grid-template-columns: repeat(var(--carousel-columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--carousel-gap);
}
[data-carousel-ready] .carousel-viewport { overflow: clip; touch-action: pan-y pinch-zoom; }
[data-carousel-ready] .carousel-track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--carousel-gap)) / var(--carousel-columns) - var(--carousel-gap));
}
.carousel-track a:focus-visible { outline-offset: -4px; }
.project { width: min(100%, 24rem); justify-self: center; border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; }
.project-image { display: block; position: relative; overflow: hidden; background: var(--surface); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.the-hook img { object-position: center 24%; }
.project-image:hover img { transform: scale(1.045); }
.project-number, .project-play {
  position: absolute;
  top: var(--reel-control-inset);
  display: grid;
  place-items: center;
  width: var(--reel-control-size);
  height: var(--reel-control-size);
  background: var(--ink);
  color: var(--paper);
}
.project-number { left: var(--reel-control-inset); font: 500 .72rem/1 var(--mono); }
.project-play { right: var(--reel-control-inset); color: var(--ink); background: var(--yellow); }
.project-type { margin-top: 1.1rem; color: var(--yellow); }
h3 { font-size: clamp(1.28rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.14; }
.project h3 { margin-top: .35rem; }
.project-flag { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; }
.project:has(.project-image:hover) h3 { color: var(--yellow); }
.project > p { margin-top: .6rem; font-size: .95rem; line-height: 1.6; color: var(--muted); }

.experiences { border-top: 1px solid var(--line); }
.experience-card a { display: block; border: 1px solid var(--line); background: var(--surface); }
.experience-card a:hover { border-color: var(--yellow); }
.experience-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.experience-card figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.about-band, .events-band { border-block: 1px solid var(--line); background: var(--surface); }
.about-grid, .service-grid, .contact-grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.about-copy { max-width: 32rem; color: var(--muted); line-height: 1.7; margin-top: 1.35rem; }
.company-work h3, .company-work dt { color: var(--paper); }
.company-work dl { display: grid; gap: .75rem; margin: .75rem 0 0; }
.company-work dt { font-weight: 700; }
.company-work dd { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: .9rem 2rem; margin-top: 1.75rem; }
.stats div { display: grid; justify-items: start; gap: .4rem; }
.stats strong { padding: .2em .3em; color: var(--ink); background: var(--yellow); font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1; }
.stats span { font-size: .84rem; color: var(--muted); }
.tutorial { width: min(100%, calc(24rem + 2px)); justify-self: center; border: 1px solid var(--line); background: var(--ink); }
.tutorial-image { display: block; position: relative; overflow: hidden; background: var(--ink); }
.tutorial-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.tutorial-play { display: grid; place-items: center; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 3rem; height: 3rem; background: var(--yellow); color: var(--ink); border-radius: 50%; }
.tutorial a:hover .tutorial-play { background: var(--paper); }
.tutorial-caption { padding: 1rem; }
.tutorial-caption h3 { font-size: 1.25rem; margin-top: .25rem; }

.service-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid var(--line); }
.service-list .eyebrow { align-self: start; color: var(--yellow); padding-top: .28rem; }
.service-list p { margin-top: .4rem; color: var(--muted); line-height: 1.55; }
.client-galleries { margin-top: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.client-gallery, .client-gallery-link { border-top: 1px solid var(--line); }
.client-gallery summary, .client-gallery-link { padding-block: 1.1rem; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 700; cursor: pointer; }
.client-gallery summary::marker { color: var(--yellow); }
.client-gallery .carousel { padding-bottom: 1.5rem; }
.client-gallery-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.client-gallery-link:hover, .client-gallery-link .icon { color: var(--yellow); }

.event-video { width: min(100%, 60rem); margin-inline: auto; }
.event-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--ink);
}
.event-video figcaption { margin-top: .8rem; }

.contact { background: var(--yellow); color: var(--ink); }
.contact ::selection { color: var(--yellow); background: var(--ink); }
.contact :focus-visible { outline-color: var(--ink); }
.contact-grid { align-items: start; padding-block: clamp(3.25rem, 6vw, 6rem); }
.contact-intro { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; }
.contact .eyebrow, .contact .section-index > span { color: var(--ink); }
.contact p:not(.eyebrow) { margin-top: .9rem; font-weight: 600; line-height: 1.55; }
.contact-actions { display: grid; justify-items: start; min-width: 0; }
.contact-form { display: grid; width: 100%; }
.contact-form[hidden] { display: none; }
.contact-form label { margin-bottom: .35rem; font-size: .88rem; font-weight: 700; }
.contact-form label span { font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-bottom: .85rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: .65rem .75rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-button { justify-self: start; font-family: inherit; color: var(--paper); background: var(--ink); border-color: var(--ink); cursor: pointer; }
.contact-button:not(:disabled):hover { color: var(--ink); background: transparent; }
.contact-button:disabled { opacity: .75; cursor: wait; }
.contact-error { font-size: .88rem; font-weight: 650; }
.contact-error:not(:empty) { margin-top: .65rem; }
.contact-direct { display: grid; gap: .25rem; margin-top: auto; padding-top: 1.5rem; font-size: .88rem; }
.contact-detail { font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.site-footer { min-height: 4.8rem; padding-block: 1rem; }
.site-footer .brand { font-size: .86rem; }
.site-footer nav { flex-wrap: wrap; gap: clamp(.8rem, 2vw, 1.6rem); }

.reel-slot {
  /* Fit the 4:5 video, profile header, and action icons above the like count. */
  --instagram-frame-height: calc(125cqw + 138px);
  --reel-control-inset: .7rem;
  --reel-control-size: 2.05rem;
  --reel-toolbar-height: calc(2 * var(--reel-control-inset) + var(--reel-control-size));
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
  container-type: inline-size;
}
/* The cover reserves space for the Instagram frame and our toolbar. */
.reel-cover { height: calc(var(--instagram-frame-height) + var(--reel-toolbar-height)); }
.reel-player[inert],
.reel-slot:has(> .reel-player:not([inert])) > .reel-cover { visibility: hidden; }
.reel-player-bar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  height: var(--reel-toolbar-height);
  padding: var(--reel-control-inset);
  background: var(--surface);
}
.reel-player-bar > * {
  display: grid;
  place-items: center;
  width: var(--reel-control-size);
  height: var(--reel-control-size);
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}
.reel-player-bar a:hover { color: var(--yellow); }
.reel-player-bar button { color: var(--ink); background: var(--yellow); }
.reel-player-bar button:hover { background: var(--paper); }
.reel-player-bar > :focus-visible { outline-offset: -4px; outline-color: currentColor; }
.reel-player iframe {
  display: block;
  width: 100%;
  height: var(--instagram-frame-height);
  border: 0;
  background: #fff;
}
.reel-cover + .reel-player {
  position: absolute;
  inset: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .hero { gap: 1.8rem; }
  .hero h1 { font-size: clamp(3.7rem, 9vw, 6rem); }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { padding-block: .5rem; }
  .header-inner nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero, .about-grid, .service-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.2rem; padding-block: 2.8rem; }
  .hero h1 { font-size: clamp(3.7rem, 13.5vw, 6.7rem); }
  .carousel-track { --carousel-columns: 2; }
  .about-grid, .service-grid, .contact-grid { gap: 1.75rem; }
}

@media (max-width: 600px) {
  .carousel-track { --carousel-columns: 1; }
}

@media (max-width: 480px) {
  :root { --header-height: 3.9rem; --header-logo-size: 2rem; }
  .wrap { width: calc(100% - 2rem); }
  .page-intro { --intro-wordmark-opacity: 0; }
  .header-inner .brand span { display: none; }
  .header-inner nav { gap: .45rem .65rem; }
  .header-inner nav a { font-size: .8rem; }
  .nav-contact { padding: .55rem .62rem; }
  .button { gap: .5rem; padding-inline: .75rem; }
  .actions .button { padding-inline: .5rem; }
  .timeline-inner { min-height: 2.8rem; font-size: .54rem; letter-spacing: .08em; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
