/* ==========================================================================
   Mahmoud Ragab — portfolio v2
   Concept: the proof wall. Dark press-room ink, paper-white type, the brand
   green used only where something can be pressed. Print vocabulary (crop
   marks, frame numbers, contact sheets) instead of generic UI chrome.
   ========================================================================== */

:root {
  --bg: #050d0a;
  --bg-2: #0a1712;
  --bg-3: #10221b;
  --fg: #eef5f1;
  --muted: #94a89f;
  --line: rgba(238, 245, 241, .11);
  --line-strong: rgba(238, 245, 241, .24);
  --accent: #00f08a;
  --accent-2: #9dffcf;
  --on-accent: #02140b;
  --glow: 0, 240, 138;
  --shade: 5, 13, 10;
  --f-body: "Readex Pro", system-ui, sans-serif;
  --f-display: "Big Shoulders Display", "Readex Pro", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* aliases so legacy admin-driven components (FAQ, AI chat) blend in */
  --nav-text: var(--fg);
  --nav-muted: var(--muted);
  --nav-border: var(--line);
  --nav-accent: var(--accent);
  --button-text: var(--on-accent);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f6f3;
  --bg-2: #e4eee9;
  --bg-3: #d3e3db;
  --fg: #07160f;
  --muted: #4f645a;
  --line: rgba(7, 22, 15, .12);
  --line-strong: rgba(7, 22, 15, .28);
  --accent: #00b867;
  --accent-2: #00d176;
  --on-accent: #ffffff;
  --shade: 241, 246, 243;
  color-scheme: light;
}
[dir="rtl"] { --f-display: "Readex Pro", sans-serif; }
[dir="ltr"] { --f-display: "Big Shoulders Display", "Readex Pro", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(15px, 1.05vw, 17px)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn, .btn.secondary {
  --pad: .95em 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad); border-radius: 999px;
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-strong);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease-out);
}
.btn--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn--accent:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--ghost:hover, .btn.secondary:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js-motion .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--fg); mix-blend-mode: difference;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, opacity .3s;
  }
  .js-motion .cursor.is-label {
    width: 84px; height: 84px; margin: -42px 0 0 -42px;
    background: var(--accent); mix-blend-mode: normal;
  }
  .cursor__label { font-size: .78rem; font-weight: 600; color: var(--on-accent); opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  transition: transform .5s var(--ease-out), background .3s, backdrop-filter .3s;
}
.hdr.is-solid { background: rgba(var(--shade), .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__brand img { height: 34px; width: auto; }
.hdr__wordmark { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }
.hdr__nav { display: flex; gap: 6px; margin-inline-start: auto; }
.hdr__nav a { position: relative; padding: 8px 12px; font-size: .92rem; color: var(--muted); transition: color .25s; }
.hdr__nav .roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.4; }
.hdr__nav .roll > span { display: inline-block; position: relative; transition: transform .45s var(--ease-out); }
.hdr__nav .roll > span::after { content: attr(data-text); position: absolute; inset-inline-start: 0; top: 100%; color: var(--fg); }
.hdr__nav a:hover .roll > span { transform: translateY(-100%); }
.hdr__nav a.is-active { color: var(--fg); }
.hdr__nav a.is-active::before { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--accent); }
.hdr__tools { display: flex; align-items: center; gap: 8px; }
.hdr__lang, .hdr__icon { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; display: grid; place-items: center; transition: border-color .25s; }
.hdr__lang:hover, .hdr__icon:hover { border-color: var(--line-strong); }
.hdr__cta { --pad: .8em 1.3em; }
.hdr__menu { display: none; width: 44px; height: 40px; position: relative; }
.hdr__menu span { position: absolute; inset-inline: 10px; height: 1.5px; background: var(--fg); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.hdr__menu span:first-child { top: 15px; }
.hdr__menu span:last-child { top: 23px; }
.hdr__menu[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.hdr__menu[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--gutter) 32px;
}
.drawer[hidden] { display: none; }
.drawer__nav { display: grid; }
.drawer__nav a { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1; text-transform: uppercase; padding: 4px 0; border-bottom: 1px solid var(--line); }
.drawer__nav a.is-active { color: var(--accent); }
.drawer__foot { display: grid; gap: 20px; }
.drawer__social { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
body.menu-open { overflow: hidden; }

@media (max-width: 980px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__menu { display: block; }
  .hdr__tools { margin-inline-start: auto; }
}

/* ---------- section heads ---------- */
.sec-head {
  display: grid; grid-template-columns: 1fr minmax(0, 340px); align-items: end; gap: 24px;
  max-width: var(--max); margin: 0 auto clamp(28px, 4vw, 56px); padding-inline: var(--gutter);
}
.sec-head__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: .92; text-transform: uppercase; letter-spacing: -.005em; }
[dir="rtl"] .sec-head__title { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.15; }
.sec-head__aside { color: var(--muted); font-size: .95rem; max-width: 34ch; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; } }

/* ==========================================================================
   HERO — poster: first name behind the portrait, last name outlined in front
   ========================================================================== */
.hero { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: 84px var(--gutter) 40px; }
.hero__stage { position: relative; isolation: isolate; height: clamp(460px, calc(100svh - 250px), 820px); }
.hero__role { position: absolute; z-index: 5; top: 6px; inset-inline-start: 0; display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--glow), .6); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.hero__glow {
  position: absolute; z-index: 0; pointer-events: none; left: 50%; top: 46%;
  width: min(900px, 120%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow), .34) 0%, rgba(var(--glow), .12) 34%, rgba(var(--glow), .04) 52%, transparent 68%);
  animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: .7; } }

/* The h1 makes no stacking context, so each line layers against the portrait on its own */
.hero__name { position: absolute; inset: 0; margin: 0; pointer-events: none; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: min(21vw, 32svh); line-height: .8; letter-spacing: -.005em; }
.hero__name .line { position: absolute; left: 0; right: 0; display: block; overflow: hidden; text-align: center; white-space: nowrap; padding-bottom: .02em; }
.hero__name .line > span { display: inline-block; }
.line--back { z-index: 1; top: 7%; color: var(--fg); }
.line--front { z-index: 3; bottom: 13%; color: transparent; -webkit-text-stroke: clamp(1.5px, .22vw, 3px) var(--accent); }

.hero__person { position: absolute; z-index: 2; bottom: 0; left: 50%; height: 104%; aspect-ratio: 1; translate: -50% 0; }
.hero__photo {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: contrast(1.08) brightness(1.1) drop-shadow(0 0 1px rgba(var(--glow), .5));
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%);
}
.photo-light { display: none; }
[data-theme="light"] .photo-dark { display: none; }
[data-theme="light"] .photo-light { display: block; }
[data-theme="light"] .hero__photo { filter: contrast(1.05) drop-shadow(0 24px 30px rgba(0, 0, 0, .25)); }

/* 3D tool icons: extruded tile that tilts in space */
.app { --c: #31a8ff; --b: #001e36; --e: #000c17;
  position: absolute; z-index: 4; display: grid; justify-items: center; gap: 10px; perspective: 500px;
}
.app__tile {
  position: relative; display: grid; place-items: center; width: clamp(56px, 6.4vw, 92px); aspect-ratio: 1; border-radius: 24%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--b) 70%, var(--c)) 0%, var(--b) 55%);
  border: 2px solid var(--c);
  box-shadow:
    1px 1px 0 var(--e), 2px 2px 0 var(--e), 3px 3px 0 var(--e), 4px 4px 0 var(--e), 5px 5px 0 var(--e), 6px 6px 0 var(--e), 7px 7px 0 var(--e), 8px 8px 0 var(--e),
    14px 22px 30px -6px rgba(0, 0, 0, .6), 0 0 36px -4px color-mix(in srgb, var(--c) 70%, transparent);
  transform-style: preserve-3d; animation: tilt 7s ease-in-out infinite;
}
.app__tile::before { content: ""; position: absolute; inset: 3px; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .06) 42%, transparent 60%); }
.app__tile b {
  font-family: var(--f-body); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2.4rem); letter-spacing: -.02em; color: var(--c);
  transform: translateZ(18px);
  text-shadow: 1px 1px 0 color-mix(in srgb, var(--c) 55%, #000), 2px 2px 0 color-mix(in srgb, var(--c) 45%, #000), 3px 3px 0 color-mix(in srgb, var(--c) 35%, #000), 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}
@keyframes tilt {
  0%, 100% { transform: rotateX(14deg) rotateY(-22deg) translateY(0); }
  50% { transform: rotateX(-8deg) rotateY(18deg) translateY(-12px); }
}
.app__name { font-size: .72rem; color: var(--muted); padding: 2px 9px; border-radius: 999px; background: rgba(var(--shade), .7); border: 1px solid var(--line); }
.app--ps { inset-inline-start: 13%; top: 38%; }
.app--ai { --c: #ff9a00; --b: #330000; --e: #1a0000; inset-inline-end: 12%; top: 30%; }
.app--ai .app__tile { animation-delay: -2.3s; animation-duration: 8s; }
.app--id { --c: #ff3366; --b: #49021f; --e: #24000f; inset-inline-end: 24%; bottom: 18%; }
.app--id .app__tile { animation-delay: -4.6s; animation-duration: 7.5s; }

/* Copy row under the poster */
.hero__copy { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: clamp(20px, 4vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); }
.hero__doing { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: 0; font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 500; }
.rotator { position: relative; display: inline-grid; color: var(--accent); }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(60%); transition: opacity .45s var(--ease), transform .6s var(--ease-out); }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-out { opacity: 0; transform: translateY(-60%); }
.hero__lede { max-width: 52ch; margin-top: 10px; color: var(--muted); font-size: clamp(.98rem, 1.15vw, 1.1rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__stats { display: flex; gap: clamp(20px, 3vw, 44px); margin: 0; }
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero__stats dt { font-size: .8rem; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; }

@media (max-width: 900px) {
  .hero { padding-top: 76px; }
  .hero__stage { height: clamp(420px, 72svh, 620px); }
  .hero__name { font-size: 23vw; }
  .line--back { top: 9%; }
  .line--front { bottom: 20%; }
  .hero__person { height: 88%; }
  .app__tile { width: 52px; }
  .app__tile b { font-size: 1.3rem; }
  .app__name { display: none; }
  .app--ps { inset-inline-start: 2%; top: 40%; }
  .app--ai { inset-inline-end: 3%; top: 30%; }
  .app--id { inset-inline-end: 6%; bottom: 34%; }
  .hero__copy { grid-template-columns: 1fr; }
  .hero__stats { justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
}

/* intro sequence */
.js-motion .hero__name .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js-motion .hero__name .line--front > span { transition-delay: .25s; }
.js-motion [data-hero] [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), translate .9s var(--ease-out); translate: 0 18px; }
.js-motion [data-hero] .hero__person[data-reveal] { translate: -50% 40px; }
.is-ready .hero__name .line > span { transform: none; }
.is-ready [data-hero] [data-reveal] { opacity: 1; translate: 0 0; }
.is-ready [data-hero] .hero__person[data-reveal] { translate: -50% 0; transition-duration: 1.3s; }
.is-ready [data-hero] .hero__doing { transition-delay: .35s; }
.is-ready [data-hero] .hero__lede { transition-delay: .45s; }
.is-ready [data-hero] .hero__actions { transition-delay: .55s; }
.is-ready [data-hero] .hero__stats { transition-delay: .65s; }


/* ==========================================================================
   HERO VARIANT: design-app canvas (?hero=canvas)
   ========================================================================== */
.hero--canvas .hero__copy, .hero--board .hero__copy { margin-top: 26px; }
.ps {
  height: clamp(520px, calc(100svh - 240px), 840px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 6px rgba(var(--glow), .04);
  font-size: .78rem; color: var(--muted); user-select: none; -webkit-user-select: none;
}
.ps__bar { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-3); white-space: nowrap; overflow: hidden; }
.ps__dots { display: flex; gap: 6px; }
.ps__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ps__dots i:nth-child(2) { background: #febc2e; }
.ps__dots i:nth-child(3) { background: #28c840; }
.ps__tab { padding: 5px 12px; border-radius: 6px; background: var(--bg-2); color: var(--fg); }
.ps__opts { opacity: .7; }
.ps__body { display: grid; grid-template-columns: 46px minmax(0, 1fr) 236px; min-height: 0; }
.ps__tools { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-inline-end: 1px solid var(--line); }
.ps__tool { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
.ps__tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps__tool.is-on { background: rgba(var(--glow), .14); color: var(--accent); }
.ps__chips { position: relative; width: 30px; height: 30px; margin-top: auto; }
.ps__chips i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--bg-2); border-radius: 3px; background: var(--fg); inset-inline-end: 0; bottom: 0; }
.ps__chips i:first-child { background: var(--accent); inset-inline-start: 0; top: 0; z-index: 1; }
.ps__area { position: relative; min-width: 0; background: color-mix(in srgb, var(--bg-2) 70%, #000); }
.ps__ruler { position: absolute; z-index: 2; background-color: var(--bg-3); }
.ps__ruler--x { top: 0; left: 18px; right: 0; height: 18px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 100px); background-size: 100% 6px, 100% 12px; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.ps__ruler--y { top: 18px; left: 0; bottom: 0; width: 18px; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(0deg, var(--line-strong) 0 1px, transparent 1px 10px), repeating-linear-gradient(0deg, var(--muted) 0 1px, transparent 1px 100px); background-size: 6px 100%, 12px 100%; background-position: 100% 0, 100% 0; background-repeat: repeat-y; }
.ps__canvas { position: absolute; inset: 34px 22px 16px 34px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.ps__canvas .hero__glow { top: 55%; width: 90%; }
.ps__guide { position: absolute; z-index: 4; pointer-events: none; background: rgba(var(--glow), .45); }
.ps__guide--v { top: 0; bottom: 0; width: 1px; }
.ps__guide--h { left: 0; right: 0; height: 1px; }
.ps__role { position: absolute; z-index: 5; top: 12px; inset-inline-start: 14px; margin: 0; }
.ps__name { position: absolute; z-index: 1; inset: 6% 0 auto; margin: 0; text-align: center; pointer-events: none; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: min(14vw, 21svh); line-height: .8; color: var(--fg); }
.ps__name .line { display: block; overflow: hidden; }
.ps__name .line > span { display: inline-block; }
.ps__name .line:nth-child(2) > span { color: transparent; -webkit-text-stroke: clamp(1.5px, .2vw, 3px) var(--accent); }
.ps__layer { position: absolute; display: block; }
.ps__you { z-index: 2; bottom: 0; left: 50%; height: 94%; aspect-ratio: 1; translate: -50% 0; }
.ps__you img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: contrast(1.08) brightness(1.1); -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%); mask-image: linear-gradient(to top, transparent 0, #000 20%); }
.ps__work { z-index: 3; touch-action: none; cursor: grab; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .7); transition: box-shadow .25s; }
.ps__work:active { cursor: grabbing; }
.ps__work img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ps__work.is-dragging { z-index: 7; box-shadow: 0 30px 60px -16px rgba(0, 0, 0, .85); }
.ps__w0 { inset-inline-start: 4%; top: 12%; width: 14%; aspect-ratio: 4 / 5; }
.ps__w1 { inset-inline-start: 8%; bottom: 7%; width: 16%; aspect-ratio: 1; }
.ps__w2 { inset-inline-end: 4%; top: 9%; width: 15%; aspect-ratio: 4 / 3; }
.ps__w3 { inset-inline-end: 7%; bottom: 8%; width: 13%; aspect-ratio: 4 / 5; }
.ps__w4 { inset-inline-start: 21%; top: 46%; width: 10%; aspect-ratio: 1; }
.ps__w5 { inset-inline-end: 22%; top: 50%; width: 10%; aspect-ratio: 1; }
/* Marching-ants selection with transform handles */
.ps__sel {
  position: absolute; z-index: 8; pointer-events: none; left: 0; top: 0; width: 0; height: 0;
  background:
    linear-gradient(90deg, var(--accent) 50%, transparent 0) repeat-x 0 0 / 8px 1px,
    linear-gradient(90deg, var(--accent) 50%, transparent 0) repeat-x 0 100% / 8px 1px,
    linear-gradient(0deg, var(--accent) 50%, transparent 0) repeat-y 0 0 / 1px 8px,
    linear-gradient(0deg, var(--accent) 50%, transparent 0) repeat-y 100% 0 / 1px 8px;
  animation: ants .5s linear infinite;
  transition: left .45s var(--ease-out), top .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out);
}
.ps__sel.is-live { transition: none; }
@keyframes ants { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
.ps__sel i { position: absolute; width: 8px; height: 8px; margin: -4px; background: #fff; border: 1px solid var(--accent); }
.ps__sel i:nth-child(1) { left: 0; top: 0; } .ps__sel i:nth-child(2) { left: 50%; top: 0; } .ps__sel i:nth-child(3) { left: 100%; top: 0; }
.ps__sel i:nth-child(4) { left: 100%; top: 50%; } .ps__sel i:nth-child(5) { left: 100%; top: 100%; } .ps__sel i:nth-child(6) { left: 50%; top: 100%; }
.ps__sel i:nth-child(7) { left: 0; top: 100%; } .ps__sel i:nth-child(8) { left: 0; top: 50%; }
.ps__size { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; padding: 2px 7px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-size: .68rem; white-space: nowrap; }
.ps__panel { display: flex; flex-direction: column; min-height: 0; border-inline-start: 1px solid var(--line); }
.ps__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ps__panel-head b { color: var(--fg); font-weight: 600; }
.ps__panel-head span { opacity: .55; white-space: nowrap; }
.ps__layers { list-style: none; margin: 0; padding: 4px; overflow: auto; flex: 1; }
.ps__layers button, .ps__bg { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background .2s, color .2s; }
.ps__layers button:hover { background: var(--bg-3); color: var(--fg); }
.ps__layers button.is-on { background: rgba(var(--glow), .14); color: var(--fg); }
.ps__layers img, .ps__bg i { flex: none; width: 30px; height: 30px; object-fit: cover; border-radius: 3px; background: var(--bg-3); border: 1px solid var(--line); }
.ps__bg { cursor: default; opacity: .6; }
.ps__bg i { background: var(--bg); }
.ps__bg small { margin-inline-start: auto; }
.ps__eye { font-size: .7rem; opacity: .7; }
.ps__layers span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps__swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ps__swatches i { aspect-ratio: 1; border-radius: 3px; background: var(--c); border: 1px solid var(--line); }
.ps__status { display: flex; gap: 18px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--bg-3); white-space: nowrap; overflow: hidden; }
.ps__hint { margin-inline-start: auto; color: var(--accent); }
@media (max-width: 900px) {
  .ps { height: clamp(500px, 76svh, 660px); border-radius: 12px; }
  .ps__opts, .ps__tools, .ps__panel-head, .ps__swatches, .ps__status > span:not(.ps__hint) { display: none; }
  .ps__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ps__panel { min-width: 0; }
  .ps__panel { border-inline-start: 0; border-top: 1px solid var(--line); }
  .ps__layers { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .ps__layers li { flex: none; }
  .ps__layers button { width: auto; max-width: 160px; }
  .ps__bg { display: none; }
  .ps__canvas { inset: 26px 10px 10px 26px; }
  .ps__ruler--x { left: 14px; height: 14px; } .ps__ruler--y { top: 14px; width: 14px; }
  .ps__name { font-size: 18vw; inset-block-start: 9%; }
  .ps__you { height: 82%; }
  .ps__w0 { width: 24%; top: 34%; inset-inline-start: 3%; } .ps__w1 { width: 22%; bottom: 4%; inset-inline-start: 4%; }
  .ps__w2 { width: 24%; top: 30%; inset-inline-end: 3%; } .ps__w3 { width: 20%; bottom: 5%; inset-inline-end: 4%; }
  .ps__w4, .ps__w5 { display: none; }
  .ps__hint { margin-inline-start: 0; }
}

/* ==========================================================================
   HERO VARIANT: moodboard on a cutting mat (?hero=board)
   ========================================================================== */
.board {
  --mat: #0b3a27;
  position: relative; isolation: isolate; overflow: hidden; height: clamp(540px, calc(100svh - 240px), 860px); border-radius: 18px;
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(45deg, transparent calc(50% - .5px), rgba(255, 255, 255, .07) 50%, transparent calc(50% + .5px));
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .55), 0 40px 90px -40px rgba(0, 0, 0, .8);
  user-select: none; -webkit-user-select: none; color: #e9f7ef;
}
.board .hero__glow { top: 58%; width: 80%; opacity: .7; }
.board__ruler { position: absolute; inset: 0 0 auto; height: 20px; background: rgba(0, 0, 0, .25); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 1px, transparent 1px 120px); background-size: 100% 6px, 100% 12px; background-position: 0 100%; background-repeat: repeat-x; }
.board__role { position: absolute; z-index: 6; top: 34px; inset-inline-start: 22px; margin: 0; color: #cfeedd; }
.board__name { position: absolute; inset: 0; z-index: 4; margin: 0; pointer-events: none; }
[data-drag-item] { touch-action: none; cursor: grab; }
[data-drag-item]:active { cursor: grabbing; }
.board [data-drag-item] {
  position: absolute; pointer-events: auto;
  transform: translate(calc(var(--sx, 0) * var(--spread, 0) * 180px), calc(var(--sy, 0) * var(--spread, 0) * 140px)) rotate(var(--r, 0deg));
  transition: box-shadow .25s, filter .25s;
}
.board [data-drag-item].is-dragging { z-index: 9; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.tape-label { --r: -4deg; display: inline-block; padding: .08em .32em .02em; background: #111; color: #f2f2f2; border-radius: 4px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: min(9vw, 14svh); line-height: 1; letter-spacing: .03em; text-shadow: 0 1px 0 rgba(255, 255, 255, .28), 0 -1px 0 #000; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .7); }
.tape-label--1 { top: 9%; inset-inline-start: 5%; }
.tape-label--2 { --r: 3deg; bottom: 9%; inset-inline-end: 24%; background: var(--accent); color: var(--on-accent); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.board__me { position: absolute; z-index: 2; bottom: 0; left: 50%; height: 90%; aspect-ratio: 1; translate: -50% 0; rotate: -1.5deg; }
.board__me img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: contrast(1.08) brightness(1.1) drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 22px 26px rgba(0, 0, 0, .5)); -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%); mask-image: linear-gradient(to top, transparent 0, #000 16%); }
.print { z-index: 3; width: 14%; padding: 7px 7px 0; background: #f5f2ea; color: #1b1b1b; border-radius: 2px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .65); }
.print img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.print__cap { display: block; padding: 5px 2px 7px; font-family: 'Caveat', var(--f-body); font-size: clamp(.9rem, 1.2vw, 1.2rem); line-height: 1.1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print__tape { position: absolute; top: -11px; left: 50%; width: 46%; height: 22px; translate: -50% 0; rotate: -4deg; background: rgba(236, 228, 196, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.print--0 { --r: -6deg; inset-inline-start: 4%; top: 26%; }
.print--1 { --r: 5deg; inset-inline-end: 4%; top: 22%; }
.print--2 { --r: 4deg; inset-inline-start: 10%; bottom: 7%; width: 13%; }
.print--3 { --r: -5deg; inset-inline-end: 17%; bottom: 40%; width: 12%; }
.print--4 { --r: 8deg; inset-inline-start: 24%; top: 9%; width: 10%; }
.print--5 { --r: -7deg; inset-inline-end: 27%; top: 6%; width: 10%; }
.chip-set { --r: 4deg; z-index: 3; inset-inline-end: 4%; top: 6%; display: flex; gap: 6px; }
.chip { display: grid; width: 62px; background: #fff; color: #1b1b1b; border-radius: 3px; overflow: hidden; box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); }
.chip::before { content: ""; height: 54px; background: var(--c); }
.chip b { padding: 5px 6px 0; font-size: .62rem; font-weight: 700; line-height: 1.2; }
.chip small { padding: 0 6px 6px; font-size: .56rem; color: #666; }
.type-card { --r: -3deg; z-index: 3; inset-inline-start: 22%; bottom: 30%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f5f2ea; color: #111; border-radius: 4px; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .6); }
.type-card b { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.type-card span { font-size: .7rem; line-height: 1.3; color: #555; }
.sticky { --r: 3deg; z-index: 3; inset-inline-end: 4%; bottom: 8%; width: 150px; padding: 12px 14px; background: #fff27a; color: #2b2400; font-family: 'Caveat', var(--f-body); font-size: 1.15rem; line-height: 1.15; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6); }
.sticky b { display: block; font-size: 1.35rem; margin-bottom: 4px; }
.sticky ul { list-style: none; margin: 0; padding: 0; }
.board__hint { position: absolute; z-index: 5; bottom: 12px; inset-inline-start: 50%; translate: -50% 0; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: .76rem; white-space: nowrap; }
@media (max-width: 900px) {
  .board { height: clamp(520px, 78svh, 680px); }
  .tape-label { font-size: 12vw; }
  .tape-label--1 { top: 12%; }
  .tape-label--2 { bottom: 16%; }
  .board__me { height: 80%; }
  .print { width: 26%; }
  .print--0 { top: 30%; inset-inline-start: 2%; } .print--1 { top: 26%; inset-inline-end: 2%; }
  .print--2 { width: 24%; bottom: 4%; inset-inline-start: 3%; }
  .print--3, .print--4, .print--5, .type-card, .sticky { display: none; }
  .chip-set { top: auto; bottom: 30%; inset-inline-end: 2%; scale: .62; transform-origin: bottom right; }
  [dir="rtl"] .chip-set { transform-origin: bottom left; }
  .board__hint { bottom: 8px; }
}



/* ==========================================================================
   HERO VARIANT: simple — copy beside the portrait, three tool icons, no drag
   ========================================================================== */
.hero--simple {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head photo" "copy photo";
  grid-template-rows: auto 1fr; column-gap: clamp(24px, 5vw, 80px); align-items: center;
  min-height: min(100svh, 980px); padding-top: 110px;
}
.simple__head { grid-area: head; align-self: end; }
.simple__name { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 9vw, 9.6rem); line-height: .84; }
.simple__name .line { display: block; overflow: hidden; padding-bottom: .02em; }
.simple__name .line > span { display: inline-block; }
.hero--simple .hero__copy { grid-area: copy; align-self: start; display: block; margin-top: 22px; padding-top: 0; border-top: 0; }
.hero--simple .hero__stats { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.simple__photo { grid-area: photo; position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; justify-self: center; isolation: isolate; }
.simple__photo > img {
  position: absolute; z-index: 1; left: -4%; top: 0; width: 108%; height: 104%; max-width: none; object-fit: contain; object-position: bottom;
  filter: contrast(1.06) brightness(1.06);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%);
}
/* a soft green light behind head and shoulders, and one thin ring */
.simple__glow { position: absolute; z-index: -1; inset: -6% -14% 8%; background: radial-gradient(50% 46% at 50% 42%, rgba(var(--glow), .42), rgba(var(--glow), .08) 60%, transparent 75%); pointer-events: none; }
.simple__ring { position: absolute; z-index: -1; left: 50%; top: 8%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 1px solid rgba(var(--glow), .38); pointer-events: none; }
.simple__photo .app { z-index: 2; }
.simple__photo .app__name { background: var(--bg); }
/* creative 3D Adobe tiles: real slabs built from three faces (front, side, top) */
.simple__photo .app { perspective: 520px; }
.simple__photo .app__tile {
  --d: calc(var(--w) * .45);
  position: relative; width: var(--w); aspect-ratio: 1; border: 0; border-radius: 0; background: none; box-shadow: none;
  transform-style: preserve-3d; transform: var(--r); animation: app-float 7s ease-in-out infinite;
}
.simple__photo .app__tile::before { content: none; }
.simple__photo .face { position: absolute; display: block; font-style: normal; backface-visibility: hidden; }
.simple__photo .face--front {
  inset: 0; display: grid; place-items: center; border-radius: 18%;
  background: radial-gradient(110% 90% at 25% 15%, color-mix(in srgb, var(--c) 40%, var(--b)), var(--b) 62%);
  box-shadow: inset 0 0 0 2px var(--c), inset 0 2px 0 2px rgba(255, 255, 255, .25), 0 0 40px -6px color-mix(in srgb, var(--c) 70%, transparent);
  overflow: hidden;
}
/* glass sheen sweeping the front */
.simple__photo .face--front::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 48%, transparent 56%); animation: app-sheen 7s ease-in-out infinite; }
.simple__photo .face--side { top: 4%; bottom: 4%; left: calc(100% - 2px); width: var(--d); transform-origin: left center; transform: rotateY(90deg); border-radius: 0 30% 30% 0 / 0 12% 12% 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, var(--e)), var(--e)); }
.simple__photo .face--top { left: 4%; right: 4%; bottom: calc(100% - 2px); height: var(--d); transform-origin: center bottom; transform: rotateX(90deg); border-radius: 30% 30% 0 0 / 12% 12% 0 0; background: linear-gradient(0deg, color-mix(in srgb, var(--c) 75%, #fff 10%), color-mix(in srgb, var(--c) 45%, var(--b))); }
.simple__photo .app__tile b { font-family: var(--f-body); font-weight: 700; font-size: calc(var(--w) * .38); letter-spacing: -.03em; color: var(--c); transform: none; text-shadow: 0 1px 0 color-mix(in srgb, var(--c) 55%, #000), 0 2px 0 color-mix(in srgb, var(--c) 40%, #000), 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.simple__photo .app::after { content: ""; order: 1; width: calc(var(--w) * .8); height: 10px; margin-top: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); animation: app-floor 7s ease-in-out infinite; }
.simple__photo .app__name { order: 2; }
@keyframes app-sheen { 0%, 55% { translate: -60% 0; } 75%, 100% { translate: 60% 0; } }
/* four tools, four sizes, balanced around the portrait: big Ps and Ai on opposite sides, Id and Pr smaller */
.simple__photo .app__tile { width: var(--w); }
.simple__photo .app::after { width: calc(var(--w) * .7); }
.simple__photo .app--ps { --w: clamp(70px, 6.6vw, 100px); inset-inline-start: 0; top: 26%; bottom: auto; inset-inline-end: auto; }
.simple__photo .app--ai { --w: clamp(62px, 5.8vw, 88px); inset-inline-end: 0; top: 46%; bottom: auto; inset-inline-start: auto; }
.simple__photo .app--id { --w: clamp(50px, 4.6vw, 70px); inset-inline-start: 9%; bottom: 12%; top: auto; inset-inline-end: auto; }
.simple__photo .app--pr { --w: clamp(42px, 3.8vw, 58px); inset-inline-end: 9%; top: 12%; bottom: auto; inset-inline-start: auto; }
.simple__photo .app--ps .app__tile { --r: rotateX(-26deg) rotateY(-40deg) rotateZ(-6deg); }
.simple__photo .app--ai .app__tile { --r: rotateX(-22deg) rotateY(-34deg) rotateZ(8deg); animation-delay: -1.8s; }
.simple__photo .app--id .app__tile { --r: rotateX(-30deg) rotateY(-42deg) rotateZ(6deg); animation-delay: -3.5s; }
.simple__photo .app--pr .app__tile { --r: rotateX(-24deg) rotateY(-36deg) rotateZ(-10deg); animation-delay: -5s; }
.app--pr { --c: #9999ff; --b: #00005b; --e: #00002e; }
.simple__photo .app--pr .app__name, .simple__photo .app--id .app__name { display: none; }
@keyframes app-float { 0%, 100% { transform: translateY(0) var(--r); } 50% { transform: translateY(-10px) var(--r) rotateY(10deg); } }
@keyframes app-floor { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .8; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .simple__photo .app__tile { animation: none; transform: var(--r); } .simple__photo .app::after { animation: none; } }


.js-motion [data-hero] .simple__photo[data-reveal] { translate: 0 30px; }
@media (max-width: 900px) {
  .hero--simple { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "head" "copy"; grid-template-rows: auto; min-height: 0; padding-top: 80px; }
  .simple__photo { max-width: 440px; }
  .simple__photo .app--ps { inset-inline-start: 0; }
  .simple__photo .app--id { inset-inline-start: 2%; }
  .simple__name { font-size: 19vw; }
  .simple__name .line { display: inline-block; margin-inline-end: .2em; }
  .simple__head { margin-top: 30px; }
}

/* centred layers keep their -50% offset through the intro reveal */
.js-motion [data-hero] .ps__you[data-reveal], .js-motion [data-hero] .board__me[data-reveal] { translate: -50% 40px; }
.is-ready [data-hero] .ps__you[data-reveal], .is-ready [data-hero] .board__me[data-reveal] { translate: -50% 0; transition-duration: 1.2s; }
/* ---------- showcase: deck with intro beside it ---------- */
.showcase {
  max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  scroll-margin-top: 60px;
}
.showcase__intro { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; padding-top: 56px; } }

/* ==========================================================================
   STORIES DECK
   ========================================================================== */
.deck { --w: min(420px, 100%); width: var(--w); margin-inline: auto; user-select: none; -webkit-user-select: none; }
.deck--wide { --w: min(520px, 100%); }
.deck__bars { display: flex; gap: 4px; margin-bottom: 14px; padding-inline: 4px; }
.deck__bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.deck__bar i { display: block; height: 100%; width: 0; background: var(--fg); border-radius: inherit; }
.deck__bar.is-done i { width: 100%; }
.deck__bar.is-now i { animation: fill var(--dur, 5s) linear forwards; }
.deck.is-paused .deck__bar.is-now i { animation-play-state: paused; }
[dir="rtl"] .deck__bar i { margin-inline-start: auto; }
@keyframes fill { to { width: 100%; } }
.deck__stage { position: relative; aspect-ratio: 4 / 5; touch-action: pan-y; perspective: 1400px; }
.deck__card {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px;
  background: var(--bg-3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transform-origin: 50% 110%;
  transition: transform .6s var(--ease-out), opacity .45s var(--ease), filter .45s;
  will-change: transform; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.deck__card.is-drag { transition: none; cursor: grabbing; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 5, 2, .88) 0%, rgba(10, 5, 2, .3) 38%, transparent 60%); pointer-events: none; }
.deck__info { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px; color: #fff; display: grid; gap: 6px; }
.deck__cat { justify-self: start; font-size: .76rem; padding: .35em .8em; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.deck__title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.deck__open { font-size: .85rem; color: var(--accent-2, var(--accent)); }
.deck__card:not(.is-top) .deck__info { opacity: 0; }
.deck__card:not(.is-top) { pointer-events: none; }
.deck__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.deck__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.deck__btn svg { width: 20px; height: 20px; }
[dir="rtl"] .deck__btn svg { transform: scaleX(-1); }
.deck__btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.deck__count { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 70px; text-align: center; }
.deck__count b { color: var(--fg); font-weight: 600; }
.deck__hint { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 10px; }
@media (max-width: 900px) {
  .deck, .deck--wide { --w: min(440px, 100%); }
  .deck__stage { aspect-ratio: 4 / 5.2; }
}

/* ---------- discipline ribbons (crossing marquees) ---------- */
.ribbons { position: relative; height: clamp(120px, 14vw, 170px); overflow: hidden; margin-block: clamp(10px, 3vw, 40px); }
.ribbon { position: absolute; inset-inline: -5%; top: 50%; padding: 12px 0; direction: ltr; white-space: nowrap; }
.ribbon--0 { background: var(--accent); color: var(--on-accent); transform: translateY(-50%) rotate(-3deg); z-index: 2; }
.ribbon--1 { background: var(--bg-3); color: var(--fg); transform: translateY(-50%) rotate(2.5deg); }
.ribbon__track { display: inline-flex; animation: marquee 38s linear infinite; }
.ribbon--1 .ribbon__track { animation-direction: reverse; animation-duration: 46s; }
.ribbon span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); text-transform: uppercase; padding-inline: 18px; }
.ribbon span::after { content: "✦"; margin-inline-start: 36px; font-size: .7em; vertical-align: middle; }
[dir="rtl"] .ribbon span { font-family: var(--f-body); font-weight: 600; text-transform: none; }

/* ---------- browse by discipline ---------- */
.types { padding: clamp(60px, 9vw, 130px) 0; }
.types__row { display: flex; gap: 16px; overflow-x: auto; padding: 4px var(--gutter) 20px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.types__row::-webkit-scrollbar { display: none; }
.type { position: relative; flex: none; width: clamp(240px, 26vw, 340px); aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; scroll-snap-align: start; isolation: isolate; background: var(--bg-3); }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s var(--ease-out); }
.type::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 6, 2, .9), transparent 60%); }
.type:hover img { transform: scale(1.07); }
.type__name { position: absolute; inset-inline: 20px; bottom: 44px; color: #fff; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.15; }
.type__count { position: absolute; inset-inline-start: 20px; bottom: 18px; color: var(--accent-2, var(--accent)); font-size: .85rem; }
@media (max-width: 600px) { .type { width: 72vw; } }

/* ---------- stats ---------- */
.stats {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px;
}
.stats__item { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.stats__num, .stats__plus { font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats__plus { color: var(--accent); }
.stats__label { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- clients marquee ---------- */
.clients { padding: clamp(32px, 5vw, 64px) 0; border-block: 1px solid var(--line); }
.clients__title { max-width: var(--max); margin: 0 auto 24px; padding-inline: var(--gutter); color: var(--muted); font-size: .9rem; }
.marquee { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: clamp(36px, 5vw, 80px); padding-inline-end: clamp(36px, 5vw, 80px); }
.marquee__set img { height: clamp(34px, 4vw, 52px); width: auto; max-width: 160px; object-fit: contain; opacity: .62; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
[data-theme="light"] .marquee__set img { filter: grayscale(1) brightness(.2); }
.marquee__set img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   SELECTED WORK — index with floating preview
   ========================================================================== */
.work { position: relative; padding: clamp(80px, 11vw, 160px) 0 clamp(60px, 8vw, 120px); }
.index { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); border-top: 1px solid var(--line); }
.index__row a {
  display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease-out), color .3s;
}
.index__thumb { display: none; }
.index__title { font-size: clamp(1.4rem, 3.2vw, 2.9rem); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; transition: transform .5s var(--ease-out); }
.index__cat { color: var(--muted); font-size: .9rem; text-align: end; }
.index__arrow { width: 28px; height: 28px; opacity: .4; transition: opacity .3s, transform .5s var(--ease-out); }
[dir="rtl"] .index__arrow { transform: scaleX(-1); }
.index:hover .index__row a { color: var(--muted); }
.index .index__row a:hover { color: var(--fg); }
.index__row a:hover .index__title { transform: translateX(14px); }
[dir="rtl"] .index__row a:hover .index__title { transform: translateX(-14px); }
.index__row a:hover .index__arrow { opacity: 1; color: var(--accent); transform: rotate(45deg); }
.index__preview {
  position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none;
  width: clamp(240px, 26vw, 420px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r);
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85) rotate(-4deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.index__preview.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(-2deg); }
.index__preview img { width: 100%; height: 100%; object-fit: cover; }
.link-big {
  display: block; max-width: var(--max); margin: 36px auto 0; padding-inline: var(--gutter);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase;
}
.link-big span { color: var(--accent); }
.link-big:hover { color: var(--accent); }
@media (hover: none), (max-width: 860px) {
  .index__preview { display: none; }
  .index__row a { grid-template-columns: 76px 1fr 22px; gap: 16px; }
  .index__thumb { display: block; width: 76px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); grid-row: span 2; }
  .index__title { font-size: 1.15rem; }
  .index__cat { grid-column: 2; text-align: start; font-size: .82rem; margin-top: -10px; }
  .index__arrow { grid-row: 1 / span 2; grid-column: 3; width: 22px; }
}

/* ==========================================================================
   ABOUT — statement that lights up word by word on scroll
   ========================================================================== */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.about__label { color: var(--accent); font-size: .95rem; margin-bottom: 20px; }
.about__statement { font-size: clamp(1.6rem, 3.6vw, 3.4rem); line-height: 1.22; font-weight: 400; letter-spacing: -.012em; max-width: 26ch; }
[dir="rtl"] .about__statement { line-height: 1.5; letter-spacing: 0; }
.about__statement .w { transition: opacity .3s linear; }
.js-motion .about__statement .w { opacity: .18; }
.js-motion .about__statement .w.is-lit { opacity: 1; }
.about__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 8vw, 110px); }
.about h3 { font-size: .95rem; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.about__exp li { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.about__exp li:last-child { border-bottom: 1px solid var(--line); }
.about__exp strong { font-weight: 500; }
.about__exp span { color: var(--muted); font-size: .92rem; }
.about__exp time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.about__tools .btn { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .45em .95em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; }
.chips--lg li { font-size: .98rem; padding: .6em 1.1em; }
@media (max-width: 860px) {
  .about__cols { grid-template-columns: 1fr; }
  .about__exp li { grid-template-columns: 1fr auto; }
  .about__exp span { grid-column: 1 / -1; grid-row: 2; }
}

/* ==========================================================================
   CONTACT SHEET — draggable strip of frames
   ========================================================================== */
.sheet { padding: clamp(60px, 8vw, 120px) 0; background: var(--bg-2); }
.sheet__strip, .reel__strip, .quotes__row {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 20px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.sheet__strip::-webkit-scrollbar, .reel__strip::-webkit-scrollbar, .quotes__row::-webkit-scrollbar { display: none; }
.is-grabbing { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.is-grabbing * { pointer-events: none; }
.sheet__frame {
  position: relative; flex: none; height: clamp(220px, 30vw, 380px); scroll-snap-align: start;
  padding: 10px 10px 32px; background: var(--bg-3); border-radius: 2px;
  transition: transform .5s var(--ease-out);
}
.sheet__frame img { height: 100%; width: auto; max-width: none; border-radius: 1px; }
.sheet__frame:hover { transform: translateY(-6px) rotate(-.6deg); }
.sheet__no { position: absolute; inset-inline-start: 12px; bottom: 8px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet__no::before { content: "▸ "; color: var(--accent); }

/* ---------- services: cards, each backed by real work where it exists ---------- */
.services { padding: clamp(80px, 10vw, 150px) 0; }
.svc {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.svc__card a {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; height: 100%;
  padding: clamp(22px, 2.4vw, 32px); background: var(--bg); position: relative; isolation: isolate;
  transition: background .4s var(--ease-out);
}
.svc__card a:hover { background: var(--bg-2); }
.svc__visual { position: relative; height: clamp(130px, 12vw, 170px); margin-bottom: 18px; }
.svc__icon { position: absolute; inset-inline-start: 0; bottom: 0; width: 64px; height: 64px; object-fit: contain; z-index: 2; transition: transform .5s var(--ease-out); }
.svc__card a:hover .svc__icon { transform: rotate(-8deg) scale(1.08); }
/* up to three real projects fanned like prints behind the icon */
.svc__shot {
  position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7); outline: 4px solid var(--bg-3);
  transition: transform .6s var(--ease-out);
}
.svc__shot:nth-child(1) { transform: rotate(6deg); z-index: 1; }
.svc__shot:nth-child(2) { transform: translateX(-34%) rotate(-4deg); }
.svc__shot:nth-child(3) { transform: translateX(-62%) rotate(-11deg); z-index: -1; }
[dir="rtl"] .svc__shot:nth-child(2) { transform: translateX(34%) rotate(4deg); }
[dir="rtl"] .svc__shot:nth-child(3) { transform: translateX(62%) rotate(11deg); }
.svc__card a:hover .svc__shot:nth-child(1) { transform: rotate(9deg) translateY(-6px); }
.svc__card a:hover .svc__shot:nth-child(2) { transform: translateX(-44%) rotate(-6deg); }
.svc__card a:hover .svc__shot:nth-child(3) { transform: translateX(-82%) rotate(-14deg); }
[dir="rtl"] .svc__card a:hover .svc__shot:nth-child(2) { transform: translateX(44%) rotate(6deg); }
[dir="rtl"] .svc__card a:hover .svc__shot:nth-child(3) { transform: translateX(82%) rotate(14deg); }
.svc__card:not(.has-work) .svc__visual { height: 64px; }
.svc__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; text-transform: uppercase; }
[dir="rtl"] .svc__title { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.3; text-transform: none; }
.svc__text { color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 40ch; }
.svc__go { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--accent); }
.svc__go::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline-start: 10px; vertical-align: middle; background: currentColor; transition: width .4s var(--ease-out); }
.svc__card a:hover .svc__go::after { width: 34px; }
@media (max-width: 980px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .has-work .svc__visual { height: 120px; }
}

/* ---------- testimonials ---------- */
.quotes { padding: clamp(60px, 8vw, 120px) 0; }
.quote {
  flex: none; width: min(420px, 84vw); margin: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
}
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 3.4rem; line-height: .6; color: var(--accent); margin-bottom: 10px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img, .quote__initial { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--bg-3); font-weight: 600; }
.quote small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- contact ---------- */
.contact {
  max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start;
}
.contact__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .95; }
[dir="rtl"] .contact__title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.2; }
.contact__intro > p { color: var(--muted); margin-top: 20px; max-width: 38ch; }
.contact__alt a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field > span:first-child { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 10px 0;
  transition: border-color .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 9px 55%, 4px 55%; }
.field option { background: var(--bg); color: var(--fg); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: #ff6b5e; }
.field__phone { display: grid; grid-template-columns: 96px 1fr; gap: 14px; direction: ltr; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: .92rem; color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff8a7e; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: clamp(60px, 9vw, 130px) var(--gutter) 28px; background: var(--bg-2); }
.ftr__cta, .ftr__grid, .ftr__base { max-width: var(--max); margin-inline: auto; }
.ftr__kicker { color: var(--muted); }
.ftr__big {
  display: flex; align-items: center; gap: .2em; margin-top: 10px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 10rem); line-height: .9; transition: color .3s;
}
[dir="rtl"] .ftr__big { font-weight: 700; font-size: clamp(2.6rem, 8vw, 7.4rem); line-height: 1.15; }
.ftr__big svg { width: .7em; height: .7em; flex: none; transition: transform .6s var(--ease-out); }
[dir="rtl"] .ftr__big svg { transform: scaleX(-1); }
.ftr__big:hover { color: var(--accent); }
.ftr__big:hover svg { transform: rotate(45deg); }
[dir="rtl"] .ftr__big:hover svg { transform: scaleX(-1) rotate(45deg); }
.ftr__desc { color: var(--muted); max-width: 52ch; margin-top: 18px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-top: clamp(56px, 8vw, 100px); padding-top: 28px; border-top: 1px solid var(--line); }
.ftr__label { color: var(--muted); font-size: .82rem; margin: 0 0 8px; }
.ftr__label:not(:first-child) { margin-top: 22px; }
.ftr__mail { font-size: clamp(1rem, 1.6vw, 1.3rem); border-bottom: 1px solid var(--accent); overflow-wrap: anywhere; }
.ftr ul li { padding: 3px 0; }
.ftr ul a { transition: color .2s; }
.ftr ul a:hover { color: var(--accent); }
.ftr__base { display: flex; justify-content: space-between; margin-top: 56px; color: var(--muted); font-size: .82rem; }
.ftr__top:hover { color: var(--fg); }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .4s var(--ease-out); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
body:has(.ai-chat) .wa-float { bottom: 84px; }
/* floating buttons: same size, same edge, stacked; they stay on the right in both languages */
.wa-float, html .ai-chat { inset-inline-end: auto; right: 20px; }
html .ai-chat { bottom: 20px; }
html .ai-chat__toggle { width: 52px; height: 52px; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .4s var(--ease-out); }
html .ai-chat__toggle:hover { transform: scale(1.08); }
html .ai-chat__send { display: grid; place-items: center; }
[dir="rtl"] .ai-chat__send svg { transform: scaleX(-1); }
@media (max-width: 520px) { .wa-float, html .ai-chat { right: 14px; } html .ai-chat { bottom: 14px; } body:has(.ai-chat) .wa-float { bottom: 76px; } html .ai-chat__toggle { width: 52px; height: 52px; } }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-pad { height: clamp(80px, 10vw, 120px); }
.page-head { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: clamp(130px, 16vw, 210px) var(--gutter) clamp(40px, 6vw, 72px); }
.page-head__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4rem, 15vw, 14rem); line-height: .82; letter-spacing: -.01em; }
.page-head--resume .page-head__title { font-size: clamp(2.8rem, 7.5vw, 7.4rem); line-height: .9; max-width: 14ch; }
[dir="rtl"] .page-head__title { font-weight: 700; font-size: clamp(3rem, 10vw, 8rem); line-height: 1.1; }
[dir="rtl"] .page-head--resume .page-head__title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.25; }
.page-head__lede { max-width: 52ch; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); margin-top: 24px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
[data-split] .ch { display: inline-block; }
.js-motion [data-split] .ch { opacity: 0; transform: translateY(40%) rotate(4deg); transition: opacity .7s var(--ease), transform .9s var(--ease-out); transition-delay: calc(var(--i) * 28ms); }
.is-ready [data-split] .ch { opacity: 1; transform: none; }

/* highlights reel */
.reel { padding-bottom: clamp(40px, 6vw, 80px); }
.reel__item { position: relative; flex: none; height: clamp(240px, 34vw, 460px); aspect-ratio: var(--ratio, 1.6); overflow: hidden; border-radius: var(--r); scroll-snap-align: start; background: var(--bg-3); }
.reel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.reel__item:hover img { transform: scale(1.05); }
.reel__cap { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .5s var(--ease-out); }
.reel__item:hover .reel__cap { opacity: 1; transform: none; }

/* filters */
.gallery-sec { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 120px); scroll-margin-top: 90px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); position: sticky; top: 78px; z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.filters__chip { padding: .6em 1.15em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; transition: background .25s, color .25s, border-color .25s; }
.filters__chip:hover { border-color: var(--fg); }
.filters__chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* project grid with print crop marks */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 28px); grid-auto-flow: dense; }
.card--wide { grid-column: span 2; }
.card--tall .card__media { aspect-ratio: 3 / 4.2; }
.card__link { display: block; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--bg-3); }
.card--wide .card__media { aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .5s; }
.card__link:hover .card__media img { transform: scale(1.06); }
.crop { position: absolute; inset: 14px; pointer-events: none; opacity: 0; transition: opacity .3s, inset .5s var(--ease-out); }
.crop i { position: absolute; width: 18px; height: 18px; border-color: #fff; border-style: solid; border-width: 0; mix-blend-mode: difference; }
.crop i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.card__link:hover .crop { opacity: 1; inset: 22px; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.card__title { font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 500; line-height: 1.3; }
.card__cat { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.card__excerpt { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; max-width: 52ch; }
.js-motion .card { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.js-motion .card.is-in { opacity: 1; transform: none; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .card--wide { grid-column: auto; } .card--wide .card__media, .card--tall .card__media { aspect-ratio: 4 / 3; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: clamp(40px, 6vw, 72px); }
.pager__btn { padding: .7em 1.3em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; }
a.pager__btn:hover { background: var(--fg); color: var(--bg); }
.pager__btn.is-off { opacity: .35; }
.pager__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 60px 0; display: grid; gap: 18px; justify-items: start; color: var(--muted); }

/* ---------- case study ---------- */
.case__head { max-width: var(--max); margin: 0 auto; padding: clamp(120px, 14vw, 180px) var(--gutter) clamp(32px, 4vw, 56px); }
.case__back { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 28px; transition: color .2s; }
.case__back:hover { color: var(--accent); }
.case__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 8rem); line-height: .9; max-width: 16ch; }
[dir="rtl"] .case__title { font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.25; }
.case__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: clamp(32px, 4vw, 56px) 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.case__meta dt { color: var(--muted); font-size: .8rem; }
.case__meta dd { margin: 4px 0 0; }
.case__meta a { border-bottom: 1px solid var(--accent); }
.case__lede { font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.45; max-width: 40ch; margin-top: clamp(28px, 4vw, 48px); }
.case__cover { margin: 0 auto; padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); }
.case__cover button { display: block; width: 100%; overflow: hidden; border-radius: var(--r); }
.case__cover img { width: 100%; }
.js-motion .case__cover[data-grow] button { clip-path: inset(0 var(--inset, 6%) round var(--r)); transition: clip-path .1s linear; }
.case__body { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 100px) var(--gutter); }
.case__text { max-width: 68ch; margin-inline: auto; }
.case__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 48px; }
.case__gallery button:first-child { grid-column: 1 / -1; }
.case__gallery img { width: 100%; border-radius: 2px; }
.case__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 48px; }
.case__brief { max-width: 900px; margin: 0 auto clamp(60px, 8vw, 110px); padding: clamp(32px, 5vw, 64px) var(--gutter); text-align: center; border-block: 1px solid var(--line); }
.case__brief-kicker { color: var(--accent); }
.case__brief h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; font-weight: 500; margin: 12px auto 16px; max-width: 30ch; }
.case__brief p { color: var(--muted); max-width: 56ch; margin: 0 auto 24px; }
.next { position: relative; display: block; overflow: hidden; isolation: isolate; padding: clamp(60px, 10vw, 140px) var(--gutter); background: var(--bg-2); }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .18; transform: scale(1.1); transition: opacity .6s, transform 1.4s var(--ease-out); }
.next:hover img { opacity: .42; transform: scale(1); }
.next__label { display: block; color: var(--muted); max-width: var(--max); margin: 0 auto; }
.next__title { display: block; max-width: var(--max); margin: 8px auto 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 7rem); line-height: .92; }
[dir="rtl"] .next__title { font-weight: 700; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.25; }
.more { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); }
.more__title { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* content blocks */
.blocks { display: grid; gap: clamp(28px, 4vw, 56px); }
.blk { margin-inline: auto; width: 100%; }
.blk.w-narrow { max-width: 640px; } .blk.w-medium { max-width: 880px; } .blk.w-wide { max-width: 1160px; }
.blk.a-center { text-align: center; } .blk.a-end { text-align: end; }
.blk__h { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 500; margin-bottom: 16px; }
.blk--text.s-highlight { padding: clamp(24px, 4vw, 44px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.blk--text.s-quote .prose { font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.4; }
.blk button { display: block; width: 100%; }
.blk--image img, .blk__grid img, .blk--split img { width: 100%; border-radius: 2px; }
.blk--image.is-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.blk--image figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.blk__grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 16px; }
.cols-1 .blk__grid { --cols: 1; } .cols-3 .blk__grid { --cols: 3; } .cols-4 .blk__grid { --cols: 4; }
.g-none .blk__grid { gap: 0; } .g-small .blk__grid { gap: 8px; } .g-large .blk__grid { gap: 32px; }
.r-square .blk__grid img { aspect-ratio: 1; object-fit: cover; } .r-portrait .blk__grid img { aspect-ratio: 3 / 4; object-fit: cover; } .r-landscape .blk__grid img { aspect-ratio: 16 / 10; object-fit: cover; }
.blk--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1160px; }
.blk--split.split-image_wide { grid-template-columns: 1.5fr 1fr; } .blk--split.split-text_wide { grid-template-columns: 1fr 1.5fr; }
.blk--split.is-reversed > button { order: 2; }
.blk--spacer.sp-small { height: 16px; } .blk--spacer.sp-medium { height: 48px; } .blk--spacer.sp-large { height: 96px; }
@media (max-width: 760px) { .blk__grid { --cols: 1 !important; grid-template-columns: 1fr; } .cols-3 .blk__grid, .cols-4 .blk__grid { grid-template-columns: 1fr 1fr; } .blk--split { grid-template-columns: 1fr !important; } .blk--split.is-reversed > button { order: 0; } .case__gallery { grid-template-columns: 1fr; } }
.prose { line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose a { border-bottom: 1px solid var(--accent); }
.prose img { border-radius: 2px; }

/* ---------- resume ---------- */
.timeline { max-width: var(--max); margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--gutter) clamp(60px, 8vw, 100px); }
.timeline__h { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 20px; }
.tl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: clamp(16px, 4vw, 64px); padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__when { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .35em; }
.tl h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; line-height: 1.15; }
.tl__role { color: var(--fg); opacity: .8; margin: 6px 0 10px; }
.tl__body > p:last-child:not(.tl__role) { color: var(--muted); max-width: 64ch; }
.js-motion .tl[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.js-motion .tl.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .tl { grid-template-columns: 1fr; gap: 6px; } }
.resume-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.resume-grid__sub { font-size: .9rem; font-weight: 500; color: var(--muted); margin: 32px 0 12px; }
.plain li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.plain li span { color: var(--muted); text-align: end; }
.plain strong { font-weight: 500; }
.resume-grid__about { margin-top: 32px; color: var(--muted); }
@media (max-width: 760px) { .resume-grid { grid-template-columns: 1fr; } }

/* ---------- legacy design-process component, re-skinned ---------- */
.design-process { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 120px) var(--gutter); }
.design-process__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.design-process__head span { color: var(--accent); font-size: .9rem; }
.design-process__head h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .95; margin: 8px 0 14px; }
[dir="rtl"] .design-process__head h2 { line-height: 1.25; font-size: clamp(2rem, 4vw, 3.4rem); }
.design-process__head p { color: var(--muted); }
.design-process__map { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.design-process__step { background: var(--bg); padding: 24px; display: grid; gap: 14px; align-content: start; transition: background .3s; }
.design-process__step:hover { background: var(--bg-2); }
.design-process__node { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.design-process__node span { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--fg); }
.design-process__node i { display: none; }
.design-process__card small { display: none; }
.design-process__card h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: 6px; }
.design-process__card p { color: var(--muted); font-size: .92rem; }
.design-process__output { margin-top: 14px; font-size: .84rem; color: var(--accent); }
.design-process__output i { display: none; }
.design-process__output::before { content: "↳ "; }

/* ---------- custom admin sections ---------- */
.custom { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.custom h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 500; line-height: 1.15; margin-bottom: 18px; }
.custom .btn { margin-top: 24px; }
.custom img { border-radius: var(--r); }
@media (max-width: 760px) { .custom { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 10, 8, .94); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; display: grid; gap: 10px; justify-items: center; }
.lightbox__figure img { max-width: 92vw; max-height: 82vh; width: auto; object-fit: contain; animation: lb-img .5s var(--ease-out); }
@keyframes lb-img { from { transform: scale(.94); opacity: 0; } }
.lightbox__figure figcaption { font-size: .85rem; opacity: .7; }
.lightbox__close { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }
.lightbox__nav[hidden] { display: none; }

/* ---------- scroll reveal (generic, used sparingly) ---------- */
.js-motion .sec-head { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.js-motion .sec-head.is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

/* ==========================================================================
   SECONDARY PAGES — faq, reviews, journal, article, brief, content
   ========================================================================== */
.page-head--compact .page-head__title { font-size: clamp(3.4rem, 11vw, 10rem); }
[dir="rtl"] .page-head--compact .page-head__title { font-size: clamp(2.8rem, 8vw, 6.4rem); }
.qa, .reviews, .journal, .media, .article, .watch { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 120px); }
.qa__empty { color: var(--muted); padding: 40px 0; }
.sec-head__note { color: var(--muted); margin-top: 6px; }

/* FAQ accordion */
.qa__list { max-width: 920px; border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.4vw, 28px) 0; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 500; transition: color .2s; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary:hover { color: var(--accent); }
.qa__item summary i { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .35s var(--ease-out), background .25s, border-color .25s; }
.qa__item summary i::before, .qa__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.qa__item summary i::after { rotate: 90deg; transition: rotate .35s var(--ease-out); }
.qa__item[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.qa__item[open] summary i::after { rotate: 0deg; }
.qa__answer { max-width: 70ch; padding: 0 0 28px; color: var(--muted); line-height: 1.85; }
.qa__answer .btn { margin-top: 16px; }

/* Reviews */
.reviews__grid { columns: 3 320px; column-gap: 18px; }
.reviews__grid .quote { break-inside: avoid; width: auto; margin: 0 0 18px; }
.quote__stars { color: var(--accent); letter-spacing: .12em; font-size: .95rem; }
.quote__stars i { font-style: normal; color: var(--line-strong); }
.quote--sm { width: auto; padding: 20px; }
.quote--sm blockquote { font-size: 1rem; }
.quote--sm blockquote::before { display: none; }

/* Journal */
.journal--popular { padding-top: 0; }
.post { display: grid; gap: 12px; align-content: start; }
.post__img { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--bg-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.05); }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.post__meta a:hover { color: var(--accent); }
.post__title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.35; transition: color .2s; }
.post:hover .post__title { color: var(--accent); }
.post__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.post--lead { grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); }
.post--lead .post__img { aspect-ratio: 16 / 11; }
.post--lead .post__body { display: grid; gap: 14px; }
.post--lead .post__title { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 28px); }
.popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; counter-reset: pop; }
.popular a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, background .25s; }
.popular a:hover { border-color: var(--accent); background: var(--bg-2); }
.popular img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.popular small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.popular strong { font-weight: 500; line-height: 1.4; }
@media (max-width: 760px) { .post--lead { grid-template-columns: 1fr; } }

/* Article */
.article { padding-top: clamp(110px, 13vw, 170px); }
.article__head { max-width: 860px; margin: 0 auto clamp(28px, 4vw, 48px); }
.article__title { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; font-weight: 600; margin-top: 14px; letter-spacing: -.01em; }
.article__cover { margin: 0 0 clamp(36px, 5vw, 64px); overflow: hidden; border-radius: 18px; }
.article__cover img { width: 100%; max-height: 720px; object-fit: cover; }
.article__body { max-width: 760px; margin: 0 auto; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.95; }
.article__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; margin-top: 2em; }
.article__body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article__body ul, .article__body ol { padding-inline-start: 1.3em; }
.article__body li + li { margin-top: .5em; }
.article__body img { width: 100%; height: auto; border-radius: 12px; }
.article__body figure { margin: 2em 0; }
.article__body figcaption { color: var(--muted); font-size: .85rem; margin-top: .6em; }
.article__body blockquote, .article__body .article-note { margin: 1.6em 0; padding: 1.1em 1.4em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; font-size: 1.06em; }
.article__body .article-explainer { padding: 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.article__body .article-references { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.article__body .attachment__name, .article__body .attachment__size { display: none !important; }
.article__foot { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article__foot span { color: var(--muted); margin-inline-end: 8px; }
.article__foot a { padding: .5em 1.1em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .88rem; transition: background .25s, color .25s; }
.article__foot a:hover { background: var(--fg); color: var(--bg); }
.brief-cta { max-width: var(--max); margin: 0 auto clamp(60px, 8vw, 110px); padding: clamp(32px, 5vw, 64px) var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brief-cta .contact__title { max-width: 22ch; }

/* Content: reels / long videos / designs */
.media__group { margin-bottom: clamp(48px, 6vw, 88px); }
.media__group[hidden] { display: none; }
.media__row { display: grid; gap: 18px; }
.media__group--long .media__row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.media__group--design .media__row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.media__group--reel .media__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.media__group--reel .media__row::-webkit-scrollbar { display: none; }
.clip { display: grid; gap: 10px; align-content: start; }
.clip[hidden] { display: none; }
.clip--reel { flex: 0 0 clamp(170px, 19vw, 240px); scroll-snap-align: start; }
.clip__media { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--bg-2); aspect-ratio: 16 / 9; }
.clip--reel .clip__media { aspect-ratio: 9 / 16; border-radius: 20px; }
.clip--design .clip__media { aspect-ratio: 4 / 5; }
.clip__media img, .clip__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; transition: transform .8s var(--ease-out); }
.clip:hover .clip__media img { transform: scale(1.05); }
.clip__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 8px rgba(var(--glow), .2); transition: scale .3s var(--ease-out); }
.clip__play svg { width: 22px; margin-inline-start: 3px; }
.clip:hover .clip__play { scale: 1.12; }
.clip__tag, .clip__count { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; background: rgba(var(--shade), .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.clip__tag { inset-inline-start: 10px; }
.clip__count { inset-inline-end: 10px; }
.clip__title { font-weight: 500; line-height: 1.4; transition: color .2s; }
.clip:hover .clip__title { color: var(--accent); }
button.filters__chip { background: none; color: inherit; font: inherit; cursor: pointer; }

/* Content detail */
.watch { padding-top: clamp(110px, 13vw, 170px); }
.watch__head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 44px); }
.player { position: relative; overflow: hidden; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; }
.player--reel, .player--social { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch__gallery { display: flex; gap: 14px; }
.watch__slide { flex: 0 0 min(78vw, 520px); padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: center; }
.watch__slide img, .watch__single img { width: 100%; border-radius: 16px; }
.watch__single { display: block; max-width: 900px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.comments__list { display: grid; gap: 12px; margin-top: 22px; max-height: 520px; overflow: auto; }

/* Brief wizard (keeps the original form logic, new skin) */
.brief-shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 8vw, 120px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.brief-progress { position: sticky; top: 100px; display: grid; gap: 4px; }
.brief-progress button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; text-align: start; cursor: pointer; transition: background .25s, color .25s; }
.brief-progress button b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: .85rem; font-weight: 600; transition: background .25s, border-color .25s, color .25s; }
.brief-progress button.active { color: var(--fg); background: var(--bg-2); }
.brief-progress button.active b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.brief-progress button.done b { border-color: var(--accent); color: var(--accent); }
.brief-wizard { min-width: 0; }
.brief-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.brief-step.active { display: block; animation: stepIn .5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; translate: 0 14px; } }
.brief-step legend { padding: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
[dir="rtl"] .brief-step legend { font-family: var(--f-body); text-transform: none; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.3; }
.brief-step > p { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; margin-top: 30px; }
.brief-grid .wide { grid-column: 1 / -1; }
.brief-grid > label, .brief-checks { display: grid; gap: 6px; }
.brief-grid > label > span:first-child, .brief-checks > span { font-size: .85rem; color: var(--muted); }
.brief-grid input:not([type="checkbox"]):not([type="radio"]), .brief-grid select, .brief-grid textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1.02rem; transition: border-color .25s;
}
.brief-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-repeat: no-repeat; }
[dir="rtl"] .brief-grid select { background-position: 9px 55%, 4px 55%; }
.brief-grid option { background: var(--bg); color: var(--fg); }
.brief-grid textarea { resize: vertical; }
.brief-grid input:focus, .brief-grid select:focus, .brief-grid textarea:focus { outline: none; border-bottom-color: var(--accent); }
.brief-grid [hidden] { display: none !important; }
.brief-checks { grid-template-columns: 1fr; }
.brief-checks > span { margin-bottom: 4px; }
.brief-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-checks > span { flex-basis: 100%; }
.brief-checks label { position: relative; cursor: pointer; }
.brief-checks input { position: absolute; opacity: 0; pointer-events: none; }
.brief-checks label span { display: inline-block; padding: .55em 1.05em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.brief-checks input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.brief-checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.brief-reference-email { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); }
.brief-reference-email a { color: var(--accent); }
.logo-choice { margin-top: 36px; }
.logo-choice[hidden] { display: none; }
.logo-choice h3 { font-size: 1.3rem; font-weight: 600; }
.logo-choice p { color: var(--muted); margin-top: 6px; }
.logo-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.logo-type-grid label { position: relative; display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.logo-type-grid input { position: absolute; opacity: 0; }
.logo-type-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: #fff; }
.logo-type-grid span { font-size: .88rem; text-align: center; }
.logo-type-grid label:has(input:checked) { border-color: var(--accent); background: var(--bg-2); }
.brief-review { display: grid; gap: 4px; margin-top: 30px; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.brief-review span { color: var(--muted); }
.brief-alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid #ff8a7e; color: #ff8a7e; }
.brief-alert[hidden] { display: none; }
.brief-actions { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.brief-actions [data-step-label] { margin-inline-end: auto; color: var(--muted); font-variant-numeric: tabular-nums; order: -1; }
.brief-actions button { display: inline-flex; align-items: center; padding: .85em 1.6em; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; border: 1px solid var(--line-strong); background: none; color: var(--fg); transition: background .25s, color .25s, border-color .25s; }
.brief-actions button[hidden] { display: none; }
.brief-actions .brief-next, .brief-actions .brief-submit { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.brief-actions button:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.brief-actions button:disabled { opacity: .5; cursor: wait; }
.brief-success { text-align: center; padding: clamp(40px, 8vw, 90px) 0; display: grid; justify-items: center; gap: 12px; }
.brief-success b { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.6rem; }
.brief-success h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.brief-success a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (max-width: 860px) {
  .brief-shell { grid-template-columns: 1fr; }
  .brief-progress { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .brief-progress button { flex: none; }
  .brief-progress button:not(.active) span { display: none; }
  .brief-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; }
}

.work-deck { padding: 0 var(--gutter) clamp(60px, 8vw, 110px); }
.page-head .hero__glow { inset-inline-end: -20%; top: 30%; width: min(700px, 110vw); }
/* phone: two-column project grid with rounded tiles */
.card__media { border-radius: 14px; }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card--wide { grid-column: 1 / -1; }
  .card__meta { flex-direction: column; gap: 2px; margin-top: 10px; }
  .card__title { font-size: .95rem; }
  .card__excerpt, .crop { display: none; }
  .filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters__chip { white-space: nowrap; }
}
.card__link:active .card__media img { transform: scale(1.04); }
.journal .filters, .media .filters { position: static; background: none; }
.post__title, .post__excerpt, .clip__title, .article__title, .article__body { unicode-bidi: plaintext; }
.simple__head .hero__role { position: static; margin: 0 0 18px; }


/* ================= home: selected work (bento) ================= */
.work { padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 6vw, 80px); }
.work__filters { max-width: var(--max); margin: 0 auto 22px; padding-inline: var(--gutter); position: static; background: none; }
.filters__chip small { margin-inline-start: 4px; opacity: .6; font-size: .8em; font-variant-numeric: tabular-nums; }
.work__grid {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 270px);
  grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px);
}
.tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--bg-3); isolation: isolate; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 45%, rgba(5, 13, 10, .88)); opacity: 0; transition: opacity .45s; }
.tile__info { position: absolute; inset-inline: 16px; bottom: 14px; display: grid; gap: 2px; color: #eef5f1; transform: translateY(12px); opacity: 0; transition: opacity .4s, transform .6s var(--ease-out); }
.tile__cat { font-size: .74rem; color: var(--accent-2); }
.tile__title { font-weight: 600; font-size: clamp(.95rem, 1.2vw, 1.15rem); line-height: 1.3; }
.tile--big .tile__title { font-size: clamp(1.15rem, 1.8vw, 1.6rem); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile__info, .tile:focus-visible .tile__info { opacity: 1; transform: none; }
.tile.is-out { display: none; }
.tile.is-in-filter { animation: tile-in .55s var(--ease-out) both; }
@keyframes tile-in { from { opacity: 0; scale: .96; } }
@media (hover: none) {
  .tile::after { opacity: 1; }
  .tile__info { opacity: 1; transform: none; }
}
.work__more { max-width: var(--max); margin: clamp(24px, 3vw, 40px) auto 0; padding-inline: var(--gutter); display: flex; justify-content: center; }
.work__more small { opacity: .7; margin-inline-start: 4px; }
@media (max-width: 760px) {
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .tile__info { inset-inline: 12px; bottom: 10px; }
  .tile__title { font-size: .86rem; }
  .tile:not(.tile--big):not(.tile--wide) .tile__cat { display: none; }
}

/* ================= home: logo wall ================= */
.logos { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter); }
.logos__title { margin-bottom: clamp(18px, 2.4vw, 28px); color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.logos__title b { color: var(--fg); font-family: var(--f-display); font-size: 1.6em; font-weight: 700; margin-inline-end: 2px; }
.logos__wall { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.logos__wall li { position: relative; aspect-ratio: 1; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background .35s; }
.logos__wall li:hover { background: var(--bg-2); }
.logos__wall img { position: absolute; inset: 22%; width: 56%; height: 56%; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; transition: filter .35s, opacity .35s, transform .5s var(--ease-out); }
[data-theme="light"] .logos__wall img { filter: brightness(0); }
.logos__wall li:hover img { opacity: 1; transform: scale(1.06); }
@media (max-width: 1100px) { .logos__wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos__wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .logos__wall img { inset: 18%; width: 64%; height: 64%; } }

/* ================= home: process, drawn as a pen-tool path with four anchors ================= */
.process { padding: clamp(70px, 9vw, 130px) 0; background: var(--bg-2); }
.process__steps {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px);
  position: relative; counter-reset: step;
}
.step { position: relative; padding-top: 64px; }
/* the path segment from this anchor to the next */
.step::before { content: ""; position: absolute; top: 15px; inset-inline-start: 34px; inset-inline-end: calc(clamp(18px, 2.4vw, 36px) * -1); height: 1px; background: var(--line-strong); }
.step:last-child::before { inset-inline-end: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
[dir="rtl"] .step:last-child::before { background: linear-gradient(-90deg, var(--line-strong), transparent); }
.step__no {
  position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center;
  width: 31px; height: 31px; border: 1.5px solid var(--accent); background: var(--bg-2);
  font: 700 .95rem/1 var(--f-display); color: var(--accent);
}
.step:first-child .step__no { background: var(--accent); color: var(--on-accent); }
.step__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1; text-transform: uppercase; margin-bottom: 12px; }
[dir="rtl"] .step__title { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.3; }
.step__text { color: var(--muted); max-width: 32ch; }
.process__cta { max-width: var(--max); margin: clamp(32px, 4vw, 56px) auto 0; padding-inline: var(--gutter); }
@media (max-width: 860px) {
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 34px; padding-inline-start: 56px; }
  .step::before { top: 31px; bottom: 0; inset-inline-start: 15px; inset-inline-end: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step__title { margin-bottom: 6px; padding-top: 2px; }
}

/* ================= 404: a Photoshop-like workspace, the page is a missing linked layer ================= */
.lost { min-height: calc(100svh - 80px); display: grid; place-items: center; padding: 110px var(--gutter) 70px; }
.psx {
  --ui: #2b2b2b; --ui-2: #323232; --ui-3: #3c3c3c; --ui-line: #1e1e1e; --ui-text: #d6d6d6; --ui-muted: #8f8f8f; --sel: #2d8ceb;
  width: min(1080px, 100%); border-radius: 12px; overflow: hidden; background: var(--ui); color: var(--ui-text);
  border: 1px solid #000; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 120px -40px rgba(var(--glow), .35);
  font-size: .78rem;
}
.psx__title { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #1f1f1f; border-bottom: 1px solid var(--ui-line); }
.psx__dots { display: flex; gap: 6px; }
.psx__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.psx__dots i:nth-child(2) { background: #febc2e; }
.psx__dots i:nth-child(3) { background: #28c840; }
.psx__ps { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: #001e36; color: #31a8ff; border: 1px solid #31a8ff; font-weight: 700; font-size: .62rem; }
.psx__file { color: var(--ui-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx__menu { display: flex; gap: 16px; padding: 6px 14px; background: var(--ui-2); border-bottom: 1px solid var(--ui-line); color: var(--ui-text); overflow: hidden; white-space: nowrap; }
.psx__body { display: grid; grid-template-columns: 40px minmax(0, 1fr) 220px; min-height: clamp(380px, 52vh, 520px); }
.psx__tools { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; background: var(--ui-2); border-inline-end: 1px solid var(--ui-line); }
.psx__tools > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; }
.psx__tools > span.is-on { background: #505050; }
.psx__tools svg { width: 16px; height: 16px; fill: none; stroke: var(--ui-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.psx__colors { position: relative; margin-top: auto; width: 28px; height: 28px; }
.psx__colors i { position: absolute; width: 16px; height: 16px; border: 1px solid #000; outline: 1px solid #777; }
.psx__colors i:first-child { top: 0; left: 0; z-index: 1; background: var(--accent); }
.psx__colors i:last-child { bottom: 0; right: 0; background: #050d0a; }
.psx__canvas { position: relative; display: grid; place-items: center; padding: 34px 30px 30px 40px; background: #1a1a1a; overflow: hidden; }
.psx__ruler { position: absolute; background: var(--ui-2); }
.psx__ruler--x { top: 0; left: 0; right: 0; height: 16px; background-image: repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #888 0 1px, transparent 1px 50px); background-size: auto 5px, auto 9px; background-repeat: repeat-x; background-position: bottom, bottom; border-bottom: 1px solid var(--ui-line); }
.psx__ruler--y { top: 0; left: 0; bottom: 0; width: 16px; background-image: repeating-linear-gradient(0deg, #666 0 1px, transparent 1px 10px), repeating-linear-gradient(0deg, #888 0 1px, transparent 1px 50px); background-size: 5px auto, 9px auto; background-repeat: repeat-y; background-position: right, right; border-right: 1px solid var(--ui-line); }
/* transparent artboard */
.psx__board {
  position: relative; display: grid; place-items: end center; padding-bottom: 6%; width: 100%; height: 100%; min-height: 300px;
  background: repeating-conic-gradient(#e6e6e6 0 25%, #ffffff 0 50%) 0 0 / 18px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.psx__layer { position: absolute; inset: 7% 10% 46%; display: grid; place-items: center; border: 1px dashed var(--sel); }
.psx__404 { font: 900 clamp(6rem, 14vw, 11rem)/.8 "Big Shoulders Display", sans-serif; color: transparent; -webkit-text-stroke: 2px #00b867; user-select: none; }
.psx__layer i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1px solid var(--sel); }
.psx__layer i:nth-child(2) { left: -5px; top: -5px; } .psx__layer i:nth-child(3) { left: calc(50% - 5px); top: -5px; } .psx__layer i:nth-child(4) { right: -5px; top: -5px; }
.psx__layer i:nth-child(5) { right: -5px; top: calc(50% - 5px); } .psx__layer i:nth-child(6) { right: -5px; bottom: -5px; } .psx__layer i:nth-child(7) { left: calc(50% - 5px); bottom: -5px; }
.psx__layer i:nth-child(8) { left: -5px; bottom: -5px; } .psx__layer i:nth-child(9) { left: -5px; top: calc(50% - 5px); }
/* the app's warning dialog */
.psx__alert {
  position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 16px; width: min(460px, calc(100% - 24px));
  padding: 20px 22px; border-radius: 8px; background: var(--ui-3); color: var(--ui-text); border: 1px solid #555;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .7); font-size: .9rem; text-align: start;
}
.psx__alert-icon { width: 44px; height: 44px; }
.psx__alert-icon svg { width: 100%; height: 100%; }
.psx__alert-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.35; }
.psx__alert-text { margin: 0; color: #bdbdbd; line-height: 1.55; }
.psx__alert-text code { padding: 1px 5px; border-radius: 3px; background: #2b2b2b; border: 1px solid #555; color: #fff; font-size: .85em; display: inline-block; max-width: 100%; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx__alert-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.psx__btn { padding: 7px 16px; border-radius: 5px; border: 1px solid #6a6a6a; background: #4a4a4a; color: #fff; font-size: .85rem; transition: background .2s; }
.psx__btn:hover { background: #575757; }
.psx__btn--primary { background: var(--sel); border-color: var(--sel); }
.psx__btn--primary:hover { background: #4aa0f5; }
/* layers panel */
.psx__panel { display: flex; flex-direction: column; background: var(--ui-2); border-inline-start: 1px solid var(--ui-line); }
.psx__panel-head { display: flex; gap: 14px; padding: 8px 12px; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); }
.psx__panel-head b { color: var(--ui-text); font-weight: 600; }
.psx__layers { flex: 1; }
.psx__layers li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #262626; }
.psx__layers li:first-child { background: #4b4b4b; }
.psx__eye { color: var(--ui-muted); font-size: .7rem; }
.psx__thumb { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid #111; font-style: normal; font-size: .7rem; font-weight: 700; }
.psx__thumb--txt { background: #3a3a3a; color: #fff; }
.psx__thumb--broken { background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 8px 8px; color: #e5484d; }
.psx__thumb--home { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); }
.psx__thumb--work { background: linear-gradient(135deg, #ff9a00, #ff3366); }
.psx__thumb--bg { background: #050d0a; }
.psx__layers li span:last-of-type { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psx__layers li.is-missing span:last-of-type { color: #ff8a8a; text-decoration: line-through; }
.psx__layers small { color: var(--ui-muted); }
.psx__layers li.is-missing small { color: #febc2e; }
.psx__swatches { display: flex; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--ui-line); }
.psx__swatches i { width: 18px; height: 18px; background: var(--c); border: 1px solid #111; }
.psx__status { display: flex; gap: 20px; padding: 5px 12px; background: #1f1f1f; border-top: 1px solid var(--ui-line); color: var(--ui-muted); }
@media (max-width: 860px) {
  .psx__body { grid-template-columns: 34px minmax(0, 1fr); }
  .psx__panel { display: none; }
  .psx__tools > span { width: 24px; height: 24px; }
}
@media (max-width: 520px) {
  .lost { padding-top: 90px; }
  .psx__menu span:nth-child(n+5) { display: none; }
  .psx__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .psx__tools { display: none; }
  .psx__canvas { padding: 24px 12px 14px 24px; }
  .psx__board { min-height: 440px; padding-bottom: 14px; }
  .psx__layer { inset: 6% 6% auto; height: 34%; }
  .psx__404 { font-size: 6rem; }
  .psx__alert { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .psx__alert-icon { width: 36px; height: 36px; }
  .psx__alert-actions { justify-content: stretch; } .psx__btn { flex: 1; text-align: center; }
}

/* ================= portfolio: masonry wall, covers never cropped ================= */
.wall-sec { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(70px, 9vw, 130px); }
.wall__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(22px, 3vw, 36px); position: sticky; top: 70px; z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.wall__filters { margin: 0; position: static; padding: 0; background: none; }
.wall__count { margin: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.wall__count b { color: var(--fg); font-family: var(--f-display); font-size: 1.5em; font-weight: 700; margin-inline-end: 4px; }
/* no-JS fallback: CSS columns */
.wall { columns: 3 300px; column-gap: 22px; }
.wall .pcard { break-inside: avoid; margin-bottom: 22px; }
.wall .pcard.is-out { display: none; }
/* JS masonry: absolutely placed, so filtering and resizing glide */
.wall.is-laid { columns: auto; position: relative; transition: height .7s var(--ease-out); }
.wall.is-laid .pcard { position: absolute; top: 0; left: 0; margin: 0; display: block; transition: transform .8s var(--ease-out), opacity .5s, scale .5s var(--ease-out); }
.wall.is-laid .pcard.is-out { opacity: 0; scale: .85; pointer-events: none; }
.pcard { perspective: 900px; }
.pcard__inner {
  --rx: 0deg; --ry: 0deg;
  display: block; padding: 10px 10px 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}
.pcard__media { position: relative; display: block; border-radius: 11px; overflow: hidden; background: var(--bg-3); }
.pcard__media img { display: block; width: 100%; height: auto; transition: scale 1s var(--ease-out); }
.pcard__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 50% at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 70%); transition: opacity .4s; }
.pcard__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 4px 0; }
.pcard__title { font-weight: 600; font-size: clamp(.92rem, 1.05vw, 1.05rem); line-height: 1.35; }
.pcard__cat { flex: none; font-size: .74rem; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.pcard__inner:hover, .pcard__inner:focus-visible { border-color: rgba(var(--glow), .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 50px -20px rgba(var(--glow), .5); }
.pcard__inner:hover .pcard__media img { scale: 1.04; }
.pcard__inner:hover .pcard__glare { opacity: 1; }
.pcard__inner:hover .pcard__cat { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
/* entrance: each card settles in like a print laid on the table */
.js-motion .pcard__inner { opacity: 0; translate: 0 60px; rotate: -2.5deg; }
.js-motion .pcard:nth-child(even) .pcard__inner { rotate: 2.5deg; }
.js-motion .pcard.is-in .pcard__inner { opacity: 1; translate: 0 0; rotate: 0deg; transition: opacity .7s var(--ease) var(--delay, 0s), translate 1s var(--ease-out) var(--delay, 0s), rotate 1.1s var(--ease-out) var(--delay, 0s), transform .5s var(--ease-out), border-color .3s, box-shadow .5s; }
@media (max-width: 560px) {
  .wall { columns: 2; column-gap: 12px; }
  .pcard__inner { padding: 6px 6px 10px; border-radius: 14px; }
  .pcard__media { border-radius: 9px; }
  .pcard__meta { flex-direction: column; gap: 6px; padding: 8px 2px 0; }
  .pcard__title { font-size: .82rem; }
  .pcard__cat { font-size: .66rem; }
  .wall__bar { top: 60px; }
}
/* project titles are often English inside the Arabic page: let each follow its own direction */
.pcard__title, .tile__title, .tile__cat, .pcard__cat { unicode-bidi: plaintext; }

/* ================= portfolio: artboard canvas ================= */
.view-toggle { display: none; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); }
.has-board .view-toggle { display: inline-flex; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: .45em .95em; border-radius: 999px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; transition: background .25s, color .25s; }
.view-toggle button.is-on { background: var(--fg); color: var(--bg); }
.view-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.board-view { display: none; }
.has-board[data-view="canvas"] .board-view { display: block; }
.has-board[data-view="canvas"] .wall { display: none; }

.board-view {
  position: relative; height: min(78svh, 820px); overflow: hidden; border-radius: 22px; border: 1px solid var(--line-strong);
  background-color: #0b1511; background-image: radial-gradient(rgba(238, 245, 241, .13) 1.1px, transparent 1.3px); background-size: 24px 24px;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .55);
}
[data-theme="light"] .board-view { background-color: #e9efec; background-image: radial-gradient(rgba(7, 22, 15, .16) 1.1px, transparent 1.3px); }
.board-view:focus-visible { border-color: var(--accent); }
.board-view.is-grabbing { cursor: grabbing; }
.board-view__world { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.ab { position: absolute; display: block; width: 300px; transition: opacity .6s, filter .6s, translate .6s var(--ease-out); }
.ab.is-dim { opacity: .14; filter: grayscale(1); }
.ab__label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.ab__frame { position: relative; display: block; background: var(--bg-3); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9); outline: 1.5px solid transparent; outline-offset: 0; transition: outline-color .2s, box-shadow .4s; }
.ab__frame img { display: block; width: 100%; height: auto; pointer-events: none; }
.ab__cat { display: inline-block; margin-top: 10px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
/* selection state like a design app */
.ab__h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #2d8ceb; opacity: 0; transition: opacity .2s; }
.ab__h:nth-of-type(1) { left: -5px; top: -5px; } .ab__h:nth-of-type(2) { right: -5px; top: -5px; }
.ab__h:nth-of-type(3) { right: -5px; bottom: -5px; } .ab__h:nth-of-type(4) { left: -5px; bottom: -5px; }
.ab__size { position: absolute; left: 50%; bottom: -30px; translate: -50% 0; padding: 2px 8px; border-radius: 4px; background: #2d8ceb; color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.ab:hover .ab__frame, .ab:focus-visible .ab__frame { outline-color: #2d8ceb; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(var(--glow), .5); }
.ab:hover .ab__h, .ab:hover .ab__size, .ab:focus-visible .ab__h, .ab:focus-visible .ab__size { opacity: 1; }
.ab:hover .ab__label { color: #2d8ceb; }
.ab:not(.is-dim):hover { translate: 0 -6px; }
.board-view__tools {
  position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 12px; background: rgba(5, 13, 10, .8); border: 1px solid var(--line-strong); color: #eef5f1;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: default;
}
.board-view__tools button { min-width: 32px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: .95rem; cursor: pointer; }
.board-view__tools button:hover { background: rgba(255, 255, 255, .1); }
.board-view__tools [data-zoom-level] { min-width: 48px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; color: #94a89f; }
.board-view__hint { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(5, 13, 10, .8); border: 1px solid var(--line-strong); color: #94a89f; font-size: .8rem; pointer-events: none; transition: opacity .6s; }
.board-view.is-used .board-view__hint { opacity: 0; }
@media (max-width: 560px) {
  .board-view { height: 72svh; border-radius: 16px; margin-inline: calc(var(--gutter) * -1 + 6px); }
  .board-view__hint { left: 10px; right: auto; bottom: 58px; max-width: calc(100% - 20px); font-size: .74rem; }
  .board-view__tools { right: auto; left: 10px; bottom: 10px; }
  .view-toggle button { padding: .4em .7em; font-size: .78rem; }
}

/* ================= portfolio cards: justified rows, covers at their own shape ================= */
.xcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.xcards.is-justified { display: flex; flex-direction: column; gap: var(--xgap, 14px); }
.xrow { display: flex; gap: var(--xgap, 14px); height: var(--h); }
.xc { position: relative; min-width: 0; }
.xc.is-out { display: none; }
.is-justified .xc { flex: var(--r, 1) 1 0; height: 100%; transition: flex-grow .7s var(--ease-out), opacity .6s, filter .6s; }
.xc__in { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); }
.xc__in img { display: block; width: 100%; height: auto; }
.is-justified .xc__in img { height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.xc__in::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(3, 9, 6, .9)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.xc__cat { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 11px; border-radius: 999px; font-size: .74rem; color: #eef5f1; background: rgba(5, 13, 10, .6); border: 1px solid rgba(238, 245, 241, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; translate: 0 -6px; transition: opacity .4s, translate .5s var(--ease-out); }
.xc__title { position: absolute; z-index: 2; inset-inline: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: clamp(.95rem, 1.2vw, 1.15rem); line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); opacity: 0; translate: 0 12px; transition: opacity .4s, translate .6s var(--ease-out); }
.xc:hover .xc__in::after, .xc:hover .xc__cat, .xc:hover .xc__title, .xc:focus-within .xc__in::after, .xc:focus-within .xc__cat, .xc:focus-within .xc__title { opacity: 1; translate: 0 0; }
.xc:hover .xc__in { border-color: rgba(var(--glow), .6); }
/* the hovered card opens wider, its row-mates give way */
@media (hover: hover) and (min-width: 700px) {
  .xrow:hover .xc { flex-grow: calc(var(--r, 1) * .82); filter: brightness(.6) saturate(.8); }
  .xrow .xc:hover { flex-grow: calc(var(--r, 1) * 1.7); filter: none; }
  .xc:hover .xc__in img { transform: scale(1.03); }
}
/* touch screens: titles always visible */
@media (hover: none) {
  .xc__in::after, .xc__title { opacity: 1; translate: 0 0; }
}
/* entrance */
.js-motion .xc { opacity: 0; translate: 0 40px; }
.js-motion .xc.is-in { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease) var(--d, 0s), translate 1s var(--ease-out) var(--d, 0s), flex-grow .7s var(--ease-out), filter .6s; }
@media (max-width: 700px) {
  .xcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xc__in { border-radius: 10px; }
  .xc__cat { display: none; }
  .xc__title { inset-inline: 8px; bottom: 7px; font-size: .7rem; }
}

/* ── brief form v3: service cards, tap chips, boxed fields, progress bar ── */
.brief-bar { display: none; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.brief-bar i { display: block; height: 100%; width: 20%; background: var(--accent); transition: width .4s var(--ease-out); }
.brief-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 26px; }
.brief-cards label { position: relative; cursor: pointer; }
.brief-cards input { position: absolute; opacity: 0; pointer-events: none; }
.brief-cards label > span { display: grid; gap: 4px; height: 100%; padding: 16px 16px 15px; border: 1px solid var(--line-strong); border-radius: 14px; transition: border-color .2s, background .2s; }
.brief-cards b { font-weight: 600; font-size: 1.02rem; }
.brief-cards small { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.brief-cards label:hover > span { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.brief-cards input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1px var(--accent); }
.brief-cards input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.brief-grid { gap: 22px 18px; }
.brief-grid > label > span:first-child, .brief-checks > span { font-size: .92rem; color: var(--fg); font-weight: 500; }
.brief-grid input:not([type="checkbox"]):not([type="radio"]), .brief-grid select, .brief-grid textarea {
  padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); font-size: 1rem;
}
.brief-grid input:focus, .brief-grid select:focus, .brief-grid textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.brief-grid input::placeholder, .brief-grid textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.brief-checks label span { padding: .6em 1.1em; font-size: .92rem; }
.brief-checks label:hover span { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.brief-review dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 10px 0 0; }
.brief-review dt { color: var(--muted); font-size: .85rem; }
.brief-review dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .brief-bar { display: block; flex: 0 0 100%; }
  .brief-progress { flex-wrap: wrap; row-gap: 0; }
  .brief-progress button { padding: 6px 8px; }
  .brief-cards { grid-template-columns: 1fr 1fr; }
  .brief-actions { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 14px var(--gutter); padding-inline-end: 76px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
}
@media (max-width: 420px) { .brief-cards { grid-template-columns: 1fr; } }

/* ── contact form: same boxed fields as the brief ── */
.form { gap: 20px 16px; }
.field > span:first-child { font-size: .92rem; color: var(--fg); font-weight: 500; }
.field input, .field select, .field textarea { padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-2); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #ff6b5e; }
.field select { background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; padding-inline-end: 32px; }
[dir="rtl"] .field select { background-position: 16px 55%, 11px 55%; padding-inline: 32px 14px; }
.field__phone { gap: 10px; }
.field__phone select { direction: ltr; background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55% !important; padding-inline: 14px 30px !important; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ============ HOME v3: hero socials, crossing ribbons, partners ============ */
.hero__social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; margin-inline-start: 6px; align-self: center; }
.hero__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out); }
.hero__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

.xbands { position: relative; height: clamp(120px, 13vw, 170px); margin-block: clamp(8px, 2vw, 24px); overflow: hidden; overflow: clip; isolation: isolate; }
.xband { position: absolute; inset-inline: -6%; top: 50%; padding-block: clamp(10px, 1.2vw, 16px); white-space: nowrap; overflow: hidden; }
.xband--a { z-index: 2; background: var(--accent); color: var(--on-accent); transform: translateY(-62%) rotate(-3.2deg); box-shadow: 0 14px 40px rgba(var(--glow), .18); }
.xband--b { z-index: 1; background: var(--bg-3); color: var(--fg); border-block: 1px solid var(--line-strong); transform: translateY(-38%) rotate(2.6deg); }
.xband__track { display: flex; width: max-content; animation: xband-ltr 38s linear infinite; }
.xband--b .xband__track { animation-direction: reverse; animation-duration: 44s; }
[dir="rtl"] .xband__track { animation-name: xband-rtl; }
[dir="rtl"] .xband--a .xband__set span { font-family: var(--f-body); font-weight: 700; text-transform: none; letter-spacing: 0; }
.xband__set { display: flex; align-items: center; flex: none; }
.xband__set span { padding-inline: clamp(14px, 1.6vw, 26px); font-size: clamp(1rem, 1.7vw, 1.5rem); line-height: 1; }
.xband--a .xband__set span { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.15rem, 2vw, 1.75rem); }
.xband--b .xband__set span { font-weight: 500; }
.xband__set i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; opacity: .55; }
.xband--b .xband__set i { background: var(--accent); opacity: 1; }
@keyframes xband-ltr { to { transform: translateX(-50%); } }
@keyframes xband-rtl { to { transform: translateX(50%); } }
.xbands:hover .xband__track { animation-play-state: paused; }

.trust { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.trust__head { max-width: 720px; }
.trust__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; color: var(--muted); }
.trust__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.trust__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; }
.trust__sub { margin: 12px 0 0; color: var(--muted); }
.trust__row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-top: clamp(28px, 4vw, 48px); padding-block: clamp(24px, 3.5vw, 44px); border-block: 1px solid var(--line); }
.trust__count { display: grid; justify-items: center; gap: 6px; padding-inline-end: clamp(24px, 5vw, 72px); border-inline-end: 1px solid var(--line); }
.trust__count b { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(4.5rem, 10vw, 8.5rem); line-height: .9; color: var(--accent); }
.trust__count span { font-weight: 600; }
.trust__quote { margin: 0; display: grid; gap: 18px; min-width: 0; }
.trust__slide blockquote { margin: 0 0 16px; font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 600; line-height: 1.5; }
.trust__slide figcaption { display: flex; align-items: center; gap: 12px; }
.trust__slide figcaption img, .trust__initial { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.trust__initial { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.trust__slide strong { display: block; }
.trust__slide small { color: var(--muted); }
.trust__slide.is-in { animation: trust-in .5s var(--ease-out); }
@keyframes trust-in { from { opacity: 0; transform: translateY(8px); } }
.trust__nav { display: inline-flex; align-items: center; gap: 4px; justify-self: end; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; }
.trust__nav button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--fg); transition: background .2s, color .2s; }
.trust__nav button:hover { background: var(--accent); color: var(--on-accent); }
.trust__nav span { padding-inline: 8px; font-size: .9rem; color: var(--muted); }
.trust__nav b { color: var(--fg); }
.trust__rails { display: grid; gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 48px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust__rail { overflow: hidden; }
.trust__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: xband-ltr var(--rail-time, 40s) linear infinite; }
.trust__rail.is-reverse .trust__track { animation-direction: reverse; }
.trust__rails:hover .trust__track { animation-play-state: paused; }
.trust__track li { flex: none; width: clamp(130px, 14vw, 200px); height: clamp(64px, 7vw, 96px); display: grid; place-items: center; padding-inline: clamp(14px, 2vw, 28px); }
.trust__track img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.8); opacity: .55; transition: opacity .3s, filter .3s; }
[data-theme="light"] .trust__track img { filter: grayscale(1) brightness(.35); }
.trust__track li:hover img { opacity: 1; filter: none; }
@media (max-width: 760px) {
  .hero__social { flex-basis: 100%; margin-inline-start: 0; margin-top: 4px; }
  .trust__row { grid-template-columns: 1fr; }
  .trust__count { justify-items: start; padding-inline-end: 0; padding-bottom: 22px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .trust__nav { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .xband__track, .trust__track { animation: none; }
  .trust__rail { overflow-x: auto; }
}
.trust__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.trust__ask p { margin: 0; max-width: 34ch; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.5; }
@media (max-width: 760px) {
  .xbands { height: 128px; }
  .xband--a { transform: translateY(-88%) rotate(-4deg); }
  .xband--b { transform: translateY(-6%) rotate(3deg); }
}
/* the hero glow can reach past the screen edge on phones; never let it widen the page */
html, body { overflow-x: clip; }
/* logos: one even box each; JS sizes every logo by its shape so wide and square marks carry the same visual weight */
.trust__rails { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.trust__track li { width: clamp(150px, 15vw, 210px); height: clamp(84px, 8vw, 112px); padding: 10px clamp(12px, 1.6vw, 22px); overflow: visible; }
.trust__track img { width: var(--logo-w, auto); height: var(--logo-h, auto); max-width: 100%; max-height: 100%; object-fit: contain; }

/* ═════════ ABOUT AS APP WINDOWS (Photoshop document, Layers panel, Illustrator artboard) ═════════
   The window chrome keeps the apps' own neutral greys in both themes; the canvas follows the site theme. */
.about--app, .work--app, .process--app, .sheet--ae { --app-chrome: #2b2b2b; --app-chrome-2: #1f1f1f; --app-chrome-3: #383838; --app-ink: #d6d6d6; --app-dim: #8d8d8d; --app-sel: #31a8ff; }
.appwin { position: relative; border-radius: 12px; overflow: hidden; background: var(--app-chrome); border: 1px solid #0d0d0d; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset; color: var(--app-ink); }
.appwin__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: var(--app-chrome-2); border-bottom: 1px solid #111; font: 500 12px/1 var(--f-body); }
.appwin__logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font: 700 11px/1 system-ui, sans-serif; letter-spacing: -.02em; }
.appwin__logo--ps { background: #001e36; color: #31a8ff; box-shadow: 0 0 0 1px #31a8ff inset; }
.appwin__logo--ai { background: #330000; color: #ff9a00; box-shadow: 0 0 0 1px #ff9a00 inset; }
.appwin__tab { display: inline-flex; align-items: center; gap: 12px; height: 100%; padding: 0 14px; background: var(--app-chrome); border-inline: 1px solid #111; color: #eaeaea; white-space: nowrap; overflow: hidden; min-width: 0; }
.appwin__tab span { overflow: hidden; text-overflow: ellipsis; }
.appwin__tab i { font-style: normal; color: var(--app-dim); }
.appwin__dots { margin-inline-start: auto; display: flex; gap: 7px; }
.appwin__dots i { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4a; }
.appwin__body { display: flex; min-height: 0; }
.appwin__tools { flex: none; display: flex; flex-direction: column; gap: 2px; width: 44px; padding: 8px 6px; margin: 0; list-style: none; background: var(--app-chrome); border-inline-end: 1px solid #151515; }
.appwin__tools li { display: grid; place-items: center; height: 32px; border-radius: 5px; color: var(--app-dim); }
.appwin__tools li.is-on { background: #4b4b4b; color: #fff; }
.appwin__tools svg { width: 17px; height: 17px; }
.appwin__tools--slim { width: 40px; }
.appwin__canvas { flex: 1; min-width: 0; padding: clamp(28px, 4.5vw, 64px); background: var(--bg); color: var(--fg); background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0); background-size: 22px 22px; }
.appwin__status { display: flex; gap: 18px; align-items: center; height: 28px; padding: 0 14px; background: var(--app-chrome-2); border-top: 1px solid #111; font: 11.5px/1 var(--f-body); color: var(--app-dim); white-space: nowrap; overflow: hidden; }
.appwin__hint { margin-inline-start: auto; color: var(--app-sel); }
.about--app .about__label { margin-bottom: 18px; }
.about--app .about__statement { max-width: 30ch; }

/* the statement is the selected type layer: blue bounding box + 8 transform handles */
.typelayer { position: relative; display: inline-block; max-width: 100%; padding: 10px 14px; }
.typelayer__h { position: absolute; inset: 0; border: 1px solid var(--app-sel); pointer-events: none; }
.typelayer__h i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1px solid var(--app-sel); translate: -50% -50%; }
.typelayer__h i:nth-child(1) { left: 0; top: 0; } .typelayer__h i:nth-child(2) { left: 50%; top: 0; } .typelayer__h i:nth-child(3) { left: 100%; top: 0; }
.typelayer__h i:nth-child(4) { left: 100%; top: 50%; } .typelayer__h i:nth-child(5) { left: 100%; top: 100%; } .typelayer__h i:nth-child(6) { left: 50%; top: 100%; }
.typelayer__h i:nth-child(7) { left: 0; top: 100%; } .typelayer__h i:nth-child(8) { left: 0; top: 50%; }

.about__cols--app { grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 36px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.appwin__title { margin: 0 0 14px; font-size: .95rem; font-weight: 500; }

/* Layers panel */
.appwin--panel { padding-bottom: 8px; }
.appwin__panelhead { display: flex; gap: 18px; padding: 0 14px; height: 36px; align-items: center; background: var(--app-chrome-2); border-bottom: 1px solid #111; font: 12px/1 var(--f-body); color: var(--app-dim); }
.appwin__panelhead b { color: #f0f0f0; font-weight: 600; }
.appwin--panel .appwin__title { padding: 14px 14px 0; color: var(--app-dim); }
.layers { margin: 0; padding: 0; list-style: none; }
.layers li { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #222; }
.layers li.is-on { background: #3e4c5c; }
.layers__eye { color: var(--app-dim); } .layers__eye svg { width: 17px; height: 17px; display: block; }
.layers__thumb { display: grid; place-items: center; width: 38px; height: 30px; border-radius: 3px; background: #f2f2f2; color: #222; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 1px #000; }
.layers__name { display: grid; gap: 3px; min-width: 0; }
.layers__name strong { font-weight: 500; color: #f2f2f2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layers__name span { font-size: .82rem; color: var(--app-dim); }
.layers time { font-size: .8rem; color: var(--app-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Illustrator: grey pasteboard, white artboard */
.appwin__pasteboard { flex: 1; min-width: 0; padding: clamp(22px, 3vw, 36px); background: #535353; }
.artboard { position: relative; padding: 26px 22px 22px; background: #fff; color: #1b1b1b; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.artboard__name { position: absolute; top: -19px; inset-inline-start: 0; font: 11px/1 var(--f-body); color: #d0d0d0; }
.artboard .appwin__title { color: #5a5a5a; }
.artboard__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.artboard__tools li { display: inline-flex; align-items: center; gap: 8px; padding: .45em .8em; border: 1px solid #d9d9d9; border-radius: 4px; font-size: .88rem; }
.artboard__tools li::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--sw); }
.artboard__btn { margin-top: 22px; color: #1b1b1b !important; border-color: #1b1b1b !important; }
.artboard__btn:hover { background: #1b1b1b !important; color: #fff !important; }

@media (max-width: 900px) {
  .about__cols--app { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .appwin__tools, .appwin__dots, .appwin__status .appwin__hint { display: none; }
  .appwin__canvas { padding: 22px 16px; background-size: 18px 18px; }
  .typelayer { padding: 8px 10px; }
  .layers li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .layers__eye { display: none; }
  .layers__thumb { width: 30px; height: 26px; }
  .appwin__pasteboard { padding: 26px 12px 14px; }
}

/* ═════════ WORK GRID IN A PHOTOSHOP WINDOW · PROCESS AS ILLUSTRATOR ARTBOARDS ═════════ */
.work__win, .process__win { width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter)); margin-inline: auto; }

/* filters become the Photoshop options bar */
.work--app .appwin__options { position: static; max-width: none; margin: 0; padding: 7px 12px; gap: 6px; background: var(--app-chrome); border-bottom: 1px solid #111; }
.work--app .appwin__options .filters__chip { padding: .45em .9em; border-radius: 4px; border-color: #474747; background: #333; color: var(--app-ink); font-size: .8rem; }
.work--app .appwin__options .filters__chip:hover { border-color: #777; }
.work--app .appwin__options .filters__chip.is-active { background: #4b4b4b; color: #fff; border-color: var(--app-sel); }
.work--app .appwin__canvas { padding: clamp(14px, 2vw, 28px); }
.work--app .work__grid { max-width: none; padding: 0; }
.work--app .tile { border-radius: 3px; overflow: visible; }
.work--app .tile img, .work--app .tile::after { border-radius: 3px; }
.work--app .tile::before { content: ""; position: absolute; inset: -5px; border: 1px solid var(--app-sel); opacity: 0; transition: opacity .2s; pointer-events: none; }
.work--app .tile:hover::before, .work--app .tile:focus-visible::before { opacity: 1; }
.work--app .tile:hover img, .work--app .tile:focus-visible img { transform: none; }

/* process: one white artboard per step on the grey pasteboard */
.process--app .appwin__pasteboard { padding: clamp(36px, 4vw, 52px) clamp(18px, 2.4vw, 32px) clamp(22px, 3vw, 34px); }
.process--app .process__steps { max-width: none; padding: 0; gap: clamp(14px, 1.8vw, 26px); row-gap: 40px; }
.process--app .step { padding: clamp(20px, 2vw, 28px); }
.process--app .step::before { display: none; }
.process--app .step__no { display: none; }
.process--app .step__title { color: #161616; }
.process--app .step__text { color: #555; }
.process--app .step:first-child { outline: 1px solid #ff9a00; outline-offset: 4px; }
.process--app .step:first-child .artboard__name { color: #ffb44d; }

@media (max-width: 860px) {
  .process--app .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process--app .step { padding: 20px; padding-inline-start: 20px; }
}
@media (max-width: 640px) {
  .work--app .appwin__options { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .work--app .appwin__options .filters__chip { flex: none; }
  .work--app .appwin__canvas { padding: 10px; }
  .process--app .process__steps { grid-template-columns: 1fr; }
}

/* ═════════ FROM THE DESK AS AN AFTER EFFECTS COMPOSITION ═════════
   Viewer = current frame, transport = play/pause + timecode, timeline = one clip per image with a moving playhead. */
.appwin__logo--ae { background: #00005b; color: #9999ff; box-shadow: 0 0 0 1px #9999ff inset; }
.ae { width: min(100% - 2 * var(--gutter), var(--max) - 2 * var(--gutter)); margin-inline: auto; --ae-sel: #9999ff; --ae-head: #3b8cff; }
.ae__viewer { position: relative; aspect-ratio: 16 / 8; min-height: 260px; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); background: #181818;
  background-image: linear-gradient(45deg, #1d1d1d 25%, transparent 25%, transparent 75%, #1d1d1d 75%), linear-gradient(45deg, #1d1d1d 25%, transparent 25%, transparent 75%, #1d1d1d 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; overflow: hidden; }
.ae__comp { position: absolute; top: 10px; left: 14px; z-index: 2; font: 11px/1 var(--f-body); color: var(--app-dim); }
.ae__shot { position: absolute; inset: clamp(28px, 3.4vw, 44px) clamp(16px, 3vw, 40px) clamp(16px, 2.4vw, 32px); display: grid; grid-template: 100% / 100%; place-items: center; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.ae__shot img { grid-area: 1 / 1; }
.ae__shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: 0 0 0 1px rgba(153, 153, 255, .45), 0 20px 50px -20px #000; }
.ae__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(20, 20, 20, .72); border: 1px solid #444; color: #eee; opacity: 0; transition: opacity .25s, background .25s; }
.ae__nav svg { width: 20px; height: 20px; }
.ae__nav--prev { left: 14px; } .ae__nav--next { right: 14px; }
.ae__viewer:hover .ae__nav, .ae__nav:focus-visible { opacity: 1; }
.ae__nav:hover { background: #2e2e2e; }
[dir="rtl"] .ae__nav svg { scale: -1 1; }
[dir="rtl"] .ae__nav--prev { left: auto; right: 14px; } [dir="rtl"] .ae__nav--next { right: auto; left: 14px; }

.ae__transport { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; background: var(--app-chrome); border-block: 1px solid #111; }
.ae__btn { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 5px; color: var(--app-ink); }
.ae__btn:hover { background: #3a3a3a; color: #fff; }
.ae__btn svg { width: 15px; height: 15px; }
.ae__btn--play { color: var(--ae-sel); }
.ae__ico-play { display: none; }
.ae.is-paused .ae__ico-play { display: block; } .ae.is-paused .ae__ico-pause { display: none; }
.ae__tc { margin-inline-start: 10px; font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ae-head); font-variant-numeric: tabular-nums; }
.ae__count { margin-inline-start: auto; font-size: 12px; color: var(--app-dim); font-variant-numeric: tabular-nums; }
.ae__count b { color: #f0f0f0; font-weight: 600; }

.ae__timeline { position: relative; background: #232323; padding: 22px 0 12px; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, #444 0 1px, transparent 1px 18px); background-size: 100% 8px; background-repeat: repeat-x; }
.ae__clips { display: flex; gap: 3px; margin: 0; padding: 0 12px; list-style: none; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; cursor: grab; }
.ae__clips::-webkit-scrollbar { display: none; }
.ae__clip { position: relative; display: block; flex: none; width: 112px; height: 62px; padding: 0; border-radius: 3px; overflow: hidden; background: #3d3d6b; border: 1px solid #55558f; opacity: .62; transition: opacity .25s, border-color .25s; }
.ae__clip img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ae__clip:hover { opacity: .9; }
.ae__clip.is-on { opacity: 1; border-color: var(--ae-sel); box-shadow: 0 0 0 1px var(--ae-sel); }
.ae__clipname { position: absolute; left: 4px; top: 3px; padding: 1px 4px; border-radius: 2px; background: rgba(0, 0, 0, .6); font-size: 10px; line-height: 1.3; color: #ddd; font-variant-numeric: tabular-nums; }
/* playhead: travels across the active clip while it plays */
.ae__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--ae-head); display: none; transform: translateX(calc(var(--p, 0) * 108px)); }
.ae__head::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 8px; background: var(--ae-head); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ae__clip.is-on .ae__head { display: block; }
.ae__clip:focus-visible { outline: 2px solid var(--ae-head); outline-offset: 1px; }

@media (max-width: 640px) {
  .ae__viewer { aspect-ratio: 4 / 3.4; min-height: 0; }
  .ae__shot { inset: 12px; }
  .ae__comp { display: none; }
  .ae__nav { opacity: 1; width: 36px; height: 36px; }
  .ae__tc { font-size: 13px; }
  .ae__clip { width: 84px; height: 50px; }
  .ae__head { transform: translateX(calc(var(--p, 0) * 80px)); }
}
@media (prefers-reduced-motion: reduce) { .ae__shot img { transition: none; } }

/* ═════════ SELECTED DESIGNS: each collection is a fanned stack of cards ═════════ */
.sets { padding: clamp(70px, 9vw, 130px) 0; }
.set { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(10px, 2vw, 24px) var(--gutter) clamp(40px, 5vw, 72px); isolation: isolate; }
.set + .set { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); }
.set::before { content: ""; position: absolute; inset: 10% 20% 30%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--glow), .14), transparent 70%); pointer-events: none; }
.set__stage { --step: clamp(92px, 12.5vw, 200px); position: relative; height: clamp(340px, 40vw, 560px); touch-action: pan-y; user-select: none; }
.set__card {
  --d: 0; --ad: 0;
  position: absolute; left: 50%; top: 50%; width: clamp(190px, 21vw, 330px); aspect-ratio: 4 / 5; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: var(--bg-3); cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--d) * var(--step))) translateY(calc(var(--ad) * 16px)) rotate(calc(var(--d) * 7deg)) scale(calc(1 - var(--ad) * .07));
  z-index: calc(50 - var(--ad));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  filter: brightness(calc(1 - var(--ad) * .16));
  transition: transform .65s var(--ease-out), filter .5s, opacity .5s;
}
.set__card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.set__card.is-far { opacity: 0; pointer-events: none; }
.set__card.is-on { cursor: zoom-in; box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .85), 0 0 0 1px rgba(var(--glow), .45); }
.set__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.set__meta { display: grid; justify-items: center; gap: 8px; margin-top: clamp(10px, 2vw, 24px); text-align: center; }
.set__titles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.set__title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.2; }
.set__tag { padding: .35em .9em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; color: var(--muted); }
.set__desc { max-width: 56ch; color: var(--muted); }
.set__nav { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.set__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); transition: background .25s, border-color .25s; }
.set__btn:hover { border-color: var(--fg); }
.set__btn svg { width: 18px; height: 18px; }
[dir="rtl"] .set__btn svg { scale: -1 1; }
.set__count { min-width: 64px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.set__count b { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) {
  .set__stage { --step: 54px; height: 380px; }
  .set__card { width: 62vw; max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .set__card { transition: none; } }

/* Carousel block inside a project page: same card fan, no section padding, slide shape from the admin. */
.blk--carousel { max-width: 1160px; }
.blk--carousel .set { padding: 0; max-width: none; }
.blk--carousel .blk__h { text-align: center; }
/* `.blk button` makes every block button full width; give the fan's own buttons their sizes back. */
.blk--carousel .set__card { width: clamp(190px, 21vw, 330px); }
.blk--carousel .set__btn { display: grid; width: 40px; }
.blk--carousel .set--story .set__card { width: clamp(170px, 17vw, 280px); }
.blk--carousel .set--landscape .set__card { width: clamp(260px, 34vw, 520px); }
@media (max-width: 640px) {
  .blk--carousel .set__card { width: 62vw; }
  .blk--carousel .set--story .set__card { width: 48vw; }
  .blk--carousel .set--landscape .set__card { width: 78vw; }
}
.set--square .set__card { aspect-ratio: 1; }
.set--story .set__card { aspect-ratio: 9 / 16; width: clamp(170px, 17vw, 280px); }
.set--landscape .set__card { aspect-ratio: 16 / 9; width: clamp(260px, 34vw, 520px); }
.set--landscape .set__stage { --step: clamp(70px, 9vw, 150px); height: clamp(260px, 30vw, 420px); }
@media (max-width: 640px) {
  .set--story .set__card { width: 48vw; max-width: 220px; }
  .set--story .set__stage { height: 440px; }
  .set--landscape .set__card { width: 78vw; max-width: none; }
  .set--landscape .set__stage { --step: 34px; height: 260px; }
}

