/* ==========================================================================
   OTHMAN RIYADH — IMMERSIVE EXPERIENCE V2.1 (Homepage layer)
   Cinematic scene-based portfolio built on the public design system:
   Obsidian #080811 · Solar Gold #f5c542 · Dusk Violet #7871cd · Graphik.
   Motion animates transform and opacity only; scroll is never hijacked.
   ========================================================================== */

:root {
  --ir-ink: #080811;
  --ir-ink-2: #0f0f1e;
  --ir-gold: #f5c542;
  --ir-violet: #7871cd;
  --ir-text: #f6f4ff;
  --ir-dim: rgba(236, 233, 255, 0.68);
  --ir-faint: rgba(236, 233, 255, 0.42);
  --ir-line: rgba(255, 255, 255, 0.12);
  --ir-gutter: clamp(20px, 4.2vw, 72px);
  --ir-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ir-frame-scale: 0.86;
  --ir-radius: clamp(18px, 2vw, 30px);
}

@media (max-width: 767px) {
  :root {
    --ir-gutter: 20px;
    --ir-frame-scale: 0.9;
  }
}

.ir-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ir-anchor {
  position: absolute;
  top: 0;
}

/* Neutralise the global section rhythm for the cinematic scenes */
section.ir-hero,
section.ir-work {
  padding: 0;
  scroll-margin-top: 0;
}

/* Shared masked-line reveal */
.ir-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for Arabic dots and descenders so the reveal mask never clips glyphs */
  padding-block: 0.16em;
  margin-block: -0.16em;
}

.ir-mask-inner {
  display: inline-block;
}

@keyframes irRise {
  from { transform: translate3d(0, 108%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes irFade {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes irArtIn {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   1. HERO — pinned stage, artwork frame settles into the Selected Work frame
   ========================================================================== */
.ir-hero {
  position: relative;
  background: var(--ir-ink);
  color: var(--ir-text);
}

.ir-hero-track {
  /* Short pinned travel: the artwork settles into its frame, then the page moves on (no empty stretch) */
  height: 145vh;
  height: 145svh;
}

.ir-hero-stage {
  --p: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.ir-hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--p) * var(--ir-radius) / var(--ir-frame-scale));
  transform: scale(calc(1 - var(--p) * (1 - var(--ir-frame-scale))));
  transform-origin: 50% 50%;
  will-change: transform;
  background: var(--ir-ink-2);
}

.ir-hero-frame picture {
  position: absolute;
  inset: 0;
  display: block;
  animation: irArtIn 1.9s var(--ir-ease) both;
}

.ir-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(calc(1.06 - var(--p) * 0.06));
  will-change: transform;
}

/* 3D depth scene drawn over the artwork (hero-depth.js): same framing and scroll scale as the image */
.ir-hero-gl {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(calc(1.06 - var(--p) * 0.06));
  transition: opacity 1.1s var(--ir-ease);
  will-change: transform, opacity;
  pointer-events: none;
}

.ir-hero-gl.is-live {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ir-hero-gl {
    display: none;
  }
}

.ir-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 8, 17, 0.94) 0%, rgba(8, 8, 17, 0.5) 30%, rgba(8, 8, 17, 0) 58%),
    linear-gradient(to bottom, rgba(8, 8, 17, 0.55) 0%, rgba(8, 8, 17, 0) 26%),
    radial-gradient(52% 46% at var(--ir-copy-x, 100%) 24%, rgba(8, 8, 17, 0.5), rgba(8, 8, 17, 0) 72%);
}

html[dir="ltr"] .ir-hero-shade {
  --ir-copy-x: 0%;
}

.ir-hero-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ir-ink);
  opacity: calc(var(--p) * 0.62);
}

/* Copy block — start side, below the header */
.ir-hero-copy {
  position: absolute;
  top: calc(var(--global-header-height, 74px) + 8vh);
  inset-inline-start: var(--ir-gutter);
  max-width: 30rem;
  opacity: calc(1 - var(--p) * 2.6);
  transform: translate3d(0, calc(var(--p) * -48px), 0);
  will-change: transform, opacity;
}

.ir-hero-role {
  margin: 0 0 14px;
  color: var(--ir-gold);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 600;
}

.ir-hero-statement {
  margin: 0 0 28px;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ir-text);
  text-shadow: 0 2px 24px rgba(8, 8, 17, 0.6);
}

.ir-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.4s var(--ir-ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ir-btn-solid {
  background: var(--ir-gold);
  color: #17130a;
}

.ir-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--ir-text);
  background: rgba(8, 8, 17, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ir-btn:hover {
  transform: translate3d(0, -2px, 0);
}

.ir-btn-ghost:hover {
  border-color: var(--ir-gold);
  color: var(--ir-gold);
}

.ir-btn:focus-visible,
.ir-cta-button:focus-visible,
.ir-scene-frame:focus-visible,
.ir-index-row a:focus-visible,
.ir-link-arrow:focus-visible,
.ir-scroll-cue:focus-visible,
.ir-hero-disciplines a:focus-visible {
  outline: 2px solid var(--ir-gold);
  outline-offset: 4px;
}

/* Oversized signature */
.ir-hero-name {
  position: absolute;
  inset-inline: var(--ir-gutter);
  bottom: calc(86px + 2vh);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.24em;
  font-size: clamp(3.8rem, 13.6vw, 15rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ir-text);
  opacity: calc(1 - var(--p) * 1.7);
  transform: translate3d(0, calc(var(--p) * -7vh), 0) scale(calc(1 - var(--p) * 0.1));
  transform-origin: var(--ir-name-origin, 100% 100%);
  will-change: transform, opacity;
}

html[dir="ltr"] .ir-hero-name {
  --ir-name-origin: 0% 100%;
  letter-spacing: -0.035em;
  flex-wrap: nowrap;
  font-size: clamp(3.2rem, 9.6vw, 12.5rem);
}

.ir-hero-name .ir-mask-inner {
  animation: irRise 1.25s var(--ir-ease) both;
  animation-delay: calc(0.35s + var(--d, 0) * 0.14s);
}

/* ---- Tech Text: the letter under the pointer becomes a dashed vector outline (tech-text.js) ---- */
/* Once the SVG copy is in place, the HTML text stays for reading and selection but is not painted. */
.ir-hero-name.tt-on .ir-mask-inner {
  color: transparent;
}

.tt-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  direction: ltr;
}

.ir-hero-name:not(.tt-on) .tt-layer {
  visibility: hidden;
}

.tt-svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.tt-fill {
  fill: currentColor;
}

.tt-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-dasharray: 4 2.5;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.38s var(--ir-ease);
}

.tt-hole {
  opacity: 0;
  transition: opacity 0.38s var(--ir-ease);
}

.tt-hole.is-on,
.tt-stroke.is-on {
  opacity: 1;
}

.tt-frame {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ir-gold);
  opacity: 0;
  transition: opacity 0.28s var(--ir-ease);
}

.tt-frame.is-on {
  opacity: 1;
}

.tt-edge,
.tt-corner,
.tt-label,
.tt-speck {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.tt-edge,
.tt-corner,
.tt-label {
  transition: transform 0.5s var(--ir-ease);
}

.tt-edge {
  width: 1px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
  transform-origin: 0 0;
}

.tt-corner {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1px solid currentColor;
  background: var(--ir-ink);
}

.tt-label {
  margin-top: -1.9em;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: pre;
  color: currentColor;
}

.tt-snap,
.tt-snap * {
  transition: none !important;
}

.tt-speck {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--ir-gold);
  opacity: 0;
}

.tt-specks.is-on .tt-speck {
  animation: ttBlink 1.3s steps(1, end) var(--sd, 0s) infinite;
}

@keyframes ttBlink {
  0% { opacity: 0; }
  30% { opacity: 0.95; }
  65% { opacity: 0.25; }
  85% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-stroke,
  .tt-hole,
  .tt-frame,
  .tt-edge,
  .tt-corner,
  .tt-label {
    transition: none;
  }
  .tt-specks.is-on .tt-speck {
    animation: none;
    opacity: 0.6;
  }
}

.ir-reveal {
  animation: irFade 1s var(--ir-ease) backwards;
  animation-delay: calc(0.7s + var(--d, 0) * 0.12s);
}

/* Foot row */
.ir-hero-foot {
  position: absolute;
  inset-inline: var(--ir-gutter);
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--ir-line);
  opacity: calc(1 - var(--p) * 2.6);
}

.ir-hero-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ir-hero-disciplines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ir-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.ir-hero-disciplines a:hover {
  color: var(--ir-gold);
}

.ir-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ir-text);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.ir-scroll-line {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.ir-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ir-gold);
  transform: translate3d(0, -100%, 0);
  animation: irScrollLine 2.2s var(--ir-ease) 2s infinite;
}

@keyframes irScrollLine {
  0% { transform: translate3d(0, -100%, 0); }
  55% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}

/* Continuity title: appears inside the settled frame */
.ir-hero-handoff {
  position: absolute;
  inset-inline: calc(50vw * (1 - var(--ir-frame-scale)) + clamp(20px, 3vw, 48px));
  bottom: calc(50vh * (1 - var(--ir-frame-scale)) + clamp(20px, 3vw, 48px));
  font-size: clamp(2.6rem, 8vw, 8.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ir-text);
  opacity: calc((var(--p) - 0.55) * 2.4);
  transform: translate3d(0, calc((1 - var(--p)) * 60px), 0);
  pointer-events: none;
}

/* ==========================================================================
   2. SELECTED WORK — stacked full-screen scenes (native sticky scroll)
   ========================================================================== */
.ir-work {
  position: relative;
  background: var(--ir-ink);
  color: var(--ir-text);
}

/* Selected Work opens with its own title (membership and partners now sit between it and the hero) */
.ir-work-head {
  padding: clamp(72px, 9vw, 132px) var(--ir-gutter) clamp(28px, 3.4vw, 48px);
}

.ir-work-title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 8.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ir-text);
}

html[lang="en"] .ir-work-title {
  letter-spacing: -0.035em;
}

.ir-scenes {
  margin-top: 0;
}

.ir-scene {
  --out: 0;
  --in: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ir-ink);
}

.ir-scene-frame {
  position: relative;
  display: block;
  width: calc(100vw * var(--ir-frame-scale));
  height: calc(100vh * var(--ir-frame-scale));
  height: calc(100svh * var(--ir-frame-scale));
  overflow: hidden;
  border-radius: var(--ir-radius);
  color: var(--ir-text);
  text-decoration: none;
  background: var(--ir-ink-2);
  transform: translate3d(0, 0, 0) scale(calc(1 - var(--out) * 0.07));
  transform-origin: 50% 0%;
  will-change: transform;
  isolation: isolate;
}

.ir-scene-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ir-scene-media img {
  position: absolute;
  inset: -7% 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  transform: translate3d(0, calc(var(--in) * 6%), 0) scale(1.03);
  transition: transform 1.2s var(--ir-ease);
  will-change: transform;
}

.ir-scene-frame:hover .ir-scene-media img {
  transform: translate3d(0, calc(var(--in) * 6%), 0) scale(1.07);
}

.ir-scene-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 8, 17, 0.94) 0%, rgba(8, 8, 17, 0.7) 22%, rgba(8, 8, 17, 0) 50%),
    linear-gradient(to bottom, rgba(8, 8, 17, 0.5) 0%, rgba(8, 8, 17, 0) 24%);
}

.ir-scene-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ir-ink);
  opacity: calc(var(--out) * 0.7);
  pointer-events: none;
}

.ir-scene-top {
  position: absolute;
  top: clamp(18px, 2.4vw, 34px);
  inset-inline: clamp(20px, 3vw, 48px);
  display: flex;
  align-items: baseline;
  gap: 14px clamp(16px, 2.4vw, 36px);
  flex-wrap: wrap;
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  color: var(--ir-dim);
}

.ir-scene-count {
  color: var(--ir-gold);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ir-scene-year {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
}

.ir-scene-bottom {
  position: absolute;
  inset-inline: clamp(20px, 3vw, 48px);
  bottom: clamp(20px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 32px;
}

.ir-scene-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 6.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

html[dir="ltr"] .ir-scene-title {
  letter-spacing: -0.035em;
}

.ir-scene-summary {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ir-dim);
}

.ir-scene-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 8, 17, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ir-scene-frame:hover .ir-scene-open {
  background: var(--ir-gold);
  border-color: var(--ir-gold);
  color: #17130a;
}

.ir-scene-tags {
  font-size: 0.92rem;
  color: var(--ir-text);
}

/* ==========================================================================
   3. PROJECT INDEX — clear functional archive entry
   ========================================================================== */
.ir-index {
  position: relative;
  z-index: 2;
  background: var(--ir-ink);
  padding: clamp(96px, 12vw, 180px) var(--ir-gutter) clamp(72px, 9vw, 140px);
}

.ir-index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.ir-index-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 7.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ir-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ir-gold);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 197, 66, 0.4);
  transition: border-color 0.3s ease;
}

.ir-link-arrow::after {
  content: '↗';
  transition: transform 0.4s var(--ir-ease);
}

.ir-link-arrow:hover::after {
  transform: translate3d(3px, -3px, 0);
}

.ir-index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ir-line);
}

.ir-index-row a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--ir-line);
  color: var(--ir-text);
  text-decoration: none;
}

.ir-index-num,
.ir-index-year {
  color: var(--ir-faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.ir-index-year {
  text-align: end;
}

.ir-index-name {
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.6s var(--ir-ease), color 0.3s ease;
}

.ir-index-client,
.ir-index-disc {
  color: var(--ir-dim);
  font-size: 0.98rem;
}

.ir-index-thumb {
  display: none;
}

.ir-index-row a:hover .ir-index-name,
.ir-index-row a:focus-visible .ir-index-name {
  color: var(--ir-gold);
  transform: translate3d(calc(var(--ir-dir, 1) * 14px), 0, 0);
}

html[dir="rtl"] .ir-index {
  --ir-dir: -1;
}

.ir-index-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: clamp(220px, 20vw, 320px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(0.86);
  transition: opacity 0.3s ease, transform 0.5s var(--ir-ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.ir-index-preview.is-on {
  opacity: 1;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1);
}

.ir-index-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. FULL-BLEED EDITORIAL RHYTHM FOR EXISTING SECTIONS
   ========================================================================== */
body.ir-home main > section:not(.ir-hero):not(.ir-work):not(.ir-cta) > .container {
  max-width: none;
  padding-inline: var(--ir-gutter);
}

body.ir-home .section-head,
body.ir-home .section-head.text-center {
  align-items: flex-start;
  text-align: start;
  max-width: none;
  margin-inline: 0;
  margin-bottom: clamp(40px, 6vw, 88px);
}

/* About */

body.ir-home .p3-about-layout {
  gap: clamp(32px, 6vw, 110px);
}

/* Collaborations */

body.ir-home .clients-head-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 72px);
}

body.ir-home .clients-head-row .section-badge {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ir-gold);
  font-size: 0.95rem;
}

body.ir-home .clients-head-row .badge-dot {
  display: none;
}

/* ==========================================================================
   5. FULL-SCREEN START A PROJECT SCENE
   ========================================================================== */
.ir-cta {
  --cp: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--global-header-height, 74px) + 40px) var(--ir-gutter) clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ir-ink);
  color: var(--ir-text);
  border-top: 1px solid var(--ir-line);
}

.ir-cta-glow {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 46% at 68% 62%, rgba(120, 113, 205, 0.38), transparent 70%),
    radial-gradient(28% 36% at 26% 30%, rgba(245, 197, 66, 0.16), transparent 70%);
  transform: translate3d(0, calc(var(--cp) * -10%), 0);
  will-change: transform;
}

.ir-cta-kicker {
  margin: 0;
  color: var(--ir-gold);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
}

.ir-cta-title {
  margin: clamp(14px, 2vw, 24px) 0 clamp(22px, 3vw, 36px);
  font-size: clamp(3.4rem, 11.5vw, 12.5rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.02em;
}

html[dir="ltr"] .ir-cta-title {
  letter-spacing: -0.04em;
}

.ir-cta-title .ir-mask {
  display: block;
  width: fit-content;
}

.ir-cta-title .ir-mask-inner {
  transform: translate3d(0, 108%, 0);
}

.ir-cta.is-in .ir-mask-inner {
  animation: irRise 1.2s var(--ir-ease) both;
  animation-delay: calc(var(--d, 0) * 0.14s);
}

.ir-cta-text {
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--ir-dim);
}

.ir-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.ir-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 38px;
  border-radius: 999px;
  background: var(--ir-gold);
  color: #17130a;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 20px 60px rgba(245, 197, 66, 0.22);
  transition: transform 0.45s var(--ir-ease), box-shadow 0.45s var(--ir-ease);
}

.ir-cta-button svg {
  transition: transform 0.45s var(--ir-ease);
}

html[dir="rtl"] .ir-cta-button svg {
  transform: scaleX(-1);
}

.ir-cta-button:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 26px 70px rgba(245, 197, 66, 0.32);
}

/* ==========================================================================
   6. TABLET & MOBILE ART DIRECTION
   ========================================================================== */
@media (max-width: 1023px) {
  .ir-index-row a {
    grid-template-columns: 2.6rem minmax(0, 1.6fr) minmax(0, 1fr) 3.6rem;
  }
  .ir-index-disc {
    display: none;
  }
}

@media (max-width: 767px) {
  .ir-hero-track {
    height: 125vh;
    height: 125svh;
  }

  .ir-hero-art {
    object-position: 50% 50%;
  }

  .ir-hero-shade {
    background:
      linear-gradient(to top, rgba(8, 8, 17, 0.96) 0%, rgba(8, 8, 17, 0.55) 34%, rgba(8, 8, 17, 0) 58%),
      linear-gradient(to bottom, rgba(8, 8, 17, 0.82) 0%, rgba(8, 8, 17, 0.25) 30%, rgba(8, 8, 17, 0) 44%);
  }

  .ir-hero-copy {
    top: calc(var(--global-header-height, 62px) + 26px);
    inset-inline: var(--ir-gutter);
    max-width: none;
  }

  .ir-hero-role {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .ir-hero-statement {
    margin-bottom: 0;
    font-size: 1.12rem;
    max-width: 22ch;
  }

  .ir-hero-actions {
    position: fixed;
    display: none;
  }

  .ir-hero-name,
  html[dir="ltr"] .ir-hero-name {
    bottom: calc(144px + env(safe-area-inset-bottom));
    flex-direction: column;
    flex-wrap: wrap;
    font-size: clamp(4rem, 24vw, 7.4rem);
    line-height: 0.9;
  }

  html[dir="ltr"] .ir-hero-name {
    font-size: clamp(3.6rem, 21vw, 6.6rem);
  }

  .ir-hero-foot {
    bottom: calc(20px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-top: 0;
    padding-top: 0;
  }

  .ir-hero-disciplines {
    display: none;
  }

  .ir-hero-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ir-hero-mobile-actions .ir-btn {
    min-height: 54px;
    padding: 0 14px;
    font-size: 0.98rem;
  }

  .ir-scroll-cue {
    display: none;
  }

  .ir-hero-handoff,
  .ir-work-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .ir-scene {
    place-items: end center;
    padding-bottom: 10px;
  }

  .ir-scene-frame {
    width: calc(100vw - 16px);
    height: calc(100svh - var(--global-header-height, 62px) - 26px);
  }

  /* Mobile composition: artwork fills the upper half, title and action sit on dark ink below */
  .ir-scene-media {
    inset: 0 0 42% 0;
  }

  .ir-scene-media img {
    object-position: var(--fx, 50%) var(--fy, 50%);
  }

  .ir-scene-shade {
    background:
      linear-gradient(to bottom, rgba(8, 8, 17, 0.55) 0%, rgba(8, 8, 17, 0) 22%),
      linear-gradient(to top, var(--ir-ink) 0%, var(--ir-ink) 40%, rgba(8, 8, 17, 0) 62%);
  }

  body.ir-home .scroll-top-btn {
    display: none;
  }

  .ir-scene-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ir-scene-title {
    font-size: clamp(2.6rem, 13.5vw, 4.4rem);
  }

  .ir-scene-summary {
    font-size: 0.98rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ir-scene-open {
    justify-content: center;
    min-height: 52px;
  }

  .ir-index-row a {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "thumb name"
      "thumb meta";
    gap: 4px 16px;
    padding: 16px 0;
  }

  .ir-index-thumb {
    display: block;
    grid-area: thumb;
    width: 76px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--ir-ink-2);
  }

  .ir-index-name {
    grid-area: name;
    align-self: end;
    font-size: 1.45rem;
  }

  .ir-index-client {
    grid-area: meta;
    align-self: start;
    font-size: 0.9rem;
  }

  .ir-index-num,
  .ir-index-year,
  .ir-index-disc {
    display: none;
  }

  .ir-index-preview {
    display: none;
  }

  .ir-cta {
    align-items: end;
  }

  .ir-cta-title {
    font-size: clamp(3.2rem, 17vw, 5.6rem);
  }

  .ir-cta-button {
    width: 100%;
    justify-content: center;
    min-height: 62px;
  }

  body.ir-home .section-head .section-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
}

@media (min-width: 768px) {
  .ir-hero-mobile-actions {
    display: none;
  }
}

/* ==========================================================================
   7. REDUCED MOTION — no pinning, no choreography, everything readable
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ir-hero-track {
    height: auto;
  }
  .ir-hero-stage {
    position: relative;
    --p: 0 !important;
  }
  .ir-hero-frame picture,
  .ir-hero-name .ir-mask-inner,
  .ir-reveal,
  .ir-cta.is-in .ir-mask-inner,
  .ir-scroll-line::after {
    animation: none !important;
  }
  .ir-cta-title .ir-mask-inner {
    transform: none;
  }
  .ir-hero-handoff {
    display: none;
  }
  .ir-scene {
    --out: 0 !important;
    --in: 0 !important;
  }
  .ir-scene-media img,
  .ir-index-name,
  .ir-index-preview,
  .ir-btn,
  .ir-cta-button {
    transition: none;
  }
}


/* ==========================================================================
   8. ART DIRECTION QA — one type scale, one rhythm, readable metadata
   Scale: section title (A) · statement (B) · CTA moment (C). Arabic keeps
   a taller line-height than Latin so dots and marks never touch the next line.
   ========================================================================== */
body.ir-home {
  --ir-sec: clamp(80px, 8.4vw, 136px);
  --ir-head-gap: clamp(36px, 4.6vw, 68px);
  --ir-title: clamp(2.1rem, 4.3vw, 4.4rem);
  --ir-statement: clamp(1.6rem, 2.8vw, 2.8rem);
  --ir-lh-ar: 1.32;
  --ir-lh-en: 1.08;
  --ir-body: rgba(236, 233, 255, 0.76);
}

/* Section rhythm and surfaces: two solid inks alternate, no seams between gradients */
body.ir-home main > section.portfolio-section,
body.ir-home main > section.clients-section,
body.ir-home main > section.direction-section,
body.ir-home main > section.motion-section,
body.ir-home main > section.expertise-section,
body.ir-home main > section.process-section,
body.ir-home main > section.p3-about-experience,
body.ir-home main > section.contact-section {
  padding-block: var(--ir-sec);
  background-image: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.ir-home main > section.portfolio-section,
body.ir-home main > section.direction-section,
body.ir-home main > section.expertise-section,
body.ir-home main > section.p3-about-experience {
  background-color: var(--ir-ink);
}

body.ir-home main > section.clients-section,
body.ir-home main > section.motion-section,
body.ir-home main > section.process-section,
body.ir-home main > section.contact-section {
  background-color: #0b0b1a;
}

body.ir-home main > section.portfolio-section::before,
body.ir-home main > section.portfolio-section::after,
body.ir-home main > section.direction-section::before,
body.ir-home main > section.direction-section::after,
body.ir-home main > section.motion-section::before,
body.ir-home main > section.motion-section::after,
body.ir-home main > section.process-section::before,
body.ir-home main > section.process-section::after,
body.ir-home main > section.p3-about-experience::before,
body.ir-home main > section.p3-about-experience::after,
body.ir-home main > section.contact-section::before,
body.ir-home main > section.contact-section::after {
  background-image: none;
}

body.ir-home main > section.ir-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section heads: label, title, lead share one structure everywhere */
body.ir-home .section-head,
body.ir-home .section-head.text-center,
body.ir-home .p3-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  max-width: none;
  margin: 0 0 var(--ir-head-gap);
}

body.ir-home .section-badge,
body.ir-home .p3-section-badge,
body.ir-home .contact-badge,
body.ir-home .clients-head-row .section-badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0 0 16px;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: var(--ir-gold);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.ir-home .section-badge .badge-dot,
body.ir-home .p3-section-badge .badge-dot,
body.ir-home .clients-head-row .badge-dot {
  display: none;
}

body.ir-home .section-head .section-title,
body.ir-home .p3-section-title,
body.ir-home .contact-title,
body.ir-home .ir-index-title {
  max-width: 22ch;
  margin: 0 0 18px;
  font-size: var(--ir-title);
  font-weight: 800;
  line-height: var(--ir-lh-ar);
  letter-spacing: 0;
  color: var(--ir-text);
  text-wrap: balance;
}

html[lang="en"] body.ir-home .section-head .section-title,
html[lang="en"] body.ir-home .p3-section-title,
html[lang="en"] body.ir-home .contact-title,
html[lang="en"] body.ir-home .ir-index-title {
  line-height: var(--ir-lh-en);
  letter-spacing: -0.03em;
}

body.ir-home .section-head .section-subtitle,
body.ir-home .section-head .section-subtitle.mx-auto,
body.ir-home .p3-section-subtitle,
body.ir-home .contact-desc {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.8;
  color: var(--ir-body);
}

/* Statements (About quote, Collaborations lead) share one tier below the titles */
body.ir-home .p3-about-quote-headline,
body.ir-home .clients-subtitle-text {
  font-size: var(--ir-statement);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ir-text);
  max-width: 28ch;
  text-wrap: balance;
}

html[lang="en"] body.ir-home .p3-about-quote-headline,
html[lang="en"] body.ir-home .clients-subtitle-text {
  line-height: 1.16;
  letter-spacing: -0.02em;
}

body.ir-home .clients-head-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: var(--ir-head-gap);
}

/* Index head sits on the same grid as every other title */
.ir-index-head {
  align-items: flex-end;
}

/* Collaborations: logos read clearly, colour returns on hover */
body.ir-home .client-logo-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

body.ir-home .client-logo-card img {
  opacity: 0.94;
  filter: grayscale(1) brightness(1.45) contrast(1.05);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

body.ir-home .client-logo-card:hover img {
  opacity: 1;
  filter: none;
}

/* Discipline cards: metadata that can be read over artwork */
body.ir-home .v2-disc-index-badge,
body.ir-home .v2-disc-count-badge {
  background: rgba(8, 8, 17, 0.86);
  font-size: 0.84rem;
  line-height: 1.4;
}

body.ir-home .v2-disc-count-badge {
  color: #eceaf9;
  border-color: rgba(255, 255, 255, 0.24);
  font-family: inherit;
}

body.ir-home .v2-disc-index-badge {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

body.ir-home .v2-disc-desc {
  color: rgba(236, 233, 255, 0.84);
  line-height: 1.7;
  max-width: 100%;
}

body.ir-home .v2-disc-title {
  line-height: 1.3;
}

html[lang="en"] body.ir-home .v2-disc-title {
  line-height: 1.12;
}

/* Motion: reels keep readable titles and metadata */
body.ir-home .v2-motion-sub-title {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ir-text);
  line-height: 1.5;
}

html[lang="en"] body.ir-home .v2-motion-sub-title {
  line-height: 1.3;
}

body.ir-home .v2-motion-sub-spec {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(236, 233, 255, 0.72);
  white-space: nowrap;
}

body.ir-home .v2-motion-sub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

body.ir-home .v2-motion-sub-cta {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffca05;
}

body.ir-home .v2-motion-sub-arrow {
  font-size: 0.95rem;
  color: rgba(236, 233, 255, 0.72);
}

body.ir-home .v2-motion-sub-tag {
  font-size: 0.84rem;
}

body.ir-home .v2-motion-campaign-tag,
body.ir-home .v2-motion-client-badge {
  letter-spacing: 0;
}

body.ir-home .v2-motion-hero-specs {
  color: rgba(236, 233, 255, 0.8);
  font-size: 0.9rem;
}

body.ir-home .v2-motion-hero-title {
  line-height: 1.4;
}

html[lang="en"] body.ir-home .v2-motion-hero-title {
  line-height: 1.15;
}

body.ir-home .v2-motion-dynamic-showcase {
  margin-top: 0;
  gap: clamp(20px, 2.6vw, 32px);
}

body.ir-home .v2-motion-sub-card {
  padding: 18px;
}

/* Expertise and Process cards: metadata at a readable size and contrast */
body.ir-home .expertise-row-desc,
body.ir-home .expertise-row-subtitle,
body.ir-home .process-step-desc {
  color: rgba(236, 233, 255, 0.76);
}

/* CTA moment: scale tuned for Arabic, distinct wording from the contact form */
html[lang] .ir-cta-title {
  font-size: clamp(3rem, 8vw, 8.6rem);
  line-height: 1.22;
}

html[lang="en"] .ir-cta-title {
  line-height: 0.96;
}

/* Hero name: each word is its own masked line, so it needs its own line-height */
html[lang] .ir-hero-name {
  line-height: 1.04;
}

html[lang="en"] .ir-hero-name {
  line-height: 0.92;
}

.ir-cta-kicker {
  font-size: 0.98rem;
}

/* ---- Tablet and phone adjustments ---- */
@media (max-width: 1023px) {
  body.ir-home {
    --ir-title: clamp(2rem, 6vw, 3.2rem);
    --ir-statement: clamp(1.5rem, 4vw, 2.2rem);
  }
}

@media (max-width: 767px) {
  body.ir-home {
    --ir-sec: 72px;
    --ir-head-gap: 32px;
    --ir-title: clamp(1.9rem, 8.4vw, 2.5rem);
    --ir-statement: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  body.ir-home .section-head .section-title,
  body.ir-home .p3-section-title,
  body.ir-home .contact-title,
  body.ir-home .ir-index-title {
    max-width: none;
  }

  .ir-cta-title {
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  body.ir-home .v2-motion-sub-card {
    padding: 14px;
    gap: 14px;
  }

  body.ir-home .v2-motion-sub-media {
    width: 92px;
    min-width: 92px;
  }
}

/* =========================================================================
   Official membership — Creators HQ (UAE). Own section between the hero and
   Selected Work on /creator. Card styles live in creator/creator.css (.p3-member-*).
   ========================================================================= */
.ir-member-section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) var(--ir-gutter);
  background:
    radial-gradient(50% 60% at 75% 50%, rgba(1, 140, 95, 0.14), transparent 70%),
    var(--ir-ink);
  overflow: hidden;
}

.ir-member-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.ir-member-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ir-gold);
}

.ir-member-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ir-text);
}

html[dir="ltr"] .ir-member-title {
  letter-spacing: -0.02em;
}

.ir-member-title bdi,
.ir-member-desc bdi {
  white-space: nowrap;
}

.ir-member-desc {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--ir-dim);
}

.ir-member-section .ir-member-stage {
  max-width: 440px;
  justify-self: center;
}

@media (max-width: 767px) {
  .ir-member-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .ir-member-section .ir-member-stage {
    width: 100%;
    max-width: 360px;
  }
}

/* ==========================================================================
   About, compact: portrait beside a short statement, three one-line
   principles, a quiet stats strip and one clear action.
   ========================================================================== */
body.ir-home .p3-about-layout {
  grid-template-columns: minmax(0, 300px) minmax(0, 640px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

body.ir-home .p3-about-visual-column {
  position: static;
}

body.ir-home .p3-about-quote-headline {
  max-width: 22ch;
  margin-bottom: 18px;
  padding-inline-start: 0;
  border-inline-start: 0;
}

body.ir-home .p3-about-bio-text {
  max-width: 46ch;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.9;
}

body.ir-home .p3-principles {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.ir-home .p3-principles li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ir-text, #f6f4ff);
  font-size: 0.95rem;
  font-weight: 600;
}

body.ir-home .p3-principle-num {
  color: var(--accent-gold, #f5c542);
  font-size: 0.78rem;
  font-weight: 700;
  font-feature-settings: 'tnum';
}

/* Stats: three figures on one line, split by hairlines, no boxes. */
body.ir-home .p3-about-stats-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 22px 0;
  margin-bottom: 30px;
}

body.ir-home .p3-about-stats-triad .stat-triad-card {
  padding: 0 clamp(10px, 1.6vw, 22px);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: start;
  transform: none;
}

body.ir-home .p3-about-stats-triad .stat-triad-card + .stat-triad-card {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

body.ir-home .p3-about-stats-triad .stat-triad-card:first-child {
  padding-inline-start: 0;
}

body.ir-home .p3-about-stats-triad .stc-num {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

body.ir-home .p3-about-stats-triad .stc-note {
  display: none;
}

body.ir-home .p3-about-actions {
  gap: clamp(14px, 2vw, 26px);
}

body.ir-home .p3-about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: rgba(236, 233, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ir-home .p3-about-link:focus-visible {
  outline: 2px solid var(--accent-gold, #f5c542);
  outline-offset: 4px;
}

@media (hover: hover) {
  body.ir-home .p3-about-link:hover {
    color: var(--accent-gold, #f5c542);
  }
}

@media (max-width: 960px) {
  body.ir-home .p3-about-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 28px;
  }
  body.ir-home .p3-about-visual-column {
    width: min(100%, 260px);
  }
}

@media (max-width: 480px) {
  body.ir-home .p3-about-stats-triad .stc-label {
    font-size: 0.78rem;
  }
  body.ir-home .p3-about-stats-triad .stat-triad-card {
    padding: 0 8px;
  }
}

body.ir-home .p3-about-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-gold, #f5c542);
  color: #080811;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   SELECTED WORK — bento grid + rest of the archive (home only, irw-*)
   ========================================================================== */
.irw-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) var(--ir-gutter) clamp(72px, 8vw, 120px);
}

.irw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: clamp(24px, 2.6vw, 36px);
}

.irw-eyebrow {
  margin: 0;
  color: var(--ir-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.irw-title {
  margin: 10px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ir-text);
  text-wrap: balance;
}

html[lang="en"] .irw-title {
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.irw-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ir-line);
  border-radius: 999px;
  color: var(--ir-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.4s var(--ir-ease), background-color 0.4s var(--ir-ease);
}

.irw-all b {
  color: var(--ir-gold);
  font-weight: 700;
}

.irw-all-arrow::before {
  content: '←';
  display: inline-block;
  transition: transform 0.5s var(--ir-ease);
}

html[dir="ltr"] .irw-all-arrow::before {
  content: '→';
}

.irw-all:hover {
  border-color: rgba(245, 197, 66, 0.5);
}

.irw-all:hover .irw-all-arrow::before {
  transform: translateX(-4px);
}

html[dir="ltr"] .irw-all:hover .irw-all-arrow::before {
  transform: translateX(4px);
}

/* Bento: 12 columns, feature 8x4, side 4x2, small 3x2 */
.irw-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 10.5vw, 150px);
  grid-auto-flow: row dense;
  gap: 16px;
}

.irw-card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--ir-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ir-text);
  text-decoration: none;
}

.irw-feature { grid-column: span 8; grid-row: span 4; }
.irw-side { grid-column: span 4; grid-row: span 2; }
.irw-small { grid-column: span 3; grid-row: span 2; }

.irw-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transition: transform 0.9s var(--ir-ease), opacity 0.6s var(--ir-ease);
}

.irw-shot {
  opacity: 0;
  transform: scale(1.06);
}

.irw-shot.is-rest,
.irw-shot.is-on {
  opacity: 1;
  transform: scale(1);
}

/* Animated brand tile (shares the /work client-tile motion from portfolio-v2.css) */
.irw-card .irw-brand {
  z-index: 0;
  transition: opacity 0.6s var(--ir-ease);
}

.irw-card .irw-brand .v2-client-logo {
  inset: 16% 22% 36%;
}

.irw-side .irw-brand .v2-client-logo {
  inset: 16% 28% 42%;
}

.irw-feature .irw-brand .v2-client-logo {
  inset: 24% 26% 34%;
}

.irw-card.is-playing .irw-brand {
  opacity: 0;
}

.irw-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 8, 17, 0.94) 0%, rgba(8, 8, 17, 0.5) 34%, rgba(8, 8, 17, 0) 60%);
}

.irw-tags {
  position: absolute;
  z-index: 2;
  top: 16px;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.irw-tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(8, 8, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.irw-tag-new {
  background: var(--ir-gold);
  border-color: transparent;
  color: var(--ir-ink);
}

.irw-meta {
  position: absolute;
  z-index: 2;
  inset-inline: 20px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.irw-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.irw-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.irw-line {
  margin-top: 6px;
  color: rgba(246, 244, 255, 0.66);
  font-size: 0.88rem;
  line-height: 1.5;
}

.irw-feature .irw-name {
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  font-weight: 900;
}

html[lang="en"] .irw-feature .irw-name {
  letter-spacing: -0.02em;
}

.irw-feature .irw-line {
  font-size: 1rem;
}

.irw-go {
  flex: none;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* Gold disc grows in place (transform only) */
.irw-go::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ir-gold);
  transform: scale(0);
  transition: transform 0.5s var(--ir-ease);
}

.irw-go::after {
  content: '←';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

html[dir="ltr"] .irw-go::after {
  content: '→';
}

.irw-bento.is-fine .irw-card:not(.has-brand):hover .irw-shot.is-rest {
  transform: scale(1.04);
}

.irw-bento.is-fine .irw-card:hover .irw-go::before,
.irw-card:focus-visible .irw-go::before {
  transform: scale(1);
}

.irw-bento.is-fine .irw-card:hover .irw-go::after,
.irw-card:focus-visible .irw-go::after {
  color: var(--ir-ink);
}

.irw-card:focus-visible,
.irw-all:focus-visible,
.irw-chip:focus-visible,
.irw-row a:focus-visible {
  outline: 2px solid var(--ir-gold);
  outline-offset: 3px;
}

/* Rest of the archive (works not shown above) */
.irw-rest {
  position: relative;
  margin-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--ir-line);
}

.irw-rest[hidden] {
  display: none;
}

.irw-rest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 16px;
  padding: 22px 0;
}

.irw-rest-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ir-text);
}

.irw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.irw-chip {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ir-line);
  background: transparent;
  color: rgba(246, 244, 255, 0.62);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.4s var(--ir-ease), color 0.4s var(--ir-ease), border-color 0.4s var(--ir-ease);
}

.irw-chip:hover {
  color: var(--ir-text);
  border-color: rgba(255, 255, 255, 0.3);
}

.irw-chip[aria-pressed="true"] {
  background: var(--ir-text);
  border-color: transparent;
  color: var(--ir-ink);
  font-weight: 600;
}

.irw-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.irw-row {
  border-top: 1px solid var(--ir-line);
}

.irw-row[hidden] {
  display: none;
}

.irw-row a {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.3fr) minmax(0, 1fr) 80px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  color: rgba(246, 244, 255, 0.6);
  font-size: 0.95rem;
  text-decoration: none;
}

.irw-row-name {
  display: block;
  color: var(--ir-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.3s var(--ir-ease);
}

.irw-row a:hover .irw-row-name,
.irw-row a:focus-visible .irw-row-name {
  color: var(--ir-gold);
}

.irw-thumb,
.irw-row-sub {
  display: none;
}

.irw-row-year {
  text-align: end;
}

.irw-peek {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 260px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-3deg) scale(0.92);
  transition: opacity 0.35s var(--ir-ease), transform 0.5s var(--ir-ease);
}

.irw-peek.is-on {
  opacity: 1;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-3deg) scale(1);
}

.irw-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .irw-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 12px;
  }
  .irw-feature { grid-column: span 6; grid-row: auto; aspect-ratio: 16 / 10; }
  .irw-side { grid-column: span 3; grid-row: auto; aspect-ratio: 4 / 3; }
  .irw-small { grid-column: span 3; grid-row: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 767px) {
  .irw-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .irw-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .irw-feature { grid-column: span 2; aspect-ratio: 4 / 5; }
  .irw-side { grid-column: span 2; aspect-ratio: 16 / 10; }
  .irw-small { grid-column: span 1; aspect-ratio: 4 / 5; }
  .irw-feature .irw-name { font-size: 1.9rem; }
  .irw-small .irw-meta { inset-inline: 12px; bottom: 12px; }
  .irw-small .irw-name { font-size: 1rem; }
  .irw-small .irw-line,
  .irw-small .irw-go { display: none; }
  .irw-small .irw-tags { top: 10px; inset-inline-start: 10px; inset-inline-end: 10px; }
  .irw-small .irw-tag { font-size: 0.7rem; padding: 5px 9px; }

  .irw-rest-head { align-items: flex-start; flex-direction: column; }
  .irw-row a {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
  }
  .irw-num,
  .irw-row-type,
  .irw-row-year,
  .irw-peek { display: none; }
  .irw-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--ir-ink-2);
  }
  .irw-row-name { font-size: 1.05rem; }
  .irw-row-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irw-img,
  .irw-go::before,
  .irw-peek,
  .irw-all-arrow::before,
  .irw-chip,
  .irw-row-name {
    transition: none;
  }
  .irw-shot,
  .irw-bento.is-fine .irw-card:not(.has-brand):hover .irw-shot.is-rest {
    transform: none;
  }
  .irw-card .irw-brand {
    transition: none;
  }
}

/* ==========================================================================
   PARTNERS WALL — logos drifting behind a standing portrait (home, irp-*)
   ========================================================================== */
body.ir-home main > section.irp,
section.irp {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0 0;
  background: var(--ir-ink);
  color: var(--ir-text);
}

.irp-head {
  position: relative;
  z-index: 6;
  padding: 0 var(--ir-gutter);
  text-align: center;
}

.irp-eyebrow {
  margin: 0;
  color: var(--ir-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.irp-title {
  max-width: 20ch;
  margin: 10px auto 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ir-text);
  text-wrap: balance;
}

html[lang="en"] .irp-title {
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.irp-title em {
  font-style: normal;
  color: var(--ir-gold);
}

.irp-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  height: clamp(600px, 62vw, 860px);
  margin-top: 12px;
}

/* Side shadows so the edges fade out instead of crowding */
.irp-stage::before,
.irp-stage::after {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: clamp(80px, 22vw, 360px);
  pointer-events: none;
}

.irp-stage::before {
  left: 0;
  background: linear-gradient(to right, var(--ir-ink) 0%, rgba(8, 8, 17, 0.85) 35%, rgba(8, 8, 17, 0) 100%);
}

.irp-stage::after {
  right: 0;
  background: linear-gradient(to left, var(--ir-ink) 0%, rgba(8, 8, 17, 0.85) 35%, rgba(8, 8, 17, 0) 100%);
}

.irp-wall {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  direction: ltr;
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -12px), 0);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
}

.irp-row {
  display: flex;
  gap: var(--gap);
  width: max-content;
  opacity: var(--op);
  animation: irpDrift var(--dur) linear infinite;
  animation-direction: var(--dir);
}

@keyframes irpDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.irp-tile {
  --c: 0;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--w);
  height: max(48px, calc(var(--w) * 0.5));
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--w) * 0.1);
  clip-path: inset(0 round calc(var(--w) * 0.1));
  background: rgba(255, 255, 255, 0.07);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ir-text);
  text-decoration: none;
  /* depth of field: each row's blur, per tile so a hovered tile can focus */
  filter: blur(var(--blur, 0px));
  transition: filter 0.5s var(--ir-ease);
}

.irp-tile > * {
  grid-area: 1 / 1;
}

.irp-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: var(--c);
  pointer-events: none;
}

.irp-tile img {
  display: block;
  object-fit: contain;
  transition: transform 0.6s var(--ir-ease);
}

.irp-g {
  filter: grayscale(1) brightness(1.8) contrast(1.1);
  opacity: calc(0.95 - var(--c) * 0.95);
}

.irp-k {
  opacity: var(--c);
}

.irp-name {
  align-self: end;
  max-width: calc(100% - 16px);
  margin: 0 8px 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ir-ease), transform 0.5s var(--ir-ease);
}

html[dir="rtl"] .irp-name {
  direction: rtl;
}

a.irp-tile:hover,
a.irp-tile:focus-visible {
  --c: 1 !important;
  filter: blur(0);
}

a.irp-tile:hover img,
a.irp-tile:focus-visible img {
  transform: translateY(-6px) scale(1.04);
}

a.irp-tile:hover .irp-name,
a.irp-tile:focus-visible .irp-name {
  opacity: 1;
  transform: none;
}

a.irp-tile:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ir-gold);
}

/* Him, grounded, with a breathing light behind */
.irp-halo,
.irp-floor,
.irp-me {
  --px: calc(var(--mx) * 7px);
}

.irp-halo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10%;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.22), rgba(120, 113, 205, 0.12) 45%, transparent 70%);
  transform: translateX(-50%);
  animation: irpBreathe 7s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes irpBreathe {
  from { transform: translateX(calc(-50% + var(--px, 0px))) scale(0.92); opacity: 0.75; }
  to { transform: translateX(calc(-50% + var(--px, 0px))) scale(1.08); opacity: 1; }
}

.irp-floor {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 4.5%;
  width: min(300px, 46vw);
  height: 46px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, transparent 72%);
  transform: translateX(calc(-50% + var(--px, 0px)));
}

.irp-floor::after {
  content: '';
  position: absolute;
  inset: 12px 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 197, 66, 0.28), transparent 70%);
}

.irp-me {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  height: 86%;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--px, 0px)));
}

.irp-me img {
  display: block;
  width: auto;
  height: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.irp-shade {
  position: absolute;
  z-index: 5;
  inset: auto 0 0 0;
  height: 14%;
  pointer-events: none;
  background: linear-gradient(to top, var(--ir-ink), transparent);
}

/* Link under the wall */
.irp-more {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 8px var(--ir-gutter) clamp(56px, 6vw, 80px);
}

.irp-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(245, 197, 66, 0.45);
  border-radius: 999px;
  color: var(--ir-gold);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.4s var(--ir-ease), color 0.4s var(--ir-ease);
}

.irp-arrow::before {
  content: '←';
  display: inline-block;
  transition: transform 0.5s var(--ir-ease);
}

html[dir="ltr"] .irp-arrow::before {
  content: '→';
}

.irp-more a:hover {
  background: var(--ir-gold);
  color: var(--ir-ink);
}

.irp-more a:hover .irp-arrow::before {
  transform: translateX(-5px);
}

html[dir="ltr"] .irp-more a:hover .irp-arrow::before {
  transform: translateX(5px);
}

.irp-more a:focus-visible {
  outline: 2px solid var(--ir-gold);
  outline-offset: 3px;
}

/* Entrance: rows slide in from the sides one after another, he rises */
.irp .irp-row {
  translate: var(--from) 0;
  opacity: 0;
  transition: translate 1.4s var(--ir-ease), opacity 1.1s var(--ir-ease);
  transition-delay: calc(var(--k) * 90ms);
}

.irp.is-in .irp-row {
  translate: 0 0;
  opacity: var(--op);
}

.irp .irp-me {
  translate: 0 60px;
  opacity: 0;
  transition: translate 1.4s var(--ir-ease) 0.35s, opacity 1.1s var(--ir-ease) 0.35s;
}

.irp.is-in .irp-me {
  translate: 0 0;
  opacity: 1;
}

.irp .irp-head {
  translate: 0 24px;
  opacity: 0;
  transition: translate 1.1s var(--ir-ease), opacity 1s var(--ir-ease);
}

.irp.is-in .irp-head {
  translate: 0 0;
  opacity: 1;
}

@media (max-width: 767px) {
  .irp-stage {
    height: 560px;
    margin-top: 0;
  }
  .irp-wall {
    gap: 10px;
  }
  .irp-me {
    height: 80%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irp-row,
  .irp-halo {
    animation: none;
  }
  .irp-tile {
    filter: none;
  }
  .irp-wall {
    transform: none;
  }
  .irp-halo,
  .irp-floor,
  .irp-me {
    --px: 0px;
  }
  .irp .irp-row,
  .irp .irp-me,
  .irp .irp-head {
    transition: none;
    translate: 0 0;
  }
  .irp .irp-me,
  .irp .irp-head {
    opacity: 1;
  }
  .irp .irp-row {
    opacity: var(--op);
  }
}

/* ==========================================================================
   WHAT I DO — five disciplines in one list (replaces two sections, irx-*)
   ========================================================================== */
body.ir-home main > section.irx,
section.irx {
  position: relative;
  padding: 0;
  background: var(--ir-ink);
  color: var(--ir-text);
}

.irx-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) var(--ir-gutter);
}

.irx-head {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.irx-eyebrow {
  margin: 0;
  color: var(--ir-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.irx-title {
  max-width: 18ch;
  margin: 10px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ir-text);
  text-wrap: balance;
}

html[lang="en"] .irx-title {
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.irx-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ir-line);
}

.irx-row {
  border-bottom: 1px solid var(--ir-line);
}

.irx-row a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  color: var(--ir-text);
  text-decoration: none;
}

.irx-num {
  color: rgba(246, 244, 255, 0.4);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.irx-thumb {
  display: none;
}

.irx-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.irx-name {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  transition: color 0.35s var(--ir-ease), transform 0.6s var(--ir-ease);
}

.irx-line {
  color: rgba(246, 244, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
}

.irx-go {
  position: relative;
  justify-self: end;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.irx-go::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ir-gold);
  transform: scale(0);
  transition: transform 0.5s var(--ir-ease);
}

.irx-go::after {
  content: '←';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

html[dir="ltr"] .irx-go::after {
  content: '→';
}

.irx-row a:hover .irx-name,
.irx-row a:focus-visible .irx-name {
  color: var(--ir-gold);
}

.irx-row a:hover .irx-go::before,
.irx-row a:focus-visible .irx-go::before {
  transform: scale(1);
}

.irx-row a:hover .irx-go::after,
.irx-row a:focus-visible .irx-go::after {
  color: var(--ir-ink);
}

.irx-row a:focus-visible {
  outline: 2px solid var(--ir-gold);
  outline-offset: 4px;
}

.irx-peek {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-3deg) scale(0.92);
  transition: opacity 0.35s var(--ir-ease), transform 0.6s var(--ir-ease);
}

.irx-peek.is-on {
  opacity: 1;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-3deg) scale(1);
}

.irx-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The line above the final call to action: what I take on now */
.ir-cta-now {
  max-width: 34ch;
  margin: 0 0 12px;
  color: var(--ir-gold);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .irx-row a {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }
  .irx-num,
  .irx-go,
  .irx-peek {
    display: none;
  }
  .irx-thumb {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--ir-ink-2);
  }
  .irx-name {
    font-size: 1.3rem;
  }
  .irx-line {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irx-name,
  .irx-go::before,
  .irx-peek {
    transition: none;
  }
}

/* Sides strip (home only, cards side by side): each arrow points toward the
   edge its card sits on. RTL: developer is on the right, creator on the left;
   LTR mirrors that. Physical borders so the chevron ignores text direction. */
@media (min-width: 821px) {
  body.ir-home .or-side .or-side-go::before {
    border-inline-end: 0;
    border-left: 0;
    border-right: 0;
  }
  /* points right */
  html[dir="rtl"] body.ir-home .or-side[data-side="dev"] .or-side-go::before,
  html[dir="ltr"] body.ir-home .or-side[data-side="creator"] .or-side-go::before {
    border-right: 2px solid var(--side-ink);
    transform: rotate(45deg);
  }
  /* points left */
  html[dir="rtl"] body.ir-home .or-side[data-side="creator"] .or-side-go::before,
  html[dir="ltr"] body.ir-home .or-side[data-side="dev"] .or-side-go::before {
    border-left: 2px solid var(--side-ink);
    transform: rotate(-45deg);
  }
  /* the hover nudge follows the arrow */
  html[dir="rtl"] body.ir-home .or-side[data-side="dev"] .or-side-go,
  html[dir="ltr"] body.ir-home .or-side[data-side="creator"] .or-side-go { --or-go: 1; }
  html[dir="rtl"] body.ir-home .or-side[data-side="creator"] .or-side-go,
  html[dir="ltr"] body.ir-home .or-side[data-side="dev"] .or-side-go { --or-go: -1; }
}

/* "See all work" under the rest of the archive */
.irw-rest-foot {
  display: flex;
  justify-content: center;
  padding-top: clamp(28px, 3vw, 40px);
}

.irw-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ir-gold);
  color: var(--ir-ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.5s var(--ir-ease), opacity 0.3s var(--ir-ease);
}

.irw-all-btn b {
  font-weight: 800;
  opacity: 0.7;
}

.irw-all-btn:hover {
  transform: translateY(-2px);
}

.irw-all-btn:hover .irw-all-arrow::before {
  transform: translateX(-4px);
}

html[dir="ltr"] .irw-all-btn:hover .irw-all-arrow::before {
  transform: translateX(4px);
}

.irw-all-btn:focus-visible {
  outline: 2px solid var(--ir-gold);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .irw-all-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .irw-all-btn {
    transition: none;
  }
}

/* Empty same-size cards while the live project list loads */
.irw-skel {
  background: rgba(255, 255, 255, 0.06);
  animation: irwSkel 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.irw-skel::after {
  display: none;
}

@keyframes irwSkel {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .irw-skel {
    animation: none;
  }
}
