/* ============================================================
   AMD AI MARKETING
   Cinematic dark, light on its feet: a neutral black stage, one
   bright section, crimson only where you act. Motion is driven by
   scroll (GSAP ScrollTrigger + Lenis), see script.js.
   ============================================================ */

:root {
  --bg: #0d0c0c;
  --bg-2: #171515;
  --bg-3: #221f1f;
  --ink: #f4f1ed;
  --ink-dim: #a9a29d;
  --line: rgba(244, 241, 237, 0.14);
  --accent: #a8183c;        /* AMD logo burgundy */
  --accent-press: #8b0e2e;  /* deeper brand burgundy */
  --light: #ededeb;
  --light-ink: #121010;
  --light-dim: #5e5752;

  --font: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --t-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  --t-statement: clamp(1.75rem, 1rem + 2.6vw, 3.4rem);
  --t-h2: clamp(2.5rem, 1.1rem + 4.6vw, 6.25rem);
  --t-h1: clamp(3.25rem, 1rem + 7.4vw, 9.5rem);

  --margin: clamp(16px, 2.6vw, 40px);
  --section: clamp(110px, 13vw, 220px);
  --radius: clamp(12px, 1.4vw, 22px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.frame { padding-inline: var(--margin); }
.section { padding-top: var(--section); }

h1, h2, .display {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); max-width: 14ch; }
h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { max-width: 60ch; }
.lead { font-size: var(--t-lead); line-height: 1.4; max-width: 34ch; }
.note { font-size: var(--t-small); color: var(--ink-dim); }
.dim { color: var(--ink-dim); }

/* Split-line reveal: words sit in a mask and rise into place */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500; text-decoration: none;
  transition: background-color 0.25s, scale 0.25s var(--ease);
}
.btn:hover { background: var(--accent-press); }
.btn:active { scale: 0.96; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); /* taste-skill-ignore: deliberate editorial line */ }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-quiet { background: var(--bg-3); color: var(--ink); }
.btn-quiet:hover { background: #2e2a2a; }
.text-link {
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; /* taste-skill-ignore: an underline, not a decorative gradient */
  padding-bottom: 2px; transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: translate 0.45s var(--ease), background-color 0.3s;
}
.site-header.scrolled { background: rgba(13, 12, 12, 0.92); }
.site-header.hide { translate: 0 -100%; }
.site-header.hide:focus-within, .site-header.hide:hover { translate: 0 0; }
.nav { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; margin-inline-end: auto; text-decoration: none; }
.wordmark img { display: block; height: clamp(46px, 4vw, 62px); width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a:not(.btn) { position: relative; text-decoration: none; color: var(--ink-dim); transition: color 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); /* taste-skill-ignore: deliberate editorial line */

}
.menu-toggle { display: none; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); /* taste-skill-ignore: deliberate editorial line */ }
@media (min-width: 861px) { .nav-links .mobile-cta { display: none; } }
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav > .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: fixed; inset: 76px 0 0; display: none; flex-direction: column; gap: 4px;
    padding: 16px var(--margin) 32px; background: var(--bg); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { align-self: flex-start; padding: 10px 0; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); }
  .nav-links .mobile-cta { align-self: flex-start; margin-top: 16px; }
}

/* ============================================================
   HERO: headline, then the showreel opens to the full screen
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-copy {
  position: relative; z-index: 3;
  display: grid; gap: clamp(20px, 2.4vw, 32px);
  padding-top: clamp(100px, 12vh, 140px);
}
.hero-copy h1 { max-width: none; font-size: min(var(--t-h1), 13vh); }
.hero-side { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; }
.hero-side .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.showreel {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(var(--clip-top, 56%) var(--clip-x, var(--margin)) var(--margin) var(--clip-x, var(--margin)) round var(--radius));
  background: var(--bg-2);
}
.showreel video { width: 100%; height: 100%; object-fit: cover; }
.showreel::after { /* soft floor so the chips read on any frame */
  content: ''; position: absolute; inset: auto 0 0; height: 32%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); /* taste-skill-ignore: text scrim on a photograph */
  pointer-events: none;
}
.reel-switch {
  position: absolute; z-index: 4; left: calc(var(--margin) + clamp(14px, 1.6vw, 24px)); right: calc(var(--margin) + 14px);
  bottom: calc(var(--margin) + clamp(14px, 1.6vw, 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.reel-switch ul { display: flex; flex-wrap: wrap; gap: 6px; }
.reel-switch button {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(13, 12, 12, 0.6); color: var(--ink); font-size: var(--t-small);
  transition: background-color 0.2s, color 0.2s, scale 0.2s var(--ease);
}
.reel-switch button:hover { background: rgba(13, 12, 12, 0.85); }
.reel-switch button:active { scale: 0.95; }
.reel-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.reel-caption { font-size: var(--t-small); color: #fff; }
.scroll-cue { position: absolute; z-index: 4; right: calc(var(--margin) + 20px); bottom: calc(var(--margin) + 22px); font-size: var(--t-small); color: #fff; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; padding-bottom: var(--margin); }
  .hero-copy { padding-top: 112px; }
  .hero-copy h1 { font-size: var(--t-h1); }
  .showreel { position: relative; inset: auto; margin: 28px var(--margin) 0; aspect-ratio: 4 / 5; clip-path: none; border-radius: var(--radius); overflow: hidden; }
  .reel-switch { left: calc(var(--margin) + 12px); right: calc(var(--margin) + 12px); bottom: calc(var(--margin) + 12px); }
  .scroll-cue { display: none; }
}

/* ============================================================
   MARQUEE: client names that speed up with your scroll
   ============================================================ */
.marquee { overflow: hidden; padding-block: clamp(56px, 7vw, 110px) 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-size: clamp(2.5rem, 1rem + 6vw, 7.5rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  white-space: nowrap; padding-right: 0.5em; color: var(--ink);
}
.marquee-track span i { display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.5em; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* ============================================================
   STATEMENT: words light up as you read down
   ============================================================ */
.statement p { font-size: var(--t-statement); line-height: 1.18; letter-spacing: -0.03em; max-width: 28ch; font-weight: 500; }
.statement .wd { opacity: 1; transition: opacity 0.2s; }
.motion .statement .wd { opacity: 0.18; }

/* ============================================================
   FILM REEL: pinned, slides sideways
   ============================================================ */
.films-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.films-pin { overflow: hidden; }
.films-track { display: flex; gap: clamp(12px, 1.4vw, 22px); padding-inline: var(--margin); width: max-content; will-change: transform; }
.film { width: clamp(240px, 22vw, 360px); flex: none; cursor: pointer; }
.film .media { aspect-ratio: 9 / 16; }
.film figcaption { padding-top: 14px; }
.film figcaption strong { display: block; font-weight: 500; }
.film figcaption span { color: var(--ink-dim); font-size: var(--t-small); }
.films-progress { margin: 32px var(--margin) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.films-progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 860px) {
  .films-pin { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .films-pin::-webkit-scrollbar { display: none; }
  .film { width: 68vw; scroll-snap-align: start; }
  .films-progress { display: none; }
}

/* Shared media frame */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.media img, .media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: scale 0.9s var(--ease), opacity 0.6s;
}
.film:hover .media video, .work-item:hover .media img, .work-item:hover .media video { scale: 1.04; }
.play-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; background: rgba(13,12,12,0.7); color: #fff; font-size: var(--t-small);
}

/* ============================================================
   LIGHT SECTION: services
   ============================================================ */
.on-light { background: var(--light); color: var(--light-ink); margin-top: var(--section); padding-block: var(--section); border-radius: clamp(20px, 3vw, 44px); }
.on-light .dim, .on-light .note { color: var(--light-dim); }
.on-light .text-link { color: var(--light-ink); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.service-list { border-top: 1px solid currentColor; /* taste-skill-ignore: deliberate editorial line */ }
.service-list > li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) clamp(110px, 12vw, 180px); gap: 16px 40px; align-items: center;
  padding-block: clamp(22px, 2.6vw, 36px);
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); /* taste-skill-ignore: deliberate editorial line */

}
.service-list h3 {
  font-size: clamp(2rem, 1rem + 3.4vw, 4.4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95;
  transition: translate 0.5s var(--ease);
}
.service-list > li:hover h3 { translate: 12px 0; color: var(--accent); }
.service-list .media { aspect-ratio: 4 / 5; }
.service-list > li:hover .media img { scale: 1.06; }
@media (max-width: 860px) {
  .service-list > li { grid-template-columns: 1fr 88px; }
  .service-list > li p { grid-column: 1 / -1; grid-row: 2; }
  .service-list .media { grid-column: 2; grid-row: 1; }
}

/* ============================================================
   PROJECTS: cards that stack as you scroll
   ============================================================ */
.stack { display: grid; gap: clamp(16px, 2vw, 28px); }
.client {
  position: sticky; top: clamp(84px, 11vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: stretch;
  min-height: min(76svh, 720px); padding: clamp(12px, 1.4vw, 20px);
  border-radius: calc(var(--radius) + 8px); background: var(--bg-2); cursor: pointer;
  transform-origin: 50% 0;
}
.client:nth-child(1) { z-index: 1; }
.client:nth-child(2) { z-index: 2; background: #1b1818; }
.client:nth-child(3) { z-index: 3; background: #1f1b1b; }
.client:nth-child(4) { z-index: 4; background: #231e1e; }
/* Laptop mockup: the project plays on a 16:10 screen, pictures shown whole */
.device { align-self: center; width: 100%; padding-inline: 4%; transition: translate 0.6s var(--ease); }
.client:hover .device { translate: 0 -6px; }
.device-screen {
  position: relative; padding: 2.4% 2.4% 3.2%;
  background: #0a0a0b; border-radius: clamp(10px, 1.4vw, 20px) clamp(10px, 1.4vw, 20px) 4px 4px;
  box-shadow: inset 0 0 0 1px #3a3a3e, inset 0 0 0 3px #111113; /* taste-skill-ignore: the lid edge of a drawn device */
}
.device-screen::before { /* camera */
  content: ''; position: absolute; top: 1.1%; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #1d1d20; box-shadow: inset 0 0 0 1.5px #2c2c30; /* taste-skill-ignore: drawn device */
}
.device-screen .media { aspect-ratio: 16 / 10; min-height: 0; border-radius: 3px; background: #000; }
.device-screen .media img { object-fit: contain; }  /* show each project picture whole, never cropped */
.device-base {
  position: relative; height: clamp(10px, 1.3vw, 18px); margin-inline: -5%;
  background: linear-gradient(#5b5b60, #2b2b2f 70%, #1c1c1f); /* taste-skill-ignore: aluminium shading on a drawn device */
  border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%;
}
.device-base::before { /* the thumb groove for opening the lid */
  content: ''; position: absolute; top: 0; left: 50%; width: 14%; height: 45%; translate: -50% 0;
  background: #26262a; border-radius: 0 0 10px 10px;
}

/* iPhone: tall pictures stand in front of the laptop's corner */
.device { position: relative; padding-right: 13%; }
.phone {
  position: absolute; z-index: 2; right: 1%; bottom: -3%; width: 25%;
  padding: 2.6%; border-radius: 17% / 8%;
  background: #121214;
  box-shadow: inset 0 0 0 1px #4a4a50, inset 0 0 0 3px #1b1b1e, 0 24px 48px rgba(0, 0, 0, 0.55); /* taste-skill-ignore: drawn device frame and the shadow of a raised phone */
  transition: translate 0.6s var(--ease);
}
.client:hover .phone { translate: 0 -10px; }
.phone::after { /* side button */
  content: ''; position: absolute; right: -2px; top: 22%; width: 3px; height: 12%; border-radius: 0 2px 2px 0; background: #3a3a3f;
}
.phone-screen { position: relative; }
.phone-screen::before { /* dynamic island */
  content: ''; position: absolute; z-index: 3; top: 2.4%; left: 50%; width: 32%; height: 3.4%; translate: -50% 0;
  border-radius: 999px; background: #000;
}
.phone-screen .media { aspect-ratio: 9 / 16.6; min-height: 0; border-radius: 13% / 6%; background: #000; }
.phone-screen .media img { object-fit: contain; }
.client .media .slide { opacity: 0; }
.client .media .slide.active { opacity: 1; }
.client-text { display: flex; flex-direction: column; padding: clamp(8px, 1.6vw, 24px) clamp(4px, 1vw, 16px); }
.client h3 { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.75rem); letter-spacing: -0.045em; line-height: 0.95; margin-top: auto; }
.client .what { margin-top: 16px; font-size: var(--t-lead); line-height: 1.35; max-width: 26ch; }
.client .made { margin-top: 10px; color: var(--ink-dim); }
.client .btn { margin-top: 28px; align-self: flex-start; }
@media (max-width: 860px) {
  .client { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
  .device { padding-inline: 2% 15%; margin-block: 8px 12px; }
  .phone { width: 28%; bottom: -6%; }
  .client h3 { margin-top: 12px; }
}
.brands { margin-top: clamp(48px, 6vw, 96px); font-size: var(--t-lead); max-width: 46ch; }
.brands strong { font-weight: 500; }

/* ============================================================
   FIGURES: confirmed numbers, counted up
   ============================================================ */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.figures div { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--line); /* taste-skill-ignore: deliberate editorial line */ }
.figures strong { font-size: clamp(3.5rem, 1.5rem + 5.4vw, 8rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.figures span { margin-top: 12px; color: var(--ink-dim); }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; row-gap: 44px; } }

/* ============================================================
   PROCESS: a line fills as you scroll through the steps
   ============================================================ */
.process-line { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: clamp(28px, 3vw, 44px); overflow: hidden; }
.process-line i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.process h3 { font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.process p { color: var(--ink-dim); }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta-field {
  margin: var(--section) var(--margin) 0; padding-block: var(--section); text-align: center;
  background: var(--accent); color: #fff; border-radius: clamp(20px, 3vw, 44px);
}
.cta-field :focus-visible { outline-color: #fff; }
.cta-field .inner { display: flex; flex-direction: column; align-items: center; }
.cta-field h2 { font-size: clamp(3rem, 1rem + 8vw, 11rem); max-width: 12ch; margin-inline: auto; }
.cta-field p { margin: 28px auto 0; color: rgba(255, 255, 255, 0.86); }
.cta-field .btn { background: #fff; color: var(--accent); }
.cta-field .btn:hover { background: var(--bg); color: #fff; }
.cta-field .text-link { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 32px; margin-top: clamp(32px, 4vw, 56px); }
.btn-round {
  width: clamp(132px, 12vw, 176px); height: clamp(132px, 12vw, 176px); padding: 0; border-radius: 50%;
  font-size: var(--t-body); text-align: center; line-height: 1.2;
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-title { padding-top: clamp(140px, 18vh, 220px); }
.page-title-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; align-items: end; }
.page-title h1 { font-size: clamp(4rem, 1rem + 11vw, 13rem); max-width: none; }
.page-title .lead { margin-bottom: 0.6em; }
@media (max-width: 860px) { .page-title-row { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-dim); /* taste-skill-ignore: deliberate editorial line */

  transition: background-color 0.2s, color 0.2s, scale 0.2s var(--ease);
}
.filters button:hover { color: var(--ink); }
.filters button:active { scale: 0.95; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; } /* taste-skill-ignore: removes the outline */

.work-grid { column-count: 3; column-gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 1024px) { .work-grid { column-count: 2; } }
@media (max-width: 560px) { .work-grid { column-count: 1; } }
.work-item { break-inside: avoid; margin-bottom: clamp(28px, 3vw, 48px); cursor: pointer; }
.work-item[hidden] { display: none; }
.media.r16-9 { aspect-ratio: 16 / 9; } .media.r9-16 { aspect-ratio: 9 / 16; } .media.r1-1 { aspect-ratio: 1 / 1; }
.media.r4-5 { aspect-ratio: 4 / 5; } .media.r4-3 { aspect-ratio: 4 / 3; }
.work-item figcaption { padding-top: 14px; }
.work-item figcaption strong { display: block; font-weight: 500; font-size: 1.125rem; }
.work-item figcaption span { display: block; color: var(--ink-dim); font-size: var(--t-small); margin-top: 2px; }
.work-item figcaption em { display: inline-block; font-style: normal; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--bg-3); font-size: var(--t-small); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.split .media { aspect-ratio: 4 / 5; }
.split p + p { margin-top: 1em; }
.split figcaption { margin-top: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 96px); }
.values > div { padding-block: 28px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); /* taste-skill-ignore: deliberate editorial line */ }
.values h3 { margin-bottom: 10px; }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.details { display: grid; gap: 28px; }
.details dt { color: var(--ink-dim); font-size: var(--t-small); margin-bottom: 4px; }
.details dd { font-size: var(--t-lead); line-height: 1.3; }
.details dd a:not(.text-link) { text-decoration: none; }
.form { background: var(--bg-2); padding: clamp(24px, 3.5vw, 48px); border-radius: calc(var(--radius) + 8px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px;
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #857d78; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23f4f1ed' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field select option { background: var(--bg); }
.form .btn { width: 100%; }
.form-status { margin-top: 16px; }
.form-status:empty { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: var(--section); padding-top: clamp(64px, 7vw, 120px); overflow: hidden; border-top: 1px solid var(--line); /* taste-skill-ignore: deliberate editorial line */ }
.cta-field + .site-footer, .cta-field ~ .site-footer { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-top h4 { font-size: var(--t-small); font-weight: 500; color: var(--ink-dim); margin-bottom: 12px; }
.footer-top a { display: block; width: fit-content; padding: 4px 0; text-decoration: none; transition: color 0.2s, translate 0.3s var(--ease); }
.footer-top a:hover { translate: 6px 0; }
.footer-logo {
  display: block; width: min(78vw, 1100px); height: auto; margin: clamp(56px, 7vw, 110px) auto clamp(24px, 3vw, 48px);
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }

/* ============================================================
   CURSOR (fine pointers only)
   ============================================================ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; font-size: 0; color: var(--bg); font-weight: 500;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), font-size 0.2s;
  mix-blend-mode: difference;
}
.cursor.play { width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 0.875rem; mix-blend-mode: normal; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 150; display: none; background: rgba(8, 7, 7, 0.96); align-items: center; justify-content: center; padding: 72px var(--margin) 24px; }
.lightbox.open { display: flex; }
.lightbox-stage { width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-media { width: 100%; display: flex; justify-content: center; }
.lightbox-media img, .lightbox-media video { max-width: 100%; max-height: 72svh; object-fit: contain; border-radius: var(--radius); }
.lightbox-caption { text-align: center; }
.lightbox-caption strong { display: block; font-size: var(--t-lead); font-weight: 500; }
.lightbox-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; }
.lightbox-thumbs button { width: 64px; height: 64px; flex: none; opacity: 0.45; border-radius: 10px; overflow: hidden; transition: opacity 0.2s; }
.lightbox-thumbs button[aria-current="true"], .lightbox-thumbs button:hover { opacity: 1; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-btn { position: fixed; z-index: 151; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-3); color: var(--ink); font-size: 1.25rem; transition: background-color 0.2s; }
.lb-btn:hover { background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
body.lightbox-open { overflow: hidden; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .showreel { clip-path: inset(0 var(--margin) var(--margin) round var(--radius)); }
}

/* ============================================================
   LANGUAGE SWITCH AND ARABIC (RTL)
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); /* taste-skill-ignore: deliberate editorial line */
  transition: background-color 0.2s;
}
.lang-switch:hover { background: var(--bg-3); }
.lang-switch[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--font); }
.lang-switch[lang="en"] { font-family: 'General Sans', sans-serif; }

[dir="rtl"] { --font: 'IBM Plex Sans Arabic', 'General Sans', Tahoma, sans-serif; }
/* Arabic letters join, so no tracking; taller lines for the marks above and below */
[dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .display, [dir="rtl"] .client h3, [dir="rtl"] .page-title h1 { line-height: 1.2; }
[dir="rtl"] .w { padding-bottom: 0.2em; margin-bottom: -0.2em; }
[dir="rtl"] .lead, [dir="rtl"] p { line-height: 1.7; }
[dir="rtl"] .statement p { line-height: 1.45; }
/* Brand names keep their left-to-right motion */
[dir="rtl"] .marquee-track { direction: ltr; }
[dir="rtl"] .scroll-cue { right: auto; left: calc(var(--margin) + 20px); }
[dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .films-progress i, [dir="rtl"] .process-line i { transform-origin: 100% 50%; }

/* ============================================================
   GULF: six points in three columns, and the season calendar
   ============================================================ */
@media (min-width: 1000px) { .gulf-list { grid-template-columns: repeat(3, 1fr); } }
.seasons { border-top: 1px solid var(--line); /* taste-skill-ignore: deliberate editorial line */ }
.seasons li {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px 32px; align-items: baseline;
  padding-block: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line); /* taste-skill-ignore: deliberate editorial line */
}
.seasons strong { font-size: var(--t-lead); font-weight: 500; }
.seasons span { color: var(--ink-dim); }
.seasons em { font-style: normal; color: var(--ink); }
@media (max-width: 760px) { .seasons li { grid-template-columns: 1fr; gap: 4px; } }

/* WhatsApp: always one tap away */
.wa-float {
  position: fixed; z-index: 55; inset-inline-end: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1fa855; color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: scale 0.25s var(--ease), background-color 0.2s;
}
.wa-float:hover { background: #18934a; }
.wa-float:active { scale: 0.96; }
.wa-float svg { width: 22px; height: 22px; flex: none; }
body.lightbox-open .wa-float { display: none; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; } }
