/* ======================================================================
   RIZQ CASE STUDY (rizq.css)
   ======================================================================

   Loaded by: case-studies/rizq/rizq.html

   HOW TO EDIT
   - Colors are in section 01 (:root). Font = Inter, set in ../portfolio-type.css.
   - Back link + footer come from ../portfolio-shell.css.
   - Each section starts with a big "=====" banner. Use Ctrl/Cmd + F
     and search the section number (e.g. "03.") to jump to it.

   TABLE OF CONTENTS
   01. Tokens + Base
   02. Hero
   03. Statement + Meta + Zooming Cover
   04. Overview + Numbers
   05. Services
   06. Approach
   07. Key Journey
   08. Key Screens
   09. Design System
   10. Deliverables + All Screens
   11. Mobile
   12. Reduced Motion
   ====================================================================== */


/* ======================================================================
   01. TOKENS + BASE
   ====================================================================== */
:root {
  --indigo: #2d308f;
  --indigo-d: #1e2070;
  --green: #68b05c;
  --green-d: #3f8a35;
  --green-l: #8fd383;
  --lav: #8687bd;
  --mist: #eeeef8;
  --paper: #ffffff;
  --soft: #f4f4fa;
  --line: #e3e4ee;
  --ink: #16172e;
  --mute: #6b6d84;
  --sans: "Inter", Arial, sans-serif;
  --mono: "Inter", ui-monospace, monospace;
  --gutter: clamp(20px, 5.5vw, 110px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* Media is for viewing only: no clicks, drags or long-press menus */
img,
video,
picture {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.wrap {
  padding-inline: var(--gutter);
}

.mono {
  font: 400 clamp(10px, 0.75vw, 13px)/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity 0.9s ease,
      transform 1.1s var(--ease);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}


/* ======================================================================
   02. HERO
   Logo + promise on the left, a Kommittee-style orbit on the right
   The eight services sit on a ring like members of a committee,
   around a phone showing the payout. Everything is decorative:
   nothing here can be clicked.
   ====================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(100svh, 720px);
  padding: clamp(22px, 3vh, 36px) var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--indigo);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hero-bg .g1 {
  right: -8vw;
  top: 4vh;
  width: 64vw;
  height: 64vw;
  max-width: 1100px;
  max-height: 1100px;
  background: radial-gradient(closest-side, rgb(124 130 240 / 48%), transparent 72%);
}

.hero-bg .g2 {
  left: -18vw;
  bottom: -30vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgb(14 16 70 / 80%), transparent 72%);
}

.hero-bg .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1.2px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 65%);
  mask: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 65%);
}

.hero-kick {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  color: #b9bcf5;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 80px);
  padding: clamp(24px, 4vh, 56px) 0;
}

.hero-logo {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 618 / 126;
  margin: 0;
}

.hero-logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-line {
  margin: clamp(26px, 4vh, 48px) 0 0;
  font: 600 clamp(32px, 3.9vw, 70px)/1.06 var(--sans);
  letter-spacing: -0.03em;
}

.hero-line .hl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
}

.hero-line .hl > span {
  display: inline-block;
}

.hero-line b {
  color: var(--green-l);
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(26px, 4vh, 44px) 0 0;
  color: #dadcff;
}

.hero-tags span + span::before {
  content: "/";
  margin: 0 14px;
  color: var(--green-l);
}

/* Orbit: a square that scales with the screen; inner sizes use container units */
.orbit {
  width: min(44vw, 78svh, 760px);
}

.orbit-in {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  container-type: inline-size;
  translate: 0 calc(var(--hp, 0) * -6%);
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring circle {
  fill: none;
}

.r-out {
  stroke: rgb(255 255 255 / 8%);
  stroke-width: 1.5;
}

.r-in {
  stroke: rgb(255 255 255 / 16%);
  stroke-width: 1.5;
  stroke-dasharray: 3 9;
}

.r-track {
  stroke: rgb(192 194 233 / 30%);
  stroke-width: 10;
}

.r-arc {
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 72 100;
}

.spin-wrap {
  position: absolute;
  inset: 0;
  rotate: calc(var(--hp, 0) * 140deg);
}

.spin {
  position: absolute;
  inset: 0;
  animation: spin 90s linear infinite;
}

.node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13cqw;
  height: 13cqw;
  margin: -6.5cqw 0 0 -6.5cqw;
  transform: rotate(var(--a)) translateY(-43cqw) rotate(calc(-1 * var(--a)));
}

.node i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 28%;
  background: #fff;
  box-shadow: 0 2cqw 4cqw -1.6cqw rgb(8 10 50 / 55%);
  animation: spin 90s linear infinite reverse;
  rotate: calc(var(--hp, 0) * -140deg);
}

.node img {
  width: 62%;
  height: auto;
  mix-blend-mode: multiply;
}

.pip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.2cqw;
  height: 3.2cqw;
  margin: -1.6cqw 0 0 -1.6cqw;
  border-radius: 50%;
  background: var(--green-l);
  box-shadow: 0 0 0 1.4cqw rgb(143 211 131 / 22%);
  transform: rotate(259deg) translateY(-43cqw);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ph {
  position: absolute;
}

.ph img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5cqw 6cqw rgb(8 10 50 / 55%));
}

.ph-main {
  left: 30%;
  top: 6.5%;
  width: 40%;
  z-index: 3;
}

.ph-main img {
  translate: 0 calc(var(--hp, 0) * -9cqw);
}

.chip {
  position: absolute;
  z-index: 4;
}

.chip .cb {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  padding: 1.9cqw 3cqw 1.9cqw 1.9cqw;
  border-radius: 2.8cqw;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3.4cqw 6cqw -2.6cqw rgb(8 10 50 / 60%);
  animation: bob 6s ease-in-out infinite;
}

.chip small {
  display: block;
  font-size: max(10px, 1.75cqw);
  color: var(--mute);
  white-space: nowrap;
}

.chip b {
  display: block;
  font-size: max(13px, 2.9cqw);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip .ci,
.chip .ok {
  display: grid;
  place-items: center;
  width: 6.4cqw;
  height: 6.4cqw;
  border-radius: 1.8cqw;
  background: var(--indigo);
}

.chip .ok {
  border-radius: 50%;
  background: var(--green);
}

.chip .ci svg,
.chip .ok svg {
  width: 55%;
}

.chip .mr {
  width: 6.8cqw;
  height: 6.8cqw;
}

.chip .mr circle {
  fill: none;
  stroke-width: 8;
}

.chip .mr .t {
  stroke: #e6e7f4;
}

.chip .mr .a {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 89 100;
}

.c1 {
  left: -2%;
  top: 16%;
}

.c1 .cb {
  animation-delay: -1s;
}

.c2 {
  right: -4%;
  top: 17%;
}

.c2 .cb {
  animation-delay: -3.2s;
}

.c3 {
  left: 1%;
  bottom: 14%;
}

.c3 .cb {
  animation-delay: -4.6s;
}

.c4 {
  right: -3%;
  bottom: 24%;
}

.c4 .cb {
  animation-delay: -2.2s;
}

.chip .ci.n3 {
  color: #fff;
  font-weight: 800;
  font-size: max(12px, 2.6cqw);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.8cqw);
  }
}

.hero-marquee {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  padding: clamp(16px, 2.2vh, 26px) 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  overflow: hidden;
}

.mq {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 36px);
  width: max-content;
  animation: mq 40s linear infinite;
  font: 700 clamp(24px, 2.6vw, 46px)/1 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mq .o {
  color: transparent;
  -webkit-text-stroke: 1.2px rgb(255 255 255 / 70%);
}

.mq-ar {
  width: 0.62em;
  height: 0.62em;
  fill: var(--green);
  flex: none;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* Entrance, played once when the page has loaded (see rizq.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lb {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
  }

  .js .hero .lg {
    clip-path: inset(100% 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.75s;
  }

  .js .hero .ls {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1) 1s;
  }

  .js .hero-line .hl > span {
    transform: translateY(110%);
    transition: transform 1s var(--ease);
  }

  .js .hero-line .hl:nth-child(1) > span {
    transition-delay: 0.55s;
  }

  .js .hero-line .hl:nth-child(2) > span {
    transition-delay: 0.65s;
  }

  .js .hero-line .hl:nth-child(3) > span {
    transition-delay: 0.75s;
  }

  .js :is(.hero-kick, .hero-tags) {
    opacity: 0;
    transition: opacity 0.9s ease 1.1s;
  }

  .js .r-track,
  .js .r-arc {
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s;
  }

  .js .r-arc {
    transition-delay: 1.3s;
  }

  .js :is(.r-out, .r-in) {
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
  }

  .js .node {
    opacity: 0;
    scale: 0.2;
    transition:
      opacity 0.5s ease,
      scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(0.9s + var(--i) * 0.08s);
  }

  .js .pip {
    opacity: 0;
    transition: opacity 0.6s ease 2.4s;
  }

  .js .ph-main {
    opacity: 0;
    transform: translateY(18%);
    transition:
      opacity 0.9s ease 0.5s,
      transform 1.3s var(--ease) 0.5s;
  }

  .js .chip {
    opacity: 0;
    scale: 0.5;
    transition:
      opacity 0.45s ease,
      scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .js .c1 {
    transition-delay: 1.7s;
  }

  .js .c2 {
    transition-delay: 1.9s;
  }

  .js .c3 {
    transition-delay: 2.1s;
  }

  .js .c4 {
    transition-delay: 2.3s;
  }

  .js .hero-marquee {
    opacity: 0;
    transition: opacity 1s ease 1.4s;
  }

  .is-ready .hero :is(.lb, .lg, .ls) {
    clip-path: inset(0 0 0 0);
  }

  .is-ready .hero-line .hl > span {
    transform: none;
  }

  .is-ready :is(.hero-kick, .hero-tags, .r-out, .r-in, .pip, .hero-marquee) {
    opacity: 1;
  }

  .is-ready .r-track {
    stroke-dashoffset: 0;
  }

  .is-ready .r-arc {
    stroke-dashoffset: 28;
  }

  .is-ready .node,
  .is-ready .chip {
    opacity: 1;
    scale: 1;
  }

  .is-ready .ph-main {
    opacity: 1;
    transform: none;
  }
}


/* ======================================================================
   03. STATEMENT + META + ZOOMING COVER
   ====================================================================== */
.intro {
  padding-top: clamp(90px, 10vw, 180px);
  padding-bottom: clamp(70px, 8vw, 140px);
}

.label {
  margin: 0 0 clamp(20px, 2vw, 34px);
  color: var(--mute);
}

.statement {
  max-width: 28ch;
  margin: 0;
  font: 500 clamp(26px, 3.4vw, 64px)/1.12 var(--sans);
  letter-spacing: -0.03em;
}

.statement .w {
  color: #cfd0dd;
  transition: color 0.5s ease;
}

.statement .w.is-lit {
  color: var(--ink);
}

.statement strong {
  font-weight: 700;
}

.statement strong .w.is-lit {
  color: var(--indigo);
}

.zoom {
  position: relative;
  height: 170vh;
}

.zoom-stick {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  overflow: hidden;
}

.zoom-frame {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  border-radius: calc((1 - var(--z, 0.8)) * 120px);
  transform: scale(var(--z, 0.8));
  background: var(--indigo);
  box-shadow: 0 50px 100px -50px rgb(20 22 90 / 55%);
  will-change: transform;
}

.zoom-frame .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 6vw, 110px) 0 0;
  border-top: 1px solid var(--line);
}

.meta div {
  padding: 22px 20px 0 0;
}

.meta dt {
  margin-bottom: 12px;
  color: var(--mute);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta dd {
  margin: 0;
  font: 600 clamp(16px, 1.25vw, 22px)/1.3 var(--sans);
}

/* Section titles, shared */
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  font: 700 clamp(32px, 3.4vw, 64px)/1 var(--sans);
  letter-spacing: -0.035em;
}

.sec-title .mono {
  color: var(--green-d);
  font-weight: 400;
  letter-spacing: 0.14em;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 30px;
  margin-bottom: clamp(36px, 4vw, 70px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sec-head p {
  margin: 0;
  color: var(--mute);
  font: 400 clamp(14px, 1.05vw, 18px)/1.4 var(--sans);
}


/* ======================================================================
   04. OVERVIEW + NUMBERS
   ====================================================================== */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(30px, 5vw, 100px);
  padding-top: clamp(30px, 3vw, 60px);
  padding-bottom: clamp(90px, 9vw, 160px);
}

.overview .sec-title {
  position: sticky;
  top: 60px;
  align-self: start;
}

.ov-body > p {
  max-width: 62ch;
  margin: 0 0 1.1em;
  color: #4a4b5e;
  font: 400 clamp(16px, 1.25vw, 22px)/1.6 var(--sans);
}

.ov-body > p.lead {
  max-width: 34ch;
  color: var(--ink);
  font: 500 clamp(22px, 2vw, 36px)/1.3 var(--sans);
  letter-spacing: -0.02em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(40px, 4vw, 70px);
}

.facts > div {
  padding-top: 18px;
  border-top: 2px solid var(--indigo);
}

.facts h3 {
  margin: 0 0 14px;
  color: var(--mute);
  font-weight: 400;
}

.facts p {
  margin: 0;
  font: 600 clamp(15px, 1.15vw, 20px)/1.45 var(--sans);
}

.numbers {
  background: var(--mist);
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.num-grid > div {
  padding: clamp(44px, 4.4vw, 80px) clamp(14px, 1.6vw, 30px);
  border-left: 1px solid rgb(45 48 143 / 14%);
}

.num-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.num-grid b {
  display: block;
  color: var(--indigo);
  font: 800 clamp(60px, 6.6vw, 128px)/0.9 var(--sans);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.num-grid p {
  max-width: 26ch;
  margin: 18px 0 0;
  color: #3e3f55;
  font: 400 clamp(14px, 1vw, 17px)/1.5 var(--sans);
}


/* ======================================================================
   05. SERVICES
   Eight cards, like the home screen
   ====================================================================== */
.services {
  padding-top: clamp(100px, 10vw, 180px);
  padding-bottom: clamp(100px, 10vw, 180px);
}

.svc {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 24px);
  margin: 0 0 clamp(40px, 4vw, 72px);
  padding: 0;
  list-style: none;
}

.svc li {
  padding: clamp(20px, 2vw, 32px);
  border-radius: clamp(16px, 1.4vw, 24px);
  background: var(--soft);
}

.svc li:nth-child(4n + 2) {
  transition-delay: 0.06s;
}

.svc li:nth-child(4n + 3) {
  transition-delay: 0.12s;
}

.svc li:nth-child(4n) {
  transition-delay: 0.18s;
}

.svc .ic {
  display: grid;
  place-items: center;
  width: clamp(56px, 4.6vw, 76px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 #e6e7f2;
}

.svc .ic img {
  width: 62%;
  height: auto;
  mix-blend-mode: multiply;
}

.svc b {
  display: block;
  margin-top: clamp(18px, 1.8vw, 28px);
  font: 700 clamp(18px, 1.4vw, 24px)/1.2 var(--sans);
  letter-spacing: -0.01em;
}

.svc p {
  margin: 8px 0 0;
  color: var(--mute);
  font: 400 clamp(14px, 1vw, 17px)/1.5 var(--sans);
}

/* Boards (still images) and captions, shared */
.board,
.shot {
  margin: 0;
}

.board img {
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 1.2vw, 22px);
}

.board figcaption,
.shot figcaption {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) 1fr;
  gap: 20px;
  padding: 16px 2px 0;
  font: 400 clamp(13px, 0.95vw, 16px)/1.5 var(--sans);
}

.board figcaption b,
.shot figcaption b {
  font-weight: 700;
}

.board figcaption span,
.shot figcaption span {
  color: var(--mute);
}


/* ======================================================================
   06. APPROACH
   Indigo band, six rules shown at once
   ====================================================================== */
.approach {
  background: var(--indigo);
  color: #fff;
}

.approach-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(30px, 5vw, 100px);
  padding-top: clamp(100px, 10vw, 180px);
  padding-bottom: clamp(100px, 10vw, 180px);
}

.ap-left {
  position: sticky;
  top: 60px;
  align-self: start;
}

.ap-left p {
  max-width: 36ch;
  margin: 26px 0 0;
  color: #c3c5f0;
  font: 400 clamp(15px, 1.1vw, 19px)/1.6 var(--sans);
}

.approach .sec-title .mono {
  color: var(--green-l);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 60px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: clamp(22px, 2vw, 34px) 0 clamp(26px, 2.4vw, 40px);
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.steps li:nth-child(even) {
  transition-delay: 0.08s;
}

.steps .mono {
  color: var(--green-l);
}

.steps h3 {
  margin: 14px 0 12px;
  font: 600 clamp(24px, 2.3vw, 42px)/1 var(--sans);
  letter-spacing: -0.03em;
}

.steps p {
  max-width: 34ch;
  margin: 0;
  color: #c3c5f0;
  font: 400 clamp(15px, 1.05vw, 18px)/1.55 var(--sans);
}


/* ======================================================================
   07. KEY JOURNEY
   Video + board
   ====================================================================== */
.journey {
  padding-top: clamp(100px, 10vw, 180px);
}

.shot .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.2vw, 22px);
  background: var(--mist);
  box-shadow: 0 0 0 1px var(--line);
}

.shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey .board {
  margin-top: clamp(40px, 4vw, 72px);
}


/* ======================================================================
   08. KEY SCREENS
   Two portrait boards
   ====================================================================== */
.screens {
  padding-top: clamp(100px, 10vw, 180px);
  padding-bottom: clamp(100px, 10vw, 180px);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 40px);
}

.pair .board:nth-child(2) {
  transition-delay: 0.1s;
}


/* ======================================================================
   09. DESIGN SYSTEM
   One image (a phone gets a stacked version)
   ====================================================================== */
.system {
  padding-bottom: clamp(100px, 10vw, 180px);
}

.sys-image {
  margin: 0;
}

.sys-image img {
  width: 100%;
  height: auto;
}


/* ======================================================================
   10. DELIVERABLES + ALL SCREENS
   ====================================================================== */
.deliver {
  padding-bottom: clamp(100px, 10vw, 180px);
}

.deliver .sec-title {
  margin-bottom: clamp(36px, 4vw, 70px);
}

.deliver-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 28px);
}

.deliver-grid > div {
  padding-top: 18px;
  border-top: 2px solid var(--indigo);
}

.deliver-grid h3 {
  margin: 0 0 14px;
  color: var(--mute);
  font-weight: 400;
}

.deliver-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliver-grid li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(15px, 1.1vw, 19px)/1.3 var(--sans);
}

.pages {
  padding-bottom: clamp(100px, 10vw, 180px);
}

.pages-frame {
  margin: 0;
}

.pages-frame .frame {
  overflow: hidden;
  border-radius: clamp(14px, 1.2vw, 22px);
  background: var(--indigo);
}

.pages-frame .media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* ======================================================================
   11. MOBILE
   ====================================================================== */
@media (max-width: 1100px) {
  .svc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: 36px;
  }

  .orbit {
    width: min(100%, 560px);
    justify-self: center;
    margin-bottom: 20px;
  }
}

@media (max-width: 900px) {
  .hero-kick span:nth-child(3) {
    display: none;
  }

  .zoom {
    height: auto;
  }

  .zoom-stick {
    position: relative;
    height: auto;
    padding: 0 var(--gutter);
  }

  .zoom-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: none;
    border-radius: 16px;
  }

  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .overview,
  .approach-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview .sec-title,
  .ap-left {
    position: static;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .num-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .num-grid > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .num-grid > div {
    padding-block: 36px;
    border-top: 1px solid rgb(45 48 143 / 14%);
  }

  .deliver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board figcaption,
  .shot figcaption {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 700px) {
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 0;
  }

  .hero-kick span:nth-child(2) {
    display: none;
  }

  .hero-line {
    font-size: 9vw;
  }

  .orbit {
    width: calc(100% - 24px);
  }

  .meta,
  .deliver-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .num-grid > div {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .svc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .svc li {
    padding: 16px;
  }

  .svc .ic {
    width: 48px;
    border-radius: 14px;
  }

  .sec-title {
    font-size: 8.4vw;
  }
}


/* ======================================================================
   12. REDUCED MOTION
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .statement .w {
    color: inherit;
  }

  .spin,
  .node i,
  .chip .cb,
  .mq {
    animation: none !important;
  }

  .orbit-in,
  .spin-wrap,
  .node i,
  .ph img {
    translate: none !important;
    rotate: none !important;
  }

  .zoom {
    height: auto;
  }

  .zoom-stick {
    position: relative;
    height: auto;
    padding: 0 var(--gutter);
  }

  .zoom-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: none;
    border-radius: 20px;
  }
}
